/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #50e3c2;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --border-color: #333333;
    --accent-green: #4caf50;
    --accent-red: #f44336;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* ===================================
   Gallery + Hero Grid Section
   =================================== */
.gallery-hero-section {
    background-color: var(--bg-secondary);
    padding: 40px 20px 60px;
}

.gallery-hero-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.gallery-column {
    min-width: 0;
}

@media (max-width: 968px) {
    .gallery-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 600px;
    background-color: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .gallery-main {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .gallery-main {
        height: 300px;
    }
}

.gallery-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Video Thumbnail */
.video-slide {
    background-color: #000;
}

.video-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.video-thumbnail:hover .play-button-overlay {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-thumbnail.playing {
    cursor: default;
}

.video-thumbnail.playing img,
.video-thumbnail.playing .play-button-overlay {
    display: none;
}

.video-thumbnail iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 2;
}

/* Gallery Navigation Buttons */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-prev {
    left: 20px;
}

.gallery-nav-next {
    right: 20px;
}

@media (max-width: 768px) {
    .gallery-nav {
        width: 40px;
        height: 40px;
    }
    
    .gallery-nav-prev {
        left: 10px;
    }
    
    .gallery-nav-next {
        right: 10px;
    }
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.thumbnail {
    flex: 0 0 auto;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 480px) {
    .thumbnail {
        width: 100px;
        height: 65px;
    }
}

/* ===================================
   Hero Column (right side)
   =================================== */
.hero-column {
    padding: 20px 0;
    text-align: left;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-primary);
}

@media (max-width: 968px) {
    .hero-column {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .hero-description {
        font-size: 0.9375rem;
    }
}

/* Email Form */
.email-form {
    max-width: 600px;
}

.hero-column .email-form {
    margin: 0;
}

.hero-column .form-group {
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
}

.hero-column .email-form input[type="email"] {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #cccccc;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.hero-column .email-form input[type="email"]::placeholder {
    color: #999999;
}

.hero-column .email-form input[type="email"]:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(80, 227, 194, 0.15);
}

.hero-column .checkbox-label {
    justify-content: flex-start;
    margin-bottom: 12px;
}

.hero-column .email-form button[type="submit"] {
    width: 100%;
    background: var(--secondary-color);
    color: #ffffff;
    font-weight: 700;
    border-radius: 6px;
    padding: 14px 32px;
}

.hero-column .email-form button[type="submit"]:hover {
    background: #3dcaab;
    box-shadow: 0 4px 12px rgba(80, 227, 194, 0.3);
}

.form-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .form-group {
        flex-direction: column;
    }
}

.email-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    min-height: 48px;
}

.email-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.email-form button[type="submit"] {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #357abd 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 48px;
}

.email-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

.email-form button[type="submit"]:active {
    transform: translateY(0);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    justify-content: center;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

@media (max-width: 640px) {
    .checkbox-label {
        justify-content: flex-start;
        text-align: left;
    }
}

/* ===================================
   Tabs Section
   =================================== */
.tabs-section {
    padding: 60px 0;
}

.tabs-header {
    display: flex;
    gap: 40px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 60px;
}

@media (max-width: 640px) {
    .tabs-header {
        gap: 20px;
    }
}

.tab-btn {
    padding: 16px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--text-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@media (max-width: 480px) {
    .tab-btn {
        font-size: 1rem;
    }
}

.tabs-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-state svg {
    margin: 0 auto 24px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 1rem;
}

/* ===================================
   Feature Sections
   =================================== */
.feature-section {
    padding: 60px 0;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stay-connected-section .feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.signal-turns-section .feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.signal-turns-section .feature-video {
    order: 1;
}

.signal-turns-section .feature-text {
    order: 2;
}

@media (max-width: 968px) {
    .stay-connected-section .feature-content {
        grid-template-columns: 1fr;
    }

    .signal-turns-section .feature-content {
        grid-template-columns: 1fr;
    }
}

.feature-image {
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.feature-image img {
    width: 100%;
    height: auto;
}

.feature-video {
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.feature-video video {
    width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Standalone Images
   =================================== */
.standalone-image {
    padding: 20px 0;
}

.standalone-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ===================================
   Feature Pair (side-by-side cards)
   =================================== */
.feature-pair {
    padding: 60px 0;
}

.feature-pair-header {
    text-align: center;
    margin-bottom: 40px;
}

.feature-pair-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

.feature-pair-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .feature-pair-header h2 {
        font-size: 2rem;
    }
    .feature-pair-header p {
        font-size: 1rem;
    }
}

.feature-pair-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .feature-pair-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    text-align: center;
}

.feature-card .feature-image {
    margin-bottom: 20px;
}

.feature-card h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .feature-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .feature-text h2 {
        font-size: 1.5rem;
    }
}

.feature-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.feature-video-inline {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .feature-text p {
        font-size: 1rem;
    }
}

/* ===================================
   CTA Block
   =================================== */
.cta-block {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-primary);
}

.cta-block .email-form {
    margin: 0 auto;
}

.cta-block .form-group {
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
}

.cta-block .email-form input[type="email"] {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #cccccc;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.cta-block .email-form input[type="email"]::placeholder {
    color: #999999;
}

.cta-block .email-form input[type="email"]:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(80, 227, 194, 0.15);
}

.cta-block .checkbox-label {
    justify-content: flex-start;
    margin-bottom: 12px;
}

.cta-block .email-form button[type="submit"] {
    width: 100%;
    background: var(--secondary-color);
    color: #ffffff;
    font-weight: 700;
    border-radius: 6px;
    padding: 14px 32px;
}

.cta-block .email-form button[type="submit"]:hover {
    background: #3dcaab;
    box-shadow: 0 4px 12px rgba(80, 227, 194, 0.3);
}

.cta-block h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .cta-block {
        padding: 60px 0;
    }
    
    .cta-block h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .cta-block h2 {
        font-size: 1.75rem;
    }
}

.cta-block p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ===================================
   FAQ Section
   =================================== */
.faq-section {
    padding: 80px 0;
}

.faq-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    .faq-section h2 {
        font-size: 2rem;
    }
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
    min-height: 60px;
}

.faq-question:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .faq-question {
        font-size: 1rem;
        padding: 20px 0;
    }
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 24px;
}

.faq-answer p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===================================
   Utility Classes
   =================================== */
.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Touch improvements for mobile */
@media (max-width: 768px) {
    button,
    a,
    .thumbnail,
    .faq-question {
        -webkit-tap-highlight-color: rgba(74, 144, 226, 0.2);
    }
}

/* Loading animation for images */
img {
    background: linear-gradient(90deg, var(--bg-tertiary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

img[src] {
    animation: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
