/* =============================
   Cinewave Studio Styles - Debugged & Enhanced
   =============================*/

   :root {
    --color-bg: #000;
    --color-text: #fff;
    --color-accent: #d4af37;
    --color-accent-dark: #b88a44;
    --gradient-gold: linear-gradient(145deg, #f5d7a7, #e0ac69, #b88a44);
    --nav-height: 80px;
    --section-spacing: 5rem;
    scroll-behavior: smooth;
  }
  
  /* Reset & Base */
  * { margin: 0; padding: 0; box-sizing: border-box; }
  
  body {
    font-family: 'Cinzel', serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }
  
  /* Universal text styling */
  h1, h2, h3, h4, p, li, label, span, a {
    font-family: 'Cinzel', serif;
    background: var(--gradient-gold);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-accent); /* Fallback for non-webkit browsers */
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    padding: 0 1.5rem;
    margin: 0 auto;
  }
  
  /* Navbar - Fixed positioning issues */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: background 0.3s ease;
  }
  
  .transparent-navbar {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
  }
  
  .navbar.solid {
    background: #000;
  }
  
  .navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1.5rem;
  }
  
  .navbar-left .logo {
    display: flex;
    align-items: center;
  }
  
  .logo-gif {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
  }
  
  .logo-gif:hover {
    transform: scale(1.05);
  }
  
  .navbar-right {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
  }
  
  .nav-links a {
    transition: transform 0.3s ease;
    text-decoration: none;
  }
  
  .nav-links a:hover {
    transform: scale(1.05);
  }
  
  /* Button styles - Fixed text color issue */
  .btn {
    font-family: 'Cinzel', serif;
    background: var(--color-accent-dark);
    color: #000 !important;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    /* Override gradient text styling for buttons */
    -webkit-text-fill-color: #000 !important;
    background-clip: initial !important;
  }
  
  .btn:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }
  
  /* Mobile menu toggle */
  .menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
  }
  
  .menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-accent);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
  }
  
  /* Hero Section */
  .hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.5s ease-out 0.5s forwards;
  }
  
  .hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  
  .hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Services Section */
  .services {
    padding: var(--section-spacing) 0;
    background: rgba(255, 255, 255, 0.01);
  }
  
  .services h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
  }
  
  .service-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 4rem 0;
    gap: 2rem;
  }
  
  .service-row:nth-child(even) {
    flex-direction: row-reverse;
  }
  
  .service-video,
  .service-text {
    flex: 1 1 45%;
    min-width: 300px;
  }
  
  .service-video video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  
  .service-text {
    padding: 1rem;
  }
  
  .service-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .service-text p {
    font-size: 1.1rem;
    line-height: 1.7;
  }
  
  /* Portfolio/Why Us Section */
  .portfolio {
    padding: var(--section-spacing) 0;
    background: rgba(255, 255, 255, 0.02);
  }
  
  .portfolio h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
  }
  
  .portfolio .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .why-box {
    position: relative;
    padding: 2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .why-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: var(--gradient-gold);
    background-size: 400% 400%;
    animation: lightning-border 6s ease infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
  }
  
  .why-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
  }
  
  .why-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .why-box p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  @keyframes lightning-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  /* Contact Section */
  .contact {
    padding: var(--section-spacing) 0;
    background: rgba(0, 0, 0, 0.3);
  }
  
  .contact h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
  }
  
  .contact form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
  }
  
  .contact input,
  .contact textarea {
    padding: 1rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-accent);
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
  }
  
  .contact input:focus,
  .contact textarea:focus {
    outline: none;
    border-color: var(--color-accent);
  }
  
  .contact input::placeholder,
  .contact textarea::placeholder {
    color: rgba(212, 175, 55, 0.7);
    font-family: 'Cinzel', serif;
  }
  
  .contact textarea {
    min-height: 120px;
    resize: vertical;
  }
  
  /* Footer */
  .footer {
    text-align: center;
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.5);
  }
  
  .footer p {
    font-size: 0.9rem;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .menu-toggle {
      display: flex;
    }
  
    .navbar-right {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: rgba(0, 0, 0, 0.95);
      flex-direction: column;
      padding: 1rem;
      gap: 1rem;
      transform: translateY(-100%);
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }
  
    .navbar-right.active {
      transform: translateY(0);
      opacity: 1;
      visibility: visible;
    }
  
    .nav-links {
      flex-direction: column;
      gap: 1rem;
      width: 100%;
    }
  
    .nav-links a {
      display: block;
      padding: 0.5rem 0;
      text-align: center;
    }
  
    .service-row {
      flex-direction: column !important;
    }
  
    .service-row:nth-child(even) {
      flex-direction: column !important;
    }
  
    .service-video,
    .service-text {
      flex: 1 1 100%;
      min-width: auto;
    }
  
    .portfolio .grid {
      grid-template-columns: 1fr;
    }
  
    .why-box {
      padding: 1.5rem;
    }
  }
  
  @media (max-width: 480px) {
    .container {
      padding: 0 1rem;
    }
  
    .hero-content {
      padding: 0 0.5rem;
    }
  
    .service-text {
      padding: 0.5rem;
    }
  
    .why-box {
      padding: 1rem;
    }
  }
  
  /* Smooth scrolling enhancement */
  html {
    scroll-padding-top: calc(var(--nav-height) + 20px);
  }
  
  /* Animation improvements */
  .animate__animated {
    animation-duration: 1.2s;
  }
  
  /* Loading states for videos */
  video {
    background: #111;
  }
  
  /* Accessibility improvements */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }