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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;

    /* Soft dark blue background instead of pure black */
    background: #0b1020;

    color: #f5f7ff;

    line-height: 1.6;
}

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

ul {
    list-style: none;
}

section {
    padding: 100px 8%;
}

p {
    color: #b7bfd6;
}


/* =========================================================
   HEADER
========================================================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(11, 16, 32, 0.88);

    backdrop-filter: blur(14px);

    border-bottom: 1px solid #202943;
}

nav {
    max-width: 1200px;
    margin: auto;

    min-height: 75px;
    padding: 0 20px;

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

    gap: 30px;
}

nav > a {
    font-size: 1.4rem;
    font-weight: 700;

    background: linear-gradient(
        90deg,
        #6ea8ff,
        #a78bfa
    );

    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;
}

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

nav ul a {
    color: #aeb7d0;

    font-size: 0.95rem;

    transition: 0.3s ease;
}

nav ul a:hover,
nav ul a.active {
    color: #7dd3fc;
}


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

.hero-content {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 70px;
}

.hero-text {
    flex: 1;

    max-width: 750px;
}


/* =========================================================
   PROFILE IMAGE
========================================================= */

.hero-image {
    position: relative;

    flex: 0 0 320px;

    display: flex;

    justify-content: center;

    align-items: center;

    perspective: 1000px;
}

.hero-image img {
    width: 300px;
    height: 300px;

    object-fit: cover;

    border-radius: 50%;

    border: 4px solid #6d7cff;

    box-shadow:
        0 0 0 8px rgba(109, 124, 255, 0.08),
        0 20px 60px rgba(109, 124, 255, 0.25);

    transition: 0.4s ease;
}

.hero-image img:hover {
    transform: scale(1.04);

    border-color: #7dd3fc;

    box-shadow:
        0 0 0 10px rgba(125, 211, 252, 0.08),
        0 20px 70px rgba(125, 211, 252, 0.25);
}

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

.hero-buttons {
    display: flex;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;

    margin-bottom: 25px;
}

.hero-buttons a {
    display: inline-block;

    padding: 12px 22px;

    border: 1px solid #38476d;

    border-radius: 9px;

    background: linear-gradient(
        135deg,
        #6d7cff,
        #8b5cf6
    );

    color: white;

    font-weight: 600;

    transition: 0.3s ease;
}

.hero-buttons a:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 30px rgba(99, 102, 241, 0.25);
}

.hero-buttons a:last-child {
    background: transparent;

    border-color: #405070;

    color: #cbd5f5;
}

.hero-buttons a:last-child:hover {
    background: #18213b;

    color: white;
}


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

.social-links {
    display: flex;

    gap: 22px;
}

.social-links a {
    color: #8995b5;

    transition: 0.3s ease;
}

.social-links a:hover {
    color: #7dd3fc;
}


/* =========================================================
   COMMON SECTION HEADINGS
========================================================= */

section > div > p:first-child,
section > p:first-child {
    color: #7dd3fc;

    text-transform: uppercase;

    letter-spacing: 2px;

    font-size: 0.85rem;

    margin-bottom: 12px;
}

section h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);

    line-height: 1.1;

    margin-bottom: 30px;

    color: #f5f7ff;
}


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

#about {
    max-width: 1200px;

    margin: auto;
}

#about > div {
    max-width: 850px;
}

#about p:not(:first-child) {
    margin-bottom: 18px;

    font-size: 1.05rem;
}


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

#skills {
    max-width: 1200px;

    margin: auto;
}

#skills > article {
    display: inline-block;

    vertical-align: top;

    width: calc(50% - 15px);

    min-height: 220px;

    margin-bottom: 30px;

    padding: 30px;

    border: 1px solid #222d4a;

    border-radius: 15px;

    background: #11182b;

    transition: 0.3s ease;
}

#skills > article:nth-of-type(odd) {
    margin-right: 25px;
}

#skills article:hover {
    transform: translateY(-5px);

    border-color: #4f64a0;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.2);
}

#skills h3 {
    font-size: 1.3rem;

    margin-bottom: 20px;

    color: #eaf0ff;
}

#skills ul {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

#skills li {
    padding: 8px 13px;

    border: 1px solid #2b3858;

    border-radius: 20px;

    color: #c8d2ed;

    background: #151e34;

    font-size: 0.9rem;
}


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

#experience {
    max-width: 1200px;

    margin: auto;
}

#experience article {
    max-width: 900px;

    padding: 35px;

    border-left: 3px solid #7c83ff;

    background: #11182b;

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

#experience article header {
    position: static;

    background: transparent;

    backdrop-filter: none;

    border: none;

    padding: 0;
}

#experience h3 {
    font-size: 1.6rem;

    margin-bottom: 5px;
}

#experience article header p {
    margin-bottom: 5px;
}

#experience article ul {
    margin-top: 25px;
}

#experience article li {
    position: relative;

    margin-bottom: 15px;

    padding-left: 20px;

    color: #b7bfd6;
}

#experience article li::before {
    content: "▹";

    position: absolute;

    left: 0;

    color: #7dd3fc;
}


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

#projects {
    max-width: 1200px;

    margin: auto;
}

#projects article {
    max-width: 900px;

    margin-bottom: 30px;

    padding: 35px;

    border: 1px solid #222d4a;

    border-radius: 18px;

    background: #11182b;

    transition: 0.3s ease;
}

#projects article:hover {
    transform: translateY(-6px);

    border-color: #596aa0;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.25);
}

#projects article h3 {
    font-size: 1.7rem;

    margin-bottom: 5px;
}

#projects article header {
    position: static;

    background: transparent;

    border: none;

    backdrop-filter: none;

    padding: 0;
}

.project-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin: 25px 0;
}

.project-tags span {
    padding: 6px 12px;

    border: 1px solid #334269;

    border-radius: 20px;

    color: #bcd0f8;

    background: #17213a;

    font-size: 0.85rem;
}

#projects article a {
    display: inline-block;

    font-weight: 600;

    color: #7dd3fc;

    transition: 0.3s ease;
}

#projects article a:hover {
    transform: translateX(5px);

    color: #a5e7ff;
}


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

#education {
    max-width: 1200px;

    margin: auto;
}

#education article {
    display: inline-block;

    vertical-align: top;

    width: calc(50% - 15px);

    padding: 30px;

    margin-bottom: 25px;

    border: 1px solid #222d4a;

    border-radius: 15px;

    background: #11182b;
}

#education article:first-of-type {
    margin-right: 25px;
}

#education h3 {
    font-size: 1.25rem;

    margin-bottom: 15px;
}

#education article p {
    margin-bottom: 8px;
}


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

#certifications {
    max-width: 1200px;

    margin: auto;
}

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

    margin-bottom: 45px;
}

.certificates-grid {
    display: grid;

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

    gap: 30px;
}

.certificate-card {
    overflow: hidden;

    border: 1px solid #222d4a;

    border-radius: 18px;

    background: #11182b;

    transition: 0.35s ease;
}

.certificate-card:hover {
    transform: translateY(-8px);

    border-color: #596aa0;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.25);
}

.certificate-image {
    position: relative;

    display: block;

    overflow: hidden;

    aspect-ratio: 16 / 10;

    background: #18213a;
}

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

    display: block;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.05);
}

.certificate-overlay {
    position: absolute;

    inset: 0;

    display: flex;

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

    background: rgba(20, 25, 50, 0.72);

    color: #ffffff;

    font-size: 1rem;

    font-weight: 600;

    opacity: 0;

    transition: 0.3s ease;
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}

.certificate-info {
    padding: 25px;
}

.certificate-info h3 {
    font-size: 1.3rem;

    margin-bottom: 7px;
}

.certificate-year {
    display: inline-block;

    padding: 5px 12px;

    border: 1px solid #334269;

    border-radius: 20px;

    background: #17213a;

    color: #aebddd;

    font-size: 0.8rem;
}


/* =========================================================
   ACHIEVEMENTS
========================================================= */

#achievements {
    max-width: 1200px;

    margin: auto;
}

#achievements li {
    position: relative;

    max-width: 850px;

    margin-bottom: 15px;

    padding: 18px 20px 18px 40px;

    border: 1px solid #222d4a;

    border-radius: 10px;

    background: #11182b;

    color: #b7bfd6;
}

#achievements li::before {
    content: "✓";

    position: absolute;

    left: 15px;

    color: #7dd3fc;

    font-weight: bold;
}


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

#contact {
    max-width: 1200px;

    margin: auto;

    text-align: center;
}

#contact > p:not(:first-child) {
    max-width: 650px;

    margin: 0 auto 30px;
}


/* Contact buttons */

.contact-links {
    display: flex;

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

    flex-wrap: wrap;

    gap: 15px;
}

.contact-links a,
.contact-button {
    padding: 11px 18px;

    border: 1px solid #334269;

    border-radius: 8px;

    color: #d0d8ef;

    background: #131c32;

    transition: 0.3s ease;

    cursor: pointer;

    font-size: 0.95rem;
}

.contact-links a:hover,
.contact-button:hover {
    background: #27345a;

    border-color: #6b7fc4;

    color: #ffffff;

    transform: translateY(-3px);
}


/* Contact information that appears after clicking */

.contact-info {
    margin-top: 25px;

    display: none;

    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;
}

.contact-info.show {
    display: flex;
}

.contact-info a {
    color: #7dd3fc;

    font-weight: 600;

    word-break: break-word;
}


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

footer {
    padding: 30px 8%;

    text-align: center;

    border-top: 1px solid #202943;

    background: #090e1b;
}

footer p {
    font-size: 0.9rem;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.lightbox {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

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

    padding: 30px;

    background: rgba(5, 8, 18, 0.92);

    opacity: 0;

    visibility: hidden;

    transition: 0.3s ease;
}

.lightbox.active {
    opacity: 1;

    visibility: visible;
}

.lightbox-content {
    position: relative;

    max-width: 1100px;

    max-height: 90vh;
}

.lightbox-image {
    display: block;

    max-width: 100%;

    max-height: 85vh;

    border-radius: 10px;

    object-fit: contain;
}

.lightbox-close {
    position: absolute;

    top: -45px;

    right: 0;

    width: 40px;

    height: 40px;

    border: none;

    border-radius: 50%;

    background: #ffffff;

    color: #000000;

    font-size: 1.8rem;

    cursor: pointer;
}


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

.reveal {
    opacity: 0;

    transform: translateY(30px);

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

.reveal.show {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    section {
        padding: 80px 6%;
    }

    nav {
        padding: 0 6%;
    }

    nav ul {
        gap: 15px;
    }

    nav ul li:nth-child(n + 6) {
        display: none;
    }

    #skills > article,
    #education article {
        width: 100%;

        margin-right: 0;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .hero-content {
        flex-direction: column-reverse;

        text-align: center;

        gap: 40px;
    }

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

    .hero-buttons,
    .social-links {
        justify-content: center;
    }

    .hero-image {
        flex: none;
    }

    .hero-image img {
        width: 240px;
        height: 240px;
    }
}
/* =========================================================
   MOBILE FIX
========================================================= */

@media (max-width: 900px) {

    /* Prevent horizontal scrolling */
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }


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

    #home {
        width: 100%;
        min-height: auto;
        padding-top: 70px;
        padding-bottom: 80px;
    }

    #home .hero-content {
        width: 100%;

        display: flex !important;

        flex-direction: column-reverse !important;

        align-items: center;

        justify-content: center;

        gap: 40px;
    }


    /* Text */

    #home .hero-text {
        width: 100%;
        max-width: 100%;

        text-align: center;
    }


    #home h1 {
        font-size: clamp(2.8rem, 12vw, 4.5rem);

        line-height: 1.05;

        margin-bottom: 25px;
    }


    #home h2 {
        max-width: 600px;

        margin-left: auto;
        margin-right: auto;

        font-size: 1.55rem;
    }


    #home > div > p:nth-of-type(2) {
        max-width: 600px;

        margin-left: auto;
        margin-right: auto;

        font-size: 1rem;
    }


    /* =========================
       PROFILE IMAGE
    ========================= */

    #home .hero-image {
        width: 100%;

        flex: none;

        display: flex;

        justify-content: center;

        align-items: center;
    }


    #home .hero-image img {
        width: 220px;
        height: 220px;

        max-width: 70vw;
        max-height: 70vw;
    }


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

    #home .hero-buttons {
        justify-content: center;

        align-items: center;

        width: 100%;
    }


    #home .hero-buttons a {
        width: auto;

        min-width: 180px;

        text-align: center;
    }


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

    #home .social-links {
        justify-content: center;

        width: 100%;
    }


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

    section {
        width: 100%;

        padding: 70px 22px;
    }


    section h2 {
        font-size: 2.2rem;
    }


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

    #skills > article {
        width: 100%;

        margin-right: 0 !important;

        margin-bottom: 20px;

        min-height: auto;
    }


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

    #experience article {
        width: 100%;

        max-width: 100%;

        padding: 25px;
    }


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

    #projects article {
        width: 100%;

        max-width: 100%;

        padding: 25px;
    }


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

    #education article {
        width: 100%;

        margin-right: 0 !important;

        padding: 25px;
    }


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

    .certificates-grid {
        width: 100%;

        grid-template-columns: 1fr;

        gap: 20px;
    }


    .certificate-card {
        width: 100%;
    }


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

    #contact {
        width: 100%;

        padding-left: 22px;
        padding-right: 22px;
    }


    .contact-links {
        width: 100%;

        gap: 10px;
    }


    .contact-links a,
    .contact-button {
        width: auto;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 500px) {

    #home {
        padding-top: 55px;

        padding-bottom: 65px;
    }


    #home .hero-content {
        gap: 30px;
    }


    #home .hero-image img {
        width: 200px;

        height: 200px;
    }


    #home h1 {
        font-size: 2.8rem;
    }


    #home h2 {
        font-size: 1.35rem;
    }


    #home > div > p:nth-of-type(2) {
        font-size: 0.98rem;
    }


    .hero-buttons {
        flex-direction: column;

        gap: 12px;
    }


    #home .hero-buttons a {
        width: 100%;

        max-width: 280px;
    }


    section {
        padding: 60px 20px;
    }


    section h2 {
        font-size: 2rem;
    }


    #skills > article,
    #experience article,
    #projects article,
    #education article {
        padding: 22px;
    }


    .certificate-info {
        padding: 20px;
    }


    .contact-links {
        flex-direction: column;

        align-items: stretch;
    }


    .contact-links a,
    .contact-button {
        width: 100%;

        text-align: center;
    }

}
/* =========================================================
   RESUME
========================================================= */

#resume {
    max-width: 1200px;
    margin: auto;
}

.resume-container {
    max-width: 900px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 30px;
}


/* Resume Preview */

.resume-preview {
    width: 100%;
    height: 750px;

    overflow: hidden;

    border: 1px solid #293657;
    border-radius: 18px;

    background: #11182b;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25);
}

.resume-preview iframe {
    width: 100%;
    height: 100%;

    border: none;

    display: block;
}


/* Resume Buttons */

.resume-actions {
    display: flex;

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

    gap: 15px;

    flex-wrap: wrap;
}

.resume-button {
    display: inline-block;

    padding: 12px 22px;

    border-radius: 9px;

    font-weight: 600;

    transition: 0.3s ease;
}


/* Open button */

.resume-button.primary {
    background: linear-gradient(
        135deg,
        #6d7cff,
        #8b5cf6
    );

    color: white;

    border: 1px solid #7180ff;
}

.resume-button.primary:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 30px rgba(109, 124, 255, 0.25);
}


/* Download button */

.resume-button.secondary {
    background: #131c32;

    color: #cbd5f5;

    border: 1px solid #334269;
}

.resume-button.secondary:hover {
    transform: translateY(-3px);

    background: #202d4d;

    color: white;

    border-color: #6678b4;
}


/* =========================================================
   MOBILE RESUME
========================================================= */

@media (max-width: 600px) {

    #resume {
        padding-left: 20px;
        padding-right: 20px;
    }

    .resume-preview {
        height: 550px;

        border-radius: 12px;
    }

    .resume-actions {
        width: 100%;

        flex-direction: column;
    }

    .resume-button {
        width: 100%;

        max-width: 300px;

        text-align: center;
    }
}
/* =========================================================
   3D PROFILE IMAGE
========================================================= */

.hero-image {
    perspective: 1000px;
}

.hero-image img {
    transform-style: preserve-3d;

    will-change: transform;

    transition:
        transform 0.15s ease-out,
        box-shadow 0.3s ease;
}

.hero-image::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    border-radius: 50%;

    background: rgba(109, 124, 255, 0.18);

    filter: blur(45px);

    z-index: -1;

    pointer-events: none;
}
/* =========================================================
   3D PROJECT CARDS
========================================================= */

#projects article {
    transform-style: preserve-3d;

    will-change: transform;

    transition:
        transform 0.15s ease-out,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

#projects {
    perspective: 1200px;
}

#projects article:hover {
    border-color: #6d7cff;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(109, 124, 255, 0.08);
}
/* =========================================================
   3D CERTIFICATE CARDS
========================================================= */

#certifications {
    perspective: 1200px;
}

.certificate-card {
    transform-style: preserve-3d;

    will-change: transform;

    transition:
        transform 0.15s ease-out,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.certificate-card:hover {
    border-color: #6d7cff;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.3);
}