/* ==========================================================================
   Design System & Base Variables
   ========================================================================== */
:root {
  /* Colors - Deep Charcoal, Premium Gold, Ivory */
  --bg-primary: #0a0a0a;
  --bg-secondary: #121212;
  --text-primary: #FFFFF0;
  --text-secondary: #a0a0a0;
  
  --accent-gold: #D4AF37;
  --accent-gold-glow: rgba(212, 175, 55, 0.3);
  --accent-dark: #1a1a1a;
  
  /* Typography */
  --font-primary: 'Outfit', sans-serif;
  
  /* Spacing */
  --section-padding: 100px 5%;
  --container-width: 1200px;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-primary), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--accent-gold-glow);
}

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

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  padding: 1rem 5%;
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-gold);
}

.nav-cta {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 260px 5% 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #0a0a0a 100%);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--accent-gold);
  filter: blur(150px);
  opacity: 0.1;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 8s infinite alternate;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.05; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.15; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--accent-gold);
  border-radius: 50px;
  color: var(--accent-gold);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
  padding: var(--section-padding);
  background-color: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   Social Proof (Marquee)
   ========================================================================== */
.social-proof {
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
  background: var(--bg-primary);
}

.social-proof p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.marquee {
  display: flex;
  width: 200%;
  animation: marquee 20s linear infinite;
}

.marquee-content {
  display: flex;
  justify-content: space-around;
  width: 50%;
}

.marquee h4 {
  font-size: 1.5rem;
  color: var(--text-secondary);
  opacity: 0.5;
  font-weight: 600;
}

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

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
.portfolio {
  padding: var(--section-padding);
}

.showreel {
  width: 100%;
  height: 600px;
  background: var(--bg-secondary);
  border-radius: 20px;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.showreel iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 0;
}

.showreel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  z-index: 1;
  pointer-events: none;
}

.showreel-info {
  position: absolute;
  bottom: 30px;
  left: 40px;
  z-index: 2;
  pointer-events: none;
}

.play-btn {
  width: 80px;
  height: 80px;
  background: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.3s ease;
  box-shadow: 0 0 30px var(--accent-gold-glow);
}

.play-btn svg {
  width: 30px;
  height: 30px;
  fill: var(--bg-primary);
  margin-left: 5px;
}

.showreel:hover .play-btn {
  transform: scale(1.1);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  background: var(--bg-secondary);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10,10,10,0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.portfolio-overlay p {
  color: var(--accent-gold);
  font-size: 0.9rem;
  transform: translateY(20px);
  transition: transform 0.3s ease 0.1s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
  transform: translateY(0);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
  grid-auto-rows: auto;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 3rem 2rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  min-height: 340px;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.05);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--accent-gold);
}

.service-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.service-solution {
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process {
  padding: var(--section-padding);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 50px;
  right: 50px;
  height: 1px;
  background: var(--glass-border);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--bg-primary);
  border: 1px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 0 auto 2rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.process-step h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.test-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 3rem 2rem;
  border-radius: 20px;
}

.quote-icon {
  color: var(--accent-gold);
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.test-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 2rem;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.author-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
  padding: var(--section-padding);
  position: relative;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: var(--accent-gold);
  filter: blur(100px);
  opacity: 0.1;
  border-radius: 50%;
}

.contact h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contact > p {
  color: var(--accent-gold);
  margin-bottom: 3rem;
  font-weight: 500;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(0,0,0,0.5);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.contact-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  fill: currentColor;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  padding: 2rem 5%;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 4rem; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .process-step { margin-bottom: 2rem; }
  .services-grid { grid-template-columns: repeat(2, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-container { padding: 2rem; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn { width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Modal Styles for Case Studies
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(50px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
  transform: rotate(90deg);
}

.modal-body {
  padding: 0;
}

.modal-header-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-bottom: 1px solid var(--glass-border);
}

.modal-details {
  padding: 3rem;
}

.modal-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.modal-meta {
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.modal-section h4 {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.modal-section p {
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .modal-details {
    padding: 2rem;
  }
  .modal-header-img {
    height: 250px;
  }
}
