:root {
    --bg: #0b0f12;
    --panel: #0f1417;
    --muted: #9aa3b2;
    --accent: #2ad0ff;
    /* cyan/blue highlight */
    --accent-2: #3b82f6;
    /* gradient blue */
    --text: #d9e6ef;
    --card: #0f1720;
    --glass: rgba(255, 255, 255, 0.02);
    --shadow: 0 12px 30px rgba(2, 6, 23, 0.6);
    --glass-border: rgba(50, 140, 160, 0.08);
    font-family: 'Poppins', system-ui, -apple-system, Arial;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    margin: 0;
    background: linear-gradient(135deg, #081018 0%, #0b0f12 60%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

/* NAV */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.18));
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02)
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 18px 28px;
    gap: 12px
}

.brand {
    font-weight: 800;
    color: var(--accent-2);
    font-size: 20px;
    letter-spacing: 0.6px
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 26px;
    margin: 0;
    padding: 0;
    margin-left: auto
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    opacity: .95;
    padding: 6px 8px;
    transition: color .2s, transform .18s
}

.nav-links a:hover {
    color: var(--accent);
    transform: translateY(-2px)
}

/* THEME TOGGLE */
#theme-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 70;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(90deg, #07202a, #04202b);
    color: var(--accent);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6)
}

/* HERO */
.hero {
    position: relative;
    height: 86vh;
    min-height: 610px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px;
    padding-bottom: 40px;
    overflow: hidden
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 30, 40, 0.6), rgba(5, 8, 12, 0.85));
    mix-blend-mode: multiply;
    z-index: 0
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    padding: 40px
}

.hero-left {
    flex: 1;
    padding-left: 40px
}

.hero-right {
    width: 320px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center
}

/* big gradient name */
.hero-title {
    font-size: 72px;
    line-height: 1;
    margin: 0 0 12px;
    font-weight: 800;
    color: #fff
}

.hero-name {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-left: 8px
}

.hero-sub {
    color: var(--muted);
    font-size: 20px;
    margin-bottom: 16px
}

.hero-desc {
    color: var(--muted);
    max-width: 760px;
    line-height: 1.7;
    font-size: 16px;
    margin-bottom: 22px
}

/* Avatar bigger and stylish */
.hero-avatar {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff20;
    box-shadow: 0 0 25px rgba(0, 162, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(0, 162, 255, 0.6);
}

/* CTA Buttons */
.hero-ctas {
    display: flex;
    gap: 16px;
    margin-top: 6px
}

.download-cv-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    margin-left: 40px;
    align-items: center;
    background: #6C63FF; /* Same purple as your theme */
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s ease;
}

.download-cv-btn:hover {
    background: #5548e5;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(108, 99, 255, 0.3);
}


.btn {
    padding: 14px 26px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #06101a;
    box-shadow: 0 10px 30px rgba(43, 200, 255, 0.08)
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(58, 130, 246, 0.14);
    color: var(--text)
}

/* down arrow */
.down-arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 18px;
    color: var(--accent);
    font-size: 32px;
    text-decoration: none;
    z-index: 5;
    animation: bounce 2s infinite
}

@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, 0)
    }

    50% {
        transform: translate(-50%, 8px)
    }
}

/* SECTION TITLES */
.section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto
}

.section-title {
    font-size: 44px;
    text-align: center;
    margin: 0 0 26px;
    font-weight: 800
}

.accent {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

/* ABOUT card */
.about-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.015));
    border-radius: 14px;
    padding: 34px;
    border: 1px solid rgba(50, 140, 160, 0.05);
    box-shadow: var(--shadow);
    max-width: 980px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.8;
    font-size: 16px
}

/* SKILLS grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 18px
}

.skill-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.02));
    padding: 22px;
    border-radius: 12px;
    border: 1px solid rgba(50, 140, 160, 0.05);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45)
}

.skill-card h3 {
    color: var(--accent);
    margin: 0 0 10px;
    font-weight: 700
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.tags span {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 18px;
    color: var(--text);
    font-size: 14px
}

/* PROJECTS large cards */
.projects-large {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 22px
}

.project-large {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.02));
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(50, 140, 160, 0.04);
    transition: transform .35s ease
}

.project-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block
}

.project-body {
    padding: 20px
}

.project-body h3 {
    margin: 0 0 8px;
    font-size: 20px
}

.project-body p {
    color: var(--muted);
    line-height: 1.65;
    margin: 0 0 14px
}

.project-cta {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #06101a;
    font-weight: 700;
    text-decoration: none
}

/* hover */
.project-large:hover {
    transform: translateY(-12px)
}

/* CONTACT */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 26px;
    margin-top: 18px
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    background: transparent;
    color: var(--text);
    outline: none
}

.form-row {
    display: flex;
    gap: 12px
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px
}

.form-msg {
    color: var(--muted);
    margin-top: 10px
}

.contact-info {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.02));
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(50, 140, 160, 0.04);
    color: var(--muted)
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 28px 0;
    color: var(--muted)
}

/* reveal helper */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: all .85s ease
}

.reveal.visible {
    opacity: 1;
    transform: none
}

/* Responsive */
@media (max-width:1100px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .projects-large {
        grid-template-columns: repeat(2, 1fr)
    }

    .hero-right {
        width: 260px
    }

    .hero-avatar {
        width: 240px;
        height: 240px
    }
}

@media (max-width:760px) {
    .nav-inner {
        padding: 12px 16px
    }

    .nav-links {
        display: none
    }

    .hero-inner {
        flex-direction: column-reverse;
        gap: 18px;
        padding: 18px
    }

    .hero-title {
        font-size: 44px;
        text-align: center
    }

    .hero-avatar {
        width: 180px;
        height: 180px;
        border-radius: 12px
    }

    .skills-grid {
        grid-template-columns: 1fr
    }

    .projects-large {
        grid-template-columns: 1fr
    }

    .contact-wrap {
        grid-template-columns: 1fr
    }

    .hero-left {
        padding-left: 0;
        text-align: center
    }
}