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

/* CSS Variables - Light Theme */
:root[data-theme="light"] {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-tertiary: #F0F2F5;
  --text-primary: #0A2540;
  --text-secondary: #404854;
  --text-tertiary: #6B7280;
  --accent-primary: #F63A7C;
  --accent-secondary: #42B6F6;
  --accent-tertiary: #10B981;
  --border-color: #E5E7EB;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.18);
  --gradient-accent: linear-gradient(135deg, #F63A7C 0%, #42B6F6 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(10, 37, 64, 0.05) 0%, rgba(66, 182, 246, 0.05) 100%);
}

/* CSS Variables - Dark Theme */
:root[data-theme="dark"] {
  --bg-primary: #0F1419;
  --bg-secondary: #1A202C;
  --bg-tertiary: #2D3748;
  --text-primary: #F0F4F8;
  --text-secondary: #CBD5E0;
  --text-tertiary: #A0AEC0;
  --accent-primary: #FF5FA5;
  --accent-secondary: #4FC3F7;
  --accent-tertiary: #26C485;
  --border-color: #2D3748;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(26, 32, 44, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --gradient-accent: linear-gradient(135deg, #FF5FA5 0%, #4FC3F7 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(255, 95, 165, 0.1) 0%, rgba(79, 195, 247, 0.1) 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

h1 {
  font-size: 3rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.75rem;
  letter-spacing: -0.3px;
}

p {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Navbar */
.navbar {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.nav-link {
  font-weight: 600;
  color: var(--text-secondary) !important;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--accent-primary) !important;
}

.nav-link.active {
  color: var(--accent-primary) !important;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 0.5rem;
  color: var(--text-primary);
}

.theme-toggle:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  transform: scale(1.05);
}

/* Language Switcher */
.language-switcher {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.25rem;
  display: flex;
  gap: 0.25rem;
  margin: 0 0.5rem;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.lang-btn.active {
  background: var(--accent-primary);
  color: white;
}

.lang-btn:hover {
  color: var(--accent-primary);
}

/* Buttons */
.btn-primary, .btn-outline-primary {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  font-family: 'Sora', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--gradient-accent);
  border: none;
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
  border: none;
}

.btn-outline-primary {
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  min-height: 600px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100px;
  width: 400px;
  height: 400px;
  background: var(--gradient-accent);
  border-radius: 50%;
  opacity: 0.05;
  animation: float 6s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 300px;
  height: 300px;
  background: var(--accent-secondary);
  border-radius: 50%;
  opacity: 0.03;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(30px); }
}

.hero-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(10, 37, 64, 0.6) 0%, rgba(10, 37, 64, 0.4) 50%, rgba(10, 37, 64, 0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  color: white;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-size: 3.5rem;
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.bento-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.bento-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-subtle);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bento-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.bento-item:hover::before {
  opacity: 1;
}

.bento-item-content {
  position: relative;
  z-index: 2;
}

.bento-icon {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  display: inline-block;
}

.bento-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-family: 'Playfair Display', serif;
}

.bento-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Bento Large (2x1) */
.bento-large {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .bento-large {
    grid-column: span 1;
  }
}

/* Card Styles */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.card-body {
  padding: 1.75rem;
}

.card-title {
  color: var(--text-primary);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

/* Service Cards */
.service-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.service-card .card-icon {
  font-size: 3.5rem;
  color: var(--accent-secondary);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.service-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Testimonials */
.testimonial-card {
  border: 2px solid var(--border-color);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 16px;
}

.testimonial-card p.lead {
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
}

.testimonial-card .blockquote-footer {
  border-top: 2px solid var(--border-color);
  color: var(--text-tertiary);
  font-weight: 600;
}

/* Sections */
section {
  padding: 4rem 0;
  transition: background-color 0.3s ease;
}

.section-bg-light {
  background: var(--bg-secondary);
}

.section-bg-accent {
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.95) 0%, rgba(66, 182, 246, 0.1) 100%);
  color: white;
}

.section-bg-accent h2,
.section-bg-accent h3 {
  color: white;
}

.section-bg-accent .text-muted {
  color: rgba(255, 255, 255, 0.7);
}

.cta-banner {
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.98) 0%, rgba(246, 58, 124, 0.1) 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

footer h6 {
  color: var(--text-primary);
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

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

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

footer hr {
  border-color: var(--border-color);
}

/* Cookie Banner */
.fixed-bottom {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: 12px 12px 0 0;
  transition: all 0.3s ease;
}

.cookie-banner span {
  color: var(--text-secondary);
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.shadow-accent {
  box-shadow: 0 0 30px rgba(246, 58, 124, 0.2);
}

.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  .hero-section {
    padding: 80px 0;
    min-height: 500px;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-content .lead {
    font-size: 1rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bento-large {
    grid-column: span 1;
  }

  section {
    padding: 2.5rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .cta-banner {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .navbar-brand {
    font-size: 1.25rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .bento-item {
    padding: 1.5rem;
  }

  .bento-title {
    font-size: 1.1rem;
  }

  .service-card .card-icon {
    font-size: 2.5rem;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Styles */
button:focus,
a:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Animation for carousel */
.carousel {
  border-radius: 16px;
  overflow: hidden;
}

.carousel-item {
  transition: opacity 0.6s ease-in-out;
}

.carousel-indicators li {
  background-color: var(--border-color);
  transition: all 0.3s ease;
}

.carousel-indicators li.active {
  background-color: var(--accent-primary);
}

/* Accordion Styles */
.accordion .card-header {
  background-color: transparent;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
}

.accordion .btn-link {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 0;
  transition: color 0.3s ease;
}

.accordion .btn-link:hover,
.accordion .btn-link:focus {
  color: var(--accent-primary);
  text-decoration: none;
}

.accordion .btn-link i {
  transition: transform 0.3s ease;
  color: var(--accent-primary);
}

.accordion .btn-link[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* List Styles */
ul {
  list-style-position: inside;
}

ul li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

ul li::marker {
  color: var(--accent-primary);
  font-weight: 700;
}

/* Image Styles */
img {
  border-radius: 12px;
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.02);
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.rounded-circle {
  border-radius: 50% !important;
}

/* Border Radius */
.rounded-lg {
  border-radius: 16px !important;
}

/* Text Colors */
.text-muted {
  color: var(--text-tertiary) !important;
  transition: color 0.3s ease;
}

.text-dark {
  color: var(--text-primary) !important;
  transition: color 0.3s ease;
}

/* Navbar Toggler */
.navbar-toggler {
  border-color: var(--border-color);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(10, 37, 64, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

:root[data-theme="dark"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(240, 244, 248, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Placeholder text */
::placeholder {
  color: var(--text-tertiary);
}

/* Form Elements */
input, textarea, select {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 0.75rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  background-color: var(--bg-primary);
  border-color: var(--accent-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(246, 58, 124, 0.1);
}

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

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