*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --teal: #1D9E75;
    --teal-light: #E1F5EE;
    --teal-mid: #5DCAA5;
    --bg: #0a0f0e;
    --bg2: #111815;
    --bg3: #162019;
    --text: #eef5f2;
    --text-muted: #8aaa9e;
    --border: rgba(29,158,117,0.15);
    --border-hover: rgba(29,158,117,0.35);
    --card: rgba(22,32,25,0.8);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* GRAIN OVERLAY */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 2px; }

/* NAV */
nav {
    position: fixed;
    top: 0; width: 100%;
    padding: 1.2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(10,15,14,0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
}
.logo span { color: var(--teal); }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--teal);
    transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--text); transition: all 0.3s; }

/* HERO */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 4rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29,158,117,0.12) 0%, transparent 70%);
    top: -100px; right: -100px;
    pointer-events: none;
}
.hero-glow2 {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29,158,117,0.07) 0%, transparent 70%);
    bottom: 0; left: 10%;
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(29,158,117,0.1);
    border: 1px solid var(--border-hover);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    color: var(--teal-mid);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--teal);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.hero-role {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 400;
    color: var(--teal-mid);
    margin-bottom: 1.5rem;
}
.typed-word { border-right: 2px solid var(--teal); padding-right: 4px; }

.hero-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 520px;
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.8;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.8rem;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
}
.btn-primary {
    background: var(--teal);
    color: #fff;
}
.btn-primary:hover { background: var(--teal-mid); transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal-mid); transform: translateY(-2px); }

.hero-socials {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}
.social-link {
    width: 40px; height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.social-link:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

/* AVATAR */
.hero-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.avatar-ring {
    width: 280px; height: 280px;
    border-radius: 50%;
    border: 1.5px solid var(--border-hover);
    padding: 6px;
    position: relative;
}
.avatar-ring::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px dashed rgba(29,158,117,0.2);
    animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.avatar-inner {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg3) 0%, #0a1f17 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.avatar-svg { width: 200px; height: 220px; }

.avatar-chip {
    position: absolute;
    background: var(--card);
    border: 1px solid var(--border-hover);
    border-radius: 10px;
    padding: 0.5rem 0.9rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.chip1 { bottom: 20px; left: -40px; }
.chip2 { top: 20px; right: -40px; }

/* SECTIONS */
section { padding: 6rem 4rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-line {
    width: 40px; height: 2px;
    background: var(--teal);
    border-radius: 2px;
    margin-bottom: 3rem;
}

/* ABOUT */
#about { background: var(--bg2); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-weight: 300;
    line-height: 1.85;
}
.about-text strong { color: var(--text); font-weight: 500; }

.skills-heading {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 500;
    margin: 2rem 0 1rem;
}
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.skill-tag {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 400;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.2s;
}
.skill-tag:hover { border-color: var(--teal); color: var(--teal-mid); }

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.stat-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--border-hover); }
.stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--teal-mid);
    line-height: 1;
    margin-bottom: 0.3rem;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

.edu-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-left: 3px solid var(--teal);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem;
    margin-top: 1.2rem;
}
.edu-school { font-weight: 500; font-size: 0.95rem; margin-bottom: 0.3rem; }
.edu-degree { font-size: 0.85rem; color: var(--text-muted); }
.edu-year {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: var(--teal);
    border: 1px solid var(--border-hover);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
}

/* PROJECTS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.8rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--teal-mid));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}
.project-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.project-card:hover::before { transform: scaleX(1); }

.project-icon {
    width: 44px; height: 44px;
    background: rgba(29,158,117,0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}
.project-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.project-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.7;
}
.tech-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tech-badge {
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    background: rgba(29,158,117,0.1);
    color: var(--teal-mid);
    letter-spacing: 0.02em;
}

/* CONTACT */
#contact { background: var(--bg2); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.contact-info h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; font-weight: 300; }
.contact-items { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.contact-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(29,158,117,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.form-group input,
.form-group textarea {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    outline: none;
    resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--teal); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-feedback { font-size: 0.85rem; color: var(--teal-mid); min-height: 1.2rem; }

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem 4rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}
footer span { color: var(--teal); }

/* MOBILE NAV */
@media (max-width: 900px) {
    nav { padding: 1.2rem 2rem; }
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        height: 100vh; width: 260px;
        background: var(--bg2);
        flex-direction: column;
        gap: 0;
        padding: 5rem 2rem;
        border-left: 1px solid var(--border);
        transition: right 0.3s;
        z-index: 99;
    }
    .nav-links.open { right: 0; }
    .nav-links li { border-bottom: 1px solid var(--border); }
    .nav-links a { display: block; padding: 1rem 0; font-size: 1rem; }
    section { padding: 4rem 2rem; }
    #hero { padding: 7rem 2rem 3rem; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin: 0 auto 2rem; }
    .hero-actions { justify-content: center; }
    .hero-socials { justify-content: center; }
    
    .hero-avatar-wrap { 
        display: flex; 
        justify-content: center;
        margin: 2rem auto 1rem;
    }
    
    .avatar-ring {
        width: 200px;
        height: 200px;
    }
    
    .avatar-chip {
        display: none; /* Hide floating chips on mobile for cleaner look */
    }
    
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

    /* PROFILE PHOTO STYLES  */
.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg3) 0%, #0a1f17 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}


.avatar-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 40%, rgba(29,158,117,0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* PROJECT LINK BUTTONS */
.project-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
}

.github-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text);
}

.github-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--teal);
    transform: translateY(-2px);
}

.live-btn {
    background: var(--teal);
    border: 1px solid var(--teal);
    color: #fff;
}

.live-btn:hover {
    background: var(--teal-mid);
    transform: translateY(-2px);
}

/* Make project card hover consistent */
.project-card {
    display: flex;
    flex-direction: column;
}

.project-links {
    margin-top: auto;
}