/* Base Styles - refreshed (Flywire-like: clean, spacious, premium) */
:root {
    /* Brand (Flywire-like: navy + clean blue) */
    --primary-color: #0b2a3d;      /* navy */
    --primary-light: #1c7ed6;      /* blue */
    --primary-dark: #082233;       /* deeper navy */
    --accent-color: #10b981;

    /* Surfaces */
    --bg: #ffffff;
    --bg-soft: #eaf3ff;            /* light blue surface */
    --surface: #ffffff;
    --surface-2: #f6fbff;
    --border: rgba(15, 23, 42, 0.10);

    /* Text */
    --text: #0b2a3d;
    --text-muted: rgba(15, 23, 42, 0.70);
    --text-soft: rgba(15, 23, 42, 0.55);
    --text-white: #ffffff;

    /* Shadows (subtle, modern) */
    --shadow-sm: 0 1px 2px rgba(2, 6, 23, 0.06);
    --shadow-md: 0 10px 30px rgba(2, 6, 23, 0.08);
    --shadow-lg: 0 18px 60px rgba(2, 6, 23, 0.12);

    /* Motion */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Radius */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;

    /* Typography */
    --font-heading: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--surface-2);
    overflow-x: hidden;
    padding-top: 0; /* header is sticky (in flow), so no artificial gap above the hero */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
    position: relative;
}

/* Reduce left/right empty space on larger desktop screens (keep mobile unchanged) */
@media (min-width: 1200px) {
    .container {
        max-width: 1240px;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
}

/* Global typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

a {
    color: inherit;
}

::selection {
    background: rgba(59, 130, 246, 0.22);
}

*:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.35);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Header Styles */
.header {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    overflow: visible; /* Changed from hidden to visible to allow menu to extend outside */
    z-index: 9999; /* Very high z-index to ensure header and menu are on top */
    border-bottom: none; /* remove separator line between header and hero */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.18);
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(1200px 260px at 50% -60px, rgba(28, 126, 214, 0.40), transparent 70%);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10000; /* Even higher z-index than header */
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-section a {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 45px; /* Reduced from 56px */
    height: 45px; /* Reduced from 56px */
    margin-right: 8px; /* 80% of 10px */
    border-radius: 50%;
    object-fit: contain;
    background-color: var(--surface);
    padding: 4px; /* 80% of 5px */
    box-shadow: var(--shadow-md);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-img:hover {
    transform: rotate(10deg) scale(1.05);
}

.logo-text {
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.6px;
    max-height: 28px; /* Height to match the text size */
    width: auto;
    object-fit: contain;
    filter: invert(1) brightness(1.1);
    opacity: 0.98;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.6rem; /* 80% of 2rem */
}

.nav-menu li a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.8rem; /* 80% of 0.5rem 1rem */
    border-radius: 10px; /* keep a soft focus ring shape without "pill" look */
    transition: color var(--transition-normal), transform var(--transition-normal);
    position: relative;
    font-size: 0.82rem;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    opacity: 0.9;
}

.nav-menu li a:hover {
    transform: translateY(-1px);
}

.nav-menu li a:hover::after {
    transform: scaleX(1);
}

.nav-menu li a.active {
    color: #ffffff;
}

.nav-menu li a.active::after {
    transform: scaleX(1);
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.75));
}

/* Hero Section - update for slideshow */
.hero {
    color: var(--text-white);
    padding: 4.2rem 0;
    position: relative;
    overflow: hidden;
    z-index: 1; /* Lower z-index than the menu */
    margin-top: 0; /* Remove negative margin since we're using padding-top on body */
    min-height: 560px;
}

/* Slideshow styles */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
}

.slide-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 42, 61, 0.78) 0%, rgba(11, 42, 61, 0.55) 45%, rgba(28, 126, 214, 0.35) 100%);
}

/* Special handling for hero44.jpg */
.hero44-slide {
    background-image: url('hero44.jpg');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Animation for fading */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: 0.4} 
    to {opacity: 1}
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem; /* 80% of 2rem */
    align-items: center;
    position: relative;
    z-index: 2;
    padding-top: 1.5rem; /* Added padding to move content down */
    height: 100%; /* Make it fill the hero section height */
    align-content: center; /* Center content vertically */
}

.hero-text h1 {
    font-size: clamp(2.25rem, 3.4vw, 3.3rem);
    font-weight: 800;
    margin-bottom: 0.8rem; /* 80% of 1rem */
    line-height: 1.2;
}

.hero-text h3 {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: rgba(255, 255, 255, 0.95);
}

.hero-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.2rem;
    max-width: 42ch;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.medical-team {
    width: 100%;
    max-width: 400px; /* 80% of 500px */
    height: 240px; /* 80% of 300px */
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem; /* ~80% of 1.2rem */
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

/* Card slideshow styles */
.card-slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px; /* Match the medical-team border-radius */
}

.card-slides-wrapper {
    display: flex;
    width: 600%; /* 100% * 6 slides (5 original + 1 clone) */
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.card-slide {
    width: 16.666%; /* 100% / 6 slides */
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.card-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Remove the background from medical-team since we're using img tags now */
.medical-team {
    background: none;
}

/* Content Section */
.content-section {
    padding: 3.25rem 0;
    background: var(--bg-soft);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem; /* 80% of 2rem */
    align-items: start;
}

.description {
    background: var(--surface);
    padding: 1.6rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.description h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.8rem; /* 80% of 1rem */
}

.description p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem; /* 80% of 1rem */
}

.gallery-item {
    background: linear-gradient(45deg, #3b82f6, #1e40af);
    height: 120px; /* 80% of 150px */
    border-radius: 8px; /* 80% of 10px */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem; /* Added smaller font size */
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gallery-item span {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 5;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
}

.gallery-item:hover::before {
    transform: translateX(0);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item:nth-child(1) {
    background: linear-gradient(135deg, rgba(8, 34, 51, 0.75), rgba(8, 34, 51, 0.45) 55%, rgba(28, 126, 214, 0.30)), url('internationalpatnerships.jpg');
    background-size: cover;
    background-position: center;
}

.gallery-item:nth-child(2) {
    background: linear-gradient(135deg, rgba(8, 34, 51, 0.75), rgba(8, 34, 51, 0.45) 55%, rgba(28, 126, 214, 0.30)), url('campuslife.jpg');
    background-size: cover;
    background-position: center;
}

.gallery-item:nth-child(3) {
    background: linear-gradient(135deg, rgba(8, 34, 51, 0.75), rgba(8, 34, 51, 0.45) 55%, rgba(28, 126, 214, 0.30)), url('academicexcellence.jpg');
    background-size: cover;
    background-position: center;
}

.gallery-item:nth-child(4) {
    background: linear-gradient(135deg, rgba(8, 34, 51, 0.75), rgba(8, 34, 51, 0.45) 55%, rgba(28, 126, 214, 0.30)), url('research.jpg');
    background-size: cover;
    background-position: center;
}

/* Stories Section Styles */
.stories-section {
    padding: 4rem 0;
    background: var(--surface-2);
}

.highlights-section {
    padding: 4rem 0;
    background: var(--bg-soft);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.highlight-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 1.3rem 1.25rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.highlight-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary-color);
    background: rgba(28, 126, 214, 0.12);
    border: 1px solid rgba(28, 126, 214, 0.18);
    box-shadow: 0 12px 28px rgba(28, 126, 214, 0.10);
    margin-bottom: 0.85rem;
}

.highlight-card h3 {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.25;
    margin-bottom: 0.6rem;
}

.highlight-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
}

.highlight-list {
    margin-top: 0.75rem;
    padding-left: 1.1rem;
    color: var(--text-muted);
}

.highlight-list li {
    margin: 0.35rem 0;
}

.highlights-cta {
    margin-top: 2.2rem;
    display: flex;
    gap: 0.9rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.75);
    color: var(--primary-color);
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-md);
}

.section-header {
    text-align: center;
    margin-bottom: 2.4rem;
}

.section-header h2 {
    color: var(--text);
    font-size: 2rem;
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

.story-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.story-image {
    height: 190px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story-content h3 {
    color: var(--text);
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.story-meta {
    color: var(--text-soft);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    font-style: italic;
}

.story-excerpt {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    flex: 1;
}

.read-more {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: color var(--transition-fast), transform var(--transition-fast);
    margin-top: auto;
}

.read-more:hover {
    color: var(--primary-color);
}

.read-more::after {
    content: '→';
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.read-more:hover::after {
    transform: translateX(4px);
}

.scholarship {
    background: linear-gradient(180deg, rgba(28, 126, 214, 0.08), rgba(8, 34, 51, 0.03));
    border: 1px solid rgba(28, 126, 214, 0.18);
}

.scholarship-badge {
    display: inline-block;
    background: var(--primary-light);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 24px rgba(28, 126, 214, 0.24);
}

/* Panels / alerts (used by apply.html and other pages) */
.panel {
    background: var(--surface);
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.panel--soft {
    background: var(--surface-2);
}

.alert {
    display: none;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: var(--surface-2);
    color: var(--text);
}

.alert.is-visible {
    display: block;
}

.alert__title {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.alert__text {
    color: var(--text-muted);
}

/* Closed page (apply.html dynamic render) */
.closed-page {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 2rem;
}

.closed-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #fff;
    box-shadow: 0 18px 60px rgba(2, 6, 23, 0.18);
}

.closed-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.closed-badge {
    display: inline-block;
    background: rgba(28, 126, 214, 0.12);
    color: var(--primary-color);
    border: 1px solid rgba(28, 126, 214, 0.22);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 22px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.closed-message {
    background: var(--surface-2);
    border-left: 4px solid var(--primary-light);
    padding: 20px;
    border-radius: 12px;
    margin: 22px 0;
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    border: 1px solid rgba(15, 23, 42, 0.10);
}

.closed-next {
    background: var(--surface);
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 12px;
    padding: 18px;
    margin-top: 22px;
    text-align: left;
}

.closed-next h3 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 10px;
}

.closed-next p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.closed-link {
    display: inline-block;
    margin-top: 22px;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 700;
}

.view-all-container {
    text-align: center;
    margin-top: 2.4rem;
}

.view-all-btn {
    display: inline-block;
    background: var(--primary-light);
    color: var(--text-white);
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), filter var(--transition-normal);
    box-shadow: 0 14px 34px rgba(28, 126, 214, 0.30);
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(28, 126, 214, 0.40);
    filter: saturate(1.05);
}

@media (max-width: 992px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .story-image {
        height: 180px;
    }
    .logo-text {
        font-size: 1.2rem;
        max-height: 24px; /* Smaller height for mobile */
    }
    .slide-background {
        background-position: center;
    }
    .hero {
        min-height: 360px; /* Slightly shorter on mobile but still taller than before */
        padding: 3rem 0;
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 1.2rem; /* Slightly less padding on mobile */
    }
    .hero44-slide {
        background-image: url('hero44.jpg');
        background-position: center 25%; /* Position focus in the upper part of the image */
        background-size: cover;
        background-repeat: no-repeat;
    }
}

/* Footer Styles */
.footer {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 320px at 50% -40px, rgba(28, 126, 214, 0.22), transparent 70%);
    opacity: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.6rem; /* 80% of 2rem */
    position: relative;
    z-index: 2;
}

.footer-section {
    flex: 1;
    padding: 0 1.6rem; /* 80% of 2rem */
}

/* Center Quick Links section */
.footer-section:nth-child(2) {
    text-align: center;
}

.footer-section:nth-child(2) ul {
    list-style-position: inside;
}

/* Right align Internationalization Unit section */
.footer-section:nth-child(3) {
    text-align: right;
}

.footer-section h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.8rem; /* 80% of 1rem */
    position: relative;
}

.footer-section p, .footer-section li {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0.4rem; /* 80% of 0.5rem */
    font-size: 0.92rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.6rem; /* 80% of 2rem */
    margin-top: 1.6rem; /* 80% of 2rem */
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
}

/* Ensure copyright text stays white (global p color is muted) */
.footer-bottom p {
    color: rgba(255, 255, 255, 0.92);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.8rem; /* 80% of 1rem */
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem; /* 80% of 1rem */
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 1.6rem; /* 80% of 2rem */
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        text-align: center;
        justify-content: center;
    }
    
    .gallery-item span {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 1rem;
    }
    
    .slide-background {
        background-position: center center;
        background-size: cover;
    }
    
    /* Adjust hero section height on mobile */
    .hero {
        min-height: 350px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Center footer sections on mobile */
    .footer-section:nth-child(3) {
        text-align: center;
    }

    .logo-text {
        font-size: 1rem;
        max-height: 24px;
    }
}

/* Small screens like Pixel 4 */
@media (max-width: 400px) {
    .logo-text {
        font-size: 1rem;
        letter-spacing: 1px;
        max-height: 20px; /* Even smaller for very small screens */
    }
    
    .logo-img {
        width: 38px; /* Reduced from 48px */
        height: 38px; /* Reduced from 48px */
    }
    
    .nav-container {
        flex-direction: row;
        align-items: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text, .description, .gallery-item {
    animation: fadeInUp 0.8s ease forwards;
}

.gallery-item:nth-child(2) {
    animation-delay: 0.2s;
}

.gallery-item:nth-child(3) {
    animation-delay: 0.4s;
}

.gallery-item:nth-child(4) {
    animation-delay: 0.6s;
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    transition: background var(--transition-normal), transform var(--transition-normal), border-color var(--transition-normal);
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
    border-radius: 999px;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: relative;
        z-index: 10001; /* Higher than nav-container */
        margin-left: auto; /* Push to the right */
    }

    .hamburger:hover {
        background: rgba(255, 255, 255, 0.10);
        border-color: rgba(255, 255, 255, 0.30);
        transform: translateY(-1px);
    }

    .hamburger.active {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.34);
    }

    /* Turn hamburger into an "X" when active */
    .hamburger.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0.6);
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
    
    .logo-section {
        display: flex;
        align-items: center;
        gap: 8px; /* Reduced gap on mobile */
    }
    
    .nav-container {
        width: 100%; /* Full width to ensure proper spacing */
        padding: 0.5rem 0; /* Add some vertical padding */
    }

    .nav-menu {
        display: flex; /* keep rendered so we can animate open/close */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.96);
        flex-direction: column;
        padding: 1rem;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        z-index: 10000; /* Same as nav-container */
        box-shadow: var(--shadow-md);
        border-radius: 0 0 14px 14px; /* Rounded bottom corners */
        align-items: center; /* Center menu items horizontally */
        text-align: center; /* Center text within menu items */
        border: 1px solid rgba(15, 23, 42, 0.10);
        transform: translateY(-6px);
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        transition: opacity var(--transition-normal), transform var(--transition-normal), max-height var(--transition-slow);
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu li a {
        display: inline-block;
        padding: 0.75rem 1.25rem;
        margin: 0.3rem 0;
        font-size: 1rem;
        font-family: var(--font-heading);
        font-weight: 750;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--text);
        position: relative;
    }

    /* Mobile dropdown is on a white panel; keep active link dark (override global active color) */
    .nav-menu li a.active {
        color: var(--text);
    }

    .nav-menu li a::after {
        content: '';
        position: absolute;
        left: 1.25rem;
        right: 1.25rem;
        bottom: 0.35rem;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(to right, var(--primary-color), var(--primary-light));
        transform: scaleX(0);
        transform-origin: center;
        transition: transform var(--transition-normal), opacity var(--transition-normal);
        opacity: 0.9;
    }

    .nav-menu li a:hover::after,
    .nav-menu li a.active::after {
        transform: scaleX(1);
    }

    .nav-menu.active {
        opacity: 1;
        transform: translateY(0);
        max-height: 520px;
        pointer-events: auto;
    }
}

/* Add styling for favicon (though this won't affect the actual favicon in browser tabs) */
link[rel="icon"] {
    border-radius: 50%;
} 