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

:root {
  /* Main Colors */
  --bg-main: #0F172A;
  --bg-deep: #020617;
  --bg-light: #F8FAFC;
  --accent: #FACC15;
  --accent-support-1: #38BDF8;
  --accent-support-2: #6366F1;
  
  /* Text & Border */
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-dark: #000000;
  --border: #E2E8F0;
  --border-light: rgba(226, 232, 240, 0.15); /* Subduing border for dark theme */
  
  /* States */
  --state-success: #22C55E;
  --state-warning: #F59E0B;
  --state-error: #EF4444;
  
  /* Gradients */
  --grad-dark: linear-gradient(135deg, #0F172A, #1E293B, #020617);
  --grad-accent: linear-gradient(135deg, #FACC15, #EAB308);
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(250, 204, 21, 0.2);
  
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-2xl: 1.5rem;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

/* Containers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

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

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  text-align: center;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-blue-gradient {
  background: linear-gradient(135deg, var(--accent-support-1), var(--accent-support-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sections */
section {
  padding: 6rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  border-radius: var(--radius-2xl);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-main);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  background: #EAB308;
  box-shadow: var(--shadow-glow);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px) scale(1.02);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

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

.nav-links li a {
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links li a:hover, .nav-links li a.active {
  color: var(--accent);
}

.nav-links li a.active {
  position: relative;
}
.nav-links li a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--accent);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* Update Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--grad-dark);
  position: relative;
  overflow: hidden;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Background Shapes for Animation */
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  filter: blur(80px);
  border-radius: 50%;
  animation: floatOrb 15s infinite ease-in-out alternate;
}

.shape-1 {
  top: -10%; left: -10%; width: 500px; height: 500px;
  background: rgba(99, 102, 241, 0.15); /* accent-support-2 */
}

.shape-2 {
  bottom: -20%; right: -10%; width: 600px; height: 600px;
  background: rgba(56, 189, 248, 0.15); /* accent-support-1 */
  animation-delay: -5s;
}

.shape-3 {
  top: 40%; left: 50%; width: 400px; height: 400px;
  background: rgba(250, 204, 21, 0.1);
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -50px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(0.9); }
}

.hero-content {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-support-1);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  animation: slideDownFade 0.8s ease backwards;
}

.hero h1 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
  line-height: 1.25;
  animation: slideUpFade 0.8s ease backwards 0.2s;
}

.hero p {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 550px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  animation: slideUpFade 0.8s ease backwards 0.4s;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  animation: slideUpFade 0.8s ease backwards 0.6s;
}

.btn-primary i {
  margin-left: 0.5rem;
  font-size: 1.15rem;
  transition: transform 0.3s;
}
.btn-primary:hover i.fa-arrow-right {
  transform: translateX(4px);
}
.btn-primary:hover i.whatsapp-icon {
  transform: scale(1.1);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  animation: slideUpFade 0.8s ease backwards 0.8s;
}

.avatars {
  display: flex;
  align-items: center;
}

.avatars img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 3px solid #0F172A;
  margin-left: -1rem;
  object-fit: cover;
}
.avatars img:first-child { margin-left: 0; }

.trust-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.trust-text strong {
  color: var(--text-primary);
}

/* Floating Visual Cards */
.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  animation: fadeZoom 1s ease backwards 0.5s;
}

.hero-visual spline-viewer {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideDownFade {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeZoom {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

/* Trust Strip */
.trust-strip {
  background: var(--bg-deep);
  padding: 2rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.trust-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-item i {
  color: var(--accent);
  font-size: 1.25rem;
}

/* Services */
.services {
  background: var(--bg-main);
}

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

.card {
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(250, 204, 21, 0.3);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5), 0 0 15px rgba(250, 204, 21, 0.05);
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  background: rgba(250, 204, 21, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

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

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

/* Why Choose Us */
.why-us {
  background: var(--bg-deep);
  position: relative;
}

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

.why-image {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.why-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-dark);
  opacity: 0.5;
  z-index: 1;
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.why-item {
  display: flex;
  gap: 1.5rem;
}

.why-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(99, 102, 241, 0.1));
  color: var(--accent-support-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.why-item h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

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

/* Portfolio */
.portfolio {
  background: var(--bg-main);
}

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

.portfolio-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  group: hover;
}

.portfolio-img {
  width: 100%;
  height: 320px;
  background: var(--bg-deep);
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

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

.portfolio-cat {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.portfolio-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Process Section */
.process {
  background: var(--bg-deep);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  position: relative;
}

.process-step {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: rgba(15, 23, 42, 0.3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
  overflow: hidden;
}

.process-step:hover {
  transform: translateY(-8px);
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(250, 204, 21, 0.3);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.step-watermark {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 6rem;
  font-weight: 800;
  color: rgba(255,255,255,0.02);
  line-height: 1;
  z-index: 0;
  transition: all 0.4s ease;
  pointer-events: none;
}

.process-step:hover .step-watermark {
  color: rgba(250, 204, 21, 0.05);
  transform: scale(1.1);
}

.step-num {
  width: 4rem;
  height: 4rem;
  background: rgba(250, 204, 21, 0.1);
  color: var(--accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.process-step:hover .step-num {
  background: var(--grad-accent);
  color: var(--text-dark);
  box-shadow: var(--shadow-glow);
  transform: scale(1.1);
}

.process-step h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* About */
.about {
  background: var(--bg-main);
}

.about-wrapper {
  background: var(--grad-dark);
  border-radius: var(--radius-2xl);
  padding: 4rem;
  text-align: center;
  border: 1px solid var(--border-light);
  max-width: 800px;
  margin: 0 auto;
}

.about-wrapper p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Testimonials */
.testimonials {
  background: var(--bg-deep);
}

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

.t-card {
  background: rgba(15, 23, 42, 0.4);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.t-rating {
  color: var(--accent);
  margin-bottom: 1rem;
}

.t-text {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

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

.t-author-img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--border-light);
}

.t-author-info h5 {
  font-size: 1rem;
}

.t-author-info span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--bg-deep), var(--bg-main));
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.1) 0%, transparent 60%);
  z-index: 0;
}

.cta .container {
  position: relative;
  z-index: 1;
}

/* Footer */
.footer {
  background: var(--bg-deep);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-col p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.3s;
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--grad-accent);
  color: var(--text-dark);
  transform: translateY(-3px);
  border-color: transparent;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-deep);
    flex-direction: column;
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }

  .why-wrapper {
    grid-template-columns: 1fr;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    text-align: center;
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }
  .hero-btns .btn {
    width: 100%;
    max-width: 300px;
  }
  .hero-trust {
    justify-content: center;
  }
  .card-back {
    display: none; /* Hide for space on mobile */
  }
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .about-wrapper {
    padding: 2rem;
  }

  /* Make portfolio overlays always visible on touch screens */
  .portfolio-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.5) 100%);
  }
}

/* Contact Page Form Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-form {
  background: var(--bg-deep);
  padding: 3rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.1);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-form {
    padding: 2rem;
  }
}

/* Page Header Styles for Internal Pages */
.page-header {
  padding-top: 10rem;
  padding-bottom: 4rem;
  background: var(--grad-dark);
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* CTA Specific Utilities */
.cta-whatsapp-btn {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-whatsapp-btn:hover {
  transform: scale(1.05);
  background-color: #EAB308; /* Darker yellow for high-contrast pop */
}
