/* Import SmartBrand palette */
@import 'smartbrand-palette.css';

/* Base styles */
:root {
  /* Typography */
  --font-sans: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', monospace;
  
  /* Background colors */
  --background: var(--primary-dark);
  --background-light: #0F2E4E;
  --card-background: rgba(15, 46, 78, 0.6);
  --card-background-light: rgba(247, 250, 252, 0.05);
  
  /* Dark mode override */
  --accent: var(--primary-blue);
  --accent-dark: var(--primary-dark);
  --black: 15, 18, 25;
  --gray: 96, 115, 159;
  --gray-light: 229, 233, 240;
  --gray-dark: 34, 41, 57;
  --gray-gradient: rgba(var(--gray-dark), 50%), #1A202C;
  --box-shadow: 0 2px 6px rgba(var(--gray), 25%), 0 8px 24px rgba(var(--gray), 33%),
    0 16px 32px rgba(var(--gray), 33%);
}

/* Modern CSS reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  text-align: left;
  background: var(--background);
  color: var(--neutral-100);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Section styling */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.dark .section-title {
  color: white;
}

.divider-gradient {
  height: 4px;
  width: 80px;
  margin: 0.5rem auto 2rem;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Glass effect components */
.glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.glass:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.dark .glass {
  background: var(--card-background);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-blue);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-cta {
  background: var(--accent-coral);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-cta:hover {
  background: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero section */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(29, 77, 144, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 188, 212, 0.1) 0%, transparent 40%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #CBD5E0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--neutral-300);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.highlight-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--neutral-200);
  margin-bottom: 1rem;
}

/* Service cards */
.service-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  text-decoration: none;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.dark .service-card {
  background: var(--card-background);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

.dark .service-card-icon {
  color: var(--primary-light);
}

/* Blog cards */
.blog-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  text-decoration: none;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.dark .blog-card {
  background: var(--card-background);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-img-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img {
  transform: scale(1.05);
}

.blog-category {
  background: var(--primary-blue);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
  color: var(--primary-blue);
}

.blog-meta {
  font-size: 0.875rem;
  color: var(--neutral-500);
}

/* CTA section styling */
.cta-section {
  position: relative;
  padding: 5rem 1rem;
  background: var(--gradient-primary);
  color: white;
  overflow: hidden;
}

.cta-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
  z-index: 0;
}

/* Animation utilities */
.animate-float {
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-20px) scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.5;
  }
}

/* Dark mode overrides */
.dark {
  color-scheme: dark;
}

.dark body {
  background-color: var(--background);
}

.dark .bg-white {
  background-color: var(--background);
}

.dark .bg-neutral-100 {
  background-color: var(--background-light);
}

/* Responsive styles */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
}
