/* ===================================
   CSS Variables & Theme
=================================== */
:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #111111;
    --card-bg: #161616;
    --accent-gold: #c9a227;
    --accent-gold-light: #e8d48a;
    --accent-blue: #3b82f6;
    --accent-blue-dark: #1d4ed8;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --text-muted: #6b7280;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(201, 162, 39, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===================================
   Reset & Base Styles
=================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-dark);
    color: var(--text-gray);
    line-height: 1.7;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Header & Navigation
=================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 0.75rem 5%;
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.header.scrolled .logo {
    height: 42px;
}

.nav-desktop {
    display: none;
}

.nav-desktop ul {
    display: flex;
    gap: 2.5rem;
}

.nav-desktop a {
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-blue));
    transition: width 0.3s ease;
}

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

.nav-desktop a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    z-index: 999;
    padding: 100px 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border-subtle);
    overflow-y: auto;
}

.nav-mobile.active {
    right: 0;
}

.nav-mobile ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-mobile a {
    display: block;
    color: var(--text-white);
    font-size: 1.25rem;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.nav-mobile a:hover {
    color: var(--accent-gold);
    padding-left: 0.5rem;
}

.nav-mobile .quick-links {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.nav-mobile .quick-links p {
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.nav-mobile .quick-links a {
    font-size: 1rem;
    color: var(--text-gray);
    padding: 0.75rem 0;
}

/* ===================================
   Hero Section
=================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 1.5rem 60px;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(17, 17, 17, 0.7) 50%,
        rgba(10, 10, 10, 0.85) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 400;
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: 0.75rem;
    animation: fadeInUp 1s ease-out;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1rem, 3vw, 1.35rem);
    color: var(--text-white);
    font-style: italic;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    animation: fadeInUp 1.1s ease-out;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-gray);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 1.2s ease-out;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    color: var(--text-white);
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    animation: fadeInUp 1.4s ease-out;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.cta-button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(4px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--accent-gold);
    border-radius: 2px;
    animation: scrollPulse 2s infinite;
}

/* ===================================
   Locations Section
=================================== */
.locations {
    padding: 5rem 5%;
    background: linear-gradient(180deg, var(--primary-dark) 0%, #0f0f12 100%);
}

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

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    color: var(--text-white);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-blue));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 1.5rem;
}

.branch-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.branch-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.branch-card:hover {
    transform: translateY(-10px);
    border-color: rgba(201, 162, 39, 0.3);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card-image {
    height: 200px;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.img-enugu { background-image: url('images/view1.jpg'); }
.img-nsukka { background-image: url('images/view.png'); }
.img-asaba1 { background-image: url('images/park.png'); }

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.7) 0%, transparent 50%);
}

.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.6s ease;
}

.branch-card:hover .card-shine {
    left: 100%;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-family: var(--font-display);
    color: var(--text-white);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-content h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    flex-shrink: 0;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.branch-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, #1a1a1a 100%);
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
}

.branch-link:hover {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    border-color: transparent;
    gap: 0.75rem;
}

.branch-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.branch-link:hover svg {
    transform: translateX(3px);
}

/* ===================================
   Footer
=================================== */
.footer {
    background: #000;
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.footer-locations {
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin: 1rem 0;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-powered {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8rem;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-12px);
    }
    60% {
        transform: translateX(-50%) translateY(-6px);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(10px);
    }
}

/* ===================================
   Responsive Styles
=================================== */

/* Tablet - 769px and up */
@media (min-width: 769px) {
    .nav-desktop {
        display: block;
    }
    
    .hamburger {
        display: none;
    }
    
    .hero {
        padding: 140px 2rem 80px;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .scroll-indicator {
        bottom: 3rem;
    }
    
    .branch-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .card-image {
        height: 220px;
    }
    
    .card-content {
        padding: 2rem;
    }
}

/* Desktop - 1024px and up */
@media (min-width: 1024px) {
    .header {
        padding: 1rem 8%;
    }
    
    .header.scrolled {
        padding: 0.75rem 8%;
    }
    
    .hero {
        padding: 160px 2rem 100px;
    }
    
    .hero h1 {
        font-size: clamp(3rem, 7vw, 5rem);
    }
    
    .branch-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .card-image {
        height: 240px;
    }
    
    .locations {
        padding: 6rem 8%;
    }
}

/* Large Desktop - 1280px and up */
@media (min-width: 1280px) {
    .hero-content {
        max-width: 900px;
    }
    
    .hero-description {
        max-width: 600px;
    }
}

/* ===================================
   Accessibility
=================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}
