/* =========================
   Base
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #0b0b12;
    color: #f5f5f7;
    line-height: 1.6;
}

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

/* =========================
   Hero
========================= */

.hero {
    min-height: 100vh;
    padding: 100px 6% 40px;

    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 40px;

    background:
        radial-gradient(
            circle at 75% 35%,
            rgba(139, 92, 246, 0.12),
            transparent 30%
        );

    box-sizing: border-box;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
    min-width: 0;
}

.hero-intro {
    color: #8b5cf6;
    font-size: 1.05rem;
    font-weight: 500;

    margin-bottom: 12px;
}

.hero h1 {
    font-size: clamp(2.8rem, 4vw, 4rem);
    line-height: 1.05;

    /* white-space: nowrap; */

    margin-bottom: 15px;
}

.hero h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);

    color: #b8b8c7;

    margin-bottom: 25px;
}

.hero h2 span {
    color: #8b5cf6;
}

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

    color: #a6a6b5;
    font-size: 1rem;

    line-height: 1.8;

    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;

    flex-wrap: wrap;
}

.hero-buttons .btn span {
    margin-left: 7px;
}
.hero-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: 28px;
}

.hero-socials a {
    width: 42px;
    height: 42px;

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

    border: 1px solid #30303d;
    border-radius: 50%;

    color: #d0d0dc;

    font-size: 1.15rem;

    transition: all 0.3s ease;
}

.hero-socials a:hover {
    color: #8b5cf6;
    border-color: #8b5cf6;

    transform: translateY(-3px);

    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: min(100%, 500px);
    height: 330px;

    border-radius: 16px;

    border: 1px solid #8b5cf6;

    background:
        linear-gradient(
            135deg,
            rgba(139, 92, 246, 0.12),
            rgba(11, 11, 18, 0.9)
        );

    box-shadow:
        0 0 35px rgba(139, 92, 246, 0.15);

    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    display: block;
}

/* =========================
   Quick Highlights
========================= */

.quick-highlights {
    grid-column: 1 / -1;

    width: 100%;
    min-width: 0;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    border-top: 1px solid #242433;
    border-bottom: 1px solid #242433;

    box-sizing: border-box;
}

.highlight-item {
    min-height: 100px;
    min-width: 0;

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

    gap: 15px;

    padding: 20px;

    box-sizing: border-box;

    border-right: 1px solid #242433;
}

.highlight-item:last-child {
    border-right: none;
}

.highlight-item > i {
    color: #8b5cf6;
    font-size: 1.5rem;
}

.highlight-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.highlight-item strong {
    color: #f5f5f7;
    font-size: 1rem;
}

.highlight-item span {
    color: #858595;
    font-size: 0.85rem;
}

/* =========================
   Buttons
========================= */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.primary-btn {
    background: #8b5cf6;
    color: white;
}

.primary-btn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

.secondary-btn {
    border: 1px solid #3a3a4a;
    color: #f5f5f7;
}

.secondary-btn:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

/* =========================
   Sections
========================= */

.section {
    padding: 100px 8%;
    max-width: 1200px;
    margin: auto;
}

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

.section-heading p {
    color: #8b5cf6;
    margin-bottom: 8px;
}

.section-heading h2 {
    font-size: 2.5rem;
}

.about-text {
    max-width: 800px;
    color: #a6a6b5;
    font-size: 1.1rem;
}

.about-content {
    display: grid;
    grid-template-columns: 220px 1fr;

    align-items: center;
    gap: 60px;

    margin-top: 20px;
}

.about-image {
    width: 190px;
    height: 190px;

    border-radius: 50%;

    padding: 4px;

    border: 2px solid #8b5cf6;

    box-shadow:
        0 0 25px rgba(139, 92, 246, 0.12);

    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;
}

.about-details {
    max-width: 700px;
}

.about-details .about-text {
    margin-bottom: 25px;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-info p {
    color: #b8b8c7;
    font-size: 0.95rem;
}

.about-info strong {
    color: #f5f5f7;
}

/* =========================
   Skills
========================= */

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

.skill-card {
    padding: 25px;

    background: #12121b;
    border: 1px solid #242433;
    border-radius: 12px;
}

.skill-card h3 {
    margin-bottom: 10px;
}

.skill-card p {
    color: #9292a3;
}

/* =========================
   Projects
========================= */

.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.project-content {
    padding: 30px;
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: nowrap;
}

.project-card-icon {
    width: 52px;
    height: 52px;

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

    margin-bottom: 18px;

    border-radius: 12px;

    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);

    color: #8b5cf6;

    font-size: 1.35rem;

    box-shadow: 0 0 20px rgba(139, 92, 246, 0.08);
}

.project-category {
    color: #8b5cf6;
    font-size: 0.92rem;
    margin-bottom: 8px;
    white-space: nowrap;
}
.project-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.project-card p {
    color: #9292a3;
    font-size: 0.9rem;
    line-height: 1.75;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.project-tech span {
    padding: 6px 12px;
    border-radius: 6px;
    background: #1c1c29;
    color: #b8b8c7;
    font-size: 0.82rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 20px;
    padding: 9px 16px;
    border: 1px solid #8b5cf6;
    border-radius: 7px;
    color: #f5f5f7;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s ease;
}

.project-link:hover {
    background: #8b5cf6;
    color: #ffffff;

    transform: translateY(-2px);
}

.projects-action {
    display: flex;
    justify-content: center;

    margin-top: 40px;
}

.projects-action .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;
}

/* =========================
   Outline Button (was missing — used by "View All" links)
========================= */

.btn-outline {
    border: 1px solid #8b5cf6;
    color: #8b5cf6;
    background: transparent;
}

.btn-outline:hover {
    background: #8b5cf6;
    color: #ffffff;
    transform: translateY(-2px);
}


/* =========================
   Experience
========================= */

.experience-timeline {
    position: relative;
    max-width: 800px;

    padding-left: 30px;

    border-left: 2px solid #242433;
}

.experience-item {
    position: relative;
    margin-bottom: 40px;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-marker {
    position: absolute;
    top: 6px;
    left: -37px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8b5cf6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.experience-content {
    padding: 25px;    
}

.experience-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;

    margin-bottom: 6px;
}

.experience-header h3 {
    font-size: 1.2rem;
    color: #f5f5f7;
}

.experience-date {
    color: #8b5cf6;
    font-size: 0.85rem;
    font-weight: 500;
}

.experience-company {
    color: #b8b8c7;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.experience-list {
    list-style: none;

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.experience-list li {
    position: relative;

    padding-left: 18px;

    color: #9292a3;
    font-size: 0.92rem;
}

.experience-list li::before {
    content: "";

    position: absolute;
    left: 0;
    top: 9px;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #8b5cf6;
}

/* =========================
   Education
========================= */

.education-card {
    max-width: 800px;

    padding: 30px;

    margin-bottom: 20px;

    transition: 0.3s;
}

.education-card:hover {
    border-color: #8b5cf6;
}

.education-card:last-child {
    margin-bottom: 0;
}

.education-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;

    margin-bottom: 6px;
}

.education-main h3 {
    font-size: 1.3rem;
    color: #f5f5f7;
}

.education-date {
    color: #8b5cf6;
    font-size: 0.85rem;
    font-weight: 500;
}

.education-school {
    color: #b8b8c7;
    font-size: 1rem;
    margin-bottom: 4px;
}

.education-gpa {
    color: #9292a3;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.education-courses h4 {
    color: #f5f5f7;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

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

.course-tags span {
    padding: 5px 10px;

    border-radius: 5px;

    background: #1c1c29;
    color: #b8b8c7;

    font-size: 0.8rem;
}

/* =========================
   Certificates (homepage teaser)
========================= */

.certs-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 320px));
    gap: 20px;
    justify-content: center;
}

.cert-card {
    padding: 25px;
    text-align: center;
    transition: 0.3s;
}

.cert-icon-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.cert-icon-header .cert-icon {
    margin: 0;
}

.cert-category {
    color: #8b5cf6;
    font-size: 0.85rem;
}

.cert-icon {
    width: 50px;
    height: 50px;

    margin: 0 auto 15px;

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

    border-radius: 10px;

    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);

    color: #8b5cf6;
    font-size: 1.3rem;
}

.cert-card h3 {
    font-size: 1rem;
    color: #f5f5f7;
    margin-bottom: 6px;
}

.cert-card p {
    color: #9292a3;
    font-size: 0.85rem;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.82rem;
    color: #8b5cf6;
    transition: opacity 0.2s ease;
}

.cert-link:hover {
    opacity: 0.75;
}

/* =========================
   Light Theme
========================= */

body.light-theme {
    background: #f7f7fb;
    color: #18181f;
}

body.light-theme .hero {
    background:
        radial-gradient(
            circle at 75% 35%,
            rgba(139, 92, 246, 0.10),
            transparent 30%
        );
}

body.light-theme .hero h2 {
    color: #555563;
}

body.light-theme .hero-description,
body.light-theme .about-text {
    color: #666675;
}

body.light-theme .hero-socials a {
    color: #555563;
    border-color: #d5d5df;
}

body.light-theme .hero-image {
    background:
        linear-gradient(
            135deg,
            rgba(139, 92, 246, 0.08),
            rgba(255, 255, 255, 0.95)
        );
}

body.light-theme .quick-highlights {
    border-color: #e5e5ec;
}

body.light-theme .highlight-item {
    border-color: #e5e5ec;
}

body.light-theme .highlight-item strong {
    color: #18181f;
}

body.light-theme .highlight-item span {
    color: #777785;
}

body.light-theme .secondary-btn {
    border-color: #d5d5df;
    color: #18181f;
}



body.light-theme .about-info p {
    color: #666675;
}

body.light-theme .about-info strong {
    color: #18181f;
}

/* =========================
   Responsive
========================= */

@media (max-width: 900px) {

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

    .experience-timeline {
        padding-left: 24px;
    }
}

@media (max-width: 600px) {

    .certs-container {
        grid-template-columns: 1fr;
    }

    .experience-content,
    .education-card {
        padding: 20px;
    }
}

/* =========================
   Contact
========================= */

.contact-section {
    text-align: center;
}

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

.contact-section > p {
    color: #9292a3;
    margin-bottom: 30px;
}

/* =========================
   Footer
========================= */

footer {
    padding: 30px 8%;
    text-align: center;
    border-top: 1px solid #242433;
    color: #777789;
}
/* =========================
   Responsive
========================= */

@media (max-width: 900px) {

    /* =========================
       Hero
    ========================= */

    .hero {
        min-height: auto;

        grid-template-columns: 1fr;

        padding: 110px 5% 50px;

        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        white-space: normal;
    }

    .hero-visual {
        order: 2;
    }

    .hero-image {
        width: min(100%, 300px);
        height: 240px;

        margin: 0 auto;
    }

    .hero-image img {
        width: 100%;
        height: 100%;

        display: block;

        object-fit: contain;
        object-position: center;
    }


    /* =========================
       Quick Highlights
    ========================= */

    .quick-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .highlight-item {
        min-height: 90px;
        padding: 16px;
    }

    .highlight-item:nth-child(2) {
        border-right: none;
    }

    .highlight-item:nth-child(3),
    .highlight-item:nth-child(4) {
        border-top: 1px solid #242433;
    }


    /* =========================
       Sections
    ========================= */

    .section {
        padding: 80px 5%;
    }

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

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

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

    .about-image {
        width: 160px;
        height: 160px;
    }
}


/* =========================
   Small Mobile
========================= */

@media (max-width: 600px) {

    /* Hero */

    .hero {
        padding: 95px 5% 40px;
        gap: 30px;
    }

    .hero-image {
        width: min(100%, 270px);
        height: 210px;
    }


    /* Highlights */

    .quick-highlights {
        grid-template-columns: 1fr;
    }

    .highlight-item {
        min-height: 80px;

        border-right: none !important;
        border-top: none !important;
        border-bottom: 1px solid #242433;
    }

    .highlight-item:last-child {
        border-bottom: none;
    }


    /* Buttons */

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

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
}


/* =========================
   Very Small Mobile
========================= */

@media (max-width: 400px) {
   

    .hero {
        padding: 90px 5% 40px;
    }

    .hero-image {
        width: 250px;
        height: 195px;
    }
}