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

:root {
  /* Default to Dark Mode as per tech brand standards, we'll swap to light mode dynamically */
  --bg-color: #0B0F1A;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-header: rgba(11, 15, 26, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #ffffff;
  --text-muted: #94A3B8;
  --shadow-card: 0 10px 40px -10px rgba(0,0,0,0.5);

  --accent-primary: #3A86FF; /* Electric Blue */
  --accent-secondary: #6C63FF; /* Deep Purple */
  --accent-glow: #00F5FF; /* Cyan Glow */
  --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  
  --font-main: 'Inter', sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
}

[data-theme="light"] {
  --bg-color: #F7F9FC;
  --bg-card: #FFFFFF;
  --bg-header: rgba(247, 249, 252, 0.85);
  --border-color: rgba(0, 0, 0, 0.08);
  --text-main: #0B0F1A;
  --text-muted: #475569;
  --shadow-card: 0 20px 40px -20px rgba(0,0,0,0.1);
  --accent-gradient: linear-gradient(135deg, var(--accent-primary), #4e44e6);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

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

ul { list-style-type: none; }

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-center { text-align: center; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Background Animation */
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; height: 100vh;
  z-index: -1;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(58, 134, 255, 0.15) 0%, rgba(0,0,0,0) 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
  animation: pulse-glow 8s infinite alternate ease-in-out;
}
.hero-glow-2 {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, rgba(0,0,0,0) 70%);
  bottom: 0; left: -100px;
  border-radius: 50%;
  animation: pulse-glow 10s infinite alternate-reverse ease-in-out;
}
[data-theme="light"] .hero-glow {
  background: radial-gradient(circle, rgba(58, 134, 255, 0.08) 0%, rgba(255,255,255,0) 70%);
}
[data-theme="light"] .hero-glow-2 {
  background: radial-gradient(circle, rgba(108, 99, 255, 0.08) 0%, rgba(255,255,255,0) 70%);
}

@keyframes pulse-glow {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-20px, 20px); }
}

/* exactly iOS Style Header */
header {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  max-width: none;
  padding: 0;
  height: 48px;
  z-index: 1000;
  transition: all 0.3s ease;
  background: rgba(22, 22, 23, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
}

[data-theme="light"] header {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

header::before {
  display: none !important;
}

header.scrolled {
  top: 0;
  background: rgba(22, 22, 23, 0.95);
}

[data-theme="light"] header.scrolled {
  background: rgba(255, 255, 255, 0.95);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
}

/* iOS Logo */
.logo {
  font-size: 1.1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #f5f5f7;
  text-decoration: none;
}
[data-theme="light"] .logo { color: #1d1d1f; }
.logo-icon { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #f5f5f7;
  opacity: 0.8;
  padding: 0;
  border-radius: 0;
  transition: opacity 0.3s ease;
  text-decoration: none;
  background: transparent;
}
[data-theme="light"] .nav-links a { color: #1d1d1f; }

.nav-links a:hover {
  opacity: 1;
  background: transparent;
  color: #fff;
}
[data-theme="light"] .nav-links a:hover {
  background: transparent;
  color: #000;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

/* iOS Start Project Button (Minimal) */
.header-btn {
  display: inline-flex;
  align-items: center;
  background: #f5f5f7;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  color: #1d1d1f;
  font-weight: 400;
  font-size: 0.75rem;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
  text-decoration: none;
}
.header-btn:hover {
  background: #fff;
  color: #000;
  box-shadow: none;
  transform: none;
}
.header-btn::before { display: none !important; }

.hamburger {
  display: none;
  margin-right: 15px;
}

[data-theme="light"] .header-btn {
  background: #0071e3;
  color: #fff;
}
[data-theme="light"] .header-btn:hover {
  background: #0077ed;
}

.theme-toggle {
  background: transparent;
  border: none;
  color: #f5f5f7;
  opacity: 0.8;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.theme-toggle:hover {
  opacity: 1;
  background: transparent;
  color: #fff;
}
[data-theme="light"] .theme-toggle { color: #1d1d1f; }
[data-theme="light"] .theme-toggle:hover { background: transparent; opacity: 1; color: #000; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(58, 134, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  /* Shadow removed as requested */
}

.btn-secondary {
  background: var(--bg-color);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--text-main);
}

/* Sections */
section {
  padding: 8rem 0;
  position: relative;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  z-index: 10;
}

.hero-title {
  font-size: 5.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-glow);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow);
  animation: blink 2s infinite;
}

.hero-action-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

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

.hero-avatars .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-header);
  border: 2px solid var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -10px;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.hero-avatars .avatar:first-child { margin-left: 0; }

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, rgba(0,0,0,0) 60%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.3s, height 0.3s;
  mix-blend-mode: screen;
}

[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(0, 245, 255, 0.2) 0%, rgba(255,255,255,0) 60%);
  mix-blend-mode: multiply;
}

/* Custom Circle Cursor */
.cursor-circle {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-primary);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10000;
  transition: transform 0.1s ease-out; /* Slight lag for smooth follow */
}


.typing-wrapper {
  margin-top: 1.5rem;
  height: 60px;
  margin-bottom: 1rem;
}

.typing-text {
  font-size: 2.2rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 2.4rem;
  background-color: var(--accent-primary);
  margin-left: 5px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Cards (Glassmorphism) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 3rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-card);
}

.card.interactive:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  /* Shadow removed */
}



.card-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(58, 134, 255, 0.1);
  color: var(--accent-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Quote Section */
.quote-section {
  text-align: center;
  padding: 6rem 0;
}

.quote-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem;
  background: var(--accent-gradient);
  color: white;
  border-radius: var(--radius-lg);
}

.quote-text {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.quote-author {
  margin-top: 2rem;
  font-size: 1.1rem;
  opacity: 0.8;
}

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

.form-control {
  width: 100%;
  padding: 1.2rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(58, 134, 255, 0.1);
}

/* Layout Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

ul.check-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}
ul.check-list li i {
  color: var(--accent-glow);
  background: rgba(0, 245, 255, 0.1);
  padding: 0.5rem;
  border-radius: 50%;
}

/* WhatsApp Floating Icon */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 100;
  animation: pulse-wa 2s infinite;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
  animation: none;
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Footer */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-color);
}
.footer-links {
  display: flex; gap: 2rem; margin: 2rem 0;
}
.footer-links a { color: var(--text-muted); }

/* Scroll Anim */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Parallax Utilities */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 992px) {
  .hero-title { font-size: 4rem; }
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  section { padding: 5rem 0; }
  .hero { min-height: auto; padding-top: 8rem; padding-bottom: 4rem; }
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
  body {
    background-color: var(--bg-color);
    padding-top: 60px; /* Space for the floating header */
  }

  .container {
    padding: 0 1rem;
    max-width: 100%;
  }

  /* Contact Card Look for Section Containers */
  section {
    padding: 2rem 0;
  }

  .hero-content,
  section#services .reveal:first-child,
  section#about-section .reveal:first-child,
  .card,
  .quote-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem !important;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    box-sizing: border-box;
  }

  /* Specific reset for grid cards to not double-stroke */
  .card-grid .card {
    margin-bottom: 0;
  }

  /* Hero as a Contact Card */
  .hero {
    min-height: auto;
    padding: 1rem 0;
  }
  
  .hero-content {
    padding: 3rem 1.5rem !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    text-align: center;
  }

  .hero-title { font-size: 2.8rem; margin-top: 1rem; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; }
  .typing-text { font-size: 1.5rem; }
  
  .hero-action-group {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .nav-links { 
    display: none; 
    position: fixed;
    top: 48px;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    padding: 1.5rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-top: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    z-index: 1001;
  }

  .nav-links.mobile-active {
    display: flex;
  }

  .nav-links a {
    padding: 1.2rem 2rem;
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }

  .hamburger {
    display: block !important;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.4rem;
    cursor: pointer;
  }

  .header-btn {
    display: none; /* Hide Start Project in header on mobile to simplify contact card look */
  }

  .cursor-circle, .cursor-glow {
    display: none !important;
  }
  
  .whatsapp-float { bottom: 30px; right: 20px; width: 55px; height: 55px; }

  /* Terms & Conditions Mobile Specific Cleanup */
  .terms-header {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .terms-card {
    padding: 2rem 1.2rem !important;
  }

  .terms-section {
    margin-bottom: 2.5rem;
  }

  .terms-section h2 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .terms-section h2 i {
    font-size: 1rem;
    opacity: 0.7;
  }
}

@media (max-width: 480px) {
  .logo { font-size: 0.9rem; }
  .hero-title { font-size: 2.4rem; }
  .typing-text { font-size: 1.3rem; }
  .hero-badge { font-size: 0.75rem; }
  .card-grid { grid-template-columns: 1fr; }
}

/* Terms & Conditions Enhancements */
.terms-content {
  line-height: 1.8;
  color: var(--text-muted);
}

.terms-content h2 {
  color: var(--text-main);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.terms-content strong {
  color: var(--text-main);
}

.terms-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.terms-item i {
  color: var(--accent-primary);
  margin-top: 0.3rem;
}
