/* Import Modern & Distinctive Fonts */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Playfair+Display:wght@600;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* CSS Variables - Light Theme (Default) */
:root[data-theme="light"],
:root:not([data-theme]) {
  /* Primary Colors */
  --color-primary: #0A2540;
  --color-primary-light: #0F3654;
  --color-primary-dark: #061a2d;

  /* Accent & Secondary */
  --color-accent: #00D2A0;
  --color-accent-dark: #00a876;
  --color-accent-light: #1ae8b6;
  --color-secondary: #4A90E2;

  /* Backgrounds */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-tertiary: #F0F4F9;
  --bg-dark: #111827;

  /* Text */
  --text-primary: #0A2540;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --text-on-dark: #FFFFFF;
  --text-on-accent: #111827;

  /* Borders */
  --border-color: #E5E7EB;
  --border-color-light: #F3F4F6;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0A2540 0%, #1a4d6d 100%);
  --gradient-accent: linear-gradient(135deg, #00D2A0 0%, #1ae8b6 100%);
}

/* CSS Variables - Dark Theme */
:root[data-theme="dark"] {
  /* Primary Colors */
  --color-primary: #FFFFFF;
  --color-primary-light: #F3F4F6;
  --color-primary-dark: #E5E7EB;

  /* Accent & Secondary */
  --color-accent: #00D2A0;
  --color-accent-dark: #1ae8b6;
  --color-accent-light: #00b876;
  --color-secondary: #60A5FA;

  /* Backgrounds */
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --bg-tertiary: #334155;
  --bg-dark: #020617;

  /* Text */
  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-light: #94A3B8;
  --text-on-dark: #0A2540;
  --text-on-accent: #0A2540;

  /* Borders */
  --border-color: #475569;
  --border-color-light: #334155;

  /* Shadows */
  --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);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1E293B 0%, #334155 100%);
  --gradient-accent: linear-gradient(135deg, #00D2A0 0%, #00b876 100%);
}

/* Global Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Smooth theme transition */
body * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: 1.875rem;
  font-weight: 600;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Navigation Bar */
.navbar {
  background: var(--gradient-primary) !important;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-on-dark) !important;
  letter-spacing: -0.5px;
}

.nav-link {
  color: var(--text-on-dark) !important;
  transition: color 0.3s ease;
  font-weight: 500;
}

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

/* Theme & Language Toggle Container */
.nav-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-left: auto;
}

#themeToggle, #langToggle {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-on-dark);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

#themeToggle:hover, #langToggle:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Buttons */
.btn-accent {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--text-on-accent);
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
}

.btn-accent:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
}

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

/* Hero Section */
.hero-section {
  background: var(--gradient-primary);
  color: var(--text-on-dark);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('./images/homepage-hero-bg-abstract.jpeg') no-repeat center/cover;
  opacity: 0.08;
  z-index: 0;
}

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

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

.hero-section h1 {
  color: var(--text-on-dark);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

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

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

.bento-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

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

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

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

/* Large Hero Bento Item */
.bento-hero {
  grid-column: span 2;
  background: var(--gradient-primary);
  color: var(--text-on-dark);
  padding: 3rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

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

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

.card-service {
  border: none;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border-radius: 1rem;
}

.card-service:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-service .card-title {
  color: var(--color-primary);
  font-weight: 600;
}

.card-title {
  color: var(--color-primary);
  font-family: 'Playfair Display', Georgia, serif;
}

/* Section Title */
.section-title {
  color: var(--color-primary);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* Testimonials */
.testimonial-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  border-radius: 1rem;
  height: 100%;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.testimonial-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--color-accent);
}

.testimonial-quote {
  font-style: italic;
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.6;
}

.testimonial-author {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 1rem;
}

.testimonial-company {
  color: var(--color-secondary);
  font-size: 0.9rem;
}

/* Logo Cloud Section */
.logo-cloud-section {
  background: var(--bg-secondary);
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.logo-cloud img {
  max-height: 50px;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
  filter: grayscale(100%);
}

.logo-cloud img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Footer */
footer {
  background: var(--gradient-primary);
  color: var(--text-on-dark);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
}

footer h5 {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

footer p {
  color: rgba(255, 255, 255, 0.8);
}

/* Cookie Banner */
#cookieConsentBanner {
  background: var(--color-primary);
  color: var(--text-on-dark);
  border-top: 2px solid var(--color-accent);
}

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

  h2 {
    font-size: 1.875rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

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

  .section-title {
    font-size: 1.875rem;
  }
}

/* Smooth Scroll & Animations */
.animate-in {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Skip to main link */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-main:focus {
  top: 0;
}

/* Neumorphism Elements (Optional) */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
}

:root[data-theme="dark"] .glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Print Styles */
@media print {
  .navbar, footer, #cookieConsentBanner, #themeToggle, #langToggle {
    display: none;
  }
}
