/* Opto Lanka Premium Custom CSS Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-bg: #0D0D0D;
  --color-bg-secondary: #171717;
  --color-card: #202020;
  --color-primary: #D7A928;
  --color-secondary: #EBC75F;
  --color-white: #F8F8F8;
  --color-grey: #8D8D8D;
  --color-divider: #2A2A2A;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-divider);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Video Background Fallback Style */
.video-container {
  position: relative;
  background-color: var(--color-bg);
  overflow: hidden;
}

.video-fallback-active {
  background: radial-gradient(circle at 50% 50%, rgba(215, 169, 40, 0.15) 0%, rgba(13, 13, 13, 1) 70%),
              linear-gradient(135deg, rgba(23, 23, 23, 1) 0%, rgba(13, 13, 13, 1) 100%);
  background-size: 200% 200%;
  animation: elegantGlow 15s ease infinite;
}

.video-fallback-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(42, 42, 42, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 42, 42, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
}

@keyframes elegantGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Capsule Navbar styles */
.capsule-navbar-container {
  display: flex;
  justify-content: center;
  position: fixed;
  top: 24px;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.capsule-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(248, 248, 248, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 10px 24px;
  width: 90%;
  max-width: 900px;
  height: 64px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.capsule-navbar.shrunk {
  width: 75%;
  height: 52px;
  padding: 6px 18px;
  background-color: rgba(248, 248, 248, 0.98);
}

.capsule-navbar a {
  color: #0D0D0D;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.3s ease, color 0.3s ease;
  position: relative;
}

.capsule-navbar a:hover {
  color: var(--color-primary);
}

.capsule-navbar a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.capsule-navbar a:hover::after {
  width: 100%;
}

.capsule-navbar .nav-logo {
  height: 38px;
  transition: height 0.5s ease;
}

.capsule-navbar.shrunk .nav-logo {
  height: 28px;
}

/* GSAP ScrollTrigger Pinned Reasons Section styles */
.reason-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.reason-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Gold Text Glow Effect */
.gold-glow {
  text-shadow: 0 0 20px rgba(215, 169, 40, 0.3);
}

/* Premium Button Styles */
.btn-premium {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s ease;
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.btn-premium:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Character/Line animation reveal classes */
.char-reveal-container {
  overflow: hidden;
  display: inline-block;
}

.char-reveal {
  transform: translateY(105%);
}

.mask-reveal {
  clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.mask-reveal.active {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Mobile Navigation Drawer styles */
.mobile-nav-toggle {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.open {
  transform: translateY(0);
}

.mobile-menu-overlay a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--color-white);
  text-decoration: none;
  margin: 15px 0;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.mobile-nav-toggle{
    display:none;
}

@media (max-width:768px){

.capsule-navbar{
    width:calc(100% - 24px);
    max-width:360px;
    height:58px;
    padding:0 18px;
    justify-content:flex-end;
    position:relative;
}

.mobile-nav-toggle{
    display:flex;
    align-items:center;
    justify-content:center;
    position:absolute;
    right:18px;
    top:50%;
    transform:translateY(-50%);
    background:none;
    border:none;
}

.capsule-navbar > div{
    width:100%;
    justify-content:flex-start !important;
}

/* Hide Home */
.capsule-navbar > div > a:nth-child(1){
    display:none;
}

/* Hide Brands */
.capsule-navbar > div > a:nth-child(2){
    display:none;
}

/* Keep Logo (3rd child) */

/* Hide All Lenses */
.capsule-navbar > div > a:nth-child(4){
    display:none;
}

/* Hide Contact */
.capsule-navbar > div > a:nth-child(5){
    display:none;
}

.nav-logo{
    height:30px;
}

}

/* Diagonal layout or asymmetrical magazine grids */
.magazine-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.magazine-card-large {
  grid-column: span 7;
}

.magazine-card-small {
  grid-column: span 5;
}

@media (max-width: 1024px) {
  .magazine-card-large,
  .magazine-card-small {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .magazine-card-large,
  .magazine-card-small {
    grid-column: span 12;
  }
}

/* Background Animated Typo */
.marquee-text-container {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  user-select: none;
}

.marquee-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 15vw;
  color: rgba(255, 255, 255, 0.02);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Timeline specific styles */
.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background-color: var(--color-bg);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}

.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--color-divider);
  z-index: 1;
}

/* Laboratory Video Hero stats */
.stats-number {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-primary);
}
