/* ─────────────────────────────────────────────
   byGarsee — Trinidad & Tobago Heritage Variant
   Warm Caribbean sunset. Soca rhythm. Carnival gold.
   ───────────────────────────────────────────── */

:root {
    /* Caribbean sunset palette */
    --bg-deep: #0c0a1a;           /* Deep twilight purple */
    --bg-mid: #1a162e;            /* Warm midnight */
    --bg-light: #2d1f3d;          /* Dusk violet */
    
    /* Accents — Trinidad in colour */
    --accent-carnival: #f5a623;   /* Carnival gold — sunshine, steelpan */
    --accent-carnival-bright: #ffd166; /* Bright gold flare */
    --accent-sunset: #e85d4e;     /* Sunset coral — Tobago dusk */
    --accent-teal: #2ec4b6;       /* Caribbean sea — steelpan reflection */
    --accent-hibiscus: #e0569c;   /* Hibiscus pink — tropical bloom */
    --accent-mango: #ff9f43;      /* Mango warmth */
    
    --text-primary: #fff8f0;      /* Warm white, like salt air */
    --text-secondary: #c9b8a8;    /* Sandstone */
    --text-muted: #8a7a6a;        /* Weathered wood */
    
    /* Glass — warm amber tint */
    --glass-bg: rgba(255, 248, 240, 0.025);
    --glass-border: rgba(245, 166, 35, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.04);
    
    /* Timing — soca-influenced, bouncier */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-soca: cubic-bezier(0.68, -0.3, 0.32, 1.3);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Funnel Display', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* ── Sunset gradient background ── */
.gradient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: 
        /* Caribbean sea glow — bottom left */
        radial-gradient(ellipse 70% 50% at 15% 85%, rgba(46, 196, 182, 0.12) 0%, transparent 70%),
        /* Sunset flare — top right */
        radial-gradient(ellipse 60% 70% at 85% 15%, rgba(232, 93, 78, 0.1) 0%, transparent 60%),
        /* Carnival gold — center drift */
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(245, 166, 35, 0.06) 0%, transparent 50%),
        /* Hibiscus wash — bottom right */
        radial-gradient(ellipse 45% 55% at 75% 80%, rgba(224, 86, 156, 0.05) 0%, transparent 50%),
        /* Base twilight */
        linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-mid) 40%, var(--bg-light) 100%);
    animation: sunsetShift 18s ease-in-out infinite alternate;
}

@keyframes sunsetShift {
    0% {
        background-position: 0% 50%, 100% 0%, 50% 50%, 100% 100%, 0% 0%;
        filter: hue-rotate(-5deg) saturate(1);
    }
    50% {
        background-position: 100% 40%, 0% 100%, 60% 40%, 50% 80%, 0% 0%;
        filter: hue-rotate(10deg) saturate(1.15);
    }
    100% {
        background-position: 50% 100%, 50% 0%, 40% 60%, 0% 50%, 0% 0%;
        filter: hue-rotate(-2deg) saturate(1.05);
    }
}

/* ── Floating Caribbean orbs ── */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}

/* Carnival gold — steelpan shine */
.orb-1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, var(--accent-carnival) 0%, transparent 70%);
    top: -12%;
    left: -8%;
    animation: socaFloat1 16s var(--ease-soca) infinite;
}

/* Sunset coral — Tobago horizon */
.orb-2 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, var(--accent-sunset) 0%, transparent 70%);
    bottom: -8%;
    right: -10%;
    animation: socaFloat2 20s var(--ease-soca) infinite;
    animation-delay: -4s;
}

/* Caribbean teal — sea shimmer */
.orb-3 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, var(--accent-teal) 0%, transparent 70%);
    top: 45%;
    right: 10%;
    animation: socaFloat3 14s var(--ease-soca) infinite;
    animation-delay: -7s;
    opacity: 0.35;
}

/* Hibiscus — tropical bloom */
.orb-4 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--accent-hibiscus) 0%, transparent 70%);
    bottom: 15%;
    left: 8%;
    animation: socaFloat4 18s var(--ease-soca) infinite;
    animation-delay: -10s;
    opacity: 0.3;
}

/* Mango warmth — golden hour */
.orb-5 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, var(--accent-mango) 0%, transparent 70%);
    top: 55%;
    left: 45%;
    animation: socaFloat5 22s var(--ease-soca) infinite;
    animation-delay: -2s;
    opacity: 0.25;
}

/* Bouncier, more rhythmic orb animations — like soca bass */
@keyframes socaFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, 30px) scale(1.1); }
    50% { transform: translate(-20px, 70px) scale(0.95); }
    75% { transform: translate(30px, -20px) scale(1.05); }
}

@keyframes socaFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-40px, -50px) scale(1.08); }
    50% { transform: translate(50px, -30px) scale(0.97); }
    75% { transform: translate(-30px, 40px) scale(1.03); }
}

@keyframes socaFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, 40px) scale(1.12); }
    66% { transform: translate(30px, -30px) scale(0.94); }
}

@keyframes socaFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -30px) scale(0.93); }
    66% { transform: translate(-40px, 50px) scale(1.08); }
}

@keyframes socaFloat5 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -40px) scale(1.07); }
    50% { transform: translate(-40px, 30px) scale(0.96); }
    75% { transform: translate(20px, 20px) scale(1.04); }
}

/* ── Warm texture overlay ── */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ── Main hero layout ── */
.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* ── Glass card — warm Caribbean tint ── */
.glass-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 4rem 3.5rem;
    text-align: center;
    max-width: 640px;
    width: 100%;
    box-shadow: 
        0 0 0 1px rgba(245, 166, 35, 0.03),
        0 24px 80px rgba(0,0,0,0.35),
        0 8px 24px rgba(0,0,0,0.25),
        inset 0 1px 0 var(--glass-highlight),
        /* Warm inner glow */
        inset 0 0 60px rgba(245, 166, 35, 0.02);
    animation: cardEnter 1.2s var(--ease-out-expo) 0.2s both;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.15) 0%, rgba(255,255,255,0) 50%, rgba(46, 196, 182, 0.08) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ── Wordmark — sunset gradient ── */
.wordmark {
    font-family: 'Funnel Display', sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    animation: wordmarkEnter 1s var(--ease-out-expo) 0.5s both;
}

.wordmark-by {
    font-weight: 300;
    color: var(--text-secondary);
    transition: color 0.6s ease;
}

.wordmark-garsee {
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-carnival) 50%, var(--accent-sunset) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes wordmarkEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
        letter-spacing: 0.05em;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: -0.03em;
    }
}

.glass-card:hover .wordmark-by {
    color: var(--text-primary);
}

/* ── Pillars ── */
.pillars {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    animation: pillarsEnter 1s var(--ease-out-expo) 0.7s both;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pillar {
    position: relative;
    cursor: default;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.pillar:hover {
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(245, 166, 35, 0.4);
}

/* Each pillar gets a different hover colour */
.pillar[data-pillar="education"]:hover {
    text-shadow: 0 0 20px rgba(46, 196, 182, 0.4);
}
.pillar[data-pillar="coaching"]:hover {
    text-shadow: 0 0 20px rgba(245, 166, 35, 0.4);
}
.pillar[data-pillar="voice"]:hover {
    text-shadow: 0 0 20px rgba(232, 93, 78, 0.4);
}

.pillar-dot {
    color: var(--text-muted);
    font-size: 1.2em;
    line-height: 1;
    animation: dotPulse 2.8s ease-in-out infinite;
}

.pillar-dot:nth-of-type(2) {
    animation-delay: -1.4s;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes pillarsEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Waveform — soca energy ── */
.waveform-container {
    position: relative;
    width: 100%;
    height: 80px;
    margin-bottom: 2.5rem;
    animation: waveformEnter 1s var(--ease-out-expo) 0.9s both;
    display: flex;
    align-items: center;
    justify-content: center;
}

.waveform-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.waveform-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(245, 166, 35, 0.18) 0%, transparent 70%);
    pointer-events: none;
    animation: glowBreathe 3.5s ease-in-out infinite;
}

@keyframes glowBreathe {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes waveformEnter {
    from {
        opacity: 0;
        transform: scaleX(0.8);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* ── Contact link — warm gold ── */
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.02em;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    border: 1px solid transparent;
    transition: all 0.4s var(--ease-out-expo);
    animation: contactEnter 1s var(--ease-out-expo) 1.1s both;
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.12) 0%, rgba(232, 93, 78, 0.05) 100%);
    border-radius: 100px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-link:hover {
    color: var(--accent-carnival-bright);
    border-color: rgba(245, 166, 35, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.12);
}

.contact-link:hover::before {
    opacity: 1;
}

.contact-link:hover .contact-arrow {
    transform: translateX(4px);
}

.contact-arrow {
    display: inline-block;
    transition: transform 0.3s var(--ease-out-expo);
}

@keyframes contactEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Footer hint ── */
.footer-hint {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: hintEnter 1s var(--ease-out-expo) 1.4s both;
}

.hint-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-carnival);
    animation: hintPulse 2.5s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 8px rgba(245, 166, 35, 0.5); }
}

@keyframes hintEnter {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 560px) {
    .glass-card {
        padding: 3rem 2rem;
        border-radius: 24px;
    }
    
    .pillars {
        gap: 0.5rem;
        letter-spacing: 0.05em;
    }
    
    .waveform-container {
        height: 60px;
    }
    
    .footer-hint {
        bottom: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
