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

:root {
  --bg-main: #fcfcfc;
  --bg-card: rgba(255, 255, 255, 0.4); 
  --text-primary: #0f172a;
  --text-secondary: #475569; 
  --accent-color: #8b5cf6; /* Vibrant purple */
  --accent-gradient: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  
  --font-body: 'Inter', -apple-system, sans-serif;
  --transition-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-smooth: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

* { margin:0; padding:0; box-sizing:border-box; scroll-behavior:smooth; }
body { 
    background-color: var(--bg-main); 
    color:var(--text-primary); 
    font-family:var(--font-body); 
    line-height:1.5; 
    overflow-x:hidden; 
    -webkit-font-smoothing: antialiased; 
}

/* ==================
   Mesh Background
================== */
.mesh-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #fdfdfd;
}
.mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.7; /* Increased opacity for more color */
    animation: float 20s infinite alternate ease-in-out;
}
/* More vibrant, saturated colors */
.orb-1 { width: 600px; height: 600px; background: rgba(236, 72, 153, 0.4); top: -100px; left: -100px; } /* Pink */
.orb-2 { width: 500px; height: 500px; background: rgba(139, 92, 246, 0.4); bottom: -50px; right: -50px; animation-delay: -5s; } /* Purple */
.orb-3 { width: 650px; height: 650px; background: rgba(6, 182, 212, 0.3); top: 30%; left: 30%; animation-duration: 25s; } /* Cyan */
/* Adding an extra orb for more color blending */
.mesh-bg::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: rgba(249, 115, 22, 0.3); /* Orange */
    border-radius: 50%;
    filter: blur(90px);
    top: 60%; left: 10%;
    animation: float 18s infinite alternate-reverse ease-in-out;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.1); }
}

/* ==================
   Custom Cursor
================== */
.cursor-dot {
    width: 6px; height: 6px; background-color: var(--text-primary);
}
.cursor-outline {
    width: 40px; height: 40px; border: 1px solid rgba(0,0,0,0.2);
}
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%; z-index: 9999; pointer-events: none;
}
.cursor-glow {
    position: fixed; top: 0; left: 0;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 0; pointer-events: none;
    transition: width 0.3s, height 0.3s, background 0.3s;
}

/* Typography & Base */
h1,h2,h3,h4 { font-weight:700; letter-spacing:-0.03em; }
p { color:var(--text-secondary); margin-bottom:1rem; font-size: 1.05rem; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }
.container { max-width:1100px; margin:0 auto; padding:0 2rem; position: relative; z-index: 1;}
.section { padding:140px 0; }
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn { 
  display:inline-block; padding:0.9rem 2rem; border-radius:40px; font-weight:600; 
  cursor:pointer; border:none; transition:var(--transition-fast);
  font-size:0.95rem; letter-spacing:-0.01em; backdrop-filter: blur(10px);
}
.btn-primary { background:var(--accent-gradient); color:#fff; box-shadow: 0 10px 20px rgba(236, 72, 153, 0.2); }
.btn-primary:hover { box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3); transform: translateY(-2px); }
.btn-primary:active { transform:scale(0.96); }
.btn-secondary { background:rgba(255,255,255,0.8); border: var(--glass-border); color:var(--text-primary); }
.btn-secondary:active { transform:scale(0.96); }
.btn.sm { padding:0.6rem 1.4rem; font-size:0.85rem; }

/* Loader */
#loader { position:fixed; inset:0; background:var(--bg-main); z-index:9999; display:flex; justify-content:center; align-items:center; transition:opacity 0.6s; }
.spinner { width:40px; height:40px; border:2px solid rgba(0,0,0,0.05); border-radius:50%; border-top-color:var(--text-primary); animation:spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

/* Progress Bar */
.scroll-progress-container { position:fixed; top:0; left:0; width:100%; height:3px; z-index:1000; }
.scroll-progress-bar { height:100%; width:0%; background:var(--text-primary); }

/* Navigation */
header { position:fixed; width:100%; top:0; z-index:100; transition:var(--transition-fast); padding:1.2rem 0; background:transparent; }
header.scrolled { padding:1rem 0; background:rgba(255,255,255,0.7); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px); border-bottom:var(--glass-border); }
.navbar { display:flex; justify-content:space-between; align-items:center; }
.logo { font-size:1.4rem; font-weight:800; letter-spacing:-0.04em; }
.nav-links { display:flex; gap:2.5rem; align-items:center; }
.nav-links li a:not(.btn) { font-size:0.9rem; font-weight:500; color:var(--text-secondary); transition:color 0.2s; }
.nav-links li a:not(.btn):hover { color:var(--text-primary); }
.hamburger { display:none; font-size:1.2rem; cursor:pointer; }

/* ==================
   Floating Tech Icons
================== */
.floating-icons-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden; pointer-events: none; z-index: 2;
}
.floating-icon {
    position: absolute;
    font-size: 2.5rem;
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px) saturate(150%); -webkit-backdrop-filter: blur(8px) saturate(150%);
    border: var(--glass-border);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
    pointer-events: auto;
    will-change: transform;
}
.floating-icon:nth-child(1) { top: 15%; left: 12%; color: #ec4899; }
.floating-icon:nth-child(2) { top: 25%; right: 15%; color: #8b5cf6; }
.floating-icon:nth-child(3) { top: 60%; left: 15%; color: #06b6d4; }
.floating-icon:nth-child(4) { top: 70%; right: 12%; color: #f97316; }
.floating-icon:nth-child(5) { top: 80%; left: 50%; color: #3b82f6; }

/* ==================
   Hero Section
================== */
.hero { min-height:100vh; display:flex; align-items:center; text-align:center; padding-top:80px; position: relative; }
.hero-content { display:flex; flex-direction:column; align-items:center; }
.hero-badge {
    background: rgba(0,0,0,0.04); border: var(--glass-border);
    padding: 0.5rem 1.2rem; border-radius: 30px; font-size: 0.85rem; font-weight: 500;
    margin-bottom: 2rem; color: var(--text-secondary);
}
.name { font-size:clamp(4rem, 10vw, 7.5rem); margin-bottom:0.2rem; letter-spacing:-0.05em; line-height: 1.1; }
.title { font-size:clamp(1.5rem, 4vw, 2.5rem); color:var(--text-secondary); margin-bottom:2rem; letter-spacing:-0.02em; }
.short-intro { font-size:1.2rem; max-width:650px; margin-bottom:3rem; line-height:1.7; font-weight: 500; }
.hero-cta { display:flex; gap:1.2rem; margin-bottom:4rem; }
.social-links-hero { display:flex; gap:1.8rem; }
.social-links-hero a { font-size:1.5rem; color:var(--accent-color); transition: transform 0.3s; }
.social-links-hero a:hover { color: #ec4899; transform: translateY(-3px) scale(1.1); }

/* Section Title */
.section-title { margin-bottom:5rem; text-align:center; }
.section-title h2 { font-size:3.5rem; letter-spacing:-0.04em; margin-bottom:0.5rem; }

/* ==================
   Bento Box Layout 
================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: var(--glass-border);
    border-radius: 32px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    transition: box-shadow var(--transition-fast);
}
.bento-card:hover {
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
}
/* Subdued inner glow */
.bento-card::before {
    content:''; position: absolute; top:0; left:0; right:0; height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, transparent 40%);
    border-radius: 32px; pointer-events: none; z-index: 0;
}
.bento-content { position: relative; z-index: 1; display:flex; flex-direction:column; height: 100%; justify-content: space-between; }
.center-content { justify-content: center; align-items: center; text-align: center; }

/* Grid Splicing */
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-small { grid-column: span 1; grid-row: span 1; }
.bento-medium-v { grid-column: span 2; grid-row: span 2; }
.bento-medium-h { grid-column: span 4; grid-row: span 1; }

.bento-icon { font-size: 3rem; margin-bottom: 1.5rem; color: var(--text-primary); opacity: 0.8; }
.bento-large h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--text-primary); }
.bento-footer { font-size: 0.85rem; color: var(--text-secondary); margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(139, 92, 246, 0.2); }

.bento-stat { font-size: 3.5rem; font-weight: 700; letter-spacing: -0.05em; line-height: 1; margin-bottom: 0.5rem; background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bento-small p { margin:0; font-size: 0.95rem; font-weight: 600; color: var(--text-secondary); }

.bento-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1rem;}
.bento-list li span { font-size: 0.95rem; font-weight: 600; display: block; margin-bottom: 0.4rem; }
.pill-bar { height: 8px; background: rgba(139, 92, 246, 0.1); border-radius: 10px; overflow: hidden; }
.pill-fill { height: 100%; width: 0; background: var(--accent-gradient); border-radius: 10px; transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1); }

.bento-tools-grid { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: center; align-items: center; margin-top: 1rem; }
.bento-tools-grid i { font-size: 3rem; color: var(--accent-color); transition: all var(--transition-fast); opacity: 0.7; }
.bento-tools-grid i:hover { color: #ec4899; opacity: 1; transform: scale(1.15); }

/* ==================
   Journey Section
================== */
.dual-column-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
}
.col-title { font-size: 1.6rem; margin-bottom: 2.5rem; display: flex; align-items: center; gap: 10px; }
.col-title i { color: var(--text-secondary); }

.journey-list { display: flex; flex-direction: column; gap: 1.5rem; }
.journey-card {
    background: var(--bg-card); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: var(--glass-border); padding: 2rem; border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.journey-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.15);
}
.j-dates { font-size: 0.85rem; font-weight: 600; color: var(--accent-color); margin-bottom: 0.5rem; }
.journey-card h4 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.j-company { font-size: 0.95rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 1rem; }
.journey-card p { margin: 0; font-size: 0.95rem; line-height: 1.6; }

.highlight-card { background: rgba(0,0,0,0.03); border: none; }
.highlight-card h4 { display: flex; align-items: center; gap: 8px; }

/* ==================
   Contact Section
================== */
.center-text { text-align: center; }
.contact-bento { max-width: 800px; margin: 0 auto; padding: 4rem 2rem; }
.contact-bento h2 { font-size: 3rem; margin-bottom: 1rem; }
.contact-subtitle { max-width: 500px; margin: 0 auto 3rem; }
.contact-methods { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.c-pill {
    background: rgba(255,255,255,0.6);
    border: var(--glass-border);
    padding: 1rem 1.8rem; border-radius: 30px;
    font-weight: 600; display: flex; align-items: center; gap: 10px;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.c-pill i { color: var(--accent-color); }
.c-pill:hover { background: var(--accent-gradient); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(236, 72, 153, 0.2); }
.c-pill:hover i { color: #fff; }

/* Footer */
footer { padding:2rem 0; border-top:1px solid rgba(0,0,0,0.05); }
.footer-content { display:flex; justify-content:space-between; align-items:center; }
.footer-bottom { font-size:0.9rem; color:var(--text-secondary); }

/* ==================
   Animations
================== */
/* Blur Reveal */
.reveal-blur {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    filter: blur(15px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-blur.active { opacity: 1; transform: translate(0) scale(1); filter: blur(0); }

.reveal-fade { opacity: 0; transform: translateY(20px); transition: all 1s ease; }
.reveal-fade.active { opacity: 1; transform: translate(0); }

.reveal-up { opacity:0; transform:translateY(40px); transition:all 1s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-up.active { opacity:1; transform:translate(0); }

.delay-1 { transition-delay:0.1s; } .delay-2 { transition-delay:0.2s; }
.delay-3 { transition-delay:0.3s; } .delay-4 { transition-delay:0.4s; }
.delay-5 { transition-delay:0.5s; }

/* Responsive */
@media(max-width:992px){ 
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-large { grid-column: span 2; }
  .bento-medium-v { grid-column: span 2; }
  .bento-medium-h { grid-column: span 2; }
  .dual-column-grid { grid-template-columns: 1fr; gap: 3rem; }
  .name { font-size:3.5rem; }
  .cursor-dot, .cursor-outline, .cursor-glow { display: none; }
}
@media(max-width:768px){
  .hamburger { display:block; }
  .nav-links { position:fixed; right:-100%; top:70px; flex-direction:column; background:rgba(255,255,255,0.95); backdrop-filter:blur(20px); width:100%; text-align:center; transition:0.3s; padding:2rem 0; box-shadow:0 10px 30px rgba(0,0,0,0.05); border-bottom:1px solid rgba(0,0,0,0.05); }
  .nav-links.active { right:0; }
  .nav-links li a:not(.btn) { font-size:1.1rem; padding: 10px 0;}
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-small, .bento-medium-v, .bento-medium-h { grid-column: span 1; }
  .section { padding:80px 0; }
  .footer-content { flex-direction:column; gap:1rem; text-align:center; }
  .hero-cta { flex-direction:column; width:100%; }
  .btn { width:100%; text-align:center; }
}

/* ==================
   Interactive Spiders
================== */
.spiders-container {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 9998;
    overflow: hidden;
}

.spider {
    position: absolute;
    width: 24px; height: 24px;
    pointer-events: none;
    display: flex; justify-content: center; align-items: center;
    transform-origin: center center;
    will-change: transform;
    opacity: 0; /* Fade in smoothly */
    transition: opacity 1s ease-in-out;
}

.spider.visible {
    opacity: 0.9;
}

/* Base Body (Black bulb) */
.spider-body {
    width: 10px; height: 14px;
    background: #000;
    border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
}

/* Spider Head */
.spider-head {
    position: absolute;
    width: 6px; height: 5px;
    background: #000;
    border-radius: 50%;
    top: -4px; left: 2px;
}

/* Legs Container */
.spider-legs-left, .spider-legs-right {
    position: absolute;
    top: 2px;
    width: 20px;
    height: 10px;
}
.spider-legs-left { left: -14px; }
.spider-legs-right { right: -14px; }

/* Individual Legs using borders for bent joints */
.spider-leg {
    position: absolute;
    width: 14px; height: 10px;
    border-top: 2px solid #000;
    border-radius: 50% 50% 0 0;
    transform-origin: center top;
}

.spider-legs-left .spider-leg { border-left: 2px solid #000; }
.spider-legs-right .spider-leg { border-right: 2px solid #000; }

/* 4 Legs per side */
.spider-leg:nth-child(1) { top: -2px; transform: rotate(-20deg); }
.spider-leg:nth-child(2) { top: 1px; transform: rotate(0deg) scaleX(1.2); }
.spider-leg:nth-child(3) { top: 4px; transform: rotate(20deg); }
.spider-leg:nth-child(4) { top: 6px; transform: rotate(50deg) scaleY(1.2); }

/* Right side mirrors the left mechanically */
.spider-legs-right .spider-leg:nth-child(1) { top: -2px; transform: rotate(20deg); }
.spider-legs-right .spider-leg:nth-child(2) { top: 1px; transform: rotate(0deg) scaleX(1.2); }
.spider-legs-right .spider-leg:nth-child(3) { top: 4px; transform: rotate(-20deg); }
.spider-legs-right .spider-leg:nth-child(4) { top: 6px; transform: rotate(-50deg) scaleY(1.2); }


/* Scurrying Animation applied when moving */
.spider.scurrying .spider-legs-left .spider-leg:nth-child(odd) {
    animation: crawlLeftOdd 0.1s infinite alternate linear;
}
.spider.scurrying .spider-legs-left .spider-leg:nth-child(even) {
    animation: crawlLeftEven 0.1s infinite alternate linear;
}

.spider.scurrying .spider-legs-right .spider-leg:nth-child(odd) {
    animation: crawlRightOdd 0.1s infinite alternate linear;
}
.spider.scurrying .spider-legs-right .spider-leg:nth-child(even) {
    animation: crawlRightEven 0.1s infinite alternate linear;
}

@keyframes crawlLeftOdd {
    0% { transform: scaleY(0.9) rotate(-10deg); }
    100% { transform: scaleY(1.1) rotate(10deg); }
}
@keyframes crawlLeftEven {
    0% { transform: scaleY(1.1) rotate(10deg); }
    100% { transform: scaleY(0.9) rotate(-10deg); }
}
@keyframes crawlRightOdd {
    0% { transform: scaleY(0.9) rotate(10deg); }
    100% { transform: scaleY(1.1) rotate(-10deg); }
}
@keyframes crawlRightEven {
    0% { transform: scaleY(1.1) rotate(-10deg); }
    100% { transform: scaleY(0.9) rotate(10deg); }
}

