/* ===== CSS VARIABLES ===== */
:root {
  --primary-color: #6366f1;
  --secondary-color: #f472b6;
  --accent-color: #22c55e;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --transition: all 0.3s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(135deg, #f0f9ff 0%, #fdf2f8 100%);
  margin: 0;
  padding: 0;
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.gradient-bg {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  padding: 0.5rem 0;
}

.gradient-bg-n {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  padding: 0.5rem 0;
}

/* ===== HEADER STYLES ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

.logo {
  height: 3rem;
  width: auto;
  transition: var(--transition);
}

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

/* ===== NAVIGATION ===== */
.desktop-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: var(--transition);
  padding: 0.5rem 0;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-button {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  position: relative;
  z-index: 1001;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  transition: var(--transition);
  display: block;
  margin: 4px 0;
}

.mobile-menu-button.active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-button.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 2rem;
  transform: translateX(-100%);
  transition: var(--transition);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.mobile-menu-links a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
  padding: 1rem 0;
}

.mobile-menu-links a:hover {
  color: var(--primary-color);
  transform: translateX(10px);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: var(--transition) !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 0.875rem !important;
}

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

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

.btn-success {
  background: #25D366;
  color: var(--white);
}

.btn-success:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-gradient {
  background: var(--gradient-primary) !important;
  color: var(--white) !important;
}

.btn-gradient:hover {
  opacity: 0.9 !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-lg) !important;
}

/* Contact form button specific styling */
.contact-form .btn-gradient {
  width: 100% !important;
  max-width: 300px !important;
  margin: 0 auto !important;
  display: block !important;
  font-size: 0.875rem !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  border: none !important;
  cursor: pointer !important;
  background: linear-gradient(135deg, #6366f1, #f472b6) !important;
  color: #ffffff !important;
}

/* Hero section button styling */
.hero-content .btn-gradient {
  font-size: 1rem !important;
  padding: 0.875rem 2rem !important;
  margin-top: 1rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  border: none !important;
  cursor: pointer !important;
  background: linear-gradient(135deg, #6366f1, #f472b6) !important;
  color: #ffffff !important;
}

/* ===== HERO SECTION ===== */
.hero-swiper {
  height: 500px;
  position: relative;
}

.hero-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 2rem;
}

.hero-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ===== SECTIONS ===== */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.section-subtitle {
  font-size: 1.125rem;
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ===== CARDS ===== */
.card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* ===== GRID LAYOUTS ===== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ===== TECHNOLOGY CARDS ===== */
.tech-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.tech-card svg {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  transition: var(--transition);
}

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

.tech-card h4 {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 100%;
}

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

.testimonial-card p {
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.testimonial-card h4 {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.25rem;
}

.testimonial-card .role {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ===== SWIPER CUSTOMIZATION ===== */
.swiper {
  width: 100%;
  padding: 2rem 0;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-color) !important;
  background: var(--white);
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--primary-color);
  color: var(--white) !important;
  transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1.25rem !important;
  font-weight: bold;
}

.swiper-pagination-bullet {
  width: 10px !important;
  height: 10px !important;
  background: #cbd5e1 !important;
  transition: var(--transition);
}

.swiper-pagination-bullet-active {
  background: var(--primary-color) !important;
  width: 20px !important;
  border-radius: 5px !important;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 3rem 0 1rem;
}

footer h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

footer a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  opacity: 0.9;
}

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

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gradient-primary);
  padding: 0.75rem;
  z-index: 50;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  padding: 0.25rem;
}

.bottom-nav a.active {
  color: var(--accent-color);
}

.bottom-nav svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.25rem;
}

/* ===== SCROLL TO TOP ===== */
.scroll-to-top {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  background: var(--gradient-primary);
  color: var(--white);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 49;
  border: none;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease backwards;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .desktop-menu {
    display: none;
  }
  
  .mobile-menu-button {
    display: block;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.125rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-swiper {
    height: 400px;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
  
  body {
    padding-bottom: 4rem;
  }
  
  .testimonial-card p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.8125rem !important;
  }
  
  .hero-content .btn-gradient {
    font-size: 0.875rem !important;
    padding: 0.75rem 1.5rem !important;
  }
  
  .contact-form .btn-gradient {
    max-width: 100% !important;
  }
}

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

/* ===== FOCUS STYLES ===== */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .mobile-menu-button,
  .bottom-nav,
  .scroll-to-top {
    display: none !important;
  }
  
  body {
    background: white !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}