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

/* =====================================
   CSS Variables & Theme Setup
   ===================================== */
:root {
    /* Color Palette */
    --bg-dark: #07070a;
    --bg-darker: #030305;
    --bg-glass: rgba(20, 20, 30, 0.4);
    --bg-glass-hover: rgba(30, 30, 45, 0.6);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glass-light: rgba(255, 255, 255, 0.12);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --accent-primary: #818cf8; /* Soft Indigo */
    --accent-secondary: #38bdf8; /* Soft Sky Blue */
    --accent-tertiary: #f472b6; /* Pink */
    --accent-glow: rgba(129, 140, 248, 0.4);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Animation Timing */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =====================================
   Reset & Base Styles
   ===================================== */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

html, body {
    height: 100%; width: 100%;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow: hidden; /* Handled by parallax */
    cursor: none;
}

/* Custom Cursor Styles */
.cursor-dot {
    width: 8px; height: 8px; background-color: var(--accent-secondary); 
    border-radius: 50%; position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.cursor-outline {
    width: 40px; height: 40px; border: 2px solid rgba(129, 140, 248, 0.5);
    border-radius: 50%; position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9998; transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Utilities */
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.95rem; }
.text-lg { font-size: 1.15rem; }
.lead-text { font-size: 1.25rem; font-weight: 300; opacity: 0.9; }
.m-0 { margin: 0; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mt-6 { margin-top: 5rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.pl-lg { padding-left: 3rem; }
.pr-lg { padding-right: 3rem; }
.max-w-lg { max-width: 700px; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.z-10 { z-index: 10; }

.flex-center { display: flex; justify-content: center; align-items: center; flex-direction: column; }
.flex-center-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; }
.flex-col-center { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.align-center { align-items: center; }

.highlight-gradient {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

@keyframes shine { to { background-position: 200% center; } }

.section-label {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.section-title { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }

/* =====================================
   Layout Components
   ===================================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 10; }
.section { padding: 8rem 0; position: relative; background-color: var(--bg-dark); z-index: 2; }
.dark-section { background-color: var(--bg-darker); border-top: 1px solid var(--border-glass); border-bottom: 1px solid var(--border-glass); }

.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}

.shadow-lg { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7); }

/* Background Glow Blobs */
.bg-glow {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.08;
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.blob-1 { top: -100px; right: -100px; background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%); }
.blob-2 { bottom: -100px; left: -100px; background: radial-gradient(circle, var(--accent-tertiary) 0%, transparent 70%); }
.blob-3 { top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.15; width: 800px; height: 800px; }

/* =====================================
   Buttons
   ===================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-fast);
}

.large-btn { padding: 1.2rem 2.5rem; font-size: 1.1rem; }

.btn-primary {
    background: var(--text-main);
    color: var(--bg-darker);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 10px 20px -5px rgba(255,255,255,0.2);
}

.glow-btn.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}
.glow-btn.btn-primary:hover {
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-outline {
    border: 1px solid var(--border-glass-light);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.3);
}

/* =====================================
   Navigation
   ===================================== */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; padding: 1.5rem 0; transition: all var(--transition-smooth); }
.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(3, 3, 5, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}
.nav-container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; letter-spacing: -1px; }
.logo .dot { color: var(--accent-primary); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links li a:not(.btn) { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-links li a:not(.btn):hover { color: var(--text-main); }
.nav-btn { padding: 0.6rem 1.4rem; font-size: 0.85rem; }

.hamburger { display: none; cursor: pointer; }
.hamburger .bar { display: block; width: 25px; height: 2px; margin: 5px auto; background-color: var(--text-main); transition: 0.3s; }

/* =====================================
   Parallax System
   ===================================== */
.parallax-wrapper { height: 100vh; overflow-x: hidden; overflow-y: auto; perspective: 1px; perspective-origin: center center; }
.parallax-group { position: relative; height: 100vh; transform-style: preserve-3d; z-index: 1; }
.parallax-layer { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.parallax-layer-back { transform: translateZ(-1px) scale(2); z-index: 1; }
.parallax-layer-base { transform: translateZ(0); z-index: 2; }

/* Animated Hero Background */
.animated-bg-base { position: absolute; inset: 0; background: var(--bg-darker); z-index: -3; }
.animated-blob {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.25; z-index: -2;
    animation: moveBlobs 25s infinite alternate ease-in-out;
}
.blob-a { width: 60vw; height: 60vw; background: var(--accent-primary); top: -20%; left: -10%; animation-delay: 0s; }
.blob-b { width: 50vw; height: 50vw; background: var(--accent-secondary); bottom: -10%; right: -20%; animation-delay: -5s; }
.blob-c { width: 50vw; height: 50vw; background: var(--accent-tertiary); top: 30%; left: 30%; animation-delay: -10s; }

@keyframes moveBlobs {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(8%, 12%) scale(1.1); }
    66%  { transform: translate(-8%, 5%) scale(0.9); }
    100% { transform: translate(12%, -8%) scale(1.05); }
}

/* Floating Geometric Shapes */
.floating-geo {
    position: absolute; border: 2px solid rgba(255, 255, 255, 0.1); z-index: -1; pointer-events: none;
    animation: spinFloat 20s infinite linear;
}
.geo-circle { width: 100px; height: 100px; border-radius: 50%; top: 20%; left: 15%; animation-duration: 25s; border-color: rgba(129, 140, 248, 0.3); }
.geo-square { width: 80px; height: 80px; bottom: 30%; right: 15%; animation-duration: 30s; animation-direction: reverse; border-color: rgba(56, 189, 248, 0.3); }
.geo-triangle { 
    width: 0; height: 0; background: transparent; border: none;
    border-left: 50px solid transparent; border-right: 50px solid transparent;
    border-bottom: 86.6px solid rgba(244, 114, 182, 0.2); /* Triangle color */
    top: 60%; left: 25%; animation-duration: 22s;
    filter: drop-shadow(0 0 10px rgba(244, 114, 182, 0.2));
}

@keyframes spinFloat {
    0%   { transform: translateY(0) rotate(0deg); }
    50%  { transform: translateY(-40px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

.bg-hero-img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; z-index: -1; filter: brightness(0.85); }
.overlay-dark { position: absolute; inset: 0; background: rgba(3, 3, 5, 0.75); z-index: -1; }

.gradient-overlay-heavy { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(7,7,10,0.95) 0%, rgba(3,3,5,0.7) 50%, rgba(7,7,10,0.95) 100%); z-index: 1; }
.pattern-bg { 
    position: absolute; inset: 0; 
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

/* =====================================
   Hero Section
   ===================================== */
.hero-content { text-align: center; max-width: 900px; padding: 0 2rem; margin-top: 5rem; }
.hero-title { font-size: clamp(3rem, 7vw, 5.5rem); margin: 0 0 1.5rem; line-height: 1.05; }
.badge-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass-light);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}
.hero-stats { margin-top: 2.5rem; gap: 1rem; }
.stat-mini { font-size: 1rem; color: var(--text-muted); }
.stat-mini strong { color: var(--text-main); font-size: 1.2rem; }
.divider { width: 4px; height: 4px; background: var(--accent-primary); border-radius: 50%; opacity: 0.5; }

/* =====================================
   About Section
   ===================================== */
.glow-backdrop {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    background: var(--accent-primary);
    filter: blur(100px); opacity: 0.15; z-index: 0;
}
.img-wrapper { position: relative; z-index: 1; padding: 0.5rem; transform: rotate(-2deg); transition: transform var(--transition-smooth); }
.about-img:hover .img-wrapper { transform: rotate(0deg); }
.portrait { border-radius: 14px; width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(10%); transition: var(--transition-smooth); }
.about-img:hover .portrait { filter: grayscale(0%); }

.floating-badge {
    position: absolute;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass-light);
    padding: 0.8rem 1.2rem;
    border-radius: 16px;
    display: flex; align-items: center; gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10;
}
.badge-1 { top: 10%; left: -5%; }
.badge-2 { bottom: 15%; right: -5%; }
.float-anim-1 { animation: float 5s ease-in-out infinite; }
.float-anim-2 { animation: float 6s ease-in-out infinite reverse; }

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

.icon-circle { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.bg-purple { background: rgba(129, 140, 248, 0.2); color: var(--accent-primary); }
.bg-blue { background: rgba(56, 189, 248, 0.2); color: var(--accent-secondary); }

.feature-list li {
    display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; color: var(--text-muted);
}
.check-icon { width: 20px; height: 20px; color: var(--accent-secondary); flex-shrink: 0; margin-top: 0.2rem; }
.feature-list strong { color: var(--text-main); font-weight: 500; }

.mission-box { padding: 1.5rem 2rem; margin-top: 2rem; }
.accent-border-left { border-left: 4px solid var(--accent-primary); }
.mission-title { font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-main); margin-bottom: 0.5rem; }

/* =====================================
   Services Section (Grid)
   ===================================== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.service-card { padding: 2.5rem 2rem; transition: var(--transition-smooth); position: relative; overflow: hidden; }
.card-glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 60%);
    opacity: 0; transition: var(--transition-smooth); pointer-events: none;
}
.service-card:hover { transform: translateY(-5px); background: var(--bg-glass-hover); border-color: var(--border-glass-light); }
.service-card:hover .card-glow { opacity: 1; }

.icon-box {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; justify-content: center; align-items: center; margin-bottom: 1.5rem;
}
.icon-purple { background: rgba(129, 140, 248, 0.15); color: var(--accent-primary); }
.icon-blue { background: rgba(56, 189, 248, 0.15); color: var(--accent-secondary); }
.icon-pink { background: rgba(244, 114, 182, 0.15); color: var(--accent-tertiary); }
.icon-green { background: rgba(52, 211, 153, 0.15); color: #34d399; }

.service-card h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.service-sub { font-size: 0.85rem; color: var(--accent-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1rem; display: block; }
.custom-list { padding-top: 1rem; border-top: 1px solid var(--border-glass); }
.custom-list li { padding: 0.4rem 0; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }
.custom-list li::before { content: "•"; color: var(--accent-primary); }

/* =====================================
   Achievements Section (Bento Grid)
   ===================================== */
.stats-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}
.bento-box { padding: 2rem; border-radius: 24px; transition: var(--transition-smooth); }
.bento-box:hover { transform: scale(1.02); background: var(--bg-glass-hover); }
.bento-1 { grid-column: 1 / 2; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: center; }
.bento-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
.bento-3 { grid-column: 2 / 3; grid-row: 2 / 3; }

.bento-icon { font-size: 2rem; margin-bottom: 1rem; }
.bento-num { font-size: 3rem; line-height: 1; margin-bottom: 0.5rem; color: var(--text-main); }
.bento-title { font-weight: 600; color: var(--accent-secondary); margin-bottom: 0.5rem; }

.panel-purple { background: rgba(129, 140, 248, 0.08); border-color: rgba(129, 140, 248, 0.2); padding: 2rem; }

/* =====================================
   Process Section (Timeline)
   ===================================== */
.timeline { display: flex; flex-direction: column; gap: 2rem; max-width: 800px; margin: 3rem auto 0; }
.timeline-item { display: flex; gap: 2rem; align-items: stretch; }
.timeline-marker {
    width: 50px; height: 50px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: white;
    box-shadow: 0 0 20px var(--accent-glow); position: relative;
}
/* Line connecting timeline dots */
.timeline-item:not(:last-child) .timeline-marker::after {
    content: ''; position: absolute; top: 50px; bottom: -2rem; left: 50%;
    transform: translateX(-50%); width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary) 0%, transparent 100%);
}
.timeline-content { padding: 1.5rem 2rem; flex-grow: 1; }
.timeline-content h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* =====================================
   Contact Section
   ===================================== */
#contact { padding-bottom: 0; }
.contact-wrapper { padding: 4rem 2rem; text-align: center; border-radius: 30px; }
.contact-info-row { display: flex; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.contact-item { display: flex; align-items: center; gap: 0.5rem; }
.contact-icon { font-size: 1.2rem; }
.contact-link, .contact-text { color: var(--text-muted); font-size: 1.1rem; font-weight: 500; transition: color 0.3s ease; text-decoration: none; }
.contact-link:hover { color: var(--accent-secondary); }
.divider.hide-mobile { width: 1px; height: 30px; background: rgba(255,255,255,0.1); }
.impact-box { display: inline-block; padding: 1rem 2rem; background: rgba(255,255,255,0.05); border-radius: 12px; border: 1px solid var(--border-glass-light); }
.footer { text-align: center; padding-bottom: 2rem; border-top: 1px solid var(--border-glass); padding-top: 2rem; }

/* =====================================
   Animations
   ===================================== */
.animate-on-scroll { opacity: 0; transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.slide-up { transform: translateY(40px); }
.slide-right { transform: translateX(-40px); }
.slide-left { transform: translateX(40px); }
.fade-in { transform: scale(0.97); }
.fade-up { transform: translateY(20px); }
.scale-in { transform: scale(0.9); }
.animate-on-scroll.is-visible { opacity: 1; transform: translate(0) scale(1); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =====================================
   Responsive Design
   ===================================== */
@media (max-width: 968px) {
    .grid-2-col { grid-template-columns: 1fr; gap: 3rem; }
    .pl-lg, .pr-lg { padding-left: 0; padding-right: 0; }
    .about-content { order: -1; } /* Text above image on mobile */
    .stats-bento-grid { grid-template-columns: 1fr; }
    .bento-1 { grid-column: 1/-1; grid-row: auto; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        position: fixed; left: -100%; top: 70px; flex-direction: column;
        background: var(--bg-dark); width: 100%; text-align: center;
        transition: 0.3s; padding: 2rem 0; border-bottom: 1px solid var(--border-glass);
    }
    .nav-links.active { left: 0; }
    
    .section { padding: 4rem 0; }
    .hero-content h1 { font-size: 2.5rem; }
    .lead-text { font-size: 1rem; }
    
    .timeline-item { gap: 1rem; flex-direction: column; align-items: flex-start; }
    .timeline-marker::after { display: none; }
    .floating-badge { padding: 0.5rem 0.8rem; font-size: 0.75rem; }
    .icon-circle { width: 30px; height: 30px; font-size: 1rem; }
    
    .contact-info-row { flex-direction: column; gap: 1rem; }
    .divider.hide-mobile { display: none; }
    
    .floating-geo { opacity: 0.3; } /* Less dominant on mobile */
    .geo-circle { width: 60px; height: 60px; }
    .geo-square { width: 50px; height: 50px; }
    .geo-triangle { border-left-width: 30px; border-right-width: 30px; border-bottom-width: 52px; }
}

@media (max-width: 480px) {
    .section-title { font-size: 2rem; }
    .hero-content h1 { font-size: 2rem; }
    .container { padding: 0 1.5rem; }
}
