/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Colors */
    --background: #0a0a0a;
    --foreground: #f5f5f5;
    --card: #1a1a1a;
    --card-foreground: #f5f5f5;
    --primary: #dab900; /* Golden accent */
    --primary-foreground: #0a0a0a;
    --secondary: #2a2a2a;
    --secondary-foreground: #f5f5f5;
    --muted: #1f1f1f;
    --muted-foreground: #a1a1a1;
    --accent: #dab900;
    --accent-foreground: #0a0a0a;
    --border: #2a2a2a;
    --ring: #dab900;
    --warm-light: #dab900;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    line-height: 1.2;
    color: var(--foreground);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 900;
    
    /* Metallic gold gradient */
    background: linear-gradient(
        to bottom,
        #ffd700 0%,
        #ffec8b 20%,
        #b38d31 50%,
        #ffec8b 80%,
        #ffd700 100%
    );

    /* Clip gradient to text */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

    /* Subtle shadow to make it pop against light backgrounds */
    filter: drop-shadow(0 2px 4px rgba(62, 12, 16, 0.3));
}

/* Title reveal helpers */
.section-title.reveal-init {
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.7s ease-out, opacity 0.7s ease-out;
}

.section-title.reveal-show {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: #a89100;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(218, 185, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: black;
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-outline-white {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-outline-white:hover {
    background-color: white;
    color: black;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-color: black;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.82));
    z-index: 2;
}

.video-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Cover technique for video */
.video-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100vh;
    width: 177.78vh; /* 100 * 16/9 */
    transform: translate(-50%, -50%);
    object-fit: cover;
}

@media (min-aspect-ratio: 16/9) {
    .video-iframe {
        width: 100vw;
        height: 56.25vw; /* 100 * 9/16 */
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease-out;
    letter-spacing: -0.05em;
    /* Metallic gold gradient */
    background: linear-gradient(
        to bottom,
        #ffd700 0%,      /* bright gold top */
        #ffec8b 20%,     /* lighter highlight */
        #b38d31 50%,     /* mid-tone gold */
        #ffec8b 80%,     /* lighter highlight */
        #ffd700 100%     /* bright gold bottom */
    );

    /* Clip gradient to text */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Note: text-fill-color is usually webkit specific, 
       standard is color: transparent when clipping */
    color: transparent; 

    /* Revised Shadow: text-shadow often breaks background-clip. 
       Using filter: drop-shadow instead for a similar, safer effect. */
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.hero-subtitle {
    font-size: 1.875rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* === One-part split: text left, two images right === */
.vision {
  position: relative;
  padding: 4.5rem 0 5rem;          /* top/bottom padding so it breathes */
  background: linear-gradient(180deg, #0f0f0f 0%, #141414 100%);
  overflow: visible;               /* allow soft shadows, no clipping */
}

/* Tighten the title and intro spacing, then create a clear gap before the split */
.vision .section-title {
  margin-bottom: 1.25rem;          /* was 3rem globally */
}

.vision-intro {
  max-width: 80ch;
  margin: 0 auto 2.25rem;          /* center intro, but not huge */
}

/* The single split: add bottom gap so next section never hugs it */
.vision-single {
  margin: 1rem 0 4.5rem;           /* top + bottom space around the grid */
}

/* Image stack: keep a predictable height so the section can size itself */
.vision-images {
  height: clamp(360px, 42vh, 520px);   /* a tad taller than before */
  min-height: 360px;
  contain: layout paint;               /* prevents overflow affecting siblings */
}

/* Nudge frames so they don't push visually into the next section */
.frame-a { top: 0; right: 0; width: 72%; height: 62%; }
.frame-b { bottom: 2%; right: 8%; width: 64%; height: 48%; }

/* Mobile/tablet: ensure the stack doesn't eat the spacing below */
@media (max-width: 992px) {
  .vision-single { margin: 0.5rem 0 3.5rem; }
  .vision-images { height: 380px; min-height: 340px; }
  .frame-a { top: 0; right: 6%; width: 80%; height: 56%; }
  .frame-b { bottom: 4%; right: 12%; width: 70%; height: 46%; }
}

/* Optional: ensure the next section starts with a clear top padding */
.observe-section + .observe-section {
  scroll-margin-top: 80px;     /* nice anchor behavior */
}

.vision-single {
  display: grid;
  grid-template-columns: 1.1fr 1fr;   /* text wider, images tighter */
  gap: 2.75rem;
  align-items: center;
  margin-top: 1.25rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(0.22,1,0.36,1),
              transform .6s cubic-bezier(0.22,1,0.36,1);
}
.vision-single.is-visible { opacity: 1; transform: translateY(0); }

.vision-text { color: var(--muted-foreground, #c8c8c8); }
.vision-text p + p { margin-top: 1rem; }

/* right-side image stack */
.vision-images {
  position: relative;
  height: clamp(340px, 46vh, 520px);
  min-height: 320px;
}

.vision-frame {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2a2a, #191919);
  border: 1px solid rgba(218,185,0,0.22);  /* subtle golden edge */
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  will-change: transform;
  transition: transform .4s cubic-bezier(0.22,1,0.36,1), box-shadow .4s;
  isolation: isolate; /* for overlays */
}
.vision-frame::after { /* letterbox/edge vignette */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 78%, rgba(0,0,0,.35)),
    radial-gradient(120% 90% at 50% 50%, rgba(255,255,255,.04), rgba(0,0,0,0) 60%);
  pointer-events: none;
}

/* Top/right big frame */
.frame-a {
  top: 0; right: 0;
  width: 72%; height: 64%;
  transform: translate3d(0,0,0) scale(1.0);
}

/* Bottom/left smaller frame (creates the layered look) */
.frame-b {
  bottom: 0; right: 6%;
  width: 62%; height: 50%;
  transform: translate3d(0,0,0) scale(1.0);
}

/* Images inside frames */
.vision-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.03);                     /* Ken Burns start */
  transition: transform 8s linear;            /* settle slowly */
}

/* Hover depth (desktop only) */
@media (hover: hover) and (pointer: fine) {
  .vision-frame:hover { transform: translate3d(0,-4px,0) scale(1.01); box-shadow: 0 22px 70px rgba(0,0,0,.55); }
  .vision-frame:hover img { transform: scale(1.04); transition-duration: .8s; }
}

/* When revealed, let the images settle */
.vision-single.is-visible .vision-frame img { transform: scale(1.0); }

/* Tablet/Mobile: stack vertically */
@media (max-width: 992px) {
  .vision-single { grid-template-columns: 1fr; }
  .vision-images { order: -1; height: 360px; }
  .frame-a { top: 0; right: 4%; width: 78%; height: 58%; }
  .frame-b { bottom: 0; right: 10%; width: 68%; height: 48%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .vision-single, .vision-frame, .vision-frame img {
    transition: none !important;
    transform: none !important;
  }
}


/* Capabilities Section - Dark Theme */
.capabilities {
    padding: 5rem 0;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.capability-card {
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 2.25rem 2rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)), rgba(20,20,20,0.6);
    border: 1px solid rgba(218, 185, 0, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    min-height: 200px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, box-shadow 0.35s ease, border-color 0.35s ease;
}

.capability-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.capability-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(218, 185, 0, 0.25);
    border-color: rgba(218, 185, 0, 0.35);
}

.capability-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #ffe45e, #ffcf00);
    color: #171717;
    box-shadow: 0 6px 16px rgba(255, 207, 0, 0.4);
}

.capability-title {
    margin: 0.25rem 0;
    font-weight: 700;
    font-size: clamp(1rem, 1.1vw + 0.6rem, 1.25rem);
    color: #f3f3f3;
}

.capability-description {
    margin: 0;
    color: rgba(230, 230, 230, 0.75);
    line-height: 1.65;
    font-size: 0.975rem;
}

/* Films Section - Dark Theme */
.films {
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
    padding: 6rem 0;
}

.films-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 90rem;
    margin: 0 auto;
}

.film-card {
    background-color: var(--card);
    border: 1px solid rgba(218, 185, 0, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.7s ease-out;
    opacity: 0;
    transform: translateY(40px);
}

.film-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.film-card:hover {
    box-shadow: 0 25px 50px rgba(218, 185, 0, 0.2);
    border-color: rgba(218, 185, 0, 0.3);
}

.film-poster-container {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.film-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.film-card:hover .film-poster {
    transform: scale(1.1);
}

.film-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.film-card:hover .film-overlay {
    opacity: 1;
}

.film-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: white;
}

.film-tagline {
    font-size: 0.875rem;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.film-synopsis {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.film-credits {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.film-buttons {
    display: flex;
    gap: 0.5rem;
}

.film-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary), #a89100);
}

.film-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary-foreground);
}

/* Book Trailers Section */
.book-trailers {
    position: relative;
    background-color: black;
    padding: 4rem 0;
    overflow: hidden;
}

.book-trailers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8rem;
    height: 100%;
    background: linear-gradient(to right, black, transparent);
    z-index: 10;
}

.book-trailers::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8rem;
    height: 100%;
    background: linear-gradient(to left, black, transparent);
    z-index: 10;
}

.trailers-header {
    text-align: center;
    margin-bottom: 2rem;
}

.trailers-header .section-title {
    color: white;
}

.trailers-ribbon {
    overflow: hidden;
    margin-bottom: 2rem;
}

.trailers-scroll {
    display: flex;
    gap: 1.5rem;
    animation: scroll 40s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .trailers-scroll {
        animation: none;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.trailer-item {
    position: relative;
    flex-shrink: 0;
    width: 400px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid rgba(218, 185, 0, 0.2);
}

.trailer-video-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.trailer-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    object-fit: cover;
}

.trailer-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    object-fit: cover;
}

.trailer-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.5), transparent);
    padding: 1rem;
}

.trailer-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-align: center;
}

.trailers-cta {
    text-align: center;
}

/* Collaborate Section - Dark Theme */
.collaborate {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 6rem 0;
    position: relative;
}

.collaborate::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(218, 185, 0, 0.02) 2px,
        rgba(218, 185, 0, 0.02) 4px
    );
}

.collaborate-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 80rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.collaborate-text {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.7s ease-out;
}

.collaborate-text.visible {
    opacity: 1;
    transform: translateX(0);
}

.collaborate-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.collaborate-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.collaborate-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.collaborate-image {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.7s ease-out 0.3s;
}

.collaborate-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.collaborate-img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-title {
        font-size: 6rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .collaborate-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .capabilities-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .films-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .collaborate-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

/* Tablet responsiveness */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .capabilities-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
}

/* Mobile responsiveness */
@media (max-width: 767.98px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .capability-card {
        transition: none;
    }
    .capability-card:hover {
        transform: none;
    }
}

/* Section 2: News & Blogs */
.news-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
}

.news-grid {
    display: flex;           /* Use flexbox for easier alignment */
    justify-content: flex-start; /* Align all children to the left */
    gap: 2rem;
}

.news-grid.single-card {
    /* Limit max width for the container of the single card (optional) */
    max-width: 420px; /* Slightly wider than card width */
    margin-left: 0;   /* Align left edge */
}

.news-card {
    width: 400px;      /* fixed width for the card */
    min-width: 400px;  
}

@media (max-width: 768px) {
    .news-grid.single-card {
        max-width: 100%;
        justify-content: center; /* Center the card on mobile */
    }

    .news-card {
        width: 100%;
        min-width: auto;
    }
}

.news-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: var(--card);
    border: 1px solid rgba(218, 185, 0, 0.1);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: scale(0.95);
}

.news-card.visible {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 20px 40px rgba(218, 185, 0, 0.25);
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(218, 185, 0, 0.25);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.news-description {
    font-size: 1rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
