* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background: #07090d;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    overflow: hidden;
}

button {
    font-family: inherit;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #07090d;
}

.hero-background-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    left: -280px;
    top: 39%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(72, 103, 190, 0.12);
    filter: blur(140px);
    pointer-events: none;
    z-index: 3;
}

.hero-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 42%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 6%;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    animation: heroEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.15s;
}

.hero-text {
    width: 100%;
    max-width: 650px;
    transform: translateY(-90px);
}

.hero-title {
    font-size: clamp(60px, 6vw, 105px);
    line-height: 0.92;
    letter-spacing: -5px;
    font-weight: 800;
}

.hero-title span {
    display: block;
    color: transparent;
    background: linear-gradient(
        100deg,
        #ffe47a 0%,
        #ffb15e 23%,
        #ff876e 40%,
        #75e5ed 67%,
        #71a9ff 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
}

.hero-description {
    max-width: 560px;
    margin-top: 28px;
    color: #f5f7fb;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.65;
}

.skills-section {
    margin-top: 28px;
}

.skills-title {
    margin-bottom: 14px;
    color: transparent;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(
        100deg,
        #ffe47a 0%,
        #ffb15e 28%,
        #75e5ed 68%,
        #71a9ff 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    max-width: 570px;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.work-section {
    margin-top: 30px;
    pointer-events: auto;
}

.work-title {
    margin-bottom: 13px;
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
}

.work-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 600px;
}

.work-button {
    min-width: 175px;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 11px;
    background: linear-gradient(
        105deg,
        rgba(255, 180, 90, 0.10),
        rgba(100, 205, 255, 0.08)
    );
    color: #ffffff;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    pointer-events: auto;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.work-button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 190, 120, 0.4);
    background: linear-gradient(
        105deg,
        rgba(255, 180, 90, 0.16),
        rgba(100, 205, 255, 0.13)
    );
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.work-button-icon {
    color: #ffbb68;
    font-size: 18px;
}

.work-button-arrow {
    margin-left: auto;
    color: #9ee9ff;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.work-button:hover .work-button-arrow {
    transform: translateX(4px);
}

.contact-button {
    width: 190px;
    height: 46px;
    margin-top: 15px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    pointer-events: auto;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.26);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.contact-arrow {
    color: #9ee9ff;
    font-size: 17px;
}

.hero-image-side {
    position: absolute;
    top: 0;
    right: 0;
    width: 88%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    z-index: 5;
    animation: imageEntrance 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition:
        opacity 0.55s ease,
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.55s ease;
}

.hero-image-side.hidden {
    opacity: 0;
    transform: translateX(70px) scale(1.03);
    filter: blur(8px);
    pointer-events: none;
}

.hero-image {
    position: absolute;
    inset: -25px;
    background-image: url("images/MainPageImage.png");
    background-size: cover;
    background-position: 42% center;
    transform: scale(1.025);
    filter: brightness(0.94) saturate(1.03);
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse 42% 44% at 0% 0%,
            rgba(7, 9, 13, 0.62) 0%,
            rgba(7, 9, 13, 0.42) 38%,
            rgba(7, 9, 13, 0.20) 64%,
            rgba(7, 9, 13, 0.06) 82%,
            transparent 100%
        ),
        radial-gradient(
            ellipse 42% 44% at 0% 100%,
            rgba(7, 9, 13, 0.66) 0%,
            rgba(7, 9, 13, 0.44) 38%,
            rgba(7, 9, 13, 0.20) 64%,
            rgba(7, 9, 13, 0.06) 82%,
            transparent 100%
        ),
        linear-gradient(
            90deg,
            #07090d 0%,
            #07090d 22%,
            rgba(7, 9, 13, 0.98) 25%,
            rgba(7, 9, 13, 0.92) 31%,
            rgba(7, 9, 13, 0.80) 39%,
            rgba(7, 9, 13, 0.64) 48%,
            rgba(7, 9, 13, 0.46) 58%,
            rgba(7, 9, 13, 0.30) 68%,
            rgba(7, 9, 13, 0.18) 77%,
            rgba(7, 9, 13, 0.08) 86%,
            rgba(7, 9, 13, 0.03) 93%,
            transparent 100%
        ),
        linear-gradient(
            180deg,
            rgba(7, 9, 13, 0.16) 0%,
            rgba(7, 9, 13, 0.06) 16%,
            transparent 32%
        ),
        linear-gradient(
            0deg,
            rgba(7, 9, 13, 0.28) 0%,
            rgba(7, 9, 13, 0.08) 18%,
            transparent 34%
        );
}

.showcase-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 67%;
    height: 100%;
    z-index: 15;
    padding: 60px 55px 70px 45px;
    overflow-y: auto;
    overflow-x: hidden;
    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(75, 161, 210, 0.08),
            transparent 35%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(255, 157, 78, 0.055),
            transparent 40%
        ),
        #0a0d12;
    border-left: 1px solid rgba(255, 255, 255, 0.055);
    opacity: 0;
    transform: translateX(70px);
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.55s ease,
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.55s;
}

.showcase-panel.open {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.showcase-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

.showcase-panel-label {
    display: block;
    margin-bottom: 7px;
    color: #7d8492;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.showcase-panel-top h2 {
    font-size: clamp(31px, 3vw, 47px);
    font-weight: 800;
    letter-spacing: -2px;
    color: transparent;
    background: linear-gradient(
        100deg,
        #ffe47a,
        #ff9b69,
        #73e2ed,
        #70a9ff
    );
    background-clip: text;
    -webkit-background-clip: text;
}

.close-showcase-button {
    min-width: 94px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.045);
    color: #dfe3eb;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.close-showcase-button:hover {
    transform: translateX(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 320px));
    justify-content: start;
    align-items: start;
    gap: 28px;
}

.video-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
    animation: itemEntrance 0.55s ease forwards;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #05070a;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    background: #05070a;
}

.video-info {
    padding: 14px 15px 15px;
}

.video-name {
    color: #e8ebf0;
    font-size: 13px;
    font-weight: 600;
}

.video-empty-message {
    grid-column: 1 / -1;
}

.empty-message {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-align: center;
}

.empty-symbol {
    font-size: 37px;
    filter: grayscale(1);
    opacity: 0.55;
}

.empty-message h3 {
    color: #777e89;
    font-size: 15px;
    font-weight: 600;
}

.empty-message p {
    color: #555c66;
    font-size: 12px;
}

.image-grid {
    columns: 3 210px;
    column-gap: 18px;
}

.image-card {
    position: relative;
    width: 100%;
    display: inline-block;
    margin-bottom: 18px;
    overflow: hidden;
    break-inside: avoid;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.035);
    cursor: zoom-in;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    animation: itemEntrance 0.55s ease forwards;
}

.image-card img {
    width: 100%;
    height: auto;
    display: block;
    transition:
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.35s ease;
}

.image-card::after {
    content: "View";
    position: absolute;
    left: 50%;
    top: 50%;
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    background: rgba(7, 9, 13, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transform: translate(-50%, -40%);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
    pointer-events: none;
}

.image-card:hover img {
    transform: scale(1.04);
    filter: brightness(0.7);
}

.image-card:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px;
    background: rgba(3, 4, 7, 0.9);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.image-lightbox.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.image-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-lightbox.open img {
    transform: scale(1);
}

.lightbox-close {
    position: fixed;
    top: 25px;
    right: 30px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    font-size: 29px;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.12);
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3, 4, 7, 0.72);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.contact-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.contact-box {
    position: relative;
    width: min(440px, 100%);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(103, 190, 255, 0.10),
            transparent 35%
        ),
        radial-gradient(
            circle at 0% 100%,
            rgba(255, 158, 89, 0.08),
            transparent 35%
        ),
        #0d1117;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.55);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal.open .contact-box {
    transform: translateY(0) scale(1);
}

.contact-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.contact-close:hover {
    background: rgba(255, 255, 255, 0.10);
    transform: scale(1.05);
}

.contact-label {
    display: block;
    margin-bottom: 7px;
    color: #777f8d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.contact-box h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: transparent;
    background: linear-gradient(
        100deg,
        #ffe47a,
        #ff9b69,
        #73e2ed,
        #70a9ff
    );
    background-clip: text;
    -webkit-background-clip: text;
}

.contact-description {
    margin-top: 8px;
    color: #a6acb7;
    font-size: 13px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

.social-button {
    width: 100%;
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    color: #ffffff;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.social-button:hover {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.17);
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 16px;
    font-weight: 700;
}

.social-button div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.social-name {
    font-size: 13px;
    font-weight: 650;
}

.social-handle {
    color: #858c98;
    font-size: 11px;
}

.social-arrow {
    margin-left: auto;
    color: #8b929e;
    font-size: 12px;
}

.showcase-panel::-webkit-scrollbar {
    width: 6px;
}

.showcase-panel::-webkit-scrollbar-track {
    background: transparent;
}

.showcase-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.13);
    border-radius: 10px;
}

@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes imageEntrance {
    from {
        opacity: 0;
        transform: scale(1.04);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes itemEntrance {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .hero-left {
        width: 44%;
        padding-left: 4%;
    }

    .hero-text {
        transform: translateY(-65px);
    }

    .hero-title {
        font-size: clamp(52px, 7vw, 78px);
    }

    .showcase-panel {
        width: 67%;
        padding: 45px 35px 60px;
    }

    .video-grid {
        grid-template-columns: repeat(2, minmax(220px, 260px));
        gap: 20px;
    }

    .image-grid {
        columns: 2 180px;
    }

    .work-button {
        min-width: 155px;
    }
}

@media (max-width: 750px) {
    body {
        overflow: auto;
    }

    .hero {
        min-height: 100vh;
        height: auto;
    }

    .hero-image-side {
        position: fixed;
        width: 100%;
        height: 100vh;
    }

    .hero-image {
        background-position: 65% center;
    }

    .hero-image-overlay {
        background: linear-gradient(
            0deg,
            #07090d 0%,
            rgba(7, 9, 13, 0.97) 28%,
            rgba(7, 9, 13, 0.78) 46%,
            rgba(7, 9, 13, 0.56) 60%,
            rgba(7, 9, 13, 0.34) 72%,
            rgba(7, 9, 13, 0.16) 82%,
            rgba(7, 9, 13, 0.06) 91%,
            transparent 100%
        );
    }

    .hero-left {
        position: relative;
        width: 100%;
        min-height: 100vh;
        padding: 300px 24px 70px;
    }

    .hero-text {
        max-width: 100%;
        transform: none;
    }

    .hero-title {
        font-size: clamp(50px, 15vw, 72px);
        letter-spacing: -3px;
    }

    .hero-description {
        font-size: 15px;
    }

    .showcase-panel {
        position: fixed;
        width: 100%;
        height: 100%;
        padding: 30px 20px 60px;
        z-index: 100;
        border-left: none;
    }

    .video-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
        gap: 16px;
    }

    .image-grid {
        columns: 2 140px;
    }

    .work-button {
        min-width: 150px;
        flex: 1;
    }

    .image-lightbox {
        padding: 20px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }

    .image-grid {
        columns: 1;
    }

    .work-buttons {
        flex-direction: column;
    }

    .work-button,
    .contact-button {
        width: 100%;
    }

    .contact-box {
        padding: 28px 20px 20px;
    }
}