/* 
   CINEMATIC NEURAL PORTFOLIO - CSS DESIGN SYSTEM
   UI Aligned with screen.png Mockup
*/

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

:root {
  /* Color System */
  --bg-primary: #000000;         /* Solid black canvas */
  --bg-secondary: #0a0a0a;
  --surface-charcoal: #121212;   /* Dark charcoal panels */
  --surface-bright: #38393a;
  --surface-container: #1a1c1c;
  
  --text-primary: #f5f5f5;       /* Off-white soft text */
  --text-secondary: #a0a0a0;     /* Muted gray text */
  --accent-cyan: #00e5ff;        /* Neon Cyan Accent */
  --accent-cyan-glow: rgba(0, 229, 255, 0.4);
  --border-muted: #262626;       /* Clean dark borders */
  
  /* Typography */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Radius & Spacing */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2.5rem;
  --radius-pill: 9999px;
  
  --container-max: 1200px;
  --section-padding: 140px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Base Gradients */
.cinematic-gradient-bg {
  background: radial-gradient(circle at top, #0f1111 0%, #000000 70%);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Sticky Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  height: 70px;
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-transform: uppercase;
}

.logo-accent {
  color: var(--accent-cyan);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-cyan);
  color: #000000;
}

.btn-primary:hover {
  box-shadow: 0 0 20px var(--accent-cyan-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.05);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero Section (Centered & Majestic) */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35; /* Dark background overlay style */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 950px;
  margin: 0 auto;
  padding: 80px 24px 0 24px; /* Shifted down by 80px to reveal the background logo */
}

.hero-title {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.hero-title-line {
  display: block;
}

.hero-title-line-accent {
  color: var(--accent-cyan);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 32px; /* Increased from 26px */
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 950px; /* Increased width to accommodate larger font */
  margin: 0 auto;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* General Sections */
section {
  padding: var(--section-padding) 0;
}

.section-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
  border-left: 2px solid var(--accent-cyan);
  padding-left: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #ffffff;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 24px; /* Increased from 20px */
  color: var(--text-secondary);
  max-width: 850px; /* Widened container to prevent wrapping blocks */
  line-height: 1.6;
}

/* Opportunity Layout (Text & Stats Stacked/Split) */
.opp-layout {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.opp-info {
  max-width: 800px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--border-muted);
  padding-top: 40px;
}

.stat-block {
  background: rgba(18, 18, 18, 0.5); /* Dark card background */
  border: 1px solid rgba(255, 255, 255, 0.05); /* Subtle card border */
  border-radius: var(--radius-sm); /* Pill curves / modern rounding */
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 950;
  color: var(--accent-cyan);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-shadow: 0 0 25px rgba(0, 229, 255, 0.5); /* Glowing cyan aura */
}

.stat-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.stat-sublabel {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.5;
}

/* Split Columns (Z-pattern structures) */
.split-section {
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.split-container {
  display: flex;
  align-items: center;
  gap: 80px;
}

.split-column {
  flex: 1;
  width: 50%;
}

.split-reverse {
  flex-direction: row-reverse;
}

.text-column {
  display: flex;
  flex-direction: column;
}

.split-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.split-subtitle {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.split-desc {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 22px; /* Increased from 18px */
  line-height: 1.7;
}

/* Media Column video wraps (16:9 Landscape Layout) */
.thumb-cinema-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-muted);
  cursor: pointer;
  background-color: var(--bg-secondary);
}

.thumb-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.thumb-cinema-container:hover .thumb-media,
.thumb-social-bezel:hover .thumb-media {
  transform: scale(1.05);
}

/* Floating play button over video (YouTube Style) */
.play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  z-index: 5;
  transition: transform 0.1s cubic-bezier(0.4, 0, 1, 1);
}

.play-btn-overlay svg {
  display: block;
  width: 100%;
  height: 100%;
}

.play-btn-overlay .ytp-large-play-button-bg {
  fill: #212121;
  fill-opacity: 0.8;
  transition: fill 0.1s cubic-bezier(0.4, 0, 1, 1), fill-opacity 0.1s cubic-bezier(0.4, 0, 1, 1);
}

.thumb-cinema-container:hover .play-btn-overlay,
.thumb-social-bezel:hover .play-btn-overlay {
  transform: translate(-50%, -50%) scale(1.11);
}

.thumb-cinema-container:hover .play-btn-overlay .ytp-large-play-button-bg,
.thumb-social-bezel:hover .play-btn-overlay .ytp-large-play-button-bg {
  fill: #ff0000;
  fill-opacity: 1;
}

/* Double Galleries styling */
.centered-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 80px;
}

.centered-header .section-title {
  margin-bottom: 12px;
}

.centered-header .section-label {
  border-left: none;
  padding-left: 0;
}

/* 9:16 vertical smartphone grid layout */
.social-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.thumb-social-wrapper {
  background: #000000;
  border-radius: 36px;
  padding: 10px;
  border: 1.5px solid #222;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
  width: 100%;
}

.thumb-social-wrapper:hover {
  border-color: #333;
}

.thumb-social-bezel {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  background-color: var(--bg-secondary);
  cursor: pointer;
}

.thumb-social-bezel .play-btn-overlay {
  width: 52px;
  height: 37px;
}

/* Commercial Widescreen Gallery split overrides */
.gallery-split {
  gap: 60px;
}

.flex-40 {
  flex: 0 0 40%;
}

.flex-60 {
  flex: 0 0 60%;
}



/* Modal Overlay & Native dialog */
dialog.overlay-modal {
  border: none;
  border-radius: var(--radius-lg);
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  max-width: 90%;
  max-height: 90%;
  overflow: hidden;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  outline: none;
  border: 1px solid var(--border-muted);
}

dialog.overlay-modal::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

.modal-wrapper {
  padding: 40px;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-video-wrapper {
  width: 800px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-muted);
}

.modal-video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Forms inside modal */
.modal-form-wrapper {
  width: 460px;
  max-width: 100%;
}

.modal-form-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.modal-form-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.02);
}

textarea.form-input {
  min-height: 100px;
  resize: vertical;
}

/* Footer Section */
.footer-section {
  background-color: #030303;
  padding: 80px 0 40px 0;
  border-top: 1px solid var(--border-muted);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}

.footer-contact-link {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: var(--transition-smooth);
}

.footer-contact-link:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--accent-cyan-glow);
}

.footer-social-row {
  display: flex;
  gap: 20px;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--surface-charcoal);
  border: 1px solid var(--border-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-icon-btn:hover {
  transform: translateY(-3px);
}

/* YouTube Brand Color */
#footer-social-youtube {
  color: #ff0000;
  border-color: rgba(255, 0, 0, 0.15);
}
#footer-social-youtube:hover {
  border-color: #ff0000;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

/* Instagram Brand Color */
#footer-social-instagram {
  color: #e1306c;
  border-color: rgba(225, 48, 108, 0.15);
}
#footer-social-instagram:hover {
  border-color: #e1306c;
  box-shadow: 0 0 15px rgba(225, 48, 108, 0.4);
}

/* LinkedIn Brand Color */
#footer-social-linkedin {
  color: #0077b5;
  border-color: rgba(0, 119, 181, 0.15);
}
#footer-social-linkedin:hover {
  border-color: #0077b5;
  box-shadow: 0 0 15px rgba(0, 119, 181, 0.4);
}

/* Facebook Brand Color */
#footer-social-facebook {
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.15);
}
#footer-social-facebook:hover {
  border-color: #1877f2;
  box-shadow: 0 0 15px rgba(24, 119, 242, 0.4);
}

/* X (Twitter) Brand Color */
#footer-social-x {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}
#footer-social-x:hover {
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-msme {
  font-family: var(--font-body);
  font-size: 11px;
  color: #555555;
  margin-top: -8px;
}

/* Responsive Rules & Mobile Breakpoints */

/* Tablet Breakpoint (768px to 1024px) */
@media (max-width: 1024px) {
  :root {
    --section-padding: 100px;
  }

  .hero-title {
    font-size: 60px;
  }
  
  .split-container {
    gap: 40px;
  }
  
  .social-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* Mobile Breakpoint (<768px) */
@media (max-width: 767px) {
  :root {
    --section-padding: 80px;
  }

  .navbar {
    height: 70px;
  }

  .hero-title {
    font-size: 40px;
  }
  
  .hero-subtitle {
    font-size: 15px;
  }

  .section-title {
    font-size: 28px;
  }

  .opp-layout {
    gap: 40px;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .split-container {
    flex-direction: column !important; /* Forces layout stacking */
    gap: 40px;
  }

  .split-column {
    width: 100%;
  }

  .social-gallery-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 320px;
  }

  .flex-40, .flex-60 {
    flex: 1 1 100%;
  }

  .whatsapp-float {
    width: calc(100% - 48px);
    left: 24px;
    bottom: 24px;
    justify-content: center;
    border-radius: var(--radius-md);
  }
}
