:root {
    --bg: #080808;
    --bg-soft: #101010;
    --card: #141414;
    --card-hover: #191919;

    --text: #f5f5f5;
    --text-soft: #c7c7c7;
    --text-muted: #858585;

    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --purple-dark: #5b21b6;

    --coral: #ff6b6b;
    --coral-light: #ff8585;

    --green: #22c55e;
    --green-light: #4ade80;

    --border: rgba(255, 255, 255, 0.09);

    --shadow: 0 15px 40px rgba(0, 0, 0, 0.35);

    --container: 1180px;

    --transition: 0.3s ease;
}


[data-theme="light"] {
    --bg: #f7f7f7;
    --bg-soft: #eeeeee;
    --card: #ffffff;
    --card-hover: #fafafa;

    --text: #111111;
    --text-soft: #444444;
    --text-muted: #707070;

    --border: rgba(0, 0, 0, 0.09);

    --shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}


/* =========================
   RESET
   ========================= */

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


html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}


body {
    font-family: "DM Sans", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;

    transition:
        background var(--transition),
        color var(--transition);
}


img {
    max-width: 100%;
    display: block;
}


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


button,
input,
textarea {
    font: inherit;
}


button {
    cursor: pointer;
}


::selection {
    background: var(--purple);
    color: white;
}


/* =========================
   SCROLLBAR
   ========================= */

::-webkit-scrollbar {
    width: 9px;
}


::-webkit-scrollbar-track {
    background: var(--bg);
}


::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 10px;
}


::-webkit-scrollbar-thumb:hover {
    background: var(--coral);
}


/* =========================
   CONTAINER
   ========================= */

.container {
    width: min(92%, var(--container));
    margin: auto;
}


/* =========================
   NAVBAR
   ========================= */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 999;

    background: rgba(8, 8, 8, 0.88);

    backdrop-filter: blur(14px);

    border-bottom: 1px solid var(--border);

    transition: var(--transition);
}


[data-theme="light"] .navbar {
    background: rgba(247, 247, 247, 0.9);
}


.nav-container {
    min-height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo {
    font-family: "Space Grotesk", sans-serif;

    font-size: 1.35rem;

    font-weight: 700;
}


.logo span {
    color: var(--coral);
}


.nav-links {
    display: flex;

    align-items: center;

    gap: 28px;
}


.nav-links a {
    position: relative;

    color: var(--text-soft);

    font-size: 0.9rem;

    transition: var(--transition);
}


.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--coral);

    transition: width var(--transition);
}


.nav-links a:hover {
    color: var(--text);
}


.nav-links a:hover::after {
    width: 100%;
}


.menu-toggle {
    display: none;

    border: none;

    background: transparent;

    color: var(--text);

    font-size: 1.4rem;
}


/* =========================================================
   HANGING BULB
   ========================================================= */

.hanging-bulb {
    position: fixed;

    top: 0;
    right: 45px;

    width: 55px;
    height: 125px;

    border: none;

    background: transparent;

    z-index: 1100;

    padding: 0;

    /* Prevent browser button effects */
    outline: none;
}


/* The wire */

.bulb-wire {
    position: absolute;

    top: 0;
    left: 50%;

    width: 2px;
    height: 58px;

    transform: translateX(-50%);

    background: var(--text);

    opacity: 0.5;

    transform-origin: top center;

    transition:
        height 0.18s ease,
        background var(--transition),
        opacity var(--transition);
}


/* The small socket */

.bulb-holder {
    position: absolute;

    top: 55px;
    left: 50%;

    width: 18px;
    height: 9px;

    transform: translateX(-50%);

    background: var(--text);

    border-radius: 3px;

    transition:
        top 0.18s ease,
        background var(--transition);
}


/* Bulb */

.bulb {
    position: absolute;

    top: 62px;
    left: 50%;

    width: 38px;
    height: 38px;

    transform: translateX(-50%);

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50% 50% 45% 45%;

    background: var(--card);

    border: 2px solid var(--border);

    color: var(--text-muted);

    transition:
        top 0.18s ease,
        transform 0.18s ease,
        color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.bulb i {
    font-size: 16px;

    transition:
        transform 0.2s ease,
        color 0.3s ease;
}


/* =========================
   PULL ANIMATION
   ========================= */

/*
   When JS adds .pulling:

   1. Wire becomes longer
   2. Socket moves down
   3. Bulb moves down
   4. Bulb slightly scales
*/

.hanging-bulb.pulling .bulb-wire {
    height: 76px;

    opacity: 0.85;
}


.hanging-bulb.pulling .bulb-holder {
    top: 73px;
}


.hanging-bulb.pulling .bulb {
    top: 80px;

    transform:
        translateX(-50%)
        scale(0.94);
}


.hanging-bulb.pulling .bulb i {
    transform: scale(0.9);
}


/* =========================
   LIGHT MODE
   ========================= */

[data-theme="light"] .bulb {
    color: var(--coral);

    background: #fff4e8;

    border-color: var(--coral);

    box-shadow:
        0 0 10px rgba(255, 107, 107, 0.55),
        0 0 25px rgba(255, 107, 107, 0.3),
        0 0 50px rgba(255, 107, 107, 0.15);
}


/* =========================
   DARK MODE
   ========================= */

[data-theme="dark"] .bulb {
    color: var(--purple-light);
}


/* Hover */

.hanging-bulb:hover .bulb {
    transform:
        translateX(-50%)
        scale(1.1);
}


.hanging-bulb:hover .bulb-wire {
    opacity: 0.9;
}


/* =========================
   HERO
   ========================= */

.hero {
    min-height: 100vh;

    display: flex;

    align-items: center;

    padding: 120px 0 80px;

    position: relative;

    overflow: hidden;
}


.hero::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    top: 10%;
    right: -150px;

    background: var(--purple);

    opacity: 0.08;

    border-radius: 50%;

    filter: blur(70px);

    pointer-events: none;
}


.hero::after {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    bottom: 0;
    left: -150px;

    background: var(--coral);

    opacity: 0.06;

    border-radius: 50%;

    filter: blur(70px);

    pointer-events: none;
}


.hero-content {
    position: relative;

    z-index: 2;

    max-width: 850px;
}


.hero-label {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 7px 13px;

    margin-bottom: 22px;

    border: 1px solid var(--border);

    border-radius: 100px;

    background: var(--card);

    color: var(--green);

    font-size: 0.82rem;
}


.hero-label::before {
    content: "";

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--green);

    box-shadow: 0 0 10px var(--green);
}


.hero h1 {
    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(3rem, 8vw, 6.7rem);

    line-height: 0.95;

    letter-spacing: -5px;

    margin-bottom: 25px;
}


.hero h1 span {
    color: var(--purple-light);
}


.hero h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.8rem);

    font-weight: 500;

    color: var(--coral);

    margin-bottom: 20px;
}


.hero-description {
    max-width: 650px;

    color: var(--text-soft);

    font-size: 1.05rem;

    margin-bottom: 35px;
}


/* =========================
   BUTTONS
   ========================= */

.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 13px;
}


.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 12px 19px;

    border-radius: 8px;

    font-size: 0.9rem;

    font-weight: 600;

    transition: all var(--transition);
}


.btn-primary {
    background: var(--purple);

    color: white;
}


.btn-primary:hover {
    background: var(--purple-dark);

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(124, 58, 237, 0.3);
}


.btn-coral {
    background: var(--coral);

    color: #111;
}


.btn-coral:hover {
    background: var(--coral-light);

    transform: translateY(-2px);
}


.btn-outline {
    border: 1px solid var(--border);

    background: var(--card);

    color: var(--text);
}


.btn-outline:hover {
    border-color: var(--green);

    color: var(--green);
}


/* =========================
   SOCIAL
   ========================= */

.social-links {
    display: flex;

    gap: 12px;

    margin-top: 28px;
}


.social-links a {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 50%;

    background: var(--card);

    color: var(--text-soft);

    transition: var(--transition);
}


.social-links a:hover {
    color: white;

    border-color: var(--purple);

    background: var(--purple);

    transform: translateY(-3px);
}


/* =========================
   SECTIONS
   ========================= */

section {
    padding: 100px 0;
}


.section-header {
    margin-bottom: 50px;
}


.section-number {
    color: var(--coral);

    font-family: "Space Grotesk", sans-serif;

    font-size: 0.85rem;

    font-weight: 700;

    margin-bottom: 8px;
}


.section-title {
    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(2rem, 4vw, 3.2rem);

    letter-spacing: -2px;
}


.section-title span {
    color: var(--purple-light);
}


/* =========================
   ABOUT
   ========================= */

.about-grid {
    display: grid;

    grid-template-columns: 0.85fr 1.15fr;

    gap: 70px;

    align-items: center;
}


.profile-wrapper {
    position: relative;

    max-width: 390px;
}


.profile-wrapper::before {
    content: "";

    position: absolute;

    inset: -12px;

    border: 1px solid var(--purple);

    border-radius: 15px;

    transform: rotate(-4deg);

    opacity: 0.5;

    z-index: -1;
}


.profile-image {
    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 12px;

    background: var(--card);
}


.about-text p {
    color: var(--text-soft);

    margin-bottom: 18px;

    font-size: 1rem;
}


.about-highlight {
    margin-top: 25px;

    padding: 20px;

    border-left: 3px solid var(--green);

    background: var(--card);

    border-radius: 0 10px 10px 0;
}


.about-highlight strong {
    color: var(--green);
}


/* =========================
   SKILLS
   ========================= */

.skills-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}


.skill-card {
    padding: 25px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--card);

    transition: all var(--transition);
}


.skill-card:hover {
    transform: translateY(-5px);

    border-color: var(--purple);

    box-shadow: var(--shadow);
}


.skill-card h3 {
    margin-bottom: 17px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 1.05rem;
}


.skill-card h3 i {
    color: var(--coral);

    margin-right: 8px;
}


.skill-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


.skill-tag {
    padding: 5px 10px;

    border-radius: 5px;

    background: var(--bg-soft);

    color: var(--text-soft);

    font-size: 0.78rem;

    border: 1px solid var(--border);
}


.skill-tag:hover {
    color: var(--green);

    border-color: var(--green);
}


/* =========================
   PROJECTS
   ========================= */

.projects-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}


.project-card {
    position: relative;

    padding: 30px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 13px;

    transition: all var(--transition);

    overflow: hidden;
}


.project-card.featured {
    grid-column: span 2;
}


.project-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: var(--purple);
}


.project-card:nth-child(2)::before {
    background: var(--coral);
}


.project-card:nth-child(3)::before {
    background: var(--green);
}


.project-card:hover {
    transform: translateY(-5px);

    border-color: var(--purple);

    box-shadow: var(--shadow);
}


.project-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 25px;
}


.project-icon {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(124, 58, 237, 0.12);

    color: var(--purple-light);
}


.project-card h3 {
    font-family: "Space Grotesk", sans-serif;

    font-size: 1.45rem;

    margin-bottom: 10px;
}


.project-card p {
    color: var(--text-soft);

    font-size: 0.92rem;

    margin-bottom: 20px;
}


.project-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}


.project-tech span {
    padding: 5px 9px;

    border-radius: 5px;

    background: var(--bg-soft);

    color: var(--green);

    font-size: 0.75rem;
}


.project-link {
    display: inline-flex;

    gap: 7px;

    align-items: center;

    margin-top: 22px;

    color: var(--coral);

    font-size: 0.85rem;

    font-weight: 600;
}


.project-link:hover {
    color: var(--purple-light);
}


/* =========================
   EXPERIENCE
   ========================= */

.timeline {
    position: relative;

    max-width: 850px;

    margin: auto;
}


.timeline::before {
    content: "";

    position: absolute;

    left: 8px;
    top: 0;
    bottom: 0;

    width: 2px;

    background: var(--border);
}


.timeline-item {
    position: relative;

    padding-left: 40px;

    margin-bottom: 45px;
}


.timeline-dot {
    position: absolute;

    left: 0;
    top: 5px;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: var(--purple);

    border: 4px solid var(--bg);
}


.timeline-date {
    color: var(--coral);

    font-size: 0.82rem;

    font-weight: 600;

    margin-bottom: 7px;
}


.timeline h3 {
    font-family: "Space Grotesk", sans-serif;

    margin-bottom: 3px;
}


.timeline h4 {
    color: var(--text-muted);

    font-size: 0.9rem;

    font-weight: 500;

    margin-bottom: 12px;
}


.timeline p {
    color: var(--text-soft);

    font-size: 0.9rem;
}


/* =========================
   EDUCATION
   ========================= */

.education-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}


.education-card {
    padding: 27px;

    border: 1px solid var(--border);

    background: var(--card);

    border-radius: 12px;
}


.education-card i {
    color: var(--green);

    font-size: 1.5rem;

    margin-bottom: 15px;
}


.education-card h3 {
    font-family: "Space Grotesk", sans-serif;

    margin-bottom: 5px;
}


.education-card h4 {
    color: var(--purple-light);

    font-size: 0.9rem;

    margin-bottom: 12px;
}


.education-card p {
    color: var(--text-muted);

    font-size: 0.85rem;
}


/* =========================
   CERTIFICATES
   ========================= */

.certificates-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}


.certificate-card {
    padding: 25px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 12px;

    display: flex;

    gap: 18px;

    transition: var(--transition);
}


.certificate-card:hover {
    border-color: var(--green);

    transform: translateY(-4px);
}


.certificate-icon {
    min-width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(34, 197, 94, 0.1);

    color: var(--green);
}


.certificate-card h3 {
    font-size: 1rem;

    margin-bottom: 5px;
}


.certificate-card p {
    color: var(--text-muted);

    font-size: 0.82rem;
}


/* =========================
   CONTACT
   ========================= */

.contact-grid {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 60px;
}


.contact-info p {
    color: var(--text-soft);

    margin-bottom: 25px;
}


.contact-item {
    display: flex;

    gap: 14px;

    align-items: center;

    margin-bottom: 17px;
}


.contact-item-icon {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: var(--card);

    color: var(--coral);

    border: 1px solid var(--border);
}


.contact-item span {
    color: var(--text-soft);

    font-size: 0.88rem;
}


.contact-form {
    display: grid;

    gap: 15px;
}


.form-row {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;
}


.form-group {
    display: grid;

    gap: 7px;
}


.form-group label {
    color: var(--text-soft);

    font-size: 0.82rem;
}


.form-group input,
.form-group textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: var(--card);

    color: var(--text);

    outline: none;

    transition: var(--transition);
}


.form-group textarea {
    min-height: 150px;

    resize: vertical;
}


.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--purple);

    box-shadow:
        0 0 0 3px rgba(124, 58, 237, 0.1);
}


/* =========================
   FOOTER
   ========================= */

footer {
    padding: 35px 0;

    border-top: 1px solid var(--border);

    text-align: center;
}


footer p {
    color: var(--text-muted);

    font-size: 0.8rem;
}


footer span {
    color: var(--coral);
}


/* =========================
   REVEAL
   ========================= */

.reveal {
    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}


.reveal.active {
    opacity: 1;

    transform: translateY(0);
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 950px) {

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .profile-wrapper {
        max-width: 330px;

        margin: auto;
    }

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


@media (max-width: 768px) {

    section {
        padding: 75px 0;
    }


    .nav-links {
        position: absolute;

        top: 75px;
        left: 0;

        width: 100%;

        display: none;

        flex-direction: column;

        align-items: flex-start;

        gap: 0;

        padding: 10px 5% 20px;

        background: var(--bg);

        border-bottom: 1px solid var(--border);
    }


    .nav-links.active {
        display: flex;
    }


    .nav-links a {
        width: 100%;

        padding: 13px 0;
    }


    .menu-toggle {
        display: block;
    }


    .hero {
        padding-top: 130px;
    }


    .hero h1 {
        letter-spacing: -3px;
    }


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


    .project-card.featured {
        grid-column: span 1;
    }


    .education-grid,
    .certificates-grid {
        grid-template-columns: 1fr;
    }


    .hanging-bulb {
        right: 18px;

        transform: scale(0.82);

        transform-origin: top right;
    }

}


@media (max-width: 560px) {

    .container {
        width: 90%;
    }


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


    .form-row {
        grid-template-columns: 1fr;
    }


    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }


    .btn {
        width: 100%;
    }


    .hero h1 {
        font-size: 3.2rem;
    }


    .hero-description {
        font-size: 0.95rem;
    }


    .social-links {
        margin-top: 20px;
    }

}

