/* ═══════════════════════════════════════════
   MAF SRI LANKA — SHARED STYLESHEET
   ═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #0A0E1A;
    --bg-secondary: #111827;
    --bg-card: #1A1F2E;
    --bg-card-hover: #222940;
    --gold: #D4A843;
    --gold-light: #F0D078;
    --gold-dark: #B8922E;
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border: rgba(212, 168, 67, 0.15);
    --glow: rgba(212, 168, 67, 0.3);
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg-primary); color: var(--text-primary); overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* ─── NAVBAR ─── */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; transition: all 0.4s cubic-bezier(0.16,1,0.3,1); }
.navbar.scrolled { background: rgba(10,14,26,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 0.6rem 2rem; border-bottom: 1px solid var(--border); }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text-primary); }
.nav-logo-icon { position: relative; width: 48px; height: 48px; flex-shrink: 0; }
.nav-logo-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); transition: transform 0.3s; position: relative; z-index: 1; }
.navbar.scrolled .nav-logo-icon { width: 40px; height: 40px; }
.navbar.scrolled .nav-logo-img { width: 40px; height: 40px; }
.nav-logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.2; }
.nav-logo-text span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a { font-family: var(--font-heading); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); text-decoration: none; position: relative; padding: 0.25rem 0; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.3s cubic-bezier(0.16,1,0.3,1); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--gold); color: var(--bg-primary); padding: 0.6rem 1.5rem; border: none; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-primary); transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ─── MOBILE NAV ─── */
.mobile-nav { position: fixed; inset: 0; z-index: 99; background: rgba(10,14,26,0.98); backdrop-filter: blur(20px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.mobile-nav a:hover { color: var(--gold); }

/* ─── PAGE HERO ─── */
.page-hero { position: relative; min-height: 52vh; display: flex; align-items: flex-end; padding-bottom: 4rem; overflow: hidden; background: var(--bg-secondary); }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; }
.page-hero-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,14,26,0.92) 0%, rgba(10,14,26,0.7) 60%, rgba(10,14,26,0.8) 100%), linear-gradient(to top, rgba(10,14,26,1) 0%, transparent 50%); }
.page-hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 2rem; width: 100%; }
.page-breadcrumb { font-family: var(--font-heading); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.page-breadcrumb a { color: var(--gold); text-decoration: none; }
.page-breadcrumb span { color: var(--text-muted); }
.page-title { font-family: var(--font-heading); font-weight: 900; font-size: clamp(2.5rem,6vw,5rem); text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; }
.page-title span { color: var(--gold); }

/* ─── SECTIONS ─── */
.section { padding: 6rem 2rem; }
.section-container { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 4rem; }
.section-tag { font-family: var(--font-heading); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.section-tag::before { content: ''; display: inline-block; width: 30px; height: 2px; background: var(--gold); }
.section-title { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2rem,4vw,3rem); text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 1rem; }
.section-desc { font-weight: 300; font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; line-height: 1.7; }

/* ─── ABOUT GRID ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-image { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-image-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(212,168,67,0.1), transparent); }
.about-image-border { position: absolute; top: 1rem; left: 1rem; right: -1rem; bottom: -1rem; border: 2px solid var(--gold); opacity: 0.3; z-index: -1; }

/* ─── BUTTONS ─── */
.btn-primary { font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--gold); color: var(--bg-primary); padding: 1rem 2.5rem; border: none; cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(212,168,67,0.3); }
.btn-outline { font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; background: transparent; color: var(--text-primary); padding: 1rem 2.5rem; border: 1px solid rgba(255,255,255,0.2); cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-view-all { font-family: var(--font-heading); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--border); padding: 0.8rem 2rem; text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-view-all:hover { border-color: var(--gold); background: rgba(212,168,67,0.08); }
.btn-view-all svg { width: 14px; height: 14px; }

/* ─── FOOTER ─── */
.footer { background: var(--bg-primary); border-top: 1px solid var(--border); padding: 3rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; }
.footer-logo-img { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); }
.footer-logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-center { text-align: center; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.footer-dev { font-size: 0.75rem; color: var(--text-muted); }
.footer-dev a { color: var(--gold); text-decoration: none; transition: opacity 0.2s; }
.footer-dev a:hover { opacity: 0.8; text-decoration: underline; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

/* ─── REVEAL ANIMATIONS ─── */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) { .nav-links { gap: 1rem; } }
@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }
    .navbar { padding: 0.75rem 1rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .section { padding: 4rem 1.25rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}
