/* Font Declarations */
@font-face {
    font-family: "SST";
    src: url("fonts/SSTW02Roman.woff2") format("woff2");
    font-style: normal;
    font-weight: 200;
}

@font-face {
    font-family: "SST";
    src: url("fonts/SSTW02Light.woff2") format("woff2");
    font-style: normal;
    font-weight: 300;
}

@font-face {
    font-family: "SST";
    src: url("fonts/SSTW02Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
}

/* CSS Variables from Figma */
:root {
    --colors-black: #020200;
    --colors-secondary: #fbfbfb;
    --colors-primary: #fe4b02;
    --colors-foreground: #ffffff;
    
    --gaps-gap-2: 8px;
    --gaps-gap-3: 12px;
    --gaps-gap-4: 16px;
    --gaps-gap-7: 32px;
    --gaps-gap-9: 44px;
    
    --paddings-p-0: 0;
    --paddings-p-2: 4px;
    --paddings-p-5: 12px;
    --paddings-p-6: 16px;
    --paddings-p-8: 24px;
    --paddings-p-9: 32px;
    --paddings-p-10: 44px;
    --paddings-p-11: 64px;
    
    --sizes-max-screen-width: 1000px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    height: -webkit-fill-available;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "SST", sans-serif;
    background: linear-gradient(rgb(255, 255, 255) 0%, rgb(165, 166, 171) 100%);
    background-attachment: fixed;
    color: var(--colors-black);
    height: 100%;
    height: -webkit-fill-available;
    width: 100%;
    margin: 0;
    padding: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-top: constant(safe-area-inset-top); /* iOS 11.0-11.2 */
    padding-bottom: constant(safe-area-inset-bottom); /* iOS 11.0-11.2 */
}

/* Page Wrapper - Full Screen */
.page-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Background SVG Triangle */
.bg-svg-triangle {
    position: fixed;
    height: 100vh;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 1;
}

.bg-svg-triangle .triangle-img {
    display: block;
    max-width: none;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

/* Background Image Section with Diagonal Cut - Animation */
@keyframes expandBackground {
    0% {
        height: 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }
    100% {
        height: 400px;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 75%);
    }
}

/* Background Image Section with Diagonal Cut */
.bg-image-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    z-index: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 75%);
    overflow: hidden;
    z-index: 2;
    animation: expandBackground 1.5s cubic-bezier(0.2, 0, 0.05, 1) forwards;
    transform-origin: top;
}

.bg-image-section .bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Main Section */
.main-section {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--gaps-gap-9);
    padding: var(--paddings-p-0);
}

/* Topbar */
.topbar {
    width: 100%;
    padding: var(--paddings-p-8) 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.topbar-section {
    display: flex;
    gap: var(--gaps-gap-3);
    height: 30px;
    align-items: center;
    justify-content: center;
    max-width: 1190px;
    width: var(--sizes-max-screen-width);
}

.topbar-col-left {
    flex: 1;
    display: flex;
    gap: var(--gaps-gap-4);
    align-items: center;
    min-width: 0;
}

.sony-center-logo {
    height: 30px;
    width: 197.462px;
    flex-shrink: 0;
}

.sony-center-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.distributor-text {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding-bottom: 2px;
    flex-shrink: 0;
}

.distributor-link {
    font-family: "SST", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    color: var(--colors-foreground);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.topbar-col-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    flex-shrink: 0;
    width: 113.636px;
}

.sony-logo {
    height: 18px;
    width: 102.273px;
    overflow: hidden;
    flex-shrink: 0;
}

.sony-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Middle Content */
.middle-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--paddings-p-0);
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-bottom: var(--paddings-p-10);
    min-height: 0;
    transform-origin: center center;
}

/* Camera and Content Section */
.camera-content-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Camera Image */
.camera-image-wrapper {
    height: 303.888px;
    width: 322px;
    position: relative;
    margin-bottom: -30px;
    z-index: 2;
}

.camera-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Main Text */
.main-text {
    display: flex;
    flex-direction: column;
    gap: var(--paddings-p-6);
    align-items: center;
    padding: var(--paddings-p-0) var(--paddings-p-8);
    width: 100%;
    margin-bottom: 0;
}

/* Badge NOWOŚĆ */
.badge-new {
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-new-img {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
}

/* Alpha 7V Logo */
.alpha7v-logo {
    height: 80.633px;
    width: 210.357px;
    overflow: hidden;
    position: relative;
}

.alpha7v-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Text Container */
.text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.main-title {
    font-family: "SST", sans-serif;
    font-weight: 700;
    font-size: 41px;
    line-height: normal;
    color: var(--colors-black);
    text-align: center;
    white-space: nowrap;
    letter-spacing: -1.64px;
    margin: 0;
}

.subtitle-text {
    font-family: "SST", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: normal;
    color: var(--colors-black);
    text-align: center;
    width: 100%;
    max-width: 1440px;
    letter-spacing: -0.2px;
    margin: 0;
}


/* Buttons Group */
.buttons-group {
    display: flex;
    gap: var(--paddings-p-6);
    align-items: flex-start;
    justify-content: center;
    padding: var(--paddings-p-8) var(--paddings-p-0);
    margin-top: var(--paddings-p-6);
}

.btn {
    display: flex;
    gap: var(--gaps-gap-9);
    align-items: center;
    justify-content: center;
    padding: var(--paddings-p-5) var(--paddings-p-9);
    border: none;
    cursor: pointer;
    font-family: "SST", sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: normal;
    color: var(--colors-foreground);
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn:active {
    transform: translateY(0);
}

.btn-orange {
    background: var(--colors-primary);
    color: var(--colors-foreground);
}

.btn span {
    flex-shrink: 0;
}

/* Bottom Links */
.bottom-links {
    display: flex;
    gap: var(--gaps-gap-7);
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.bottom-link {
    display: flex;
    gap: var(--gaps-gap-2);
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--colors-black);
    position: relative;
    padding: 4px 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.bottom-link:hover {
    transform: scale(1.05);
    opacity: 1;
}

.bottom-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--colors-black);
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

.bottom-link:hover::after {
    width: calc(100% - 16px);
    left: 50%;
}

.link-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
    transition: transform 0.3s ease;
}

.bottom-link:hover .link-icon {
    transform: scale(1.1);
}

.bottom-link span {
    font-family: "SST", sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: normal;
    color: var(--colors-black);
    text-align: center;
    white-space: nowrap;
    letter-spacing: -0.13px;
    position: relative;
    transition: color 0.3s ease;
}

/* Animation Styles for animate.css */
.animate__animated {
    opacity: 0;
}

.animate__animated.animate__fadeInUp,
.animate__animated.animate__fadeInDown {
    opacity: 1;
}

/* Responsive Design - Bootstrap 5 Breakpoints */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    html {
        height: 100vh;
        height: 100dvh;
        height: -webkit-fill-available;
    }
    
    body {
        background: rgb(187, 188, 192);
        min-height: 100vh;
        min-height: 100dvh;
        min-height: -webkit-fill-available;
    }
    
    .page-wrapper {
        background: rgb(187, 188, 192);
        min-height: 100vh;
        min-height: 100dvh;
        min-height: -webkit-fill-available;
    }
    
    .bg-image-section {
        height: 300px !important;
    }
    
    @keyframes expandBackgroundMobile {
        0% {
            height: 0;
            clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        }
        100% {
            height: 200px;
            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 75%);
        }
    }
    
    .bg-image-section {
        animation: expandBackgroundMobile 1.5s cubic-bezier(0.2, 0, 0.05, 1) forwards;
    }
    
    .topbar {
        padding: var(--paddings-p-6) var(--paddings-p-6);
    }
    
    .topbar-section {
        flex-direction: column;
        height: auto;
        gap: var(--paddings-p-6);
        width: 100%;
        max-width: 100%;
    }
    
    .topbar-col-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .distributor-text {
        text-align: center;
    }
    
    .distributor-link {
        font-size: 12px;
    }
    
    .topbar-col-right {
        width: auto;
        align-items: center;
    }
    
    .main-title {
        font-size: 32px;
        letter-spacing: -1.28px;
        white-space: normal;
    }
    
    .subtitle-text {
        font-size: 16px;
        padding: 0 var(--paddings-p-6);
    }
    
    
    .alpha7v-logo {
        height: 60px;
        width: 160px;
    }
    
    .camera-image-wrapper {
        height: 240px;
        width: 260px;
    }
    
    .buttons-group {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: var(--paddings-p-6) var(--paddings-p-6);
        gap: var(--paddings-p-6);
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .bottom-links {
        flex-wrap: nowrap;
        gap: var(--paddings-p-6);
        padding: var(--paddings-p-4);
        margin-top: var(--paddings-p-6);
        overflow-x: auto;
        -ms-overflow-style: none;
        justify-content: flex-start;
        flex-direction: column;
    }
    
    .bottom-links::-webkit-scrollbar {
        display: none;
    }
    
    .bottom-link {
        flex-shrink: 0;
    }

}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .topbar {
        padding: var(--paddings-p-6) var(--paddings-p-8);
    }
    
    .topbar-section {
        flex-direction: column;
        height: auto;
        gap: var(--paddings-p-6);
        width: 100%;
        max-width: 100%;
    }
    
    .topbar-col-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .distributor-text {
        text-align: center;
    }
    
    .distributor-link {
        font-size: 12px;
    }
    
    .topbar-col-right {
        width: auto;
        align-items: center;
    }
    
    .main-title {
        font-size: 36px;
        letter-spacing: -1.44px;
    }
    
    .subtitle-text {
        font-size: 18px;
        padding: 0 var(--paddings-p-8);
    }
    
    .buttons-group {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .topbar {
        padding: var(--paddings-p-6) var(--paddings-p-8);
    }
    
    .topbar-section {
        flex-direction: column;
        height: auto;
        gap: var(--paddings-p-6);
        width: 100%;
        max-width: 100%;
    }
    
    .topbar-col-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .distributor-text {
        text-align: center;
    }
    
    .distributor-link {
        font-size: 16px;
    }
    
    .topbar-col-right {
        width: auto;
        align-items: center;
    }
    
    .main-title {
        font-size: 38px;
        letter-spacing: -1.52px;
    }
    
    .bottom-links {
        flex-wrap: nowrap;
        gap: var(--paddings-p-4);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .bottom-links::-webkit-scrollbar {
        display: none;
    }
    
    .bottom-link {
        flex-shrink: 0;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .topbar-section {
        width: var(--sizes-max-screen-width);
    }
}

/* Extra large devices - skalowanie proporcjonalne dla większych ekranów */
/* Skalowanie jest obsługiwane przez JavaScript dla płynnego efektu */
/* Bazowa szerokość: 1400px = scale(1) */
/* Maksymalna szerokość: 3840px = scale(2) */
.middle-content {
    transform-origin: center center;
    transition: transform 0.3s ease-out;
    margin-top: var(--paddings-p-11);
}

/* Media query for small heights - prevent camera from overlapping background image */
@media (max-height: 800px) and (min-width: 576px) {
    @keyframes expandBackgroundSmall {
        0% {
            height: 0;
            clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        }
        100% {
            height: 45vh;
            min-height: 350px;
            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 75%);
        }
    }
    
    .bg-image-section {
        height: 45vh;
        min-height: 350px;
        animation: expandBackgroundSmall 1.5s cubic-bezier(0.2, 0, 0.05, 1) forwards;
    }
    
    .middle-content {
        padding-top: calc(var(--paddings-p-11) + 20px);
        justify-content: flex-start;
    }
    
    .camera-image-wrapper {
        margin-top: 20px;
    }
}

/* Mobile specific - ensure scrolling works */
@media (max-width: 575.98px) {
    .middle-content {
        padding-top: 0;
        padding-bottom: var(--paddings-p-10);
        min-height: auto;
    }
    
    .main-section {
        min-height: auto;
        height: auto;
    }
}

/* Media query for large heights - background grows with screen height */
@media (min-height: 800px) {
    @keyframes expandBackgroundLarge {
        0% {
            height: 0;
            clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        }
        100% {
            height: 40vh;
            min-height: 300px;
            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 75%);
        }
    }
    
    .bg-image-section {
        height: 40vh;
        min-height: 300px;
        animation: expandBackgroundLarge 1.5s cubic-bezier(0.2, 0, 0.05, 1) forwards;
    }
}

