﻿/* =====================================================
   RESET & GLOBAL BASE
===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: "Inter", sans-serif;
    background: #0a0a0a;
    color: #fff;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Small utility underline */
.underline-small {
    width: 40px;
    height: 3px;
    background: #3dabff;
    margin: 10px 0 20px 0;
    border-radius: 2px;
}

    .underline-small.center {
        margin-left: auto;
        margin-right: auto;
    }

/* =====================================================
   under construction
===================================================== */
.corner-badge {
    position: fixed;
    top: 20px;
    right: 43%;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 8px 12px;
    font-size: 1rem;
    border-radius: 6px;
    z-index: 9999;
}


/* =====================================================
   STICKY LOGO HEADER
===================================================== */
.sticky-header {
    position: fixed;   /* <— instead of sticky */
    top: 16px;         /* keeps it spaced from top */
    left: 0;
    width: 4%;       /* so it doesn't squeeze */
    display: flex;
    justify-content: center;
    z-index: 9999;
    pointer-events: none;
}

.site-logo {
    height: 100px;
}


/* =====================================================
   HERO SECTION
===================================================== */
.hero {
    position: relative; /* FIXED */
    z-index: 1;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
}

.hero-image-stack {
    position: absolute;
    inset: 0;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .8s ease;
}

    .hero-img.active {
        opacity: 1;
    }

.hero-overlay {
    position: absolute;
    bottom: 120px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
}

.hero-subtitle {
    margin-top: 12px;
    font-size: 20px;
    opacity: .85;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    opacity: .7;
}

.hero {
    transform: none !important;
}


/* =====================================================
   CTA BLOCK
===================================================== */
.cta-block {
    width: 100%;
    background: #111;
    padding: 80px 20px;
    text-align: center;
}

.cta-title {
    font-size: 36px;
    margin-bottom: 12px;
}

.cta-text {
    font-size: 18px;
    opacity: .9;
    max-width: 2048px;
    margin: 0 auto;
}

/* =====================================================
   SECTION IMAGE + INFO PAIR 1-3
===================================================== */

/* TOP IMAGE PANEL — 1080px high full width */
.fullheight-image {
    width: 100%;
    height: 1080px;
    position: relative;
    overflow: visible;
}

    .fullheight-image img.section-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity .8s ease;
    }

        .fullheight-image img.section-img.active {
            opacity: 1;
        }



/* INFO BLOCK — 720px height */
.section-info-block {
    width: 100%;
    height: 720px;
    background: #0f0f0f;
    display: flex;
    padding: 2%;
    gap: 2%;
    box-shadow: inset 0 30px 25px 0 rgba(0,0,0,0.8);
}

/* LEFT VIDEO AREA */
.info-video {
    width: auto;
    height: 100%;
    align-items: center;
    justify-content: center;
}

    .info-video iframe {
        width: auto;
        height: 100%; /* ← keeps the correct 16:9 aspect ratio */
        aspect-ratio: 16/9;
        border-radius: 10px;
    }

/* RIGHT TEXT AREA */
.info-textblock {
    flex-direction: column;    
    position: relative;
}

    .info-textblock .info-title {
        font-size: 36px;
        margin-bottom: 6px;
    }

    .info-textblock .underline-small {
        margin-bottom: 18px;
    }

    .info-textblock .info-text {
        font-size: 19px;
        line-height: 1.55;
        opacity: .92;
        margin-bottom: 40px;
    }

.info-quote {
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: .85;
}

    .info-quote .quote-avatar {
        width: 10%;
        height: 10%;
        border-radius: 50%;
        border: 4px solid #fff;
    }

/* BUTTON BOTTOM-RIGHT */
.info-button-area {
    position: absolute;
    bottom: 0;
    right: 0;
}

    .info-button-area .section-button {
        padding: 14px 36px;
        font-size: 18px;
        background: #007bff;
        color: #fff;
        border-radius: 8px;
        transition: transform .25s ease, background .25s ease;
    }

        .info-button-area .section-button:hover {
            transform: translateY(-3px);
            background: #3394ff;
        }






/* =======================
   DIAGONAL IMAGE SIDES
======================= */
.diagonal-image {
    position: relative;
    width: 50%;
    height: 800px;
    display: flex;
    overflow: hidden;
    background: #000;
}

.diagonal-half {
    position: relative;
    width: 55%;
    height: 100%;
    overflow: hidden;
}

.diagonal-image.left {
    float: left;
    margin-right: 0%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.diagonal-image.right {
    float: right;
    margin-left: 0%;
    clip-path: polygon(0% 0%, 100% 0, 100% 100%, 0 100%);
}




/* =======================
   BOTTOM INFO BLOCK
======================= */
.diagonal-info-wrapper {
    clear: both;
    display: flex;
    justify-content: space-between;
    background: #0f0f0f;
    padding: 60px 50px;
}

.diagonal-info-block {
    width: 48%;
}


/* =======================
   IMAGE CYCLING IMAGES
======================= */
.section-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
}

    .section-img.active {
        opacity: 1;
    }


/* =======================
   BUTTONS
======================= */
.info-button-wrapper {
    margin-top: 25px;
}

    .info-button-wrapper .section-button {
        padding: 14px 36px;
        font-size: 18px;
        background: #007bff;
        color: #fff;
        border-radius: 8px;
        display: inline-block;
        transition: transform .25s ease, background .25s ease;
    }

        .info-button-wrapper .section-button:hover {
            transform: translateY(-3px);
            background: #3394ff;
        }




/* =====================================================
   SKILLS SECTION
===================================================== */
.skills-section {
    position: relative;
    background: #111;
    padding: 100px 20px;
    text-align: center;
    overflow: hidden;
}

    /* Blurred background image */
    .skills-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url("/images/ui/skill_bg.jpg");
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        filter: blur(10px);
        opacity: 1;
        transform: scale(1.1); /* prevents blur edge clipping */
        z-index: 0;
    }

    /* Dark overlay for contrast */
    .skills-section::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1;
    }

    /* Ensure content stays above background */
    .skills-section > * {
        position: relative;
        z-index: 2;
    }


/* Section title */
.skills-title {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 12px;
}

/* Grid layout */
.skills-grid {
    max-width: 1800px;
    margin: 48px auto 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Card container */
.skill-card {
    background: #181818;
    padding: 32px 36px;
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
    text-align: left;
}

    .skill-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    }

/* Card heading */
.skill-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

/* Paragraph text */
.skill-desc {
    font-size: 0.9rem;
    line-height: 1.55;
    opacity: 0.85;
    margin-bottom: 14px;
}

    /* Emphasized lines (job titles, skill labels) */
    .skill-desc strong {
        display: block;
        font-weight: 600;
        opacity: 1;
        margin-bottom: 2px;
    }

/* Reduce weight for secondary info (e.g. Languages) */
.skill-card .skill-desc:last-child {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Slight spacing rhythm for experience entries */
.skill-card .skill-desc:not(:last-child) {
    margin-bottom: 18px;
}

/* Optional: center software list visually */
.skill-card:nth-child(3) {
    text-align: center;
}

    .skill-card:nth-child(3) .skill-desc {
        margin-bottom: 8px;
        font-size: 0.9rem;
        opacity: 0.85;
    }

/* =====================================================
   CONTACT SECTION
===================================================== */
.contact-section {
    padding: 100px 20px;
    background: #0f0f0f;
}

.contact-inner {
    max-width: 50%;
    margin: auto;
    display: flex;
    gap: 60px;
    align-items: center;
}

.profile-photo {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cocver;
    border: 4px solid #3dabff;
}

.contact-link {
    padding: 12px 22px;
    border-radius: 6px;
    background: #3dabff;
    color: #000 !important; /* FIX */
    font-weight: 700;
    transition: background .2s, transform .2s;
}

.contact-text {
    margin-bottom: 30px; /* Fix overlap */
}

.contact-links {
    margin-top: 20px; /* Add breathing room */
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Prevent overlap on small screens */
}

.contact-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}


/* =====================================================
   GALLERY GRID MODAL
===================================================== */
.gallery-grid-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    opacity: 0;
    pointer-events: none;
    z-index: 9990;
    transition: opacity .3s ease;
}

    .gallery-grid-modal.show {
        opacity: 1;
        pointer-events: auto;
    }

.grid-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 2048px;
    max-height: 90vh;
    background: #111;
    border-radius: 12px;
    padding: 24px;
    overflow-y: auto;
}

.grid-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* =====================================================
   LIGHTBOX VIEWER
===================================================== */
.lightbox-new {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .lightbox-new.show {
        display: flex;
    }
.lb-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}
.lb-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 32px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.8;
}

    .lb-close:hover {
        opacity: 1;
    }
.lb-prev,
.lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
}

    .lb-prev:hover,
    .lb-next:hover {
        opacity: 1;
    }
.lb-prev {
    left: 24px;
    transform: translateY(-50%) rotate(90deg);
}

.lb-next {
    right: 24px;
    transform: translateY(-50%) rotate(-90deg);
}

.lb-prev,
.lb-next {
    background-image: url("/images/ui/scroll-indicator.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/* =====================================================
   SCROLL-POP ANIMATION (NEW)
===================================================== */
.scroll-pop {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

    .scroll-pop.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1100px) {
    .section-pair {
        flex-direction: column;
    }

    .fullheight-image {
        height: 480px;
    }

    .contact-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 780px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .grid-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

