
/* =====================================
   GLOBAL VARIABLES
===================================== */

:root {
    --bg: #351a5d;
    --surface: #8252c9;
    --surface-hover: #aa71ff;
    --text: #e8eee9;
    --muted: #d8b5fe;
    --accent: #d896fa;
    --border: #653ef5;
    --header-bg: rgba(101, 27, 161, 0.92);
    --shadow: rgba(0, 0, 0, 0.25);
}

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

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    transition: background-color 0.3s, color 0.3s;
}

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

button,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}


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

body.light-mode {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-hover: #aa71ff;
    --text: #6c4393;
    --muted: #544268;
    --accent: #d896fa;
    --border: #461be4;
    --header-bg: rgb(207 148 255 / 92%);
    --shadow: rgba(0, 0, 0, 0.25);
}


/* =====================================
   NAVIGATION
===================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    max-width: 1300px;
    min-height: 75px;
    margin: auto;
    padding: 0 35px;

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

.logo {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.logo span,
.hero h1 span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    font-size: 0.85rem;
    color: var(--muted);
    transition: color 0.2s;
}

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


/* =====================================
   SETTINGS
===================================== */

.settings-button {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    transition: 0.2s;
}

.settings-button:hover {
    border-color: var(--accent);
    transform: rotate(15deg);
}

.settings-button img {
    filter: none;
}

.settings-menu {
    position: absolute;
    top: 85px;
    right: max(25px, calc((100vw - 1250px) / 2));
    width: 260px;
    padding: 25px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 15px 40px var(--shadow);
    z-index: 1100;
}

.settings-menu h3 {
    margin-bottom: 20px;
}

.settings-menu label {
    display: block;
    margin: 15px 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.settings-menu input[type="checkbox"] {
    accent-color: var(--accent);
    margin-right: 8px;
}

.settings-menu select {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 9px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.close-settings {
    float: right;
    background: none;
    color: var(--muted);
    border: none;
    font-size: 1rem;
}

.close-settings:hover {
    color: var(--accent);
}

.hidden {
    display: none;
}


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

.hero {
    max-width: 1250px;
    min-height: 690px;
    margin: auto;
    padding: 100px 45px;

    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    gap: 70px;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(163, 230, 53, 0.09),
            transparent 40%
        );
}

.eyebrow {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(3.2rem, 7vw, 6rem);
    line-height: 1.05;
    letter-spacing: -4px;
    margin-bottom: 25px;
}

.hero h2 {
    font-size: 1.4rem;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-description {
    max-width: 550px;
    color: var(--muted);
    margin-bottom: 30px;
}

.hero-buttons,
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.button-primary,
.button-secondary {
    display: inline-block;
    padding: 12px 23px;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.25s ease;
}

.button-primary {
    background: var(--accent);
    color: #17200e;
    border: 1px solid var(--accent);
}

.button-primary:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.button-secondary {
    border: 1px solid var(--border);
    color: var(--text);
}

.button-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.hero-socials {
    display: flex;
    gap: 25px;
}

.hero-socials a {
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.hero-socials a:hover {
    color: var(--accent);
}

.hero-image {
    text-align: center;
}

.image-frame {
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--accent);
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow);
}

.macimg {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 12px;
}

.image-caption {
    margin-top: 25px;
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 3px;
}


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

.content-section {
    max-width: 1150px;
    margin: auto;
    padding: 100px 35px;
}

.section-heading {
    margin-bottom: 45px;
}

.section-heading h2,
.contact-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -1.5px;
    line-height: 1.2;
}

.section-description {
    color: var(--muted);
    max-width: 700px;
    margin-top: 20px;
}

.content-section p {
    color: var(--muted);
}

.content-section h3 {
    color: var(--text);
}


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

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 55px;
}

.about-main h3 {
    font-size: 1.6rem;
    line-height: 1.4;
    margin-bottom: 25px;
}

.about-main p {
    margin-bottom: 18px;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.detail-card {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.detail-card span {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 10px;
}

.detail-card h4 {
    font-size: 0.95rem;
}


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

.timeline {
    border-left: 2px solid var(--border);
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    padding: 0 0 40px 35px;
}

.timeline-marker {
    position: absolute;
    width: 13px;
    height: 13px;
    background: var(--accent);
    border-radius: 50%;
    left: -7.5px;
    top: 5px;
    box-shadow: 0 0 15px rgba(163, 230, 53, 0.35);
}

.timeline-date {
    color: var(--accent) !important;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}


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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-card {
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: 0.25s;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.skill-icon {
    display: inline-grid;
    place-items: center;
    width: 43px;
    height: 43px;
    margin-bottom: 20px;
    color: var(--accent);
    background: var(--surface-hover);
    border-radius: 8px;
    font-weight: 700;
}

.skill-card h3 {
    margin-bottom: 20px;
    font-size: 1.15rem;
}

.skill-card ul,
.experience-card ul {
    padding-left: 20px;
    color: var(--muted);
}

.skill-card li,
.experience-card li {
    margin-bottom: 9px;
    font-size: 0.9rem;
}


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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.project-card {
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform 0.25s, border-color 0.25s;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

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

.project-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
}

.project-status {
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.status-progress {
    color: #e8b45a;
}

.status-interest {
    color: #74baff;
}

.project-card h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
}

.project-card p {
    font-size: 0.9rem;
    margin-bottom: 25px;
}

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

.project-tags span {
    padding: 5px 11px;
    background: var(--surface-hover);
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 0.7rem;
}


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

.experience-card {
    padding: 30px;
    margin-bottom: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.experience-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

.experience-header h3 {
    font-size: 1.25rem;
}

.experience-symbol {
    color: var(--accent);
    font-size: 2rem;
}

.experience-card > p {
    margin-bottom: 15px;
}


/* =====================================
   CERTIFICATIONS
===================================== */

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.certification-card {
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: 0.25s;
}

.certification-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.certification-number {
    display: block;
    color: var(--accent);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.certification-card h3 {
    margin-bottom: 15px;
}


/* =====================================
   INTERESTS
===================================== */

.interests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.interest-item {
    padding: 25px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: 0.25s;
}

.interest-item:hover {
    border-color: var(--accent);
    background: var(--surface-hover);
}

.interest-item span {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
}

.interest-item h3 {
    font-size: 1rem;
    margin-top: 10px;
}


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

.contact-section {
    max-width: 1150px;
    margin: 50px auto 100px;
    padding: 75px 45px;
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(163, 230, 53, 0.12),
            transparent 45%
        ),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.contact-section h2 {
    margin-bottom: 20px;
}

.contact-section > p:not(.eyebrow) {
    color: var(--muted);
    max-width: 650px;
    margin-bottom: 30px;
}


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

.site-footer {
    padding: 40px 25px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.site-footer .logo {
    display: inline-block;
    margin-bottom: 15px;
}

.site-footer p {
    color: var(--muted);
    font-size: 0.8rem;
}

.footer-copyright {
    margin-top: 10px;
}


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

@media (max-width: 900px) {

    .nav-links {
        gap: 13px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .hero {
        gap: 35px;
    }

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

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


@media (max-width: 700px) {

    .navbar {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding: 10px 0;
        gap: 20px;
    }

    .nav-links a {
        white-space: nowrap;
        font-size: 0.8rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 75px 25px;
        text-align: left;
    }

    .hero h1 {
        font-size: clamp(3rem, 12vw, 4.5rem);
        letter-spacing: -2px;
    }

    .hero-image {
        max-width: 330px;
        margin: 20px auto 0;
    }

    .content-section {
        padding: 70px 25px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .contact-section {
        margin: 30px 15px 70px;
        padding: 45px 25px;
    }

    .settings-menu {
        right: 15px;
        top: 75px;
    }
}


@media (max-width: 420px) {

    .about-details,
    .interests-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons a {
        text-align: center;
    }

    .experience-header {
        align-items: flex-start;
    }
}


/* =====================================
   ACCESSIBILITY
===================================== */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
