/* CSS Variables - Futuristic Design System */
:root {
  /* Primary Colors */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --primary-glow: rgba(99, 102, 241, 0.2);
  
  /* Secondary Colors */
  --secondary-color: #ec4899;
  --secondary-dark: #db2777;
  --secondary-light: #f9a8d4;
  
  /* Accent Colors */
  --accent-color: #10b981;
  --accent-dark: #059669;
  --accent-light: #6ee7b7;
  
  /* Neutral Colors */
  --dark-color: #111827;
  --gray-900: #1f2937;
  --gray-800: #374151;
  --gray-700: #4b5563;
  --gray-600: #6b7280;
  --gray-500: #9ca3af;
  --gray-400: #d1d5db;
  --gray-300: #e5e7eb;
  --gray-200: #f3f4f6;
  --gray-100: #f9fafb;
  --white: #ffffff;
  
  /* Text Colors */
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-light: #f9fafb;
  
  /* Gradient Backgrounds */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --gradient-light: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-backdrop: blur(20px);
  
  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  /* Font Sizes - Adaptive Typography */
  --fs-hero: clamp(2.5rem, 8vw, 4.5rem);
  --fs-h1: clamp(2rem, 6vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 4vw, 2.5rem);
  --fs-h3: clamp(1.5rem, 3vw, 2rem);
  --fs-h4: clamp(1.25rem, 2.5vw, 1.75rem);
  --fs-h5: clamp(1.125rem, 2vw, 1.5rem);
  --fs-body-lg: clamp(1.125rem, 2vw, 1.25rem);
  --fs-body: clamp(1rem, 1.5vw, 1.125rem);
  --fs-small: clamp(0.875rem, 1vw, 1rem);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  
  /* 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);
  --shadow-glow: 0 0 30px var(--primary-glow);
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

h5 {
  font-size: var(--fs-h5);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

/* Global Button Styles */
.btn, 
.button,
button,
input[type='submit'] {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-body);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  backdrop-filter: blur(10px);
  z-index: 1;
}

.btn::before,
.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left var(--transition-slow);
  z-index: -1;
}

.btn:hover::before,
.button:hover::before {
  left: 100%;
}

/* Primary Button */
.btn.is-primary,
.button.is-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn.is-primary:hover,
.button.is-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Secondary Button */
.btn.is-secondary,
.button.is-secondary {
  background: var(--gradient-secondary);
  color: var(--white);
}

.btn.is-secondary:hover,
.button.is-secondary:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* Light Button */
.btn.is-light,
.button.is-light {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  border: 2px solid var(--gray-300);
  backdrop-filter: blur(10px);
}

.btn.is-light:hover,
.button.is-light:hover {
  background: var(--white);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

/* Button Sizes */
.btn.is-large,
.button.is-large {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--fs-body-lg);
  border-radius: var(--radius-lg);
}

.btn.is-small,
.button.is-small {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--fs-small);
}

/* Link Styles */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

.read-more {
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
  transition: all var(--transition-base);
}

.read-more::after {
  content: '→';
  margin-left: var(--space-xs);
  transition: transform var(--transition-base);
}

.read-more:hover {
  color: var(--primary-dark);
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* Header & Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-base);
  z-index: 1000;
}

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar-brand .title {
  font-family: var(--font-heading);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.navbar-item {
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  transition: all var(--transition-base);
  position: relative;
}

.navbar-item::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.navbar-item:hover::before {
  width: 80%;
}

.navbar-item:hover {
  color: var(--primary-color);
  background: transparent;
}

/* Hero Section */
.index section {
  padding:48px 24px;
}
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index:0;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: var(--space-2xl) 0;
}

.hero .title {
  font-size: var(--fs-hero);
  font-weight: 700;
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: slideInUp var(--transition-slow) var(--transition-bounce);
}

.hero .subtitle {
  font-size: var(--fs-h3);
  color: var(--white) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: slideInUp var(--transition-slow) var(--transition-bounce) 0.2s both;
}

.hero p {
  color: var(--white) !important;
  font-size: var(--fs-body-lg);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: slideInUp var(--transition-slow) var(--transition-bounce) 0.4s both;
}

/* Sections */
.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--gray-100);
}

/* Cards */
.card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: none;
  overflow: hidden;
  transition: all var(--transition-base);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.card-content {
  padding: var(--space-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-content .title {
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.card-content p {
  flex-grow: 1;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

/* Features Section */
#features {
  background: var(--white);
}

.progress-indicator {
  background: var(--gray-200);
  height: 8px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  transition: width 2s ease-in-out;
  animation: progressLoad 2s ease-in-out;
}

/* Gallery Section */
#gallery img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin: 0 auto;
  display: block;
}

#gallery img:hover {
  transform: scale(1.03) rotate(1deg);
  box-shadow: var(--shadow-xl);
}

/* Projects Section */
#projects {
  background: var(--white);
}

/* Blog Section */
#blog article {
  height: 100%;
}

#blog .tag {
  margin-right: var(--space-xs);
  margin-bottom: var(--space-xs);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--fs-small);
}

.tag.is-primary {
  background: var(--gradient-primary);
  color: var(--white);
}

.tag.is-info {
  background: var(--gradient-accent);
  color: var(--white);
}

.tag.is-success {
  background: var(--accent-color);
  color: var(--white);
}

.tag.is-light {
  background: var(--gray-200);
  color: var(--text-secondary);
}

/* History Section */
#history {
  background: var(--white);
}

#history .content {
  padding: var(--space-lg);
}

#history img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Resources Section */
#resources {
  background: var(--gray-100);
}

/* Community Section */
#community {
  background: var(--white);
}

#community img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Clientele Section */
#clientele {
  background: var(--gray-100);
}

/* Contact Section */
#contact {
  background: var(--white);
}

.box {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.field {
  margin-bottom: var(--space-md);
}

.label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.input,
.textarea,
.select select {
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  font-family: var(--font-body);
  padding: var(--space-sm);
}

.input:focus,
.textarea:focus,
.select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

#contact img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Footer */
.footer {
  background: var(--gradient-dark) !important;
  color: var(--text-light);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer .title {
  color: var(--white) !important;
  font-family: var(--font-heading);
}

.footer a {
  color: var(--gray-300);
  transition: color var(--transition-base);
  text-decoration: none;
}

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

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: var(--space-xs);
}

/* Privacy & Terms Pages */
.privacy-content,
.terms-content {
  padding-top: 100px;
  max-width: 800px;
  margin: 0 auto;
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  padding: var(--space-md);
}

.success-content {
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
  max-width: 600px;
}

.success-content .title {
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

.success-content p {
  font-size: var(--fs-body-lg);
  margin-bottom: var(--space-lg);
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes progressLoad {
  from {
    width: 0%;
  }
}

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

.floating {
  animation: float 3s ease-in-out infinite;
}

/* Parallax Effect */
[data-parallax="true"] {
  transform: translate3d(0, 0, 0);
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }
  
  .hero {
    min-height: 80vh;
  }
  
  .hero-body {
    padding: var(--space-lg) 0;
  }
  
  .section {
    padding: var(--space-lg) 0;
  }
  
  .navbar-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
  }
  
  .card-image {
    height: 200px;
  }
  
  #gallery img {
    height: 200px;
  }
  
  .buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .buttons .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 70vh;
  }
  
  .card-image {
    height: 180px;
  }
  
  #gallery img {
    height: 180px;
  }
  
  .box {
    margin: 0 var(--space-sm);
  }
}

/* Performance Optimizations */
.card,
.button,
img {
  will-change: transform;
}

.hero-background {
  will-change: transform;
}

/* High Performance Transitions */
.card,
.button,
.navbar-item,
img {
  transform: translateZ(0);
  backface-visibility: hidden;
}

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

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

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.gradient-bg {
  background: var(--gradient-primary);
}

.full-width {
  width: 100%;
}

.centered {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.fadeIn {
  animation: slideInUp var(--transition-slow) ease-out;
}

/* Focus States for Accessibility */
.button:focus,
.input:focus,
.textarea:focus,
.navbar-item:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .button {
    display: none !important;
  }
  
  .section {
    padding: var(--space-sm) 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid var(--gray-300);
  }
}