/* =====================================================================
   Study Time — STRICT PALETTE: White · Black · #800080
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* ─── VARIABLES ─────────────────────────────────────── */
:root {
    --P:   #800080;           /* Primary brand purple */
    --PL:  rgba(128,0,128,0.08);   /* Very light purple wash */
    --PM:  rgba(128,0,128,0.18);   /* Medium purple tint */
    --PH:  rgba(128,0,128,0.35);   /* Heavy purple tint */
    --PG:  rgba(128,0,128,0.55);   /* Glow purple */
    --W:   #ffffff;           /* White */
    --B:   #000000;           /* Black */
    --BL:  rgba(0,0,0,0.06);  /* Light black wash */
    --BM:  rgba(0,0,0,0.45);  /* Mid black */
    --BH:  rgba(0,0,0,0.85);  /* Heavy black */
}

/* ─── RESET & BASE ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--W);
    color: var(--B);
    overflow-x: hidden;
    margin: 0; padding: 0;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: var(--P); border-radius: 3px; }

/* ─── LOADER ─────────────────────────────────────────── */
#loader { background: var(--B); }
.loader-bar { width: 180px; height: 3px; background: rgba(255,255,255,0.12); border-radius: 9999px; overflow: hidden; }
.loader-bar-fill {
    height: 100%; width: 0;
    background: var(--P);
    border-radius: 9999px;
    animation: loaderFill 1.8s ease forwards;
}
@keyframes loaderFill { 0%{width:0} 60%{width:70%} 100%{width:100%} }

/* ─── NAVBAR ─────────────────────────────────────────── */
#navbar { background: transparent; transition: all 0.3s; }
#navbar.scrolled {
    background: var(--W);
    border-bottom: 2px solid var(--P);
    box-shadow: 0 2px 24px var(--PH);
}
#navbar.scrolled .nav-item           { color: var(--B); }
#navbar.scrolled .nav-item:hover,
#navbar.scrolled .nav-item.active    { color: var(--P); background: var(--PL); }
#navbar.scrolled .logo-text          { color: var(--B) !important; }
#navbar.scrolled .logo-text span     { color: var(--P) !important; }
.nav-item {
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    color: var(--W);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.01em;
}
.nav-item:hover, .nav-item.active { color: var(--W); background: var(--PM); }
.mobile-nav-item {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--B);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.mobile-nav-item:hover { background: var(--PL); color: var(--P); }

/* ─── GRADIENT TEXT ──────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--P) 0%, #b300b3 50%, var(--P) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* ─── HERO ───────────────────────────────────────────── */
#home { background: var(--B); }
.hero-bg {
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, var(--PH) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 60%,  rgba(128,0,128,0.2) 0%, transparent 60%),
        var(--B);
}
.hero-grid-overlay {
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}
/* Floating Orbs */
.floating-orb { position:absolute; border-radius:50%; filter:blur(80px); pointer-events:none; animation:floatOrb 10s ease-in-out infinite; }
.orb-1 { width:480px; height:480px; background:rgba(128,0,128,0.22); top:0%; left:-8%; animation-delay:0s; }
.orb-2 { width:350px; height:350px; background:rgba(128,0,128,0.14); top:30%; right:-5%; animation-delay:4s; }
.orb-3 { width:260px; height:260px; background:rgba(128,0,128,0.10); bottom:8%; left:40%; animation-delay:7s; }
@keyframes floatOrb {
    0%,100% { transform:translate(0,0) scale(1); }
    33%      { transform:translate(25px,-25px) scale(1.05); }
    66%      { transform:translate(-15px,20px) scale(0.95); }
}
/* Hero stats */
.stat-divider { width:1px; background:rgba(255,255,255,0.15); height:40px; align-self:center; }

/* ─── HERO SLIDER ────────────────────────────────────── */
#hero-slider-bg { position:absolute; inset:0; z-index:0; }
.hero-slide {
    position:absolute; inset:0;
    background-size:cover; background-position:center; background-repeat:no-repeat;
    opacity:0; transition:opacity 1.2s ease-in-out; will-change:opacity;
}
.hero-slide.active { opacity:1; }

/* ─── ASSOCIATED PARTNERS ────────────────────────────── */
#partners {
    background: var(--B);
    border-top: 1px solid rgba(128,0,128,0.3);
    border-bottom: 1px solid rgba(128,0,128,0.3);
}
.partners-marquee { display:flex; gap:3rem; align-items:center; animation:partnerScroll 30s linear infinite; will-change:transform; }
#partners-track-wrapper:hover .partners-marquee { animation-play-state:paused; }
@keyframes partnerScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.partner-logo-item { display:inline-flex; flex-direction:column; align-items:center; gap:0.4rem; flex-shrink:0; min-width:100px; }
.partner-logo-item img { height:48px; max-width:120px; object-fit:contain; filter:grayscale(100%) brightness(10); opacity:0.4; transition:all 0.3s; }
.partner-logo-item:hover img { filter:grayscale(0%) brightness(1) saturate(0) sepia(100%) hue-rotate(260deg) saturate(2); opacity:1; }
.partner-logo-item .partner-name { font-size:0.65rem; color:rgba(255,255,255,0.3); text-align:center; max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:500; }

/* ─── SECTION SPACING ────────────────────────────────── */
.section-bg-gradient { position:absolute; inset:0; pointer-events:none; background:none; }

/* ─── SERVICE CARDS ──────────────────────────────────── */
#services { background: var(--W); }

.service-card {
    background: var(--W);
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 2rem;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.25,0.8,0.25,1);
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--P);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.service-card:hover {
    border-color: var(--P);
    box-shadow: 0 12px 48px var(--PH), 0 0 0 1px var(--P);
    transform: translateY(-6px);
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon-bg {
    width: 3.5rem; height: 3.5rem;
    border-radius: 12px;
    background: var(--PL);
    border: 1.5px solid var(--PM);
    display: flex; align-items: center; justify-content: center;
}
.service-card-arrow {
    position: absolute;
    bottom: 1.5rem; right: 1.5rem;
    width: 2rem; height: 2rem;
    border-radius: 50%;
    background: var(--P);
    display: flex; align-items: center; justify-content: center;
    color: var(--W);
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s;
}
.service-card:hover .service-card-arrow { opacity:1; transform:translateX(0); }

/* CTA Banner */
.cta-banner {
    background: var(--P);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--W);
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    border-radius: inherit;
}

/* ─── TESTIMONIALS ───────────────────────────────────── */
#testimonials { background: var(--B); }

.testimonials-swiper { padding-bottom: 3rem !important; }
.testimonial-card {
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(128,0,128,0.3);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s;
    color: var(--W);
}
.testimonial-card:hover {
    border-color: var(--P);
    box-shadow: 0 8px 40px var(--PH);
    transform: translateY(-4px);
}
.swiper-pagination-bullet { background: rgba(255,255,255,0.2) !important; }
.swiper-pagination-bullet-active { background: var(--P) !important; width: 24px !important; border-radius: 99px !important; }

/* ─── ENQUIRY FORM ───────────────────────────────────── */
#enquiry { background: var(--W); }
.enquiry-bg { display: none; }
.enquiry-card {
    background: var(--W);
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(128,0,128,0.12), 0 0 0 1px rgba(128,0,128,0.08);
}
@media (max-width:640px) { .enquiry-card { padding:1.5rem; border-radius:16px; } }

.form-group { position: relative; }
.form-label { display:block; font-size:0.78rem; font-weight:700; color:var(--P); text-transform:uppercase; letter-spacing:0.07em; margin-bottom:0.45rem; }
.input-wrapper { position: relative; }
.input-icon { position:absolute; left:1rem; top:50%; transform:translateY(-50%); color:var(--P); font-size:0.875rem; pointer-events:none; opacity:0.5; }
.form-input {
    width: 100%;
    background: var(--W);
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    color: var(--B);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
}
textarea.form-input { padding-left: 1rem; resize: vertical; }
.form-input::placeholder { color: rgba(0,0,0,0.28); }
.form-input:focus {
    border-color: var(--P);
    box-shadow: 0 0 0 3px var(--PM);
}

/* Voice Recorder */
.voice-recorder-box {
    background: var(--PL);
    border: 1.5px dashed var(--PM);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.3s;
}
.voice-recorder-box.recording { border-color: rgba(220,38,38,0.5); background: rgba(220,38,38,0.04); }
.record-btn {
    width:64px; height:64px; border-radius:50%;
    background: var(--PL);
    border: 2px solid var(--P);
    color: var(--P);
    display:flex; align-items:center; justify-content:center;
    cursor:pointer; transition:all 0.3s; flex-shrink:0;
}
.record-btn:hover { background: var(--P); color: var(--W); transform:scale(1.08); }
.record-btn.recording { background:rgba(220,38,38,0.12); border-color:#dc2626; color:#dc2626; animation:recordPulse 1.2s infinite; }
@keyframes recordPulse { 0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,0.3)} 50%{box-shadow:0 0 0 14px rgba(220,38,38,0)} }

/* Category Chips */
.chip {
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: var(--W);
    border: 1.5px solid rgba(0,0,0,0.12);
    color: var(--B);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.chip:hover { border-color: var(--P); color: var(--P); }
.chip.selected { background: var(--P); border-color: var(--P); color: var(--W); }

/* Submit Button */
.submit-btn {
    background: var(--P);
    color: var(--W);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 8px 28px var(--PH);
    letter-spacing: 0.01em;
}
.submit-btn:hover { background: #990099; transform:translateY(-2px); box-shadow:0 12px 36px var(--PG); }
.submit-btn:active { transform:translateY(0); }
.submit-btn:disabled { opacity:0.5; cursor:not-allowed; transform:none; }

/* ─── CONTACT / FOOTER ───────────────────────────────── */
#contact {
    background: var(--B);
    color: var(--W);
    border-top: 3px solid var(--P);
}

.social-icon {
    width:2.5rem; height:2.5rem;
    border-radius:8px;
    display:flex; align-items:center; justify-content:center;
    font-size:1.1rem;
    transition:all 0.2s;
    text-decoration:none;
}
.social-icon:hover { transform:translateY(-3px); }

/* ─── FLOATING BUTTONS ───────────────────────────────── */
.floating-btns { position:fixed; bottom:1.5rem; right:1.5rem; display:flex; flex-direction:column; gap:0.75rem; z-index:999; }
.float-btn {
    width:56px; height:56px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    text-decoration:none; color:var(--W); font-size:1.25rem;
    transition:all 0.3s cubic-bezier(0.25,0.8,0.25,1);
    position:relative;
}
.float-btn:hover { transform:translateY(-4px) scale(1.1); }
.float-wa   { background:#25d366; box-shadow:0 4px 20px rgba(37,211,102,0.4); }
.float-call { background:var(--P); box-shadow:0 4px 20px var(--PG); }
.float-btn-label {
    position:absolute; right:calc(100% + 10px);
    background:var(--B); color:var(--W);
    font-size:0.75rem; font-weight:700;
    white-space:nowrap; padding:0.3rem 0.7rem;
    border-radius:5px; border:1px solid rgba(255,255,255,0.12);
    opacity:0; pointer-events:none;
    transform:translateX(6px); transition:all 0.2s;
}
.float-btn:hover .float-btn-label { opacity:1; transform:translateX(0); }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width:768px) { .stat-divider { display:none; } }
