/* =========================
   DESIGN TOKENS
========================= */

:root {
    --bg: #f3efe6;
    --bg-alt: #e9edf1;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-solid: #ffffff;
    --ink: #13202c;
    --muted: #5f6c79;
    --line: rgba(19, 32, 44, 0.10);
    --brand: #a87422;
    --brand-2: #e1b35d;
    --nav: #0e1d2c;
    --nav-2: #15293d;
    --shadow-lg: 0 24px 60px rgba(13, 25, 38, 0.14);
    --shadow-md: 0 14px 35px rgba(13, 25, 38, 0.10);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(212, 161, 76, 0.16), transparent 32%),
        radial-gradient(circle at bottom right, rgba(19, 32, 44, 0.08), transparent 30%),
        var(--bg);
    line-height: 1.7;
}

.container {
    width: min(92%, 1200px);
    margin: 0 auto;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(10, 20, 31, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(9, 18, 28, 0.18);
}

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

.logo {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.4px;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(12, 24, 36, 0.82), rgba(12, 24, 36, 0.55)),
        url("../images/hero.1a8af3811f12.jpeg") center center / cover no-repeat;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.hero::before {
    width: 420px;
    height: 420px;
    top: -140px;
    right: -160px;
}

.hero::after {
    width: 280px;
    height: 280px;
    left: -120px;
    bottom: -120px;
}

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

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-2);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 14px;
}

.hero-label::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(3rem, 6vw, 5.1rem);
    line-height: 0.98;
    letter-spacing: -2px;
    margin: 12px 0 18px;
}

.hero h2 {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 22px;
}

.hero p {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(8, 18, 28, 0.16);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c89639, #e2b35f);
}

.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.38);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.14);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.image-frame {
    width: min(360px, 100%);
    height: 430px;
    padding: 14px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
    box-shadow: 0 28px 70px rgba(10, 18, 28, 0.24);
    transform: rotate(2deg);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #dce2e7, #f5f7f9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder span {
    font-size: 5rem;
    font-weight: 800;
    color: var(--nav);
}

.experience-badge {
    position: absolute;
    bottom: 8px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #b37220);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.experience-badge strong {
    font-size: 2rem;
    line-height: 1;
}

.experience-badge span {
    font-size: 0.8rem;
    line-height: 1.35;
}

section {
    padding: 104px 0;
}

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

.section-heading > span {
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
}

.section-heading h2 {
    margin-top: 10px;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.section-heading h2 span {
    color: var(--brand);
}

.section-heading p {
    margin-top: 14px;
    max-width: 720px;
    color: var(--muted);
}

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

.section-heading.center p {
    margin-left: auto;
    margin-right: auto;
}

.about-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.34));
}

.about-content {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 56px;
    align-items: start;
    margin-top: 40px;
}

.about-text {
    color: var(--muted);
}

.about-text p {
    margin-bottom: 22px;
    font-size: 1rem;
    line-height: 1.9;
}

.about-text strong {
    color: var(--ink);
}

.about-card {
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.info-item {
    padding: 18px 0;
    border-bottom: 1px solid rgba(19, 32, 44, 0.08);
}

.info-item:first-child {
    padding-top: 0;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item strong {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item span {
    color: var(--muted);
}

.skills-grid,
.certificates-grid,
.projects-grid,
.education-grid {
    display: grid;
    gap: 26px;
}

.expertise-section {
    background: linear-gradient(180deg, rgba(14, 29, 44, 0.02), rgba(14, 29, 44, 0.02)), var(--bg-alt);
}

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

.skill-card {
    padding: 34px 26px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,247,241,0.98));
    border: 1px solid rgba(19, 32, 44, 0.07);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(10, 18, 28, 0.24);
}

.skill-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #8d621d);
    box-shadow: 0 12px 20px rgba(185, 133, 47, 0.24);
    font-size: 1.5rem;
}

.skill-card h3 {
    color: var(--ink);
    margin-bottom: 10px;
    font-size: 1.15rem;
}

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

.timeline {
    max-width: 820px;
    border-left: 2px solid rgba(185, 133, 47, 0.45);
    padding-left: 34px;
}

.timeline-item {
    position: relative;
    padding-bottom: 28px;
}

.timeline-dot {
    position: absolute;
    left: -43px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 0 0 6px rgba(185, 133, 47, 0.12);
}

.timeline-date {
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 800;
}

.timeline-content h3 {
    margin-top: 6px;
    color: var(--ink);
    font-size: 1.45rem;
}

.timeline-content h4 {
    margin-bottom: 10px;
    color: var(--muted);
}

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

.projects-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.34));
}

.projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 34px;
}

.project-card {
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,247,241,0.98));
    border: 1px solid rgba(19, 32, 44, 0.07);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(10, 18, 28, 0.24);
}

.project-image {
    width: 100%;
    height: 220px;
    background: #e7ebef;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.project-content {
    padding: 24px;
}

.project-content h3 {
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 1.22rem;
}

.project-date {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 800;
}

.project-content p {
    margin-bottom: 16px;
    color: var(--muted);
}

.project-detail {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.project-detail strong {
    color: var(--ink);
}

.project-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--brand);
    font-weight: 800;
}

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

.projects-placeholder {
    padding: 64px 28px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,247,241,0.98));
    border: 1px dashed rgba(185, 133, 47, 0.55);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.projects-placeholder h3 {
    margin-bottom: 10px;
    color: var(--ink);
}

.projects-placeholder p {
    color: var(--muted);
}

.education-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 34px;
}

.education-card {
    display: flex;
    gap: 18px;
    padding: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,247,241,0.98));
    border: 1px solid rgba(19, 32, 44, 0.07);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.education-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(10, 18, 28, 0.24);
}

.education-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 24px;
    color: var(--nav);
    background: linear-gradient(135deg, rgba(212, 161, 76, 0.26), rgba(185, 133, 47, 0.12));
}

.education-content h3 {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 1.15rem;
}

.education-content h4 {
    margin-bottom: 8px;
    color: var(--brand);
    font-size: 1rem;
}

.education-location,
.education-date,
.education-content p {
    color: var(--muted);
}

.education-location {
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.education-date {
    margin-bottom: 14px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--ink);
}

.education-content p {
    margin: 0;
    line-height: 1.7;
}

.certificates-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,247,241,0.98));
}

.certificates-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 34px;
}

.certificate-card {
    padding: 30px;
    background: linear-gradient(180deg, rgba(212, 161, 76, 0.06), rgba(255, 255, 255, 0)), #f9fafb;
    border: 1px solid rgba(19, 32, 44, 0.07);
    border-top: 4px solid var(--brand);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(10, 18, 28, 0.24);
}

.certificate-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nav);
    color: var(--brand-2);
    font-weight: 800;
}

.certificate-card h3 {
    margin-bottom: 10px;
    color: var(--ink);
}

.certificate-card p {
    margin-bottom: 5px;
    color: var(--muted);
}

.certificate-card small {
    display: block;
    margin-bottom: 20px;
    color: #7b8792;
}

.certificate-link {
    color: var(--brand);
    font-weight: 800;
    font-size: 0.92rem;
}

.certificate-link:hover {
    color: var(--ink);
}

.contact-section {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(6, 14, 22, 0.98), rgba(15, 30, 44, 0.98)), var(--nav);
}

.contact-section .section-heading > span,
.contact-section .section-heading h2 span {
    color: var(--brand-2);
}

.contact-section .section-heading h2 {
    color: #ffffff;
}

.contact-section .section-heading p {
    color: rgba(255, 255, 255, 0.74);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 46px;
    margin-top: 46px;
}

.contact-info {
    padding: 10px 0;
}

.contact-info h3 {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 1.6rem;
}

.contact-info > p {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.76);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.contact-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(212, 161, 76, 0.14);
    color: var(--brand-2);
    font-weight: 800;
}

.contact-item span {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item a,
.contact-item p {
    margin: 0;
    color: #ffffff;
}

.contact-item a:hover {
    color: var(--brand-2);
}

.contact-card {
    padding: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-xl);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.contact-card-content > span {
    color: var(--brand-2);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 3px;
}

.contact-card h3 {
    margin: 14px 0;
    font-size: 2rem;
    color: #ffffff;
}

.contact-card p {
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.76);
}

footer {
    padding: 28px 0;
    color: #b5c0ca;
    background: #06101a;
    text-align: center;
}

footer p {
    margin: 5px 0;
    font-size: 0.85rem;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1000px) {
    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p {
        margin-inline: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

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

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 16px 24px 22px;
        background: #ffffff;
        box-shadow: 0 16px 30px rgba(12, 22, 33, 0.12);
    }

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

    .nav-links a {
        padding: 12px 0;
        color: var(--ink);
        border-bottom: 1px solid #edf0f2;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a::after {
        display: none;
    }
}

@media (max-width: 800px) {
    section {
        padding: 82px 0;
    }

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

@media (max-width: 650px) {
    .skills-grid,
    .projects-grid,
    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 200px;
    }

    .contact-card {
        padding: 28px;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        letter-spacing: -1px;
    }

    .hero h2 {
        font-size: 1rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 500px) {
    .about-card,
    .skill-card,
    .education-card,
    .project-content,
    .certificate-card,
    .contact-card {
        padding: 22px;
    }

    .education-card {
        flex-direction: column;
    }

    .contact-card h3 {
        font-size: 1.55rem;
    }
}
/* =========================
   GALLERY AND HERO SLIDESHOW
========================= */

.hero-slideshow {
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: cover;
    transition: opacity 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slide-dots {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 16px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-slide-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.hero-slide-dot.is-active {
    background: var(--brand-2);
    border-color: var(--brand-2);
}

.gallery-page {
    min-height: 70vh;
    padding: 104px 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.34)),
        var(--bg);
}

.gallery-page .section-heading h1 {
    color: var(--ink);
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-top: 42px;
}

.gallery-card {
    overflow: hidden;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.gallery-card > a {
    display: block;
    height: 280px;
    overflow: hidden;
    background: var(--bg-alt);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.gallery-card-content {
    padding: 22px;
}

.gallery-card-content h2 {
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 1.15rem;
}

.gallery-card-content p {
    color: var(--muted);
    font-size: 0.95rem;
}

.gallery-empty {
    grid-column: 1 / -1;
    width: 100%;
}

@media (max-width: 1000px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card > a {
        height: 240px;
    }
}
