/* main.css - Import all modular CSS files */
@import url('./base/reset.css');
@import url('./base/animations.css');
@import url('./base/layout.css');
@import url('./components/navigation.css');
@import url('./components/sections.css');
@import url('./components/cards.css');
@import url('./components/portraits.css');
@import url('./components/social-links.css');
@import url('./components/forms.css');
@import url('./pages/faculty.css');
@import url('./pages/publications.css');
@import url('./pages/contact.css');
@import url('./pages/payment.css');
@import url('./utilities/responsive.css');
@import url('./utilities/effects.css');

/* main.css - Import all modular CSS files */
@import url('./base/reset.css');
@import url('./base/animations.css');
@import url('./base/layout.css');
@import url('./components/navigation.css');
@import url('./components/sections.css');
@import url('./components/cards.css');
@import url('./components/portraits.css');
@import url('./components/social-links.css');
@import url('./components/forms.css');
@import url('./pages/faculty.css');
@import url('./pages/publications.css');
@import url('./pages/contact.css');
@import url('./pages/payment.css');
@import url('./utilities/responsive.css');
@import url('./utilities/effects.css');

/* Unified Navigation Styles (Harmonized with styles.css) */
/* Core Navigation Container */
.main-nav {
    background: linear-gradient(135deg, #000, #1a1a2e);
    border-bottom: 2px solid #0073e6;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1700px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    /* Mobile fix: Allow wrapping to prevent hamburger push */
    flex-wrap: wrap;
}

/* Logo */
.nav-logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    animation: titleGlow 3s ease-in-out infinite;
}

.nav-logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0; /* Keeps it from spreading too wide */
    max-width: 50%; /* Ensures menu & hamburger still have space */
    overflow: hidden; /* Just in case */
}

/* Menu */
.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 1.1em;
    transition: all .3s ease;
    padding: 10px 15px;
    border-radius: 5px;
}

.nav-menu a:hover {
    color: #fff;
    background: rgba(0,115,230,0.2);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: #fff;
    transition: .3s;
}

/* FORCE ALL NAV TEXT TO WHITE (Override for consistency) */
.main-nav,
.main-nav * {
    color: #fff !important;
}

.nav-full-name .name-line {
    color: #fff !important;
}

.nav-full-name {
    font-size: 0.9rem !important;  /* ← This line sets the size */
    font-weight: 500 !important;
}

.nav-menu a {
    color: #fff !important;
}

.nav-menu a i {
    color: #fff !important;
}

.hamburger span {
    background: #fff !important;
}

/* ✅ MOBILE FIX (Enhanced with styles.css responsive) */
@media (max-width: 900px) {
    /* Let header items wrap instead of pushing hamburger away */
    .nav-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    /* IMPORTANT: Show hamburger on mobile */
    .hamburger {
        display: flex;
    }

    /* Prevent logo area from taking too much width */
    .nav-logo-container {
        max-width: 60%;
    }

    /* Menu collapses under logo + hamburger */
    .nav-menu {
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 15px;
        margin-top: 10px;
        background: linear-gradient(135deg, #000, #1a1a2e); /* From styles.css for mobile dropdown */
        padding: 20px;
        position: absolute;
        top: 100%;
        left: 0;
    }

    .nav-menu.active {
        display: flex;
    }
}

/* Additional mobile override from styles.css */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #000, #1a1a2e);
        flex-direction: column;
        padding: 20px;
    }

    .nav-menu.active {
        display: flex;
    }
}

/* Base Styles */
.main-nav {
    background-color: #0A2540; /* Cosmic blue from logo palette */
    color: white;
    padding: 1rem;
    font-family: 'Futura', 'Arial', sans-serif;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    font-size: 2rem;
    font-weight: bold;
    color: #00BFFF; /* Teal accent */
    text-decoration: none;
}

.nav-full-name {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.name-line {
    line-height: 1;
}

/* Desktop Menu */
.nav-menu-desktop {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-desktop a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-menu-desktop a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Toggle Button */
.menu-toggle {
    background: none;
    border: 2px solid #00BFFF;
    color: white;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    display: none; /* Hidden on desktop */
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover,
.menu-toggle:focus {
    background-color: rgba(0, 191, 255, 0.1);
    outline: none;
}

.menu-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #00BFFF; /* Up arrow */
    transition: transform 0.3s ease;
}

.menu-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg); /* Down arrow */
    border-top: 5px solid #00BFFF;
    border-bottom: none;
}

/* Mobile Off-Canvas Menu */
.nav-menu-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75% !important;  /* Or 350px; adjust as needed */
    height: 100vh;
    background-color: #0A2540;
    padding: 5rem 1rem 1rem;
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
	max-width: 400px
}

.nav-menu-mobile[aria-hidden="false"] {
    right: 0;
}

.nav-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-list li {
    margin-bottom: 1rem;
}

.nav-menu-list a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.nav-menu-list a:hover {
    background-color: rgba(0, 191, 255, 0.1);
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.menu-overlay[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu-desktop {
        display: none;
    }
    
    body.menu-open {
        overflow: hidden; /* Prevent body scroll when menu open */
    }
}

@media (min-width: 769px) {
    .nav-menu-mobile,
    .menu-overlay,
    .menu-toggle {
        display: none;
    }
}

/* Updated Mobile Navigation Fix in main.css */
/* Ensure nav-container is positioned relative to contain the absolute menu */
.nav-container {
    max-width: 1700px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
    position: relative; /* ✅ NEW: Contains the absolute positioned menu below it */
    z-index: 1001; /* ✅ NEW: Keeps container (and hamburger) above the menu */
}

/* Hamburger - Ensure it stays visible/on top */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1002; /* ✅ NEW: Forces hamburger above everything, like MIT-style visibility */
    position: relative; /* ✅ NEW: Ensures it's not affected by absolute siblings */
}

/* Mobile Menu - Position strictly below with offset to avoid overlap */
@media (max-width: 900px) {
    .nav-container {
        flex-wrap: wrap;
        justify-content: space-between;
        position: relative;
        z-index: 1001;
    }

    .hamburger {
        display: flex;
        z-index: 1002;
        position: relative;
    }

    .nav-logo-container {
        max-width: 60%;
    }

    .nav-menu {
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 15px;
        margin-top: 0; /* Reset any prior margin */
        background: linear-gradient(135deg, #000, #1a1a2e);
        padding: 20px;
        position: absolute;
        top: calc(100% + 5px); /* ✅ UPDATED: Slight offset below container to prevent overlap/cover */
        left: 0;
        right: 0; /* ✅ NEW: Full width, ensures alignment */
        border-top: 1px solid rgba(0, 115, 230, 0.3); /* ✅ NEW: Visual separator like a "below" indicator */
        box-shadow: 0 -2px 10px rgba(0, 115, 230, 0.2); /* ✅ NEW: Subtle shadow to emphasize it's below */
        z-index: 999; /* ✅ NEW: Below hamburger/container for non-overlap */
    }

    .nav-menu.active {
        display: flex;
        z-index: 999;
    }
}

/* Additional mobile override (merged for consistency) */
@media (max-width: 768px) {
    /* Reuse the above rules - no duplication needed */
    .nav-menu {
        top: calc(100% + 5px); /* Consistent offset */
        padding: 20px;
        /* ... other styles as before */
    }
}
/* Right-Align Social Icons */
.desktop-social {
    margin-left: auto;
    display: flex;
    gap: 5px;
}

.mobile-social-links {
    justify-content: flex-end;
    padding-right: 20px; /* Extra space from right edge */
    gap: 10px;
}


/* Flush Right & Padding Between Social Icons */
.desktop-social {
    margin-left: auto;
    display: flex;
    gap: 10px; /* Padding between buttons */
    padding-right: 10px; /* Flush right with buffer from edge */
}

.mobile-social-links {
    justify-content: flex-end;
    padding-right: 20px; /* Flush right with buffer */
    gap: 12px; /* Padding between buttons on mobile */
}

/* Ensure SVGs Fit Cleanly (No Artifacts) */
.social-icon svg {
    width: 100%;
    height: 100%;
    display: block; /* Prevents any inline spacing issues */
}
/* Scaled Social Icons (Desktop: 40px, Mobile: 36px) - Override Everything */
.social-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;  /* ← Button width (change here for desktop) */
    height: 40px !important; /* ← Button height (square for circles) */
    font-size: 1.2em; /* Fallback if using FA icons */
    text-decoration: none !important;
    color: #fff !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    margin: 0 5px; /* Spacing fallback */
    background: rgba(255, 255, 255, 0.1) !important;
    flex-shrink: 0; /* Prevents squish in flex */
    box-sizing: border-box !important; /* Includes padding/border in size */
}

.social-icon:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 0 10px rgba(0, 115, 230, 0.5) !important;
    background: rgba(0, 115, 230, 0.3) !important;
}

/* SVG Fill (No Whitespace/Overflow) */
.social-icon svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    flex-shrink: 0;
}

/* Wrappers (Ensure No Constraints) */
.desktop-social {
    margin-left: auto !important;
    display: flex !important;
    gap: 10px !important; /* Padding between */
    padding-right: 10px !important;
    align-items: center !important;
}

.mobile-social-links {
    justify-content: flex-end !important;
    padding-right: 20px !important;
    gap: 12px !important;
    align-items: center !important;
}

/* Mobile Override */
@media (max-width: 900px) {
    .mobile-social-links .social-icon {
        width: 36px !important;  /* ← Mobile button width (smaller) */
        height: 36px !important; /* ← Mobile button height */
    }
}


/* Social Already Right-Aligned, Ensure Consistency */
.mobile-social-links {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 15px 20px 15px 0; /* Right padding only */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 115, 230, 0.05);
    margin-top: auto;
    width: 80%;
    align-self: flex-end;
}
.nav-menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0; /* Remove left margin */
    width: 100%;
    align-self: flex-end; /* Push list to right */
    padding-right: 20px; /* Indent from right edge */
}


/* Simple Right-Align for Mobile Menu Buttons Only */
.nav-menu-mobile {

    /* FLEX LAYOUT */
    display: flex;
    flex-direction: column;
    align-items: flex-end;    /* ✅ right-alignment */
    text-align: left;        /* optional text alignment */

    width: 50%;
    box-sizing: border-box;
}

/* Contact Form Container Fixes */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 100%;
    overflow: hidden;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    flex: 1;
    min-width: 300px;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form Group Fixes */
.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 500;
}

/* Input and Textarea Fixes */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for proper sizing */
    max-width: 100%; /* Prevent horizontal overflow */
}

/* Specific fixes for text inputs */
.form-group input[type="text"],
.form-group input[type="email"] {
    min-height: 50px;
}

/* Textarea specific fixes */
.form-group textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

/* Focus states */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0073e6;
    box-shadow: 0 0 10px rgba(0, 115, 230, 0.3);
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .contact-section {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin: 0;
        width: 100%;
        min-width: unset;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px;
        font-size: 1em;
    }
    
    /* Ensure container doesn't cause overflow */
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
        overflow-x: hidden;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .contact-form {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .form-group textarea {
        min-height: 120px;
    }
}

/* Prevent horizontal scrolling on entire page */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure the main container doesn't cause overflow */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
/* REPLACE the existing rules at the BOTTOM of main.css with these: */

/* Force larger social media icons by overriding inline SVG dimensions */
.desktop-social .social-icon svg {
    width: 35px !important;
    height: 35px !important;
}

.mobile-social-links .social-icon svg {
    width: 32px !important;
    height: 32px !important;
}

/* Increase button size and spacing for social icons */
.social-icon {
    width: 5px !important;
    height: 5px !important;
}

.desktop-social {
    gap: 80px !important;
    margin-left: auto !important;
    padding-left: 30px !important;
}

.mobile-social-links {
    gap: 15px !important;
}

/* INCREASE NAV MENU BUTTON SIZE */
.nav-menu a {
    font-size: 1.3em !important;
    padding: 12px 18px !important;
}

.nav-menu-desktop a {
    font-size: 1.3em !important;
    padding: 10px 10px !important;
}
.publication-categories {
    display: none !important;
}
/* Make scroll arrows much smaller */
.scroll-btn {
    width: 25px !important;
    height: 25px !important;
}

.scroll-btn i {
    font-size: 0.7rem !important;
}
/* Larger version */
.nav-logo {
    font-size: 2.5em !important;
}

/* Make nav full name bigger on desktop */
.nav-full-name {
    font-size: 1.3rem !important; /* Larger on desktop */
    font-weight: 500 !important;
}

/* Keep original smaller size on mobile */
@media (max-width: 900px) {
    .nav-full-name {
        font-size: 0.7rem !important; /* Keep mobile size the same */
    }
}

.name-line {
    line-height: 1.4;
}

/* Enhanced Full-Page Blue Wallpaper Blend - Stretches from Nav to Footer */
body {
    background: linear-gradient(to bottom, 
        #000 0%,                    /* Matches nav top */
        #1a1a2e 10%,                /* Nav body fade */
        #0a2540 50%,                /* Mid-page cool blue depth */
        #000 100%                   /* Footer black anchor */
    ) !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

/* Subtle Left-Side Vertical Accent Stripe - Full Page Height, Blends with Nav */
body::before {
    content: '' !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 6px !important;
    background: linear-gradient(to bottom, 
        rgba(0, 115, 230, 0.8) 0%,  /* Strong tie to nav border */
        rgba(0, 115, 230, 0.4) 30%, /* Fade mid-page */
        rgba(0, 115, 230, 0.1) 70%, /* Subtle near footer */
        transparent 100%             /* Blends into footer */
    ) !important;
    z-index: -1 !important;  /* Behind everything */
    border-radius: 0 3px 3px 0 !important;  /* Soft right curve */
    box-shadow: 0 0 20px rgba(0, 115, 230, 0.2) !important;  /* Gentle glow for immersion */
}

/* Footer Blend: Soften Transition */
.flush-footer {
    background: linear-gradient(to top, 
        transparent 0%,             /* Picks up body fade */
        #000 20%                    /* Solid black base */
    ) !important;
    border-top: 1px solid rgba(0, 115, 230, 0.1) !important;  /* Subtle blue echo */
    color: #b3b3b3 !important;
    padding: 20px 0 !important;
    text-align: center !important;
}

.footer-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.footer-content a {
    color: #66b3ff !important;  /* Lighter blue link for harmony */
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.footer-content a:hover {
    color: #0073e6 !important;  /* Match nav accent */
}

/* Tie Card Stripes to Page Accent - Softer, Blended Width */
.publications-scroll-container .publication-card.research::before,
.publications-scroll-container .publication-card.technical::before,
.publications-scroll-container .publication-card.creative::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 4px !important;  /* Thinner for subtlety */
    z-index: 0 !important;
    border-radius: 15px 0 0 15px !important;
    box-shadow: none !important;  /* Remove card glow; let page handle */
    opacity: 0.7 !important;  /* Blend softer */
}

.publications-scroll-container .publication-card.research::before {
    background: linear-gradient(to bottom, #0073e6 0%, rgba(0, 115, 230, 0.6) 100%) !important;
}

.publications-scroll-container .publication-card.technical::before {
    background: linear-gradient(to bottom, #00cc88 0%, rgba(0, 204, 136, 0.6) 100%) !important;
}

.publications-scroll-container .publication-card.creative::before {
    background: linear-gradient(to bottom, #ff00aa 0%, rgba(255, 0, 170, 0.6) 100%) !important;
}

/* Image Blend: Softer Edge to Match Page Flow */
.publications-scroll-container .publication-image {
    position: relative !important;
    z-index: 1 !important;
    margin-left: -30px !important;
    padding-left: 4px !important;
    background: linear-gradient(135deg, 
        rgba(17, 34, 64, 0.9) 0%,   /* Softer blue-gray, semi-transparent */
        rgba(35, 53, 84, 0.9) 100%  /* Blends with body */
    ) !important;
    border-left: 4px solid transparent !important;
}

.publications-scroll-container .publication-card.research .publication-image {
    border-left-color: rgba(0, 115, 230, 0.3) !important;  /* Faint blue continuation */
}

/* Hover: Gentle Pulse Tied to Page Accent */
.publications-scroll-container .publication-card:hover::before {
    width: 6px !important;
    opacity: 1 !important;
    transition: all 0.4s ease !important;  /* Slower for immersion */
}
/* Payment Page Mobile Navigation Fix */
@media (max-width: 768px) {
    .nav-menu-list {
        padding-right: 10px;
    }
    
    .nav-menu-list a {
        padding: 15px 24px;
        margin-bottom: 8px;
    }
    
    .mobile-social-links {
        padding-right: 20px;
        gap: 12px;
    }
    
    .nav-menu-mobile {
        padding: 120px 0;
    }
}
/* Remove nav logo glow */
.nav-logo {
    animation: none !important;
    text-shadow: none !important;
}

/* Increase padding between publications and stats */
.publications-scroll-container {
    margin-bottom: 20px !important;
}

.publication-stats {
    margin-top: 10px !important;
}