:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --bg-dark: #222;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--secondary-color);
    padding: 0.5rem 0;
}

.nav a:hover {
    color: var(--accent-color);
}

/* Dropdown Fix */
.dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 0;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 220px;
    box-shadow: var(--shadow-md);
    border-radius: 4px;
    z-index: 100;
    border: 1px solid var(--border-color);
    margin-top: 0;
    padding: 0.5rem 0;
}

.dropdown-menu a {
    color: var(--text-color);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--accent-color);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(44, 62, 80, 0.2);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(44, 62, 80, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 8rem 0;
    background-color: #fcfcfc;
    position: relative;
    overflow: hidden;
}

#about .section-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    border-style: solid;
    opacity: 0.7;
}

.dot {
    border: none !important;
    opacity: 0.8;
}

/* Flex centering for nested shapes */
.nested {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nested .inner {
    width: 50%;
    height: 50%;
    border: 2px solid inherit;
    border-radius: 50%;
    border-color: inherit;
    opacity: 0.6;
}

.nested .inner-dot {
    width: 10px;
    height: 10px;
    background-color: #ff9800; /* Changed to orange */
    border-radius: 50%;
}

.nested .middle-ring {
    width: 60%;
    height: 60%;
    border: 2px solid #3498db; /* Changed to blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.nested .inner-ring {
    width: 60%;
    height: 60%;
    border: 3px solid #ff9800;
    border-radius: 50%;
}

/* --- Positioning Flow: Bottom-Left to Top-Right --- */

/* Shape 1 (Pink Nested) - Top Right Area */
.shape-1 {
    width: 110px;
    height: 110px;
    border-color: #e91e63;
    border-width: 2px;
    top: 15%;
    right: 15%;
}

/* Shape 2 (Orange Nested) - Mid Right, slightly lower */
.shape-2 {
    width: 80px;
    height: 80px;
    border-color: #ff9800;
    border-width: 4px;
    top: 35%;
    right: 5%;
}

/* Shape 3 (Blue Accent) - Top Edge */
.shape-3 {
    width: 40px;
    height: 40px;
    border-color: #3498db;
    border-width: 3px;
    top: 5%;
    right: 25%;
}

/* Shape 4 (Large Pale Pink) - Far Top Right Corner */
.shape-4 {
    width: 200px;
    height: 200px;
    border-color: rgba(233, 30, 99, 0.08);
    border-width: 25px;
    top: -60px;
    right: -40px;
}

/* Shape 5 (Small Orange) - Mid-Right trajectory */
.shape-5 {
    width: 30px;
    height: 30px;
    border-color: #ff9800;
    border-width: 2px;
    bottom: 45%;
    right: 18%;
}

/* Shape 6 (Blue Anchor) - Bottom Left, keep low */
.shape-6 {
    width: 90px;
    height: 90px;
    border-color: rgba(52, 152, 219, 0.25);
    border-width: 5px;
    bottom: 5%;
    left: 2%; 
}

/* Dots */
/* Pink dot near top title */
.shape-8.dot { width: 8px; height: 8px; background-color: #e91e63; top: 12%; right: 35%; }
/* Blue dot near nested orange */
.shape-10.dot { width: 10px; height: 10px; background-color: #3498db; top: 38%; right: 2%; }

/* Shape 9 (Nested Pink/Red) - Upper Right */
.shape-9.nested {
    width: 50px;
    height: 50px;
    border-color: #e91e63;
    border-width: 2px;
    top: 25%;
    right: 28%;
}
.shape-9.nested .inner {
    width: 20px;
    height: 20px;
    border: 2px solid #e91e63;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    line-height: 1.1;
    letter-spacing: -1.2px;
}

.legal-name {
    font-size: 1rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    font-style: italic;
    opacity: 0.8;
}

/* Updated Subtitle with Orange Line */
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 1.8rem;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.2px;
    border-left: 4px solid #ff9800; /* Vertical Orange Line */
    padding-left: 1rem;
    display: inline-block; /* Keeps border tight to text height */
}

.hero-text {
    font-size: 1.05rem;
    color: var(--light-text);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-social-link {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.hero-social-link:hover {
    color: #0077b5; /* LinkedIn blue */
    transform: translateY(-2px);
}

/* Updated Image Styling */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.img-wrapper {
    position: relative;
    z-index: 2;
}

/* Frame around image */
.img-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 108%;
    height: 108%;
    border: 2px solid rgba(44, 62, 80, 0.1); /* Subtle dark frame */
    border-radius: 28px;
    z-index: -1;
}

.hero-image img {
    width: 340px;
    height: 340px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background-color: white;
}

/* Sections */
.section {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: #ff9800; /* Changed to orange */
    margin: 10px auto 0;
    border-radius: 2px;
}

.text-center {
    text-align: center !important;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--primary-color);
}

.text-white {
    color: white !important;
}

/* Education Grid */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.education-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.education-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.education-card .date {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.education-card .degree {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.education-card .details {
    color: var(--light-text);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Skills Column wrapper removed */

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Wider tools, narrower languages */
    gap: 2rem;
    align-items: stretch;
}

.skills-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skills-card h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.skills-card h3 i {
    color: var(--accent-color);
    font-size: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    flex: 1;
    align-content: center; /* Center lines vertically */
}

.skill-languages-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    flex: 1;
}

.lang-row {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

.skill-languages-layout span {
    background-color: var(--bg-light);
    color: var(--secondary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

/* Ensure mobile stacking */
@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.skill-tags span {
    background-color: var(--bg-light);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Research & Experience Common */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%; /* Ensure full width */
}

.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    color: var(--light-text);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.external-links {
    text-align: center;
    margin-bottom: 2rem;
}

.link-item {
    display: inline-block;
    margin: 0 15px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.link-item:hover {
    color: var(--accent-color);
}

/* Research Specific */
.research-grid {
    display: grid;
    gap: 1.5rem;
}

.research-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.research-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.research-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.research-item .role {
    font-size: 0.9rem;
    color: var(--light-text);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Specific styling for Publications and Posters titles */
#research-others-view .research-item {
    background: white !important;
    border: 1px solid #eee !important;
    border-radius: 12px;
    padding: 2rem !important;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

#research-others-view .research-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

/* Color cycling for borders on hover */
#research-others-view .research-item:nth-child(3n+1):hover { border-color: #e91e63 !important; }
#research-others-view .research-item:nth-child(3n+2):hover { border-color: #ff9800 !important; }
#research-others-view .research-item:nth-child(3n+3):hover { border-color: #3498db !important; }

/* Ensure tags also light up inside these boxes */
#research-others-view .research-item:nth-child(3n+1):hover .exp-tag { color: #e91e63; }
#research-others-view .research-item:nth-child(3n+2):hover .exp-tag { color: #ff9800; }
#research-others-view .research-item:nth-child(3n+3):hover .exp-tag { color: #3498db; }

#research-others-view .research-item h3 {
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
}

.text-link {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.award-note {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
}

.award-note i {
    color: #f1c40f; /* Gold for award icon */
    margin-right: 5px;
}


/* --- Global Timeline & Experience Layout --- */
.experience-layout {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    position: relative;
}

/* Sticky Timeline Container */
.global-timeline-container {
    position: sticky;
    top: 150px;
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-color: #e0e0e0;
    z-index: 0;
}

.timeline-highlight {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px; /* Reduced from 4px */
    background-color: transparent;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smoother, less bouncy */
    border-radius: 2px;
}

.timeline-node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 8px; /* Slightly smaller */
    height: 8px;
    background-color: #ddd;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-node.active-node {
    transform: translateX(-50%) scale(1.15); /* Reduced from 1.3 */
}

.timeline-node::before {
    content: attr(data-year);
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem; /* Slightly smaller */
    color: #999;
    font-weight: 600;
    width: 40px;
    text-align: right;
    transition: all 0.3s ease;
}

/* Experience List/Items */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-item {
    background: transparent;
    padding: 1rem 0;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: none; /* Removed move effect */
}

/* The Tag Style (Caps, Gray Box) */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.exp-tag {
    display: inline-block;
    background-color: #f5f5f5; /* Lighter gray */
    color: var(--light-text);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0; /* Let container handle gap */
    transition: color 0.3s ease; /* For lighting up text */
}

/* Specific adjustment for single tags not in container if any left */
.research-item > .exp-tag {
    margin-bottom: 0.8rem;
}

.exp-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.media-item {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.media-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.media-item h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.media-item .source {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contact */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    background-color: white;
    border-top: 1px solid var(--border-color);
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Responsive */
@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Header & Nav */
    .header-container {
        padding: 0 1rem;
    }

    .nav {
        display: none; /* Hidden by default, toggled by JS */
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .nav.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        padding: 5rem 2rem;
        box-shadow: none;
        gap: 2rem;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav.active a {
        font-size: 1.1rem;
    }

    /* Hero Section */
    .hero {
        padding: 4rem 0; /* Reduced padding */
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 1.8rem; /* Smaller mobile title */
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 0.9rem; /* Smaller subtitle */
        line-height: 1.5;
        border-left: none; /* Remove border on mobile center align */
        padding-left: 0;
        display: block;
    }

    .hero-text {
        font-size: 0.85rem; /* Smaller body text */
        margin-bottom: 2rem;
    }

    .hero-image img {
        width: 280px;
        height: 280px; /* Bigger image on mobile */
    }

    /* Reposition shapes for mobile centering around image */
    .shape-1 { top: 5%; right: 5%; width: 80px; height: 80px; }
    .shape-2 { top: 7%; left: 4%; width: 60px; height: 60px; }
    .shape-3 { top: 25%; right: 2%; width: 40px; height: 40px; }
    .shape-4 { top: -40px; right: -20px; width: 120px; height: 120px; }
    .shape-5 { top: 20%; left: 10%; width: 25px; height: 25px; }
    .shape-6 { top: 35%; left: 2%; width: 50px; height: 50px; }
    .shape-7.dot { top: 15%; right: 20%; }
    .shape-8.dot { top: 30%; left: 25%; }
    .shape-9.nested { top: 8%; right: 25%; width: 40px; height: 40px; }
    .shape-10.dot { top: 5%; left: 20%; }

    .hero-actions {
        justify-content: center; /* Center buttons */
    }

    /* Sections General */
    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }

    /* Experience & Research Timeline Layout */
    .experience-layout {
        grid-template-columns: 1fr; /* Stack timeline and content */
        gap: 0;
    }
    
    .global-timeline-container {
        display: none; /* Hide visual timeline on mobile for cleanliness */
    }

    .experience-list {
        padding-left: 0; /* Remove timeline padding */
        gap: 0.5rem; /* Reduced gap between items */
    }

    .experience-list::before {
        display: none; /* Hide vertical line */
    }

    .experience-item {
        padding: 1rem 1.5rem; /* Added side padding, kept vertical compact */
        border-bottom: 1px solid #eee; /* Subtle separation line */
    }

    /* Research grid and others view items */
    #research-others-view .research-item {
        padding: 1.2rem 1.5rem !important; /* Added side padding */
        margin-bottom: 0.8rem;
    }

    /* Tap/Active State for Mobile Highlight */
    .experience-item:active,
    #research-others-view .research-item:active {
        background-color: #fafafa;
    }

    /* Scroll Transition for Mobile */
    .experience-item, 
    #research-others-view .research-item {
        transition: border-color 0.5s ease, background-color 0.3s ease;
    }

    /* Mobile Scroll Active State (applied by JS) */
    .experience-item.mobile-active,
    #research-others-view .research-item.mobile-active {
        border-color: inherit; /* JS sets inline style, this ensures it takes precedence if needed, but inline style wins */
        background-color: #fcfcfc; /* Subtle highlight bg */
    }

    /* Cycle colors on active tap (Keep for click interaction fallback) */
    .experience-item:nth-child(3n+1):active { border-color: #e91e63; }
    .experience-item:nth-child(3n+2):active { border-color: #ff9800; }
    .experience-item:nth-child(3n+3):active { border-color: #3498db; }

    .experience-item:nth-child(3n+1):active .exp-tag { color: #e91e63; }
    .experience-item:nth-child(3n+2):active .exp-tag { color: #ff9800; }
    .experience-item:nth-child(3n+3):active .exp-tag { color: #3498db; }

    #research-others-view .research-item:nth-child(3n+1):active { border-color: #e91e63 !important; }
    #research-others-view .research-item:nth-child(3n+2):active { border-color: #ff9800 !important; }
    #research-others-view .research-item:nth-child(3n+3):active { border-color: #3498db !important; }

    .experience-item:last-child {
        border-bottom: none; /* No line for the last item */
    }

    .experience-item::before, 
    .experience-item::after {
        display: none; /* Hide timeline dots/lines */
    }

    .timeline-year {
        position: relative; /* Reset from absolute */
        left: auto;
        width: auto;
        text-align: left;
        margin: 0.5rem 0 0.2rem 0;
        padding-left: 1.5rem; /* Aligned with item side padding */
        color: var(--secondary-color);
        opacity: 0.8;
    }

    /* Cards & Grids */
    .education-grid, .awards-grid, .media-grid, .research-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 1rem; /* Reduced gap */
    }

    .education-card, .award-card, .media-item, .skills-card {
        padding: 1rem; /* Further reduced padding */
    }

    .skills-card h3 {
        margin-bottom: 1rem; /* Tighter spacing */
    }

    .skill-tags span, .skill-languages-layout span {
        font-size: 0.75rem !important;
        padding: 0.3rem 0.8rem !important;
    }

    .skill-languages-layout {
        gap: 0.5rem;
    }

    .lang-row {
        gap: 0.5rem;
    }

    /* Typography Reductions */
    h3 {
        font-size: 1rem !important; /* Smaller headings */
    }

    .exp-tag {
        font-size: 0.65rem;
        padding: 0.3rem 0.8rem;
    }

    p, .details, .award-role, .exp-date {
        font-size: 0.8rem !important; /* Smaller text preference */
    }

    .contact-content p {
        font-size: 0.85rem;
    }
}