
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }

:root{
    --bg:#080B14;
    --surface:rgba(255,255,255,.045);
    --border:rgba(255,255,255,.09);
    --text:#F1F5F9;
    --muted:#94A3B8;
    --purple:#8B5CF6;
    --blue:#3B82F6;
    --cyan:#22D3EE;
}

body{
    font-family:'Inter', sans-serif;
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
    position:relative;
}

h1,h2,h3,h4,.logo,.title{ font-family:'Space Grotesk', sans-serif; }

a{ text-decoration:none; color:inherit; }

section{
    width:90%;
    max-width:1180px;
    margin:auto;
    padding:120px 0;
    position:relative;
}

/* BACKGROUND GRADIENT GLOWS */
.bg-glow{
    position:fixed;
    border-radius:50%;
    filter:blur(140px);
    z-index:-1;
    animation:drift 18s ease-in-out infinite alternate;
}

.glow-one{ width:600px; height:600px; background:var(--purple); opacity:.22; top:-150px; left:-150px; }
.glow-two{ width:550px; height:550px; background:var(--blue); opacity:.18; bottom:-100px; right:-150px; animation-delay:3s; }
.glow-three{ width:400px; height:400px; background:var(--cyan); opacity:.12; top:45%; left:40%; animation-delay:6s; }

@keyframes drift{
    0%{ transform:translate(0,0) scale(1); }
    100%{ transform:translate(40px,-40px) scale(1.1); }
}

/* GLASSMORPHISM BASE */
.glass{
    background:var(--surface);
    border:1px solid var(--border);
    backdrop-filter:blur(24px);
    -webkit-backdrop-filter:blur(24px);
}

.card{ border-radius:24px; padding:38px; transition:.35s; }
.card:hover{ transform:translateY(-6px); border-color:rgba(139,92,246,.4); }

/* SCROLL REVEAL */
.reveal{ opacity:0; transform:translateY(30px); transition:opacity .8s ease, transform .8s ease; }
.reveal.visible{ opacity:1; transform:translateY(0); }

/* NAVBAR */
header{ position:fixed; width:100%; top:0; z-index:999; }

nav{
    width:90%;
    max-width:1180px;
    margin:20px auto;
    height:72px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 30px;
    background:rgba(8,11,20,.55);
    border:1px solid var(--border);
    border-radius:20px;
    backdrop-filter:blur(20px);
    transition:.3s;
}

nav.scrolled{ background:rgba(8,11,20,.85); box-shadow:0 10px 40px rgba(0,0,0,.35); }

.logo{ font-size:26px; font-weight:700; }
.logo span{ color:var(--purple); }

nav ul{ display:flex; gap:34px; list-style:none; }
nav ul a{ color:var(--muted); font-size:15px; font-weight:500; transition:.25s; }
nav ul a:hover{ color:var(--text); }

.resume-btn{
    background:linear-gradient(135deg,var(--purple),var(--blue));
    padding:12px 26px;
    border-radius:30px;
    font-weight:600;
    font-size:14px;
    transition:.3s;
}
.resume-btn:hover{ transform:translateY(-3px); box-shadow:0 15px 35px rgba(139,92,246,.35); }

/* HERO */
.hero{
    min-height:100vh;
    display:grid;
    grid-template-columns:1fr 440px;
    align-items:center;
    gap:70px;
    padding-top:160px;
}

.hello{ color:var(--cyan); font-size:18px; font-weight:600; margin-bottom:10px; }

.hero h1{ font-size:68px; font-weight:700; line-height:1.05; letter-spacing:-1.5px; }
.hero h1 span{
    background:linear-gradient(90deg,var(--purple),var(--cyan));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

.hero h2{ font-size:26px; color:var(--muted); font-weight:500; margin:16px 0 22px; }
.intro{ max-width:520px; color:var(--muted); font-size:16.5px; line-height:1.75; }

.buttons{ display:flex; gap:18px; margin-top:34px; }

.btn-primary, .btn-outline{
    padding:15px 30px;
    border-radius:30px;
    font-weight:600;
    font-size:15px;
    transition:.3s;
    display:inline-block;
}

.btn-primary{ background:linear-gradient(135deg,var(--purple),var(--blue)); color:white; }
.btn-primary:hover{ transform:translateY(-4px); box-shadow:0 18px 40px rgba(139,92,246,.35); }

.btn-outline{ background:rgba(255,255,255,.03); border:1px solid var(--border); color:var(--text); }
.btn-outline:hover{ border-color:var(--cyan); color:var(--cyan); }

.btn-primary.small, .btn-outline.small{ padding:10px 20px; font-size:13.5px; }

.tech{ display:flex; flex-wrap:wrap; gap:12px; margin-top:44px; }
.tech span{
    padding:9px 18px;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:30px;
    font-size:13.5px;
    color:var(--muted);
}

/* Hero image */
.image-box{ position:relative; display:flex; justify-content:center; }

.image-box img{
    width:340px;
    height:340px;
    object-fit:cover;
    border-radius:50%;
    border:4px solid rgba(255,255,255,.1);
    position:relative;
    z-index:2;
}

.glow-ring{
    position:absolute;
    width:380px;
    height:380px;
    background:conic-gradient(from 0deg, var(--purple), var(--cyan), var(--blue), var(--purple));
    border-radius:50%;
    filter:blur(30px);
    opacity:.55;
    animation:spin 8s linear infinite;
}

@keyframes spin{ to{ transform:rotate(360deg); } }

.floating-badge{
    position:absolute;
    background:rgba(8,11,20,.75);
    backdrop-filter:blur(16px);
    border:1px solid var(--border);
    padding:10px 18px;
    border-radius:16px;
    font-size:13.5px;
    font-weight:600;
    z-index:3;
    animation:float 3.5s ease-in-out infinite;
    box-shadow:0 15px 35px rgba(0,0,0,.3);
}

.badge-one{ top:10px; right:-20px; }
.badge-two{ bottom:60px; left:-40px; animation-delay:1s; }
.badge-three{ bottom:-10px; right:20px; animation-delay:2s; }

@keyframes float{ 50%{ transform:translateY(-14px); } }

/* SECTION HEADERS */
.eyebrow{
    color:var(--cyan);
    font-weight:600;
    font-size:14px;
    letter-spacing:1.5px;
    text-transform:uppercase;
    margin-bottom:12px;
}

.title{ font-size:42px; font-weight:700; margin-bottom:50px; max-width:600px; }

/* ABOUT */
.about-card p{ color:var(--muted); font-size:16.5px; line-height:1.8; margin-bottom:16px; }
.about-card p:last-child{ margin-bottom:0; }

/* SKILLS */
.skill-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.skill-card{ border-radius:22px; padding:32px 28px; }
.skill-icon{ font-size:32px; margin-bottom:16px; }
.skill-card h3{ font-size:19px; margin-bottom:16px; }

.skill-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.skill-tags span{
    padding:6px 14px;
    background:rgba(255,255,255,.05);
    border:1px solid var(--border);
    border-radius:20px;
    font-size:12.5px;
    color:var(--muted);
}

/* EXPERIENCE / EDUCATION TIMELINE */
.timeline{ position:relative; padding-left:36px; }
.timeline::before{
    content:"";
    position:absolute;
    left:6px; top:6px; bottom:6px;
    width:2px;
    background:linear-gradient(var(--purple),var(--cyan));
}

.timeline-item{ position:relative; margin-bottom:10px; }
.timeline-dot{
    position:absolute;
    left:-36px; top:38px;
    width:14px; height:14px;
    border-radius:50%;
    background:var(--cyan);
    box-shadow:0 0 0 6px rgba(34,211,238,.15);
}

.timeline-card{ border-radius:22px; }

.timeline-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:20px;
    gap:16px;
    flex-wrap:wrap;
}

.timeline-header h3{ font-size:22px; }
.timeline-header h4{ color:var(--muted); font-weight:500; font-size:15px; margin-top:6px; }

.timeline-badge{
    background:rgba(34,211,238,.12);
    color:var(--cyan);
    font-size:12px;
    font-weight:600;
    padding:6px 14px;
    border-radius:20px;
    white-space:nowrap;
}

.timeline-card ul{ list-style:none; display:flex; flex-direction:column; gap:12px; }
.timeline-card li{ color:var(--muted); font-size:15px; padding-left:22px; position:relative; }
.timeline-card li::before{ content:"▹"; position:absolute; left:0; color:var(--purple); }

/* Education detail line inside timeline cards */
.edu-detail{ color:var(--muted); font-size:14.5px; margin-top:4px; }

/* PROJECTS */
.project-container{ display:grid; grid-template-columns:repeat(2,1fr); gap:30px; }
.project-card{ border-radius:24px; padding:36px; }

.project-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:16px;
    gap:12px;
    flex-wrap:wrap;
}

.project-card h3{ font-size:22px; }

.project-tag-main{
    background:rgba(139,92,246,.15);
    color:var(--purple);
    font-size:12px;
    font-weight:600;
    padding:6px 14px;
    border-radius:20px;
    white-space:nowrap;
}

/* Project dates label */
.project-dates{ color:var(--purple); font-size:13px; font-weight:600; margin-bottom:10px; }

.project-card p{ color:var(--muted); font-size:15px; line-height:1.7; margin-bottom:18px; }

.features{ list-style:none; display:flex; flex-direction:column; gap:8px; margin-bottom:22px; }
.features li{ color:var(--muted); font-size:14px; padding-left:20px; position:relative; }
.features li::before{ content:"✓"; position:absolute; left:0; color:var(--cyan); }

.tags{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:26px; }
.tags span{
    padding:7px 15px;
    border-radius:20px;
    background:rgba(255,255,255,.04);
    border:1px solid var(--border);
    color:var(--muted);
    font-size:12.5px;
}

.project-actions{ display:flex; gap:14px; }

/* CONTACT */
.contact-box{ display:grid; grid-template-columns:1fr 1fr; gap:36px; }

form{ border-radius:24px; display:flex; flex-direction:column; gap:18px; }

input, textarea{
    background:rgba(255,255,255,.03);
    border:1px solid var(--border);
    padding:16px 18px;
    border-radius:14px;
    color:var(--text);
    font-family:'Inter', sans-serif;
    font-size:15px;
}
input:focus, textarea:focus{ outline:none; border-color:var(--cyan); }
textarea{ resize:none; }

button{
    padding:16px;
    border:none;
    border-radius:14px;
    background:linear-gradient(135deg,var(--purple),var(--blue));
    color:white;
    font-size:15.5px;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
}
button:hover{ transform:translateY(-4px); box-shadow:0 18px 40px rgba(139,92,246,.3); }

.contact-info{ border-radius:24px; }
.contact-info h3{ font-size:22px; margin-bottom:24px; }
.contact-line{ color:var(--muted); font-size:15px; margin-bottom:16px; }
.contact-line a:hover{ color:var(--cyan); }

.social-row{ display:flex; gap:14px; margin-top:26px; }
.social-icon{
    width:44px; height:44px;
    display:flex; align-items:center; justify-content:center;
    background:rgba(255,255,255,.05);
    border:1px solid var(--border);
    border-radius:50%;
    font-size:13px;
    font-weight:700;
    transition:.3s;
}
.social-icon:hover{ background:linear-gradient(135deg,var(--purple),var(--blue)); transform:translateY(-4px); }

/* FOOTER */
footer{ text-align:center; padding:40px; border-top:1px solid var(--border); color:var(--muted); font-size:14px; }

/* RESPONSIVE */
@media(max-width:900px){
    nav ul{ display:none; }
    .hero{ grid-template-columns:1fr; text-align:center; padding-top:140px; }
    .hero h1{ font-size:46px; }
    .intro{ margin:auto; }
    .buttons, .tech{ justify-content:center; }
    .image-box{ order:-1; margin-bottom:20px; }
    .skill-grid{ grid-template-columns:1fr 1fr; }
    .project-container{ grid-template-columns:1fr; }
    .contact-box{ grid-template-columns:1fr; }
    .timeline{ padding-left:26px; }
    .timeline-dot{ left:-26px; }
}

@media(max-width:600px){
    .skill-grid{ grid-template-columns:1fr; }
}
