:root {
    --bg-color: #0b0f19;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary: #ec4899;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(30, 41, 59, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== Background Shapes ===== */
.background-shapes { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, var(--bg-color) 70%); }
.shape { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.3; animation: float 25s infinite ease-in-out alternate; }
.shape-1 { top: -20%; left: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, var(--primary), transparent 70%); }
.shape-2 { bottom: -20%; right: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, var(--secondary), transparent 70%); animation-delay: -5s; }
@keyframes float { to { transform: translate(100px, 50px) scale(1.1); } }

/* ===== Glass Card styling (Refined) ===== */
.glass {
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 24px -1px rgba(0,0,0,0.2);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 5%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(16px);
}
.logo { font-size: 1.4rem; font-weight: 800; letter-spacing: 1px; color: #fff; }
.logo-dot { color: var(--primary); }
.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-link {
    color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem;
    padding: 0.5rem 0; position: relative; transition: color 0.3s;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
    background: var(--primary); transition: all 0.3s ease; transform: translateX(-50%);
    border-radius: 2px; box-shadow: 0 0 8px var(--primary-glow);
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after { width: 100%; }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 6px;
    background: none; border: none; cursor: pointer; padding: 4px; z-index: 200;
}
.hamburger span {
    width: 28px; height: 2px; background: #fff; border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -5px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed; inset: 0; z-index: 150;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
    opacity: 0; pointer-events: none; transition: opacity 0.4s;
    background: rgba(11, 15, 25, 0.95);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-link {
    color: var(--text-muted); text-decoration: none; font-size: 2rem; font-weight: 600;
    transition: color 0.3s;
}
.mobile-link.active, .mobile-link:hover { color: #fff; }

/* ===== Pages ===== */
.page {
    display: none; padding-top: 90px; min-height: 100vh;
    opacity: 0; transform: translateY(15px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.page.active { display: block; opacity: 1; transform: translateY(0); }

/* ===== Hero ===== */
.hero {
    min-height: calc(100vh - 90px);
    display: flex; align-items: center; justify-content: center;
    padding: 4rem 5%;
}
.hero-inner { max-width: 800px; text-align: center; }
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0.6rem 1.2rem; border-radius: 100px;
    background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.2);
    color: #a5b4fc; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.5px;
    margin-bottom: 2rem; box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}
h1 { font-size: 4rem; font-weight: 800; line-height: 1.15; margin-bottom: 1.5rem; letter-spacing: -1px; }
.highlight { 
    background: linear-gradient(135deg, #a5b4fc, #f9a8d4); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    display: inline-block;
}
.hero-desc { color: var(--text-muted); font-size: 1.25rem; font-weight: 300; margin-bottom: 3.5rem; max-width: 600px; margin-inline: auto; }

/* Stats */
.hero-stats { display: flex; justify-content: center; gap: 1.5rem; }
.stat { 
    padding: 1.2rem 2.5rem; border-radius: 24px; text-align: center; 
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid rgba(255,255,255,0.05);
}
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 0.2rem; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; font-weight: 500; }

/* ===== Timeline ===== */
.timeline-section { padding: 5rem 5% 8rem; max-width: 900px; margin: 0 auto; }
.section-title { font-size: 2.5rem; font-weight: 800; text-align: center; margin-bottom: 0.5rem; letter-spacing: -0.5px; }
.title-dot { color: var(--primary); }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 1.1rem; margin-bottom: 5rem; font-weight: 300; }

.timeline { position: relative; padding-left: 50px; }
.timeline-line {
    position: absolute; left: 24px; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary), var(--secondary), transparent);
    opacity: 0.5;
}
.timeline-item {
    position: relative; margin-bottom: 4rem;
    opacity: 0; transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.timeline-item.visible { opacity: 1; transform: translateY(0); }

.timeline-dot {
    position: absolute; left: -31px; top: 1.5rem;
    width: 12px; height: 12px; border-radius: 50%;
    background: #fff; border: 2px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transition: transform 0.3s ease;
}
.timeline-item:hover .timeline-dot { transform: scale(1.3); background: var(--primary); }

.timeline-card {
    padding: 2.5rem; border-radius: 28px;
    background: linear-gradient(145deg, rgba(30,41,59,0.5) 0%, rgba(15,23,42,0.5) 100%);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; overflow: hidden;
}
/* Glowing edge effect on hover */
.timeline-card::before {
    content: ''; position: absolute; inset: 0; border-radius: 28px;
    padding: 2px; background: linear-gradient(135deg, var(--primary), transparent, var(--secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 0.4s ease;
}

.timeline-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6); background: rgba(30,41,59,0.7); }
.timeline-card:hover::before { opacity: 1; }

.timeline-date { display: inline-block; font-size: 0.85rem; color: #a5b4fc; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1rem; }
.timeline-card h3 { font-size: 1.4rem; font-weight: 600; color: #fff; margin-bottom: 0.8rem; letter-spacing: -0.5px; }
.timeline-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; font-weight: 300; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.tag {
    padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.8rem;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0; font-weight: 400; transition: background 0.3s;
}
.timeline-card:hover .tag { background: rgba(255,255,255,0.08); }

.coming-soon-card { opacity: 0.6; border: 1px dashed rgba(255,255,255,0.15); }
.coming-soon-card:hover { transform: none; box-shadow: none; }
.coming-soon-card::before { display: none; }

/* ===== Projects Page ===== */
.projects-hero { padding: 4rem 5% 0; text-align: center; }
.projects-grid {
    max-width: 800px; margin: 0 auto; padding: 2rem 5% 8rem;
    display: flex; flex-direction: column; gap: 1.5rem;
}
.project-card {
    display: flex; align-items: center; gap: 1.5rem;
    padding: 2rem; border-radius: 28px;
    background: linear-gradient(145deg, rgba(30,41,59,0.4) 0%, rgba(15,23,42,0.4) 100%);
    border: 1px solid rgba(255,255,255,0.05);
    text-decoration: none; color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; overflow: hidden;
    opacity: 0; transform: translateY(20px);
}
.project-card.visible { opacity: 1; transform: translateY(0); }

/* Hover glow for project cards */
.project-card::before {
    content: ''; position: absolute; inset: 0; border-radius: 28px;
    padding: 2px; background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent, rgba(255,255,255,0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    transition: all 0.4s ease;
}

.project-card:hover { 
    transform: translateY(-5px) scale(1.01); 
    background: rgba(30,41,59,0.6);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5); 
}
.project-card:hover::before {
    background: linear-gradient(135deg, var(--primary), transparent, var(--secondary));
}
.project-card:active { transform: scale(0.98); transition: transform 0.1s; }

.project-icon {
    font-size: 2.5rem; width: 64px; height: 64px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.03); border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .project-icon { transform: scale(1.1) rotate(-5deg); background: rgba(255,255,255,0.08); }

.project-info { flex: 1; }
.project-info h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.3rem; color: #fff; }
.project-info p { font-size: 0.95rem; color: var(--text-muted); font-weight: 300; }

.project-arrow { 
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem;
    transition: all 0.3s ease;
}
.project-card:hover .project-arrow { background: var(--primary); transform: translateX(5px); box-shadow: 0 0 15px var(--primary-glow); }

.project-card.disabled { opacity: 0.5; pointer-events: none; }
.project-card.disabled::before { display: none; }

/* ===== Footer ===== */
.footer { text-align: center; padding: 2.5rem; border-top: 1px solid rgba(255,255,255,0.05); color: rgba(255,255,255,0.3); font-size: 0.85rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .hero-stats { flex-direction: column; align-items: stretch; gap: 1rem; }
    .stat { width: 100%; }
    .timeline { padding-left: 30px; }
    .timeline-line { left: 14px; }
    .timeline-dot { left: -22px; }
    .timeline-card { padding: 1.8rem; }
    .project-card { flex-direction: column; text-align: center; padding: 2rem 1.5rem; gap: 1rem; }
    .project-arrow { display: none; }
}
