/*
Theme Name: SeerSource Translation Services  
Version: 3.5.0
Description: Modern translation theme with #41b4e7, #0d3b66, #0061ff colors
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Sora:wght@400;600;700&display=swap');

:root {
    /* YOUR 3 BRAND COLORS */
    --brand:       #41b4e7;  /* Sky blue - primary */
    --brand-navy:  #0d3b66;  /* Deep navy - headers */
    --brand-blue:  #0061ff;  /* Bright blue - accents */
    
    /* Derived colors */
    --brand-light: #6ecaef;
    --brand-bg:    rgba(65,180,231,0.08);
    
    /* Surfaces */
    --bg:      #f7fafd;
    --surface: #eef4f9;
    --card:    #ffffff;
    --border:  rgba(13,59,102,0.12);
    
    /* Text */
    --text-primary:   #0d3b66;  /* Using brand navy */
    --text-secondary: #4a6278;
    --text-muted:     #7a96aa;
    
    /* Gradients using YOUR colors */
    --grad-brand: linear-gradient(135deg, #41b4e7 0%, #0061ff 100%);
    --grad-dark:  linear-gradient(135deg, #0d3b66 0%, #0a2f52 100%);
    --grad-mesh:  
        radial-gradient(at 0% 0%, rgba(65,180,231,0.1) 0px, transparent 55%),
        radial-gradient(at 100% 0%, rgba(0,97,255,0.08) 0px, transparent 55%),
        radial-gradient(at 50% 100%, rgba(13,59,102,0.06) 0px, transparent 55%);
    
    /* Typography */
    --font-display: 'Sora', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Spacing */
    --s-xs: 0.5rem; --s-sm: 0.75rem; --s-md: 1rem;
    --s-lg: 1.5rem; --s-xl: 2rem; --s-2xl: 3rem; --s-3xl: 4rem;
    
    /* Radius */
    --r-sm: 0.5rem; --r-md: 0.75rem; --r-lg: 1rem;
    --r-xl: 1.5rem; --r-2xl: 2rem; --r-full: 9999px;
    
    /* Transitions */
    --t-fast: 150ms ease; --t-base: 250ms ease; --t-slow: 400ms ease;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { 
    font-family: var(--font-body); 
    background: linear-gradient(315deg, rgba(13,59,102,1) 3%, rgba(65,180,231,1) 38%, rgba(0,97,255,1) 68%, rgba(13,59,102,1) 98%);
    animation: gradient-shift 15s ease infinite;
    background-size: 400% 400%;
    background-attachment: fixed;
    color: var(--text-primary); 
    line-height: 1.65; 
    overflow-x: hidden;
    position: relative;
}

@keyframes gradient-shift {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* Animated wave layers */
.wave-layer {
    background: rgb(255 255 255 / 12%);
    border-radius: 1000% 1000% 0 0;
    position: fixed;
    width: 200%;
    height: 12em;
    animation: wave-motion 10s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.5;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.wave-layer:nth-of-type(2) {
    bottom: -1.25em;
    animation: wave-motion 18s linear reverse infinite;
    opacity: 0.4;
}

.wave-layer:nth-of-type(3) {
    bottom: -2.5em;
    animation: wave-motion 20s -1s reverse infinite;
    opacity: 0.6;
}

@keyframes wave-motion {
    2% { transform: translateX(1); }
    25% { transform: translateX(-25%); }
    50% { transform: translateX(-50%); }
    75% { transform: translateX(-25%); }
    100% { transform: translateX(1); }
}

/* Animated floating orbs */
.orb-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    animation: orb-float 3s ease-in-out infinite alternate;
    animation-timing-function: cubic-bezier(.6, 0, .4, 1);
}

.floating-orb:nth-child(1) {
    top: 15%;
    left: -8%;
    width: 300px;
    height: 300px;
    opacity: 0.4;
    animation-delay: 0s;
}

.floating-orb:nth-child(2) {
    top: 8%;
    left: -12%;
    width: 550px;
    height: 550px;
    opacity: 0.3;
    animation-delay: 0.3s;
}

.floating-orb:nth-child(3) {
    top: -5%;
    left: -18%;
    width: 850px;
    height: 850px;
    opacity: 0.2;
    animation-delay: 0.6s;
}

.floating-orb:nth-child(4) {
    top: -8%;
    right: -12%;
    width: 650px;
    height: 650px;
    opacity: 0.25;
    animation-delay: 0.9s;
}

.floating-orb:nth-child(5) {
    bottom: -12%;
    right: -18%;
    width: 750px;
    height: 750px;
    opacity: 0.2;
    animation-delay: 1.2s;
}

@keyframes orb-float {
    0% { transform: scale(1.0) translateY(0); }
    100% { transform: scale(1.1) translateY(-30px); }
}

/* Ensure content stays above animations */
.site-main,
.navbar,
.footer {
    position: relative;
    z-index: 10;
}

h1,h2,h3,h4,h5,h6 { 
    font-family: var(--font-display); 
    font-weight: 700; 
    line-height: 1.2; 
    color: var(--brand-navy); 
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }

a { color: var(--brand-blue); text-decoration: none; transition: color var(--t-base); }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }

/* Icon fix */
.fa, .fas, .far, .fab { 
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    line-height: 1 !important; 
}

/* Container */
.container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 var(--s-lg); 
}

/* Navbar */
.navbar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 1000; 
    background: rgba(247,250,253,0.92); 
    backdrop-filter: blur(20px); 
    border-bottom: 1px solid var(--border); 
    transition: box-shadow var(--t-base);
}
.navbar.scrolled { 
    box-shadow: 0 2px 20px rgba(0,97,255,0.12); 
}
.navbar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 5rem; 
}
.navbar-menu { 
    display: flex; 
    gap: var(--s-xl); 
    list-style: none; 
}
.navbar-menu a { 
    font-weight: 500; 
    color: var(--text-secondary); 
    position: relative; 
    padding: 0.5rem 0;
}
.navbar-menu a::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: var(--brand-blue); 
    transition: width var(--t-base); 
}
.navbar-menu a:hover::after { width: 100%; }

/* Buttons */
.btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    padding: 0.875rem 1.875rem; 
    font-weight: 600; 
    border-radius: var(--r-full); 
    border: 2px solid transparent; 
    cursor: pointer; 
    transition: all var(--t-base); 
}
.btn-primary { 
    background: var(--grad-brand); 
    color: #fff; 
    box-shadow: 0 4px 20px rgba(0,97,255,0.35); 
}
.btn-primary:hover { 
    box-shadow: 0 6px 28px rgba(0,97,255,0.5); 
    transform: translateY(-2px); 
    color: #fff;
}
.btn-secondary { 
    background: #fff; 
    color: var(--brand-blue); 
    border-color: var(--brand-blue); 
}
.btn-secondary:hover { 
    background: rgba(0,97,255,0.08); 
    transform: translateY(-2px);
}
.btn-lg { padding: 1.125rem 2.25rem; font-size: 1rem; }

/* ========================================================
   HERO
======================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 8rem;
    background: transparent;
    overflow: hidden;
}

/* Wavy bottom curve */
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 150px;
    background: var(--card);
    clip-path: ellipse(100% 100% at 50% 100%);
    z-index: 5;
}

.hero-content { position: relative; z-index: 10; width: 100%; max-width: 65rem; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .625rem 1.25rem;
    background: var(--brand-bg);
    border: 1px solid rgba(65,180,231,0.25);
    border-radius: var(--r-full);
    font-size: .875rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: var(--s-xl);
    animation: badge-float 4s ease-in-out infinite;
}
.hero-badge i { font-size: 1rem; }

@keyframes badge-float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.hero h1 {
    margin-bottom: var(--s-xl);
    background: linear-gradient(135deg, var(--dark) 0%, var(--brand-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Language scrolling animation backdrop */
.hero-language-scroll {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 200px;
    overflow: hidden;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.language-track {
    display: flex;
    gap: 3rem;
    animation: scroll-languages 40s linear infinite;
    width: fit-content;
}

.language-word {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
    opacity: 0.3;
}

@keyframes scroll-languages {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-subtitle {
    font-size: clamp(1.0625rem,2vw,1.25rem);
    color: var(--text-secondary);
    max-width: 40rem;
    margin-bottom: var(--s-2xl);
    line-height: 1.75;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-md);
    margin-bottom: var(--s-4xl);
}

.hero-illustration {
    position: absolute;
    right: -6%;
    top: 50%;
    transform: translateY(-50%);
    width: 44%;
    opacity: .5;
    z-index: 1;
    pointer-events: none;
    animation: illus-float 6s ease-in-out infinite;
}
@keyframes illus-float {
    0%,100% { transform: translateY(-50%) rotate(0deg); }
    50%      { transform: translateY(calc(-50% - 18px)) rotate(1.5deg); }
}

/* ========================================================
   STATS
======================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: var(--s-lg);
}

.stat-card {
    text-align: center;
    padding: var(--s-xl) var(--s-lg);
    background: var(--card);
    border-radius: var(--r-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--sh-sm);
    transition: all var(--t-base);
}
.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(65,180,231,.18);
    border-color: var(--brand-light);
}

.stat-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto var(--s-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-brand);
    border-radius: var(--r-lg);
    box-shadow: 0 4px 14px rgba(65,180,231,.30);
    color: #fff;
    font-size: 1.375rem;
    line-height: 1;
}
/* Ensure Font Awesome renders inside flex icon box */
.stat-icon .fas,
.stat-icon .fab,
.stat-icon .far,
.stat-icon .fa  {
    color: #fff !important;
    font-size: inherit;
    width: auto; height: auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: .25rem;
    line-height: 1.1;
}
.stat-label {
    color: var(--text-secondary);
    font-size: .9375rem;
    font-weight: 500;
}

/* Sections */
.section { padding: var(--s-3xl) 0; }
.section-header { text-align: center; max-width: 46rem; margin: 0 auto var(--s-3xl); }
.section-header h2 { margin-bottom: var(--s-md); color: var(--brand-navy); }

/* Cards */
.card { 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: var(--r-xl); 
    padding: var(--s-xl); 
    transition: all var(--t-base); 
    box-shadow: 0 2px 12px rgba(13,59,102,0.06);
}
.card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 12px 32px rgba(0,97,255,0.15); 
    border-color: var(--brand-blue);
}
.card-icon { 
    width: 3rem; 
    height: 3rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: rgba(65,180,231,0.1); 
    border: 1.5px solid rgba(0,97,255,0.2); 
    border-radius: var(--r-lg); 
    margin-bottom: var(--s-lg); 
    color: var(--brand-blue); 
    font-size: 1.25rem;
}
.card-icon .fas { color: var(--brand-blue) !important; font-size: 1.25rem !important; }
.card:hover .card-icon { 
    background: var(--grad-brand); 
    border-color: var(--brand-blue); 
    box-shadow: 0 4px 14px rgba(0,97,255,0.3);
}
.card:hover .card-icon .fas { color: #fff !important; }
.card-title { 
    font-size: 1.1875rem; 
    font-weight: 700; 
    margin-bottom: var(--s-sm); 
    color: var(--brand-navy);
}

/* Grid */
.grid { display: grid; gap: var(--s-xl); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Footer */
.footer { 
    background: var(--grad-dark); 
    color: #fff; 
    padding: var(--s-3xl) 0 var(--s-xl);
}
.footer::before { 
    content: ''; 
    position: absolute; 
    inset: 0 0 auto 0; 
    height: 3px; 
    background: var(--brand-blue);
}

/* Animations */
@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(28px); } 
    to { opacity: 1; transform: translateY(0); } 
}
.fade-in-up { opacity: 0; animation: fadeInUp 0.6s ease-out forwards; }
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }


/* ========================================================
   SCROLL ANIMATION SECTION
======================================================== */
.scroll-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(255,255,255,0.95);
    overflow: hidden;
    padding: var(--s-4xl) 0;
}

.scroll-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 150px;
    background: transparent;
    clip-path: ellipse(100% 100% at 50% 0%);
    box-shadow: 0 -150px 0 0 rgba(255,255,255,0.95);
    z-index: 1;
}

.scroll-section-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.scroll-section h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--s-xl);
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.translation-animation {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.12;
    pointer-events: none;
    z-index: 2;
}

.translation-pair {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--brand);
    animation: float-translate 8s ease-in-out infinite;
}

.translation-pair:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.translation-pair:nth-child(2) { top: 25%; right: 12%; animation-delay: 1.5s; }
.translation-pair:nth-child(3) { bottom: 20%; left: 15%; animation-delay: 3s; }
.translation-pair:nth-child(4) { bottom: 30%; right: 10%; animation-delay: 4.5s; }

.translation-arrow {
    color: var(--brand-blue);
    font-size: 1.5rem;
    animation: pulse-arrow 2s ease-in-out infinite;
}

@keyframes float-translate {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.12; }
    50% { transform: translateY(-20px) scale(1.05); opacity: 0.18; }
}

@keyframes pulse-arrow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* Section backgrounds */
.section {
    background: rgba(255,255,255,0.95);
    position: relative;
}

/* ========================================================
   RESPONSIVE — MOBILE
======================================================== */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--s-lg); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); gap: var(--s-lg); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 5rem; left: 0; right: 0;
        background: rgba(247,250,253,.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: var(--s-lg) var(--s-xl);
        border-bottom: 2px solid var(--brand-xlight);
        box-shadow: var(--sh-lg);
    }
    .navbar-menu.active { display: flex; }
    .navbar-menu a {
        width: 100%;
        padding: .75rem 0;
        border-bottom: 1px solid var(--border-light);
    }
    .navbar-menu a:last-child { border-bottom: none; }
    .navbar-toggle { display: block; }

    .hero { padding: 6rem 0 3rem; min-height: auto; }
    .hero-illustration { display: none; }
    .hero-cta { flex-direction: column; gap: var(--s-sm); }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: 1fr; }
    .language-word { font-size: 2.5rem; }

    .section { padding: var(--s-3xl) 0; }
    .section-header { margin-bottom: var(--s-2xl); }
    .card { padding: var(--s-lg); }

    .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
    .grid { gap: var(--s-lg); }

    .footer-links { flex-direction: column; gap: var(--s-md); }
}

@media (max-width: 480px) {
    .stat-card { padding: var(--s-lg) var(--s-md); }
    .stat-icon { width: 2.75rem; height: 2.75rem; font-size: 1.125rem; }
    .stat-number { font-size: 1.875rem; }
    .btn-lg { padding: 1rem 1.5rem; font-size: .9375rem; }
    .language-word { font-size: 2rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero { padding: 7rem 0 4rem; }
    .hero-illustration { width: 38%; opacity: .35; }
}

