/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary-color: #D4AF37;
    --primary-color-light: #E5C760;
    --secondary-color: #FF7F24;
    --accent-color: #C13A38;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;

    /* Dark Theme */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-light: #94a3b8;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --border-color: #475569;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #D4AF37 0%, #FF7F24 100%);
    --gradient-secondary: linear-gradient(135deg, #FF7F24 0%, #C13A38 100%);
    --gradient-accent: linear-gradient(135deg, #E5C760 0%, #FF7F24 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;

    /* Spacing */
    --container-padding: 1rem;
    --section-padding: 5rem 0;

    /* Z-index layers */
    --z-notification: 5000;
    --z-modal: 4000;
    --z-dropdown: 3000;
    --z-header: 1000;
    --z-tooltip: 2000;

    /* Additional spacing for consistent margin/padding */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --space-12: 5rem;
}

/* ===== ANIMATIONS ===== */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Scroll indicator animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed header */
    font-size: 16px;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: var(--transition);
    overflow-x: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.loaded {
    animation: fadeInPage 0.5s ease-in;
}

.slideOutRight {
    animation: slideOutRight 0.3s ease forwards !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* Implement responsive containers */
.container-sm {
    max-width: 640px;
}

.container-md {
    max-width: 768px;
}

.container-lg {
    max-width: 1024px;
}

.container-xl {
    max-width: 1280px;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.5s ease;
    animation: fadeIn 0.5s ease forwards;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
    animation: fadeOut 0.5s ease forwards;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: bounce 2s infinite;
    box-shadow: var(--shadow-md);
}

.scroll-text {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    background: rgba(15, 23, 42, 0.7);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
h6 { font-size: clamp(1rem, 1.2vw, 1.1rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    max-width: 75ch; /* Improve readability */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover, a:focus {
    color: var(--primary-color-light);
    text-decoration: underline;
}

/* Fix for persistent focus states on links */
a:focus:not(:focus-visible) {
    outline: none;
    color: inherit; /* Reset to default color */
}

/* Additional fixes for footer links */
.footer-bottom a {
    color: var(--primary-color-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.footer-bottom a:focus {
    outline: none;
    color: var(--text-light);
    text-decoration: none;
}

.footer-bottom a:active {
    color: var(--primary-color-light);
}

/* Utility classes for text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.keyboard-navigation :focus {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 3px !important;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    transition: transform 0.3s ease, background 0.3s ease;
}

header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-md);
}

header.header-hidden {
    transform: translateY(-100%);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    position: relative;
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    margin-right: 2rem;
    white-space: nowrap;
}

.logo:hover, .logo:focus {
    transform: scale(1.05);
    text-decoration: none;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* New class for mobile logo text */
.logo .logo-text-full {
    display: inline;
}

.logo .logo-text-short {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: auto;
}

.nav-links li {
    white-space: nowrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.15rem;
    position: relative;
    padding: 0.6rem 0;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
    color: var(--primary-color-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.mobile-menu-btn:hover, .mobile-menu-btn:focus {
    color: var(--primary-color-light);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    line-height: 1.4;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before, .btn:focus::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover, .btn-secondary:focus {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color-light);
    border: 2px solid var(--primary-color-light);
}

.btn-outline:hover, .btn-outline:focus {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* ===== SECTIONS ===== */
section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    position: relative;
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ===== PAGE BANNER ===== */
.page-banner {
    background: var(--gradient-primary);
    padding: 8rem 0 4rem;
    text-align: center;
    color: white;
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

.page-banner p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 2rem 0 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 900px; /* Limit width for better spacing */
    margin-left: auto;
    margin-right: auto;
}

.footer-section {
    text-align: center; /* Center align footer sections */
}

.footer-section h3 {
    color: var(--primary-color-light);
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.4rem;
    font-size: 1.1rem;
    text-align: center; /* Center align the heading */
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%; /* Center the underline */
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
    display: inline-block; /* Help with centering */
    text-align: center;
}

.footer-section ul li {
    margin-bottom: 0.35rem;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-section ul li:hover {
    transform: translateX(3px);
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.footer-section ul li a:hover, .footer-section ul li a:focus {
    color: var(--primary-color-light);
}

.contact-info {
    list-style: none;
    display: inline-block; /* Help with centering */
    text-align: center;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    justify-content: center; /* Center the item content */
}

.contact-info li:hover {
    transform: none;
}

.contact-info i {
    color: var(--primary-color-light);
    margin-top: 0.2rem;
    font-size: 0.85rem;
}

.contact-info a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover, .contact-info a:focus {
    color: var(--primary-color-light);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.4rem;
    justify-content: center;
}

.social-links a {
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color-light);
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover, .social-links a:focus {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer-bottom p {
    margin-bottom: 0;
    color: var(--text-light);
}

/* ===== BACK TO TOP BUTTON ===== */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop:hover, #backToTop:focus {
    background: var(--primary-color-light);
    transform: translateY(-5px);
}

#backToTop.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

/* ===== NOTIFICATION SYSTEM ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-notification);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.notification-success {
    background: var(--success-color);
    border-left-color: var(--success-color);
}

.notification-error {
    background: var(--error-color);
    border-left-color: var(--error-color);
}

.notification-warning {
    background: var(--warning-color);
    border-left-color: var(--warning-color);
}

.notification-info {
    background: var(--primary-color);
    border-left-color: var(--primary-color-light);
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.notification-close:hover, .notification-close:focus {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== SCROLL REVEAL ANIMATION ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for groups */
.scroll-reveal-group .scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal-group .scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal-group .scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal-group .scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
.scroll-reveal-group .scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
.scroll-reveal-group .scroll-reveal:nth-child(6) { transition-delay: 0.6s; }

/* ===== GRID & LAYOUT UTILITIES ===== */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.flex {
    display: flex;
}

.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ===== SPACING UTILITIES ===== */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-4 { margin: 1rem; }
.m-6 { margin: 1.5rem; }
.m-8 { margin: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

/* ===== CARD COMPONENTS ===== */
.card {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    margin-bottom: 1rem;
}

.card-body {
    margin-bottom: 1.5rem;
}

.card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* ===== FORM COMPONENTS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    outline: none;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-check-input {
    margin-top: 0.25rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* ===== TABLE COMPONENTS ===== */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.table th, .table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: var(--bg-secondary);
}

.table-responsive {
    overflow-x: auto;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    :root {
        --section-padding: 4rem 0;
    }

    .container {
        max-width: 90%;
    }

    .nav-links {
        gap: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    /* Mobile menu styles */
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 90%;
        max-width: 400px;
        background: var(--bg-secondary);
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: var(--shadow-lg);
        padding-top: 5rem; /* UPDATED: Reduced from 4rem 2rem 2rem to move links up */
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* UPDATED: Changed from center to flex-start */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
        padding: 0.75rem 0;
        text-align: center;
    }

    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-links a {
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem; /* Reduce gap at this breakpoint */
    }

    h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
    h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
    h3 { font-size: clamp(1.35rem, 2.7vw, 1.8rem); }

    /* UPDATED: Mobile nav adjustments for medium screens */
    .nav-links {
        padding: 4.5rem 2rem 2rem; /* Adjusted padding */
    }

    .nav-links li {
        margin-bottom: 0.5rem; /* Add spacing between items */
    }

    .nav-links a {
        font-size: 1rem; /* Slightly smaller font size */
        padding: 0.6rem 0;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }

    header {
        position: fixed;
        width: 100%;
        z-index: 999;
    }

    nav {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Switch logo text to short version on mobile */
    .logo .logo-text-full {
        display: none;
    }

    .logo .logo-text-short {
        display: inline;
    }

    .logo {
        font-size: 1.1rem;
        margin-right: 0;
    }

    .logo i {
        font-size: 1.8rem;
    }

    /* UPDATED: Mobile nav adjustments */
    .nav-links {
        padding: 4rem 1.5rem 1.5rem; /* Adjusted padding for better positioning */
    }

    .nav-links li {
        margin-bottom: 0.25rem; /* Reduce space between items on smaller screens */
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.5rem 0;
        transition: all 0.2s ease;
    }

    .nav-links a:hover,
    .nav-links a:focus,
    .nav-links a.active {
        background-color: rgba(212, 175, 55, 0.1); /* Add subtle background on hover */
        border-radius: 8px;
    }

    /* Adjust scroll indicator for mobile */
    .scroll-indicator {
        bottom: 15px;
    }

    .scroll-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .scroll-text {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }

    /* Keep footer columns side by side and adjust gap */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem; /* Further reduce gap on mobile */
    }

    footer {
        padding: 2rem 0 1rem;
    }

    .social-links {
        margin-top: 0.25rem;
    }

    .footer-bottom {
        padding-top: 0.75rem;
        font-size: 0.8rem;
    }

    .grid-cols-3, .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }

    .page-banner {
        padding: 6rem 0 3rem;
    }

    /* Adjust contact info spacing to prevent line breaks */
    .contact-info li {
        white-space: nowrap;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 2.5rem 0;
        --container-padding: 0.75rem;
    }

    h1 { font-size: clamp(2rem, 5vw, 2.5rem); }
    h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
    h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .logo i {
        font-size: 1.8rem;
    }

    /* Make the logo even smaller on very small screens */
    .logo {
        font-size: 1rem;
    }

    /* Add more right margin to the logo on very small screens */
    .logo-img {
        margin-right: 0.5rem;
    }

    /* Smaller scroll indicator on mobile */
    .scroll-indicator {
        bottom: 10px;
    }

    .scroll-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .scroll-text {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }

    /* UPDATED: Mobile nav adjustments for small screens */
    .nav-links {
        padding: 3.5rem 1rem 1rem; /* Further reduce padding */
        width: 85%; /* Make the menu slightly narrower */
    }

    .nav-links li {
        margin-bottom: 0.2rem;
    }

    .nav-links a {
        font-size: 0.95rem;
        padding: 0.45rem 0;
    }

    .social-links {
        justify-content: center;
    }

    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .footer-bottom {
        padding: 0.75rem 0.5rem;
    }

    .page-banner h1 {
        font-size: 2.2rem;
    }

    .page-banner p {
        font-size: 1rem;
    }

    #backToTop {
        width: 40px;
        height: 40px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    /* Further reduce footer spacing on small screens */
    .footer-content {
        gap: 0.5rem;
    }

    .footer-section h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .footer-section ul li,
    .contact-info li {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    /* Fix for the time text */
    .contact-info li:last-child {
        white-space: nowrap;
        font-size: 0.75rem; /* Slightly smaller for the time text */
    }
}

/* Extra small screen adjustments */
@media (max-width: 360px) {
    .logo span {
        display: none;
    }

    .logo i {
        margin-right: 0;
    }

    .container {
        padding: 0 0.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    /* Minimal scroll indicator for very small screens */
    .scroll-indicator {
        bottom: 8px;
    }

    .scroll-arrow {
        width: 28px;
        height: 28px;
    }

    .scroll-text {
        font-size: 0.65rem;
        padding: 0.1rem 0.4rem;
    }

    /* UPDATED: Mobile nav adjustments for tiny screens */
    .nav-links {
        padding: 3rem 0.75rem 1rem;
        width: 80%; /* Even narrower on tiny screens */
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }

    /* Even more compact footer for tiny screens */
    .footer-content {
        gap: 0.25rem;
    }

    .footer-section h3 {
        font-size: 0.9rem;
    }

    .footer-section ul li,
    .contact-info li {
        font-size: 0.75rem;
    }
}

/* Dark mode specific styles - already our default but explicitly included for clarity */
[data-theme="dark"] {
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-light: #94a3b8;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --border-color: #475569;
}

/* Light mode styles - could be implemented later with theme toggle */
[data-theme="light"] {
    --text-primary: #1e293b;
    --text-secondary: #334155;
    --text-light: #64748b;
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --border-color: #cbd5e1;
}

/* Print styles for better printing */
@media print {
    header, footer, #backToTop, .cta-section {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }

    p, blockquote, ul, ol, dl, table {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 2cm;
    }
}
