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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #f8f9fc;
    color: #0f1c33;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

:root {
    --navy: #0b1830;
    --navy-light: #13274a;
    --blue: #3457e5;
    --blue-light: #5c6ef8;
    --purple: #635bff;
    --text: #0f1c33;
    --muted: #6a7486;
    --border: #e4e8f0;
    --white: #ffffff;
    --background: #f8f9fc;
    --success: #1bbf72;
    --shadow: 0 12px 35px rgba(23, 36, 67, 0.08);
    --radius: 18px;
}


/* =========================================================
   SHARED CONTAINERS
========================================================= */

.section {
    padding: 90px 0;
}

.section-container,
.footer-container,
.header-container,
.hero-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.section-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--navy);
}


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

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 40;
    padding-top: 26px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.site-logo {
    font-family: "Caveat", cursive;
    font-size: 2rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.02em;
}

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

/* =========================================================
   DESKTOP TOP NAVIGATION
========================================================= */

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
    margin-right: 34px;
}

.desktop-nav a {
    position: relative;
    padding: 8px 0;
    color: #56637a;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    transition:
        color 0.25s ease,
        transform 0.25s ease,
        text-shadow 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
    color: var(--blue);
    transform: translateY(-2px);
    text-shadow: 0 5px 14px rgba(52, 87, 229, 0.18);
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 0;
    height: 2px;
    border-radius: 20px;
    background: var(--blue);
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
    width: 100%;
}

.menu-button {
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 10px 25px rgba(9, 24, 48, 0.15);
    transition: transform 0.25s ease;
}

.menu-button:hover {
    transform: translateY(-2px);
}

.menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
}


/* =========================================================
   MENU OVERLAY
========================================================= */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 14, 28, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 70;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   SIDE MENU
========================================================= */

.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(330px, 90vw);
    height: 100vh;
    background: #08172d;
    color: #ffffff;
    z-index: 80;
    padding: 32px 28px 34px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    transform: translateX(0);
}

.menu-close {
    align-self: flex-end;
    background: transparent;
    border: 0;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 28px;
}

.side-navigation {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.98rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(74, 92, 255, 0.16);
    color: #ffffff;
}

.nav-icon {
    width: 21px;
    height: 21px;
    display: inline-flex;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-social {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
}

.menu-social p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 14px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


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

.hero-section {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    padding: 130px 0 120px;
    overflow: hidden;

    /* Warm sunset / white split inspired by the reference */
    background:
        linear-gradient(
            90deg,
            #b9380b 0%,
            #d84b0d 23%,
            #ef6712 41%,
            #ff8b1f 48%,
            #fff0df 54%,
            #ffffff 60%,
            #ffffff 100%
        );
}

/* Large soft sunset bloom near the portrait boundary */
.hero-section::before {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    left: 47%;
    top: 46%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255, 217, 128, 0.78) 0%,
            rgba(255, 170, 48, 0.48) 32%,
            rgba(255, 107, 21, 0.18) 58%,
            transparent 73%
        );
    filter: blur(8px);
    pointer-events: none;
    z-index: 0;
}

/* Very subtle warm texture so the orange side does not feel flat */
.hero-section::after {
    content: "";
    position: absolute;
    left: -120px;
    top: -170px;
    width: 520px;
    height: 520px;
    border-radius: 44% 56% 63% 37% / 46% 36% 64% 54%;
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow:
        130px 80px 0 -90px rgba(255, 255, 255, 0.06),
        260px 20px 0 -115px rgba(255, 255, 255, 0.05);
    transform: rotate(-14deg);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 35px;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 4;
}

.hero-kicker {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 22px;
    text-shadow: 0 2px 12px rgba(74, 20, 0, 0.18);
}

.hero-kicker span {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 6px;
}

.hero-title {
    font-size: clamp(3.1rem, 5vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    text-shadow: 0 5px 24px rgba(88, 24, 0, 0.14);
}

/* Keep your highlighted words dark for strong contrast on orange */
.hero-title span {
    color: var(--navy);
    text-shadow: none;
}

.hero-description {
    max-width: 530px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.button {
    min-height: 50px;
    padding: 0 22px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease,
        color 0.22s ease;
}

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

.hero-section .button-primary {
    background: #ffffff;
    color: var(--navy);
    box-shadow: 0 12px 26px rgba(83, 24, 3, 0.18);
}

.hero-section .button-primary:hover {
    background: #fff7ef;
    box-shadow: 0 16px 32px rgba(83, 24, 3, 0.24);
}

.hero-section .button-secondary {
    background: rgba(11, 24, 48, 0.92);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 26px rgba(83, 24, 3, 0.13);
}

.hero-section .button-secondary:hover {
    background: var(--navy);
}

.button-dark {
    background: var(--navy);
    color: #ffffff;
}

.hero-image-wrapper {
    height: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: visible;
    background: transparent;
    isolation: isolate;
}

/* The actual dying-sun disc behind one side of the portrait */
.hero-image-wrapper::before {
    content: "";
    position: absolute;
    width: 390px;
    height: 390px;
    left: -40px;
    top: 108px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 42% 42%,
            #ffd876 0%,
            #ffb33a 28%,
            #ff7a18 54%,
            rgba(230, 76, 12, 0.68) 70%,
            rgba(206, 54, 8, 0.12) 82%,
            transparent 88%
        );
    box-shadow:
        0 0 48px rgba(255, 133, 24, 0.42),
        0 0 110px rgba(255, 91, 15, 0.24);
    filter: blur(1px);
    z-index: 0;
    pointer-events: none;
}

.hero-image-wrapper::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    left: -95px;
    top: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 157, 66, 0.16);
    z-index: 0;
    pointer-events: none;
}

.hero-image {
    width: auto;
    height: 570px;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: block;
    position: relative;
    z-index: 3;
    transform: translateX(-25px) translateY(15px);
    filter: drop-shadow(-10px 12px 24px rgba(56, 21, 8, 0.08));
}

.stats-section {
    position: relative;
    z-index: 10;
    margin-top: -66px;
}

.stats-container {
    width: min(1100px, calc(100% - 56px));
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 16px 38px rgba(24, 35, 64, 0.08);
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    padding: 25px 24px;
}

.stat-card {
    text-align: center;
    padding: 4px 16px;
}

.stat-icon {
    font-size: 1.45rem;
    color: var(--blue);
    margin-bottom: 6px;
    font-weight: 700;
}

.stat-card h3 {
    font-size: 1.7rem;
    line-height: 1;
    color: var(--navy);
    margin-bottom: 8px;
}

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

.stat-divider {
    width: 1px;
    height: 58px;
    background: var(--border);
}


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

.about-section {
    padding-top: 125px;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 70px;
    align-items: center;
    margin-bottom: 42px;
}

.about-text {
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 28px;
}

.about-image-wrapper {
    min-height: 380px;
}

.about-image {
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.specialty-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(31, 43, 73, 0.04);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.specialty-icon {
    font-size: 1.45rem;
    font-weight: 700;
}

.networking-icon,
.development-icon {
    color: #3066e6;
}

.security-icon {
    color: #19a965;
}

.problem-icon {
    color: #f0a21a;
}

.specialty-card h3 {
    font-size: 0.93rem;
    margin-bottom: 3px;
}

.specialty-card p {
    font-size: 0.73rem;
    color: var(--muted);
}


/* =========================================================
   TECHNOLOGIES
========================================================= */

.technologies-section {
    padding-top: 70px;
}

.technology-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-button {
    border: 1px solid var(--border);
    background: #ffffff;
    color: #485268;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 0.82rem;
    transition: all 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
    background: var(--navy);
    color: #ffffff;
    border-color: var(--navy);
}

.technology-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.technology-card {
    min-height: 62px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(27, 43, 75, 0.025);
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease,
        background 0.24s ease;
}

.technology-card:hover {
    transform: translateY(-6px) scale(1.018);
    border-color: rgba(52, 87, 229, 0.28);
    background: #fbfcff;
    box-shadow: 0 16px 30px rgba(27, 43, 75, 0.11);
}

.technology-card:hover .technology-logo {
    transform: translateY(-2px) scale(1.14) rotate(-2deg);
}

.technology-card.hidden {
    display: none;
}

.technology-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
    display: block;
    background: transparent;
    border: none;
    border-radius: 0;
}




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

.certifications-section {
    padding-top: 78px;
    scroll-margin-top: 30px;
}

.certifications-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 30px;
}

.certifications-intro {
    max-width: 760px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.certificate-card {
    min-width: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(22, 36, 72, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
    border-color: rgba(52, 87, 229, 0.24);
    box-shadow: 0 18px 38px rgba(22, 36, 72, 0.1);
}

.certificate-preview {
    height: 185px;
    background: linear-gradient(145deg, #f5f7fc 0%, #eef2fb 100%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.certificate-preview-image {
    background: #ffffff;
}

.certificate-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 12px;
}

.certificate-pdf-preview {
    flex-direction: column;
    gap: 12px;
    color: var(--navy);
}

.certificate-file-icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 1px solid rgba(52, 87, 229, 0.16);
    box-shadow: 0 8px 20px rgba(22, 36, 72, 0.07);
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.certificate-content {
    padding: 20px;
}

.certificate-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(52, 87, 229, 0.08);
    color: var(--blue);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.certificate-content h3 {
    color: var(--navy);
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 8px;
}

.certificate-content p {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.certificate-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 700;
}

.certificate-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.stat-card-link {
    display: block;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.stat-card-link:hover {
    background: #f7f9ff;
    transform: translateY(-2px);
}


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

.contact-page {
    min-height: 100vh;
    padding: 155px 0 95px;
    background:
        radial-gradient(circle at 90% 8%, rgba(52, 87, 229, 0.07), transparent 26%),
        var(--background);
}

.contact-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 54px;
    align-items: start;
}

.contact-page-copy .section-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 18px;
}

.contact-page-intro {
    max-width: 560px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 30px;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.contact-detail {
    min-width: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 7px 20px rgba(22, 36, 72, 0.035);
}

.contact-detail span {
    display: block;
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 5px;
}

.contact-detail strong,
.contact-detail a {
    display: block;
    color: var(--navy);
    font-size: 0.88rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.contact-detail a:hover {
    color: var(--blue);
}

.contact-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.contact-social-links a {
    min-height: 42px;
    padding: 0 15px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 36, 72, 0.14);
}

.contact-social-links a[href*="github.com"] {
    background: #181717;
}

.contact-social-links a[href*="linkedin.com"] {
    background: #0a66c2;
}

.contact-social-links a[href*="instagram.com"] {
    background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045);
}

.contact-form-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 18px 45px rgba(22, 36, 72, 0.08);
}

.contact-form-group {
    margin-bottom: 18px;
}

.contact-form-group label {
    display: block;
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 7px;
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    border: 1px solid #d7ddea;
    background: #fbfcff;
    color: var(--navy);
    border-radius: 10px;
    outline: none;
    padding: 13px 14px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form-group input {
    min-height: 48px;
}

.contact-form-group textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    background: #ffffff;
    border-color: rgba(52, 87, 229, 0.7);
    box-shadow: 0 0 0 4px rgba(52, 87, 229, 0.09);
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
    color: #939cad;
}

.contact-submit {
    width: 100%;
    border: 0;
    margin-top: 4px;
}

.form-errors {
    margin-top: 6px;
    color: #b42318;
    font-size: 0.74rem;
}


/* =========================================================
   SOCIAL BRAND BUTTONS
========================================================= */

.social-links a,
.footer-social-links a {
    color: #ffffff;
    overflow: hidden;
}

.social-links a[aria-label="GitHub"],
.footer-social-links a[aria-label="GitHub"] {
    background: #181717;
    border-color: #181717;
}

.social-links a[aria-label="LinkedIn"],
.footer-social-links a[aria-label="LinkedIn"] {
    background: #0a66c2;
    border-color: #0a66c2;
}

.social-links a[aria-label="Instagram"],
.footer-social-links a[aria-label="Instagram"] {
    background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045);
    border-color: transparent;
}

.social-links a:hover,
.footer-social-links a:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
}

.social-links svg,
.footer-social-links svg {
    width: 18px;
    height: 18px;
}


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

.projects-section {
    padding-top: 80px;
}

.projects-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 26px;
}

.projects-view-all {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px 16px;
    font-size: 0.82rem;
    color: var(--navy);
    background: #ffffff;
}

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

.project-card {
    background: #ffffff;
    border-radius: 13px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(21, 34, 65, 0.04);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(52, 87, 229, 0.24);
    box-shadow: 0 20px 38px rgba(22, 36, 72, 0.13);
}

.project-image-wrapper {
    padding: 14px 14px 0;
}

.project-image {
    height: 170px;
    object-fit: cover;
    border-radius: 9px;
    background: #eef1f7;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.project-card:hover .project-image {
    transform: scale(1.045);
    filter: saturate(1.05) contrast(1.02);
}

.project-content {
    padding: 18px 18px 20px;
}

.project-content h3 {
    font-size: 1.02rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.project-content p {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 14px;
}

.project-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.project-tags span {
    font-size: 0.67rem;
    padding: 4px 8px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: #f9fafc;
    color: #5a6476;
}

.project-link {
    display: inline-flex;
    gap: 7px;
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 600;
}


/* =========================================================
   JOURNEY
========================================================= */

.journey-section {
    padding-top: 70px;
    padding-bottom: 80px;
}

.journey-label,
.journey-title {
    text-align: left;
}

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 55px;
}

.timeline-line {
    position: absolute;
    top: 8px;
    left: 7%;
    right: 7%;
    height: 1px;
    background: #cbd3e3;
}

.timeline-item {
    position: relative;
    text-align: center;
    padding: 0 14px;
}

.timeline-dot {
    position: relative;
    z-index: 2;
    width: 14px;
    height: 14px;
    margin: 1px auto 22px;
    background: var(--blue);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(52, 87, 229, 0.25);
}

.timeline-dot-future {
    background: var(--navy);
}

.timeline-content h3 {
    font-size: 0.83rem;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.74rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.timeline-content span {
    font-size: 0.78rem;
    color: var(--blue);
}


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

.contact-cta-section {
    padding-bottom: 55px;
}

.contact-cta {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    min-height: 145px;
    padding: 28px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 8px 28px rgba(24, 40, 73, 0.04);
}

.contact-cta-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-cta-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4b67f4, #744fff);
    color: #ffffff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 1.4rem;
}

.contact-cta h2 {
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.contact-cta p {
    font-size: 0.84rem;
    color: var(--muted);
}


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

.site-footer {
    background: var(--navy);
    color: #ffffff;
    padding: 38px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    position: relative;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-logo span {
    font-size: 1.4rem;
    color: #6d6cff;
}

.footer-brand p,
.footer-brand small,
.footer-social p {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.76rem;
}

.footer-brand small {
    display: inline-block;
    margin-top: 8px;
}

.footer-social-links {
    display: flex;
    gap: 8px;
    margin-top: 9px;
}

.footer-social-links a {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    display: grid;
    place-items: center;
    font-size: 0.78rem;
}

.back-to-top {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--navy-light);
    display: grid;
    place-items: center;
    color: #ffffff;
}


/* =========================================================
   FLASH MESSAGES
========================================================= */

.flash-container {
    position: fixed;
    top: 85px;
    right: 24px;
    z-index: 100;
}

.flash-message {
    padding: 12px 18px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    font-size: 0.85rem;
}

.flash-message.success {
    border-color: rgba(27, 191, 114, 0.25);
    color: #11784c;
}


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

@media (max-width: 1050px) {

    .desktop-nav {
        gap: 18px;
        margin-right: 22px;
    }

    .desktop-nav a {
        font-size: 0.8rem;
    }

    .hero-container,
    .about-grid {
        gap: 42px;
    }

    .technology-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

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


@media (max-width: 900px) {

    .desktop-nav {
        display: none;
    }

    .hero-section {
        padding-top: 130px;
        min-height: auto;
        background:
            linear-gradient(
                180deg,
                #cf470d 0%,
                #ef6d15 42%,
                #fff2e4 63%,
                #ffffff 76%,
                #ffffff 100%
            );
    }

    .hero-section::before {
        width: 460px;
        height: 460px;
        left: 55%;
        top: 58%;
        opacity: 0.7;
    }

    .hero-image-wrapper::before {
        left: 50%;
        transform: translateX(-50%);
        top: 18px;
        width: 320px;
        height: 320px;
    }

    .hero-image-wrapper::after {
        left: 50%;
        transform: translateX(-50%);
        top: -18px;
        width: 390px;
        height: 390px;
    }

    .hero-container,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-image-wrapper {
        min-height: 340px;
    }

    .hero-image {
        height: 340px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 0;
    }

    .stat-divider {
        display: none;
    }

    .technology-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 45px 0;
    }

    .timeline-line {
        display: none;
    }

    .contact-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}


@media (max-width: 680px) {

    .section-container,
    .footer-container,
    .header-container,
    .hero-container {
        width: min(100% - 28px, 1180px);
    }

    .site-header {
        padding-top: 18px;
    }

    .site-logo {
        font-size: 1.65rem;
    }

    .menu-button {
        width: 46px;
        height: 46px;
    }

    .hero-section {
        padding-top: 110px;
        padding-bottom: 90px;
    }

    .hero-section::after {
        opacity: 0.4;
    }

    .hero-image-wrapper::before {
        width: 270px;
        height: 270px;
        top: 35px;
    }

    .hero-image-wrapper::after {
        width: 325px;
        height: 325px;
        top: 7px;
    }

    .hero-title {
        font-size: clamp(2.6rem, 11vw, 4rem);
    }

    .hero-kicker {
        font-size: 0.74rem;
    }

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

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

    .button {
        width: 100%;
    }

    .stats-section {
        margin-top: -50px;
    }

    .stats-container {
        width: min(100% - 24px, 1100px);
        grid-template-columns: 1fr 1fr;
        padding: 22px 12px;
    }

    .stat-card {
        padding: 6px;
    }

    .stat-card h3 {
        font-size: 1.4rem;
    }

    .stat-card p {
        font-size: 0.7rem;
    }

    .section {
        padding: 65px 0;
    }

    .about-section {
        padding-top: 90px;
    }

    .about-image {
        height: 300px;
    }

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

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

    .technology-card {
        padding: 0 12px;
        font-size: 0.78rem;
    }

    .certifications-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .certificate-preview {
        height: 210px;
    }

    .contact-page {
        padding: 125px 0 70px;
    }

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

    .contact-form-card {
        padding: 22px 18px;
    }

    .projects-heading {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .timeline {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .timeline-item {
        text-align: left;
        padding-left: 0;
    }

    .timeline-dot {
        margin-left: 0;
        margin-bottom: 14px;
    }

    .contact-cta {
        padding: 24px 20px;
    }

    .contact-cta-left {
        align-items: flex-start;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .back-to-top {
        right: 0;
        top: 0;
        bottom: auto;
    }
}


@media (max-width: 430px) {

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

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

    .hero-image {
        height: 280px;
    }

    .about-image {
        height: 260px;
    }

    .certificate-preview {
        height: 185px;
    }

    .contact-page-copy .section-title {
        font-size: 2.35rem;
    }

    .contact-social-links {
        flex-direction: column;
    }

    .contact-social-links a {
        width: 100%;
    }
}
/* =========================================================
   SCROLL REVEAL ANIMATION
========================================================= */

.reveal-item {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease;
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   FINAL INTEGRATION POLISH
========================================================= */

/* Certificate screenshots: show the real certificate page clearly */
.certificate-preview-image {
    background: #ffffff;
}

.certificate-preview-image .certificate-image {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
    object-position: center;
}

/* Real social icons in footer */
.footer-social-links a {
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.footer-social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.footer-social-links svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-social-links a[aria-label="GitHub"] {
    background: #181717;
}

.footer-social-links a[aria-label="LinkedIn"] {
    background: #0a66c2;
}

.footer-social-links a[aria-label="Instagram"] {
    background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045);
}

/* Contact social buttons include icon + name */
.contact-social-links a {
    gap: 8px;
}

.contact-social-links svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Make homepage anchor jumps land cleanly below the header */
#about,
#skills,
#certifications,
#projects {
    scroll-margin-top: 28px;
}
