/* ========== GENERAL STYLES ========== */
body {
    background-color: black;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--body-font), var(--fallback-fonts);
}

/* ========== NAVIGATION ========== */
.top-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: white;
    padding: 15px 30px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    transition: color 0.3s, transform 0.3s;
    position: relative;
    display: inline-block;
}

.logo:hover {
    color: #00bfff;
    transform: scale(1.05);
}

.logo::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #00bfff;
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    display: inline-block;
    color: black;
    font-family: var(--body-font), var(--fallback-fonts);
}

.nav-link:hover {
    color: #00bfff;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #00bfff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ========== HERO & FEATURED VIDEO ========== */
.video-container {
    width: 100%;
    margin: 25px 0 40px 0;
    padding: 0 5%;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.video-container video {
    width: 100%;
    max-height: 75vh;
    display: block;
    object-fit: cover;
}

.featured-image {
    width: 100%;
    height: 75vh;
    object-fit: cover;
}

/* ========== HERO IMAGE ========== */
.hero-image-container {
    width: 100%;
    margin: 40px 0;
    padding: 0 5%;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-image-container img,
.hero-image-full img {
    width: 100%;
    max-height: 75vh;
    display: block;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-image-full {
    width: 100vw;
    overflow: hidden;
    margin-bottom: 30px;
}

/* ========== TEXT SECTIONS ========== */
.hero {
    padding: 60px 10% 30px 5%;
}

.hero h1 {
    margin-bottom: 20px;
}

.hero h2 {
    margin-bottom: 30px;
}

.section {
    padding: 30px 15% 30px 5%;
}

.section p {
    margin-bottom: 20px;
    font-size: var(--font-size-body);
    color: #ddd;
    line-height: 1.6;
}

/* ========== LAYOUT WITH IMAGES ========== */
.text-with-image {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.standard-layout .text-content,
.reversed-layout .text-content {
    flex: 0 0 60%;
}

.standard-layout .side-image,
.reversed-layout .side-image {
    flex: 0 0 35%;
}

.reversed-layout {
    flex-direction: row-reverse;
}

/* ========== IMAGES & CAPTIONS ========== */
.side-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 170px;
}

.side-image img {
    width: 70%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.image-caption {
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: center;
    width: 70%;
    font-size: var(--font-size-caption);
    color: #ccc;
    font-style: italic;
    font-family: var(--body-font), var(--fallback-fonts);
}

.image-link {
    font-size: 0.9rem;
    color: #cccccc;
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: color 0.3s;
    text-align: center;
    width: 70%;
    font-style: italic;
    line-height: 1.4;
    font-family: var(--body-font), var(--fallback-fonts);
}

.image-link:hover {
    color: #66d9ff;
    text-decoration: underline;
}

/* ========== VIDEO DEMONSTRATIONS ========== */
.video-demos {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
    width: 100%;
}

.video-demo {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.demo-video {
    width: 100%;
    display: block;
    border-radius: 8px 8px 0 0;
}

.video-caption {
    padding: 10px 15px;
    margin: 0;
    background: #222;
    text-align: center;
    border-top: 1px solid #333;
    color: #ccc;
    font-size: 0.9rem;
    font-family: var(--body-font), var(--fallback-fonts);
}

/* ========== FULL-WIDTH VIDEOS ========== */
.full-width-videos {
    width: 80%;
    margin: 40px auto;
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
}

.no-distortion-demo {
    width: 100%;
    margin-bottom: -15px;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
}

.no-distortion-demo .demo-video {
    width: 100%;
    height: 450px;
    object-fit: contain;
    background-color: #000;
    border-radius: 8px;
    position: relative;
    z-index: 2;
    padding-bottom: 36px;
    margin-bottom: -36px;
    box-sizing: border-box;
}

.amplitude-demo,
.spectrum-demo {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.spectrum-demo .demo-video {
    width: 100%;
    height: 450px;
    object-fit: contain;
    /* Changed from 'fill' to 'contain' */
    border-radius: 8px 8px 0 0;
    background-color: black;
    /* Add this to fill empty space */
}

.amplitude-demo .demo-video,
.spectrum-demo .demo-video {
    width: 100%;
    height: 450px;
    object-fit: fill;
    border-radius: 8px 8px 0 0;
}

.amplitude-demo .video-caption,
.spectrum-demo .video-caption {
    padding: 10px 15px;
    margin: 0;
    background: #222;
    text-align: center;
    border-top: 1px solid #333;
    border-radius: 0 0 8px 8px;
    color: #ccc;
    font-size: 0.9rem;
    font-family: var(--body-font), var(--fallback-fonts);
}

.section-title {
    margin-bottom: 30px;
    font-size: var(--font-size-h2);
    color: #fff;
    font-family: var(--header-font), var(--fallback-fonts);
}

.amplitude-style-demo {
    width: 100%;
    margin-bottom: 30px;
}

.amplitude-style-demo .demo-video {
    width: 100%;
    height: 450px;
    object-fit: fill;
}

.full-width-videos .amplitude-style-demo:last-child {
    margin-bottom: 0;
}

/* ========== VIDEO CAROUSEL ========== */
.video-carousel {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.video-slide.active {
    opacity: 1;
    visibility: visible;
}

.video-slide .demo-video {
    width: 100%;
    height: 380px;
    object-fit: cover;
    background: #000;
}

.video-slide .video-caption {
    padding: 15px 20px;
    background: #222;
    color: #cccccc;
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
    border-top: 1px solid #444;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--body-font), var(--fallback-fonts);
}

/* Carousel navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 191, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-dots {
    text-align: center;
    padding: 20px;
    background: #111;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #555;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.dot:hover,
.dot.active {
    background-color: #00bfff;
    transform: scale(1.2);
}

/* ========== IMAGE SHOWCASE ========== */
.image-showcase {
    padding: 30px 5%;
}

.full-width-image {
    width: 100%;
    position: relative;
}

.full-width-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ========== SOCIAL LINKS ========== */
.social-intro {
    color: white !important;
    opacity: 1 !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    margin-bottom: 15px !important;
}

.social-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    opacity: 1 !important;
    margin: 50px auto 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 20px !important;
    z-index: 100 !important;
    position: relative !important;
}

.social-links-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.social-link {
    color: white;
    text-decoration: none;
    font-family: var(--body-font), var(--fallback-fonts);
    font-size: var(--font-size-social-link);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-link:hover {
    color: #00bfff;
}

.social-link i {
    width: 20px;
    text-align: center;
}

/* ========== PAGE TRANSITIONS & ANIMATIONS ========== */

.fade-in-animation {
    animation: fadeIn 0.8s ease-in-out forwards;
}

.no-animation {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    z-index: 9999;
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.5s ease;
}

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

/* MacBook Pro screens (1280px - 1728px) */
@media (min-width: 1025px) and (max-width: 1728px) {
    .hero {
        padding: 50px 10% 25px 5%;
    }

    .section {
        padding: 25px 10% 25px 5%;
    }

    .side-image {
        margin-left: 120px;
    }

    .social-links {
        margin: 40px auto 0;
    }
}

/* Tablet (993px - 1024px) */
@media (min-width: 993px) and (max-width: 1024px) {
    .top-menu {
        padding: 15px 20px;
    }

    .hero {
        padding: 40px 5%;
    }

    .section {
        padding: 20px 5%;
    }

    .side-image {
        margin-left: 80px;
    }

    .social-links {
        margin: 60px auto 20px;
    }

    .social-links-container {
        gap: 20px;
    }
}

/* Medium screens (768px - 992px) */
@media (min-width: 768px) and (max-width: 992px) {
    .top-menu {
        padding: 12px 15px;
    }

    .hero {
        padding: 35px 5%;
    }

    .section {
        padding: 15px 5%;
    }

    .side-image {
        margin-left: 40px;
    }

    .social-links {
        margin: 40px auto 20px;
    }

    .social-links-container {
        gap: 15px;
    }

    .full-width-videos {
        flex-direction: column;
        gap: 20px;
    }

    .amplitude-demo,
    .spectrum-demo {
        width: 100%;
    }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
    .top-menu {
        padding: 12px 15px;
    }

    .hero {
        padding: 30px 5%;
    }

    .section {
        padding: 10px 5%;
    }

    .side-image {
        margin-left: 0;
    }

    .social-links {
        margin: 30px auto 15px;
        padding: 10px 0 15px;
    }

    .social-links-container {
        gap: 15px;
    }

    .social-link {
        font-size: 0.85rem;
    }

    .full-width-videos {
        flex-direction: column;
        gap: 20px;
    }

    .amplitude-demo,
    .spectrum-demo {
        width: 100%;
    }
}

/* Small phones (up to 480px) */
@media (max-width: 480px) {
    .hero {
        padding: 25px 5% 20px;
    }

    .section {
        padding: 8px 5%;
    }

    .social-links {
        padding: 8px 0 15px;
    }

    .social-links-container {
        gap: 10px;
    }
}