/* =========================================================
   SUBARNA KANDEL PORTFOLIO - MAIN STYLESHEET
   ========================================================= */

:root {
            --primary-dark: #3E5902;
            --primary: #556B2F;
            --primary-light: #8F9779;
            --secondary: #795548;
            --light: #F5F5DC;
            --accent: #8D6E63;
            --text-dark: #3E2723;
            --text-light: #F5F5F5;
            --soil-brown: #8D6E63;
            --water-blue: #2196F3;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Open Sans', sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f9f9f5;
            overflow-x: hidden;
        }
        
        h1, h2, h3, h4 {
            font-family: 'Merriweather', serif;
            color: var(--primary-dark);
            margin-bottom: 1rem;
        }
        
        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* Header Styles */
        header {
            background: linear-gradient(rgba(62, 89, 2, 0.9), rgba(85, 107, 47, 0.85)), 
                        repeating-linear-gradient(45deg, 
                        rgba(62, 89, 2, 0.1) 0px, 
                        rgba(62, 89, 2, 0.1) 10px, 
                        rgba(85, 107, 47, 0.1) 10px, 
                        rgba(85, 107, 47, 0.1) 20px);
            color: white;
            min-height: 70vh; /* Reduced height */
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
            padding: 2rem 0;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        
        /* Animation Elements */
        .plant-animation {
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 150px;
        }
        
        .plant {
            position: absolute;
            bottom: 0;
            animation: grow 8s ease-in-out infinite;
            opacity: 0.7;
        }
        
        .plant:nth-child(1) {
            left: 10%;
            height: 80px;
            animation-delay: 0s;
        }
        
        .plant:nth-child(2) {
            left: 30%;
            height: 100px;
            animation-delay: 1s;
        }
        
        .plant:nth-child(3) {
            left: 50%;
            height: 120px;
            animation-delay: 2s;
        }
        
        .plant:nth-child(4) {
            left: 70%;
            height: 90px;
            animation-delay: 3s;
        }
        
        .plant:nth-child(5) {
            left: 90%;
            height: 70px;
            animation-delay: 4s;
        }
        
        @keyframes grow {
            0%, 100% { transform: scaleY(0.8); opacity: 0.6; }
            50% { transform: scaleY(1.1); opacity: 0.9; }
        }
        
        /* Navigation */
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 0;
        }
        
        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--light);
            display: flex;
            align-items: center;
        }
        
        .logo i {
            margin-right: 10px;
            color: var(--light);
        }
        
        .nav-links {
            display: flex;
            list-style: none;
        }
        
        .nav-links li {
            margin-left: 1.5rem;
        }
        
        .nav-links a {
            color: var(--light);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            position: relative;
            font-size: 1.1rem;
        }
        
        .nav-links a:after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background-color: var(--light);
            transition: width 0.3s ease;
        }
        
        .nav-links a:hover:after {
            width: 100%;
        }
        
        /* Hero Section */
        .hero {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 2rem 0;
            margin-top: 2rem;
        }
        
        .hero h1 {
            font-size: 3rem;
            margin-bottom: 1.5rem;
            color: white;
            animation: fadeInDown 1s ease;
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        
        .hero p {
            font-size: 1.3rem;
            max-width: 700px;
            margin: 0 auto 2rem;
            color: var(--light);
            animation: fadeInUp 1s ease;
        }
        
        .hero .btn {
            display: inline-block;
            background: var(--primary-light);
            color: white;
            padding: 0.9rem 2.5rem;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            animation: fadeIn 1.5s ease;
            font-size: 1.1rem;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }
        
        .hero .btn:hover {
            background: var(--primary-dark);
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        }
        
        /* Section Styles */
        section {
            padding: 5rem 0;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 3rem;
            position: relative;
        }
        
        .section-title:after {
            content: '';
            position: absolute;
            width: 80px;
            height: 4px;
            background: var(--primary);
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 2px;
        }
        
        /* Education Section */
        .education-item {
            background: white;
            border-radius: 10px;
            padding: 1.8rem;
            margin-bottom: 1.8rem;
            box-shadow: 0 5px 20px rgba(0,0,0,0.06);
            border-left: 5px solid var(--primary);
            transition: transform 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .education-item:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--primary-light));
        }
        
        .education-item:hover {
            transform: translateY(-8px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }
        
        .education-item h3 {
            color: var(--primary-dark);
            font-size: 1.4rem;
        }
        
        .education-item .date {
            color: var(--primary-light);
            font-weight: 700;
            margin-bottom: 0.8rem;
            display: flex;
            align-items: center;
        }
        
        .education-item .date i {
            margin-right: 8px;
        }
        
        .thesis-link {
            display: inline-flex;
            align-items: center;
            margin-top: 0.8rem;
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .thesis-link i {
            margin-left: 6px;
            transition: transform 0.3s ease;
        }
        
        .thesis-link:hover {
            color: var(--primary-dark);
        }
        
        .thesis-link:hover i {
            transform: translateX(4px);
        }
        

        /* Projects Section */
        .projects-section { background-color: #f8f9f5; }
        .projects-intro { max-width: 800px; margin: 0 auto 2.5rem; text-align: center; color: var(--text-dark); }
        .projects-status { text-align:center; color:var(--primary-light); margin:1rem 0 2rem; font-size:.95rem; }
        .projects-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:2rem; }
        .project-card { background:white; border-radius:10px; padding:1.8rem; box-shadow:0 5px 20px rgba(0,0,0,.06); border:1px solid #f0f0f0; border-top:4px solid var(--primary); display:flex; flex-direction:column; transition:all .3s ease; }
        .project-card:hover { transform:translateY(-8px); box-shadow:0 12px 25px rgba(0,0,0,.11); }
        .project-card h3 { margin-bottom:.7rem; font-size:1.3rem; word-break:break-word; }
        .project-card h3 a { color:var(--primary-dark); text-decoration:none; }
        .project-card h3 a:hover { color:var(--primary); }
        .project-description { color:#555; min-height:4.8rem; margin-bottom:1rem; }
        .project-meta { display:flex; flex-wrap:wrap; gap:.8rem 1.1rem; color:#666; font-size:.9rem; margin-bottom:1rem; }
        .project-meta span { display:inline-flex; align-items:center; gap:.35rem; }
        .project-topics { display:flex; flex-wrap:wrap; gap:.4rem; margin-bottom:1.2rem; }
        .project-topic { background:#eef2e7; color:var(--primary-dark); padding:.3rem .65rem; border-radius:20px; font-size:.78rem; }
        .project-footer { margin-top:auto; display:flex; justify-content:space-between; align-items:center; gap:1rem; }
        .project-language { font-size:.85rem; color:var(--primary-light); font-weight:600; }
        .project-btn { display:inline-flex; align-items:center; gap:.45rem; background:var(--primary); color:white; padding:.65rem 1rem; border-radius:25px; text-decoration:none; font-weight:600; font-size:.88rem; transition:all .3s ease; }
        .project-btn:hover { background:var(--primary-dark); transform:translateY(-2px); }
        .projects-all-btn { display:block; width:max-content; margin:2.5rem auto 0; }
        .projects-empty { text-align:center; background:white; border-radius:10px; padding:2rem; color:#666; }

        /* Publications Section */
        .publications-container {
            background: white;
            border-radius: 10px;
            padding: 2.5rem;
            box-shadow: 0 5px 20px rgba(0,0,0,0.06);
        }
        
        .publication-item {
            padding: 1.2rem 0;
            border-bottom: 1px solid #f0f0f0;
            position: relative;
            padding-left: 1.5rem;
        }
        
        .publication-item:before {
            content: '•';
            position: absolute;
            left: 0;
            color: var(--primary);
            font-size: 1.5rem;
        }
        
        .publication-item:last-child {
            border-bottom: none;
        }
        
        .publication-title {
            font-weight: 700;
            color: var(--primary-dark);
            font-size: 1.1rem;
            margin-bottom: 0.3rem;
        }
        
        .publication-authors {
            color: var(--primary-light);
            font-style: italic;
            margin-bottom: 0.4rem;
        }
        
        /* Research Interests */
        .interests-intro {
            max-width: 800px;
            margin: 0 auto 3rem;
            text-align: center;
            font-size: 1.1rem;
            color: var(--text-dark);
        }

        .interests-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 2rem;
        }
        
        .interest-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            transition: all 0.4s ease;
            border: 1px solid #f0f0f0;
        }
        
        .interest-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.12);
        }
        
        .interest-img {
            height: 180px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 3.5rem;
            background-size: cover;
            background-position: center;
            position: relative;
            overflow: hidden;
        }
        
        .interest-img:after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.2);
        }
        
        .interest-img i {
            z-index: 1;
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }
        
        .interest-content {
            padding: 1.8rem;
        }
        
        .interest-content h3 {
            margin-bottom: 0.8rem;
            font-size: 1.3rem;
        }
        
        /* Skills Section */
        .skills-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 2rem;
        }
        
        .skill-card {
            background: white;
            border-radius: 10px;
            padding: 2rem 1.5rem;
            box-shadow: 0 5px 20px rgba(0,0,0,0.06);
            text-align: center;
            transition: all 0.4s ease;
            border: 1px solid #f0f0f0;
        }
        
        .skill-card:hover {
            transform: scale(1.05);
            box-shadow: 0 12px 25px rgba(0,0,0,0.1);
        }
        
        .skill-icon {
            font-size: 3.2rem;
            color: var(--primary);
            margin-bottom: 1.2rem;
            transition: transform 0.3s ease;
        }
        
        .skill-card:hover .skill-icon {
            transform: scale(1.1);
        }
        
        .skill-card h3 {
            font-size: 1.25rem;
            margin-bottom: 0.8rem;
        }
        
        /* Connect Section */
        .connect-container {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            justify-content: center;
        }
        
        .profile-card {
            flex: 1;
            min-width: 300px;
            background: white;
            border-radius: 10px;
            padding: 2.5rem;
            box-shadow: 0 5px 20px rgba(0,0,0,0.06);
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid #f0f0f0;
        }
        
        .profile-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 25px rgba(0,0,0,0.1);
        }
        
        .profile-icon {
            font-size: 4.5rem;
            color: var(--primary);
            margin-bottom: 1.5rem;
        }
        
        .profile-btn {
            display: inline-block;
            background: var(--primary);
            color: white;
            padding: 0.9rem 1.8rem;
            border-radius: 30px;
            text-decoration: none;
            margin-top: 1rem;
            transition: all 0.3s ease;
            font-weight: 600;
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        }
        
        .profile-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-3px);
            box-shadow: 0 8px 15px rgba(0,0,0,0.2);
        }
        
        /* Contact Section */
        .contact-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }
        
        .contact-info {
            background: white;
            border-radius: 10px;
            padding: 2.5rem;
            box-shadow: 0 5px 20px rgba(0,0,0,0.06);
            border: 1px solid #f0f0f0;
        }
        
        .contact-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 1.8rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid #f5f5f5;
        }
        
        .contact-icon {
            font-size: 1.8rem;
            color: var(--primary);
            margin-right: 1.2rem;
            width: 50px;
            text-align: center;
            flex-shrink: 0;
        }
        
        .contact-item-content h4 {
            font-size: 1.2rem;
            margin-bottom: 0.3rem;
        }
        
        .contact-form {
            background: white;
            border-radius: 10px;
            padding: 2.5rem;
            box-shadow: 0 5px 20px rgba(0,0,0,0.06);
            border: 1px solid #f0f0f0;
        }
        
        .form-group {
            margin-bottom: 1.5rem;
        }
        
        .form-control {
            width: 100%;
            padding: 1rem;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-family: inherit;
            font-size: 1rem;
            transition: all 0.3s ease;
        }
        
        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(85, 107, 47, 0.1);
        }
        
        textarea.form-control {
            min-height: 160px;
            resize: vertical;
        }
        
        .submit-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 1rem 2.5rem;
            border-radius: 30px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            font-size: 1.1rem;
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        }
        
        .submit-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-3px);
            box-shadow: 0 8px 15px rgba(0,0,0,0.2);
        }
        
        /* Contact form status */
        .contact-status {
            display: none;
            margin-top: 1rem;
            padding: 0.9rem 1rem;
            border-radius: 8px;
            font-size: 0.95rem;
        }

        .contact-status.success {
            display: block;
            background: #edf7ed;
            color: #2e6b2e;
            border: 1px solid #b8d8b8;
        }

        .contact-status.error {
            display: block;
            background: #fff0f0;
            color: #9b2c2c;
            border: 1px solid #e4b5b5;
        }

        .submit-btn:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
        }

        /* Footer */
        footer {
            background: var(--primary-dark);
            color: white;
            text-align: center;
            padding: 3rem 0;
        }
        
        .footer-content {
            max-width: 700px;
            margin: 0 auto;
        }
        
        .social-links {
            display: flex;
            justify-content: center;
            list-style: none;
            margin: 1.8rem 0;
            flex-wrap: wrap;
        }
        
        .social-links li {
            margin: 0.5rem;
        }
        
        .social-links a {
            display: inline-block;
            width: 50px;
            height: 50px;
            background: rgba(255,255,255,0.12);
            border-radius: 50%;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            font-size: 1.4rem;
        }
        
        .social-links a:hover {
            background: var(--primary);
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        
        .copyright {
            margin-top: 1.5rem;
            font-size: 0.9rem;
            opacity: 0.8;
        }
        
       /* Responsive Design */
     /*   @media (max-width: 992px) {
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .hero p {
                font-size: 1.2rem;
            }
            
            .nav-links li {
                margin-left: 1rem;
            }
        }
        
        @media (max-width: 768px) {
            header {
                min-height: 60vh;
            }
            
            .nav-links {
                display: none;
            }
            
            .mobile-menu-btn {
                display: block;
                color: white;
                font-size: 1.5rem;
                background: none;
                border: none;
                cursor: pointer;
            }
            
            .section-title {
                font-size: 1.8rem;
            }
            
            .plant {
                height: 60px !important;
            }
        } /*
        
        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .animate-on-scroll {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }
        
        .animate-on-scroll.visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* Soil and Water Specific Styling */
        .water-bg {
            background: linear-gradient(rgba(33, 150, 243, 0.85), rgba(25, 118, 210, 0.85));
        }
        
        .soil-water-bg {
            background: linear-gradient(45deg, rgba(141, 110, 99, 0.85), rgba(33, 150, 243, 0.85));
        }
        
        .water-skill {
            color: var(--water-blue);
        }
      /* =========================================================
   FINAL RESPONSIVE PORTFOLIO DESIGN
   Desktop + Laptop + Tablet + Mobile
   ========================================================= */

/* ---------------------------------------------------------
   GLOBAL CONTAINER
   --------------------------------------------------------- */

.container {
    width: min(94%, 1600px);
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ---------------------------------------------------------
   NAVIGATION
   --------------------------------------------------------- */

nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 0;
}

.logo {
    flex: 0 0 auto;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    margin-left: auto;
    list-style: none;
}

.nav-links li {
    margin-left: 0;
}

.nav-links a {
    font-size: 0.95rem;
    white-space: nowrap;
}

.mobile-menu-btn {
    display: none;
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.hero {
    min-height: 55vh;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
    align-items: center;
    gap: 5rem;
    text-align: left;
    padding: 4rem 0 5rem;
    margin-top: 0;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.2rem;
}

.hero p {
    max-width: 800px;
    margin: 0 0 2rem;
    font-size: clamp(1.1rem, 1.4vw, 1.4rem);
}

.hero .btn {
    width: fit-content;
}


/* Decorative hero area */
/* .hero::after {
    content: "SOIL • CARBON • WATER • AGRICULTURE";
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    background:
        linear-gradient(
            rgba(62, 89, 2, 0.15),
            rgba(62, 89, 2, 0.15)
        );
    color: rgba(255,255,255,0.85);
    font-family: 'Merriweather', serif;
    font-size: 1.15rem;
    letter-spacing: 2px;
    text-align: center;
}
 */
      
.hero {
    min-height: 55vh;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
    align-items: center;
    gap: 5rem;
    text-align: left;
    padding: 4rem 0 5rem;
    margin-top: 0;
}

.hero-content {
    max-width: 850px;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 0.8rem;
}

.hero-tagline {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--light);
}

.hero-about {
    max-width: 800px;
    margin: 0 0 2rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--light);
}

.hero .btn {
    width: fit-content;
    border: none;
    cursor: pointer;
}

.hero-research-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
    min-height: 280px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(5px);
}

.research-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 100px;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.9);
    text-align: center;
    transition: all 0.3s ease;
}

.research-item:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-3px);
}

.research-item i {
    font-size: 1.7rem;
    color: var(--light);
}

 .research-item span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Top document request buttons */
.hero-document-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.hero-document-buttons .btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.hero-document-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.hero-document-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
    .hero-document-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-document-buttons .btn {
        width: 100%;
    }
}

      /* Submission confirmation popup */
      .request-confirmation-overlay {
          position: fixed; inset: 0; z-index: 10000;
          display: flex; align-items: center; justify-content: center;
          padding: 1.25rem; background: rgba(15, 23, 42, .58);
          opacity: 0; visibility: hidden; pointer-events: none;
          transition: opacity .45s cubic-bezier(.22,1,.36,1), visibility 0s linear .45s;
      }
      .request-confirmation-overlay.active {
          opacity: 1; visibility: visible; pointer-events: auto;
          transition: opacity .45s cubic-bezier(.22,1,.36,1), visibility 0s linear 0s;
      }
      .request-confirmation-overlay.closing {
          opacity: 0; visibility: hidden; pointer-events: none;
          transition: opacity .55s ease, visibility 0s linear .55s;
      }
      .request-confirmation-card {
          width: min(420px, 100%); padding: 2.25rem 1.75rem;
          background: #fff; border-radius: 18px; text-align: center;
          box-shadow: 0 24px 70px rgba(0,0,0,.25);
          transform: translateY(16px) scale(.965);
          opacity: 0;
          transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .45s ease;
      }
      .request-confirmation-overlay.active .request-confirmation-card {
          transform: translateY(0) scale(1); opacity: 1;
      }
      .request-confirmation-overlay.closing .request-confirmation-card {
          transform: translateY(-8px) scale(.98); opacity: 0;
          transition: transform .45s ease, opacity .45s ease;
      }
      .confirmation-check {
          width: 76px; height: 76px; margin: 0 auto 1.1rem;
          border-radius: 50%; background: #2e7d32; color: #fff;
          display: flex; align-items: center; justify-content: center;
          font-size: 2.1rem; box-shadow: 0 8px 24px rgba(46,125,50,.25);
          animation: confirmationPop .6s cubic-bezier(.2,.8,.2,1) .05s both;
      }
      .confirmation-check i { animation: confirmationCheck .4s cubic-bezier(.2,.8,.2,1) .22s both; }
      .request-confirmation-card h3 { margin: 0 0 .45rem; color: #245b2a; font-size: 1.35rem; }
      .request-confirmation-card p { margin: 0; color: #5f6b61; line-height: 1.55; }
      @keyframes confirmationPop {
          0% { transform: scale(.72); opacity: 0; }
          65% { transform: scale(1.06); opacity: 1; }
          100% { transform: scale(1); opacity: 1; }
      }
      @keyframes confirmationCheck {
          0% { transform: scale(0) rotate(-20deg); opacity: 0; }
          100% { transform: scale(1) rotate(0); opacity: 1; }
      }
      @media (prefers-reduced-motion: reduce) {
          .request-confirmation-card, .request-confirmation-overlay, .request-confirmation-overlay.closing { transition: none; }
          .confirmation-check, .confirmation-check i { animation: none; }
      }

      /* Request success animation */
      .request-success {
          display: flex; align-items: center; justify-content: center; gap: 1rem;
          text-align: left; padding: 1.2rem;
      }
      .success-animation {
          width: 52px; height: 52px; min-width: 52px; border-radius: 50%;
          background: #2e7d32; color: #fff; display: flex; align-items: center;
          justify-content: center; font-size: 1.5rem;
          animation: successPop 0.45s ease-out forwards;
          box-shadow: 0 4px 12px rgba(46,125,50,.25);
      }
      .success-animation i { animation: checkDraw .35s .2s ease-out both; }
      .success-message { display: flex; flex-direction: column; gap: .2rem; color: #2e6b2e; }
      .success-message strong { font-size: 1rem; }
      .success-message span { font-size: .92rem; }
      @keyframes successPop {
          0% { transform: scale(0); opacity: 0; }
          70% { transform: scale(1.12); opacity: 1; }
          100% { transform: scale(1); opacity: 1; }
      }
      @keyframes checkDraw {
          0% { transform: scale(0) rotate(-20deg); opacity: 0; }
          100% { transform: scale(1) rotate(0); opacity: 1; }
      }
      @media (max-width: 480px) { .request-success { align-items: flex-start; } }

      /* CV Request Modal */

.cv-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.cv-modal.active {
    display: flex;
}

.cv-modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: cvModalIn 0.25s ease;
}

@keyframes cvModalIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cv-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
}

.cv-modal-close:hover {
    color: var(--primary-dark);
}

.cv-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cv-modal-header i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.cv-modal-header h2 {
    margin-bottom: 0.5rem;
}

.cv-modal-header p {
    color: #666;
}

.cv-modal label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cv-modal .form-group {
    margin-bottom: 1.3rem;
}

.cv-modal .submit-btn {
    width: 100%;
}
/* ---------------------------------------------------------
   GENERAL SECTIONS
   --------------------------------------------------------- */

section {
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 3.5rem;
}


/* ---------------------------------------------------------
   EDUCATION
   --------------------------------------------------------- */

#education .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

#education .section-title {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
}

#education .education-item {
    width: 100%;
    margin: 0;
    min-height: 270px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
}

#education .education-item p {
    max-width: 850px;
}

#education .thesis-link {
    margin-top: auto;
}


/* ---------------------------------------------------------
   PROJECTS
   --------------------------------------------------------- */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.project-card {
    min-width: 0;
    height: 100%;
    padding: 2rem;
}

.project-description {
    min-height: 5rem;
}


/* ---------------------------------------------------------
   PUBLICATIONS
   --------------------------------------------------------- */

.publications-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 3rem;
}


/* ---------------------------------------------------------
   RESEARCH INTERESTS
   --------------------------------------------------------- */

.interests-intro {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.research-statement-request {
    text-align: center;
    margin: -1rem auto 2.5rem;
}

.research-statement-request .submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}


.interests-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.interest-card {
    min-width: 0;
    height: 100%;
}

.interest-img {
    height: 190px;
}

.interest-content {
    padding: 1.8rem;
}

.interest-content h3 {
    line-height: 1.4;
}


/* ---------------------------------------------------------
   SKILLS
   --------------------------------------------------------- */

.skills-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.skill-card {
    min-width: 0;
    height: 100%;
    padding: 2rem;
}


/* ---------------------------------------------------------
   CONNECT
   --------------------------------------------------------- */

.connect-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.profile-card {
    min-width: 0;
    height: 100%;
    padding: 2.5rem;
}


/* ---------------------------------------------------------
   CONTACT
   --------------------------------------------------------- */

.contact-container {
    display: grid;
    grid-template-columns: minmax(320px, 0.8fr) minmax(500px, 1.2fr);
    gap: 3rem;
    align-items: start;
}

.contact-info,
.contact-form {
    width: 100%;
    padding: 2.5rem;
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.footer-content {
    max-width: 900px;
}

/* =========================================================
   FLOATING NAVIGATION BASE STYLES
   ========================================================= */
/* ---------- Navigation: normal at page top, floating after scrolling ---------- */
header > .container > nav {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    min-height: 64px;
    padding: 1rem 0;
    z-index: auto;
    border-radius: 0;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: top .28s ease, transform .28s ease, opacity .2s ease, background-color .3s ease, box-shadow .3s ease;
}

header > .container > nav.nav-floating {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: min(94%, 1540px);
    min-height: 64px;
    padding: 0.65rem 1rem;
    z-index: 9000;
    border-radius: 18px;
    background: rgba(42, 61, 18, 0.94);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
}

body.dark-mode header > .container > nav.nav-floating {
    background: rgba(18, 24, 20, 0.94);
    border-color: rgba(185, 210, 185, 0.16);
    box-shadow: 0 12px 34px rgba(0,0,0,0.42);
}

/* No extra spacer is needed while the navigation is in normal document flow. */
header > .container {
    padding-top: 0;
}

/* =========================================================
   FLOATING ACTION BUTTON (MEETING DIAL)
   ========================================================= */
.meeting-dial{
    position:fixed;
    bottom:25px;
    right:25px;
    z-index:9999;

    display:flex;
    align-items:center;

    width:64px;
    height:64px;

    overflow:hidden;

    border-radius:50px;

    background:#d4a017;
    color:white;

    text-decoration:none;

    box-shadow:0 8px 25px rgba(0,0,0,.25);

    transition:all .35s ease;

    animation:pulse 2.5s infinite;
}

.meeting-dial:hover{
    width:240px;
    animation:none;
}

.meeting-dial .icon{
    min-width:64px;
    text-align:center;
    font-size:28px;
}

.meeting-dial .label{
    white-space:nowrap;
    opacity:0;
    font-weight:600;
    font-size:15px;
    transition:opacity .2s ease;
}

.meeting-dial:hover .label{
    opacity:1;
}

@keyframes pulse{
    0%{
        transform:scale(1);
    }
    50%{
        transform:scale(1.08);
    }
    100%{
        transform:scale(1);
    }
}
