/* ==================== CSS VARIABLES ==================== */
:root {
  /* Split-Complementary Color Scheme */
  --primary-color: #FF6B35;
  --primary-dark: #E55A2B;
  --primary-light: #FF8C69;
  
  --secondary-color: #35A7FF;
  --secondary-dark: #2B8CE5;
  --secondary-light: #69BEFF;
  
  --accent-color: #35FF6B;
  --accent-dark: #2BE55A;
  --accent-light: #69FF8C;
  
  --tertiary-color: #A735FF;
  --tertiary-dark: #8C2BE5;
  --tertiary-light: #B969FF;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --medium-gray: #6C757D;
  --dark-gray: #343A40;
  --black: #000000;
  
  /* Dynamic Gradient Backgrounds */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
  --gradient-secondary: linear-gradient(45deg, var(--secondary-color) 0%, var(--tertiary-color) 100%);
  --gradient-accent: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
  --gradient-dark: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
  
  /* Typography */
  --font-headings: 'Poppins', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-medium: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-slow: 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);
  line-height: 1.6;
  color: var(--dark-gray);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

.title {
  font-family: var(--font-headings) !important;
}

.subtitle {
  font-family: var(--font-body) !important;
  font-weight: 500;
}

p {
  margin-bottom: var(--spacing-sm);
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Read More Links */
.read-more, .btn-read-more {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more:hover, .btn-read-more:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-dark);
  transform: translateX(4px);
}

.read-more::after, .btn-read-more::after {
  content: '→';
  transition: transform var(--transition-fast);
}

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

/* ==================== BUTTON STYLES ==================== */
.btn, .button, input[type='submit'], button[type='submit'] {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn::before, .button::before, input[type='submit']::before, button[type='submit']::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before, .button:hover::before, input[type='submit']:hover::before, button[type='submit']:hover::before {
  left: 100%;
}

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

.btn-primary:hover, .button.is-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

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

.btn-secondary:hover, .button.is-info:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

/* Light Button */
.button.is-light {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.button.is-light:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* Success Button */
.button.is-success {
  background: var(--accent-color);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.button.is-success:hover {
  background: var(--accent-dark);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

/* Warning Button */
.button.is-warning {
  background: #FFD700;
  color: var(--dark-gray);
  box-shadow: var(--shadow-md);
}

.button.is-warning:hover {
  background: #FFC107;
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-lg);
  color: var(--dark-gray);
}

/* Danger Button */
.button.is-danger {
  background: #FF4757;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.button.is-danger:hover {
  background: #FF3742;
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

/* Bounce Animation */
.btn-bounce {
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(50px);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) translateY(-10px);
  }
  70% {
    transform: scale(0.95) translateY(5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==================== HEADER & NAVIGATION ==================== */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

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

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

.navbar-item {
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

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

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

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

.navbar-burger span {
  background-color: var(--primary-color);
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

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

.hero .title {
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero .subtitle {
  color: var(--white) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .content {
  color: var(--white) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero .buttons {
  animation: fadeInUp 1s ease-out 0.6s both;
}

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

/* ==================== SECTION STYLES ==================== */
.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section.has-background-light {
  background: var(--light-gray);
}

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

.section.has-background-dark {
  background: var(--gradient-dark);
}

/* Section Titles */
.section .title {
  position: relative;
  margin-bottom: var(--spacing-md);
}

.section .title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* ==================== CARDS & COMPONENTS ==================== */
.card {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

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

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  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.1);
}

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

/* Box Component */
.box {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
  background: var(--white);
  border: 1px solid rgba(255, 107, 53, 0.1);
}

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

/* ==================== GALLERY & GRID ==================== */
.gallery-container {
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==================== FORMS ==================== */
.field {
  margin-bottom: var(--spacing-md);
}

.input, .textarea, .select select {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.select:not(.is-multiple):not(.is-loading)::after {
  border-color: var(--primary-color);
}

/* ==================== TAGS ==================== */
.tag {
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

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

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

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

.tag.is-warning {
  background: #FFD700;
  color: var(--dark-gray);
}

.tag.is-danger {
  background: #FF4757;
  color: var(--white);
}

.tag.is-link {
  background: var(--tertiary-color);
  color: var(--white);
}

.tag:hover {
  transform: scale(1.05);
}

/* ==================== STATISTICS WIDGET ==================== */
.statistics-widget {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.stat-item {
  padding: var(--spacing-sm);
  transition: transform var(--transition-medium);
}

.stat-item:hover {
  transform: scale(1.1);
}

/* ==================== HISTORY SECTION ==================== */
#history {
  background: var(--white);
}

#history .columns {
  align-items: center;
}

#history img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-medium);
}

#history img:hover {
  transform: scale(1.05);
}

/* ==================== PORTFOLIO SECTION ==================== */
#portfolio .columns {
  align-items: stretch;
}

#portfolio .card {
  height: 100%;
  border: 1px solid rgba(255, 107, 53, 0.1);
}

/* ==================== VISION SECTION ==================== */
#vision {
  color: var(--white);
  position: relative;
}

#vision .title, #vision .subtitle {
  color: var(--white) !important;
}

#vision .content {
  color: var(--white);
}

#vision .checkbox {
  color: var(--white);
}

/* ==================== CUSTOMER STORIES SECTION ==================== */
#customer-stories .card {
  transition: all var(--transition-medium);
  border: 1px solid rgba(255, 107, 53, 0.1);
}

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

/* ==================== INSIGHTS SECTION ==================== */
#insights {
  background: var(--light-gray);
}

#insights .box {
  background: var(--white);
  border: 1px solid rgba(255, 107, 53, 0.1);
}

#insights .checkbox {
  margin-bottom: var(--spacing-xs);
}

/* ==================== CASE STUDIES SECTION ==================== */
#case-studies .media-left img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

#case-studies .card {
  border: 1px solid rgba(255, 107, 53, 0.1);
}

/* ==================== INNOVATION SECTION ==================== */
#innovation {
  background: var(--gradient-primary);
  color: var(--white);
}

#innovation .title, #innovation .subtitle {
  color: var(--white) !important;
}

#innovation .content {
  color: var(--white);
}

#innovation img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-medium);
}

#innovation img:hover {
  transform: scale(1.05);
}

/* ==================== EXTERNAL RESOURCES SECTION ==================== */
#external-resources .box {
  height: 100%;
  transition: all var(--transition-medium);
  border: 1px solid rgba(255, 107, 53, 0.1);
}

#external-resources .box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ==================== CONTACT SECTION ==================== */
#contact .box {
  background: var(--white);
  border: 1px solid rgba(255, 107, 53, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

#contact-form {
  animation: slideInUp 0.6s ease-out;
}

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

/* ==================== FOOTER ==================== */
.footer {
  background: var(--gradient-dark);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

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

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

.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
  position: relative;
}

.footer a:hover {
  color: var(--white);
  transform: translateX(5px);
}

.footer a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all var(--transition-fast);
}

.footer a:hover::before {
  opacity: 1;
  left: -15px;
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.social-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-fast);
  position: relative;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ==================== UTILITY CLASSES ==================== */
.h-full {
  height: 100%;
}

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

.glassmorphism {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
}

.parallax-element {
  transition: transform 0.1s ease-out;
}

/* ==================== SUCCESS PAGE ==================== */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--white);
}

.success-content {
  text-align: center;
  padding: var(--spacing-xl);
  animation: bounceIn 0.8s ease-out;
}

.success-content .title {
  color: var(--white) !important;
  margin-bottom: var(--spacing-md);
}

.success-content .subtitle {
  color: var(--white) !important;
  margin-bottom: var(--spacing-lg);
}

/* ==================== PRIVACY & TERMS PAGES ==================== */
.legal-content {
  padding-top: 100px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.legal-content h2 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.legal-content h3 {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  color: var(--secondary-color);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1023px) {
  .parallax-bg {
    background-attachment: scroll;
  }
  
  .hero {
    min-height: 70vh;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .navbar-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
  }
  
  .hero .title {
    font-size: 2rem !important;
  }
  
  .hero .subtitle {
    font-size: 1.25rem !important;
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
  
  .card-image {
    height: 200px;
  }
  
  .statistics-widget .columns {
    flex-direction: column;
  }
  
  .buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .button {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }
}

/* ==================== ANIMATION PERFORMANCE ==================== */
.card, .box, .button, .btn {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .navbar, .hero, .footer {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  * {
    background: transparent !important;
    color: black !important;
  }
}