/* ============== GLOBAL VARIABLES ============== */
:root {
    --primary: #3aa5bb;
    --primary-glow: rgba(58, 165, 187, 0.5);
    --primary-dark: #277788;
    --bg-color: #0f172a;
    --bg-color-alt: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* ============== RESET & BASE ============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 4rem; font-weight: 800; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

.highlight {
    color: var(--primary);
}

.highlight-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

/* ============== LAYOUT ============== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.row.reverse {
    flex-direction: row-reverse;
}

.row > div {
    flex: 1;
    min-width: 300px;
}

.text-center, .center-text {
    text-align: center;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.align-center {
    align-items: center;
}

/* ============== UI COMPONENTS ============== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow), inset 0 0 10px var(--primary-glow);
    transform: translateY(-2px);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
}

.hover-glow:hover {
    box-shadow: 0 10px 30px var(--primary-glow);
    border-color: rgba(58, 165, 187, 0.3);
    transform: translateY(-5px);
}

/* ============== NAVBAR ============== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-family: var(--font-heading);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* ============== HERO SECTION ============== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    background-color: #080c17;
    background-image: url('../assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(8, 12, 23, 0.95));
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
}

.hero-content p.subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.hero-content p.mission {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============== ABOUT SECTION ============== */
.about-section {
    position: relative;
}

.math-item {
    margin: 1.5rem 0;
}

.math-item .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.math-operator {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: bold;
    font-family: var(--font-heading);
}

.math-item.result.highlight {
    background: rgba(58, 165, 187, 0.1);
    border: 1px solid var(--primary);
    padding: 1rem 2rem;
    border-radius: 15px;
    box-shadow: 0 0 20px var(--primary-glow);
}

/* ============== STATS SECTION ============== */
.stats-section {
    background: linear-gradient(to right, #0f172a, #1e293b, #0f172a);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 2rem 0;
}

.container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 2rem;
}

.stat-num-wrapper {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.stat-num-wrapper h2 {
    font-size: 3.5rem;
    margin-bottom: 0;
}

.stat-num-wrapper .suffix {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: var(--font-heading);
    margin-left: 5px;
}

/* ============== SERVICES SECTION ============== */
.section-headers {
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-wrap {
    font-size: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(58, 165, 187, 0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(58, 165, 187, 0.3);
    box-shadow: 0 0 15px var(--primary-glow);
}

.sub-services {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.sub-services li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.sub-services li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ============== PROCESS SECTION ============== */
.process-section {
    background-color: var(--bg-color-alt);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}

.timeline .step {
    position: relative;
    margin-bottom: 2rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.timeline .step::after {
    content: '';
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 4px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
}

.timeline .step span {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: rgba(58, 165, 187, 0.3);
}

.timeline .step p {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* ============== WHY US SECTION ============== */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.reason h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.reason p {
    margin-bottom: 0;
}

/* ============== FOOTER ============== */
.footer {
    background: #080c17;
    border-top: 1px solid var(--glass-border);
    padding-top: 5rem;
}

.footer-row {
    align-items: flex-start;
    padding: 0 2rem 3rem 2rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-list li {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.copyright {
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============== ANIMATIONS (SCROLL REVEAL) ============== */
.reveal, .reveal-left, .reveal-right, .reveal-up {
    opacity: 0;
    transition: all 1s ease;
}

.reveal {
    transform: scale(0.9);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal.active, .reveal-left.active, .reveal-right.active, .reveal-up.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }
.delay-5 { transition-delay: 1.0s; }

/* ============== MEDIA QUERIES ============== */
@media screen and (max-width: 992px) {
    h1 { font-size: 3rem; }
    .services-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        border-left: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content p.mission { font-size: 1rem; }
}

@media screen and (max-width: 480px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .container { padding: 3rem 1.5rem; }
    .stat-num-wrapper h2 { font-size: 2.5rem; }
}
