:root {
    --bg: #0a0f1e;
    --card-bg: #131b2e;
    --vibrant-cyan: #22d3ee;
    --vibrant-blue: #3b82f6;
    --text-main: #f1f5f9;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --nav-height: 90px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg); 
    color: var(--text-main); 
    line-height: 1.6; 
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section-spacing { padding: 120px 0; }

/* Clickable Logo Branding */
.logo-link { text-decoration: none; color: inherit; display: inline-block; }
.navbar { 
    position: fixed; width: 100%; top: 0; 
    background: rgba(10, 15, 30, 0.9); backdrop-filter: blur(12px); 
    z-index: 1000; border-bottom: 1px solid var(--border);
    height: var(--nav-height); display: flex; align-items: center;
}
.nav-container { 
    display: flex; justify-content: space-between; align-items: center; 
    width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 40px; 
}
.logo { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.5px; white-space: nowrap; }
.logo-sep { color: var(--vibrant-cyan); opacity: 0.6; margin: 0 5px; }
.logo-title { font-weight: 400; color: var(--text-dim); font-size: 0.85rem; }

/* Nav Links */
.nav-links { display: flex; list-style: none; gap: 40px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-size: 0.85rem; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--vibrant-cyan); }
.btn-nav { background: var(--vibrant-blue); color: #fff !important; padding: 10px 22px; border-radius: 6px; }

/* Hamburger Menu & X Animation */
.menu-btn { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; z-index: 1100; padding: 5px; }
.menu-btn span { width: 28px; height: 3px; background-color: #fff; border-radius: 4px; transition: 0.3s; }

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

/* Hero */
.hero { padding: calc(var(--nav-height) + 100px) 0 100px; }
h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -2px; margin-bottom: 24px; }
.text-vibrant { background: linear-gradient(90deg, var(--vibrant-cyan), var(--vibrant-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: 1.25rem; color: var(--text-dim); max-width: 800px; margin-bottom: 48px; }
.hero-action-area { display: flex; flex-direction: column; gap: 24px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badge { font-size: 0.8rem; color: var(--vibrant-cyan); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }

/* Education Bars */
.section-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 56px; border-left: 6px solid var(--vibrant-cyan); padding-left: 20px; letter-spacing: -1px; }
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.bar-info { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 600; font-size: 0.85rem; }
.bar-bg { background: rgba(255,255,255,0.05); height: 10px; border-radius: 20px; overflow: hidden; }
.bar-fill { background: linear-gradient(90deg, var(--vibrant-cyan), var(--vibrant-blue)); height: 100%; border-radius: 20px; }

/* Timeline */
.timeline { border-left: 1px solid var(--border); padding-left: 40px; margin-left: 10px; }
.timeline-item { position: relative; margin-bottom: 60px; }
.timeline-item::before { content: ''; position: absolute; left: -51px; top: 6px; width: 20px; height: 20px; background: var(--bg); border: 3px solid var(--vibrant-cyan); border-radius: 50%; }
.date { color: var(--vibrant-cyan); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 8px; display: block; }
.link { color: var(--vibrant-cyan); text-decoration: none; font-weight: 700; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.project-card { 
    background: var(--card-bg); padding: 40px; border-radius: 24px; border: 1px solid var(--border); 
    display: flex; flex-direction: column; justify-content: space-between; transition: 0.3s ease;
}
.project-card:hover { transform: translateY(-8px); border-color: var(--vibrant-cyan); }
.status-tag { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; margin-bottom: 20px; }
.done { background: rgba(34, 211, 238, 0.1); color: var(--vibrant-cyan); }
.in-progress { background: rgba(59, 130, 246, 0.1); color: var(--vibrant-blue); }
.project-card h3 { font-size: 1.5rem; margin-bottom: 16px; color: #fff; }
.project-card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 30px; }

/* Project Buttons */
.btn-card, .btn-card-vibrant { text-decoration: none; font-weight: 700; font-size: 0.85rem; padding: 12px 20px; border-radius: 6px; text-align: center; transition: 0.3s; }
.btn-card { border: 1px solid var(--border); color: #fff; }
.btn-card:hover { background: var(--border); }
.btn-card-vibrant { background: linear-gradient(90deg, var(--vibrant-cyan), var(--vibrant-blue)); color: #fff; }

/* Contact Section */
.contact-sub { font-size: 1.1rem; color: var(--text-dim); margin-top: -30px; margin-bottom: 60px; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.label { display: block; font-size: 0.7rem; text-transform: uppercase; color: var(--vibrant-cyan); font-weight: 800; margin-bottom: 8px; }
.value { font-size: 1rem; color: #fff; text-decoration: none; font-weight: 600; transition: 0.3s; }
.value:hover { color: var(--vibrant-cyan); }

/* Scroll To Top Button Styles */
#scrollToTop {
    position: fixed; bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    background: linear-gradient(90deg, var(--vibrant-cyan), var(--vibrant-blue));
    color: #fff; border: none; border-radius: 50%;
    font-size: 20px; font-weight: bold; cursor: pointer;
    display: none; transition: 0.3s; z-index: 2000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
#scrollToTop:hover { transform: translateY(-5px); box-shadow: 0 15px 25px rgba(34, 211, 238, 0.4); }

/* General Buttons */
.btn-primary { background: linear-gradient(90deg, var(--vibrant-cyan), var(--vibrant-blue)); color: #fff; padding: 14px 30px; text-decoration: none; border-radius: 8px; font-weight: 700; }
.btn-secondary { border: 1px solid var(--border); color: #fff; padding: 14px 30px; text-decoration: none; border-radius: 8px; font-weight: 700; }

.footer { border-top: 1px solid var(--border); padding: 60px 0; text-align: center; color: var(--text-dim); font-size: 0.85rem; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .edu-grid, .projects-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .nav-container { padding: 0 24px; }
    .menu-btn { display: flex; }
    .nav-links { 
        display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; width: 100%; 
        background: var(--bg); padding: 40px; border-bottom: 1px solid var(--border); gap: 25px;
    }
    .nav-links.active { display: flex; }
    .edu-grid, .projects-grid, .contact-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2.8rem; }
    .section-spacing { padding: 80px 0; }
}
