/*
  Alamilla IT Services - Modern Design System
  Version: 6.0
  Inspired by Workwize - Dark navy hero, clean cards, modern typography
*/

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  /* Primary - Dark Navy Blue */
  --navy-900: #0a1628;
  --navy-800: #122750;
  --navy-700: #1a3a6e;
  --navy-600: #234d8c;
  
  /* Accent - Sky Blue */
  --accent-500: #227af7;
  --accent-400: #4a94f8;
  --accent-300: #7db3fa;
  --accent-200: #b0d2fc;
  --accent-100: #e1ecfe;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f5f7f8;
  --gray-100: #e8ebed;
  --gray-200: #d4d8dc;
  --gray-300: #b8bfc6;
  --gray-400: #8c96a3;
  --gray-500: #6b7685;
  --gray-600: #4d5766;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --container-max: 1310px;
  --section-padding: 100px;
  --section-padding-md: 80px;
  --section-padding-sm: 60px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-700);
  background-color: var(--white);
  line-height: 1.6;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul, ol {
  list-style: none;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-800);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.text-lg {
  font-size: 1.25rem;
  line-height: 1.6;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrapper {
  max-width: 1257px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--section-padding) 0;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

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

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

.btn-secondary {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
}

.header.scrolled .nav-links a {
  color: var(--navy-800);
}

.header.scrolled .nav-links a:hover {
  color: var(--accent-500);
}

.header.scrolled .btn-secondary {
  color: var(--navy-800);
  border-color: var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  position: relative;
}

.logo img {
  height: 72px;
  width: auto;
}

.logo .logo-white {
  display: block;
}

.logo .logo-dark {
  display: none;
}

.header.scrolled .logo .logo-white {
  display: none;
}

.header.scrolled .logo .logo-dark {
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-300);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.header.scrolled .mobile-toggle span {
  background: var(--navy-800);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--navy-800);
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  background: var(--navy-800);
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 800"><circle cx="200" cy="200" r="300" fill="rgba(34,122,247,0.05)"/><circle cx="1200" cy="600" r="400" fill="rgba(34,122,247,0.03)"/></svg>');
  background-size: cover;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  color: var(--accent-400);
}

.hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
  position: relative;
}

.hero-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1.25rem;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.375rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-badge svg {
  width: 20px;
  height: 20px;
  color: var(--accent-400);
}

@media (max-width: 767px) {
  .trust-badges {
    gap: 1rem;
  }
  
  .trust-badge {
    font-size: 0.8125rem;
  }
  
  .trust-badge svg {
    width: 18px;
    height: 18px;
  }
}

/* Hero Form */
.hero-form-container {
  position: relative;
}

.mobile-form-toggle {
  display: none;
  width: 100%;
}

.hero-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
}

@media (max-width: 991px) {
  .mobile-form-toggle {
    display: block;
  }
  
  .hero-form {
    display: none;
    margin-top: 1rem;
  }
  
  .hero-form.active {
    display: block;
  }
}

.hero-form h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--navy-800);
}

.hero-form .form-subtitle {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.hero-form .form-group {
  margin-bottom: 1rem;
}

.hero-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy-800);
  margin-bottom: 0.5rem;
}

.hero-form input,
.hero-form select,
.hero-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--gray-800);
  transition: all 0.2s ease;
  font-family: inherit;
}

.hero-form input:focus,
.hero-form select:focus,
.hero-form textarea:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px var(--accent-100);
}

.hero-form input::placeholder,
.hero-form textarea::placeholder {
  color: var(--gray-400);
}

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

.hero-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* ========================================
   LOGO SECTION
   ======================================== */
.logo-section {
  background: var(--navy-800);
  padding: 3rem 0 5rem;
}

.logo-section p {
  text-align: center;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.logo-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0.7;
}

.logo-grid img {
  height: 32px;
  filter: brightness(0) invert(1);
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-section {
  background: var(--white);
}

.services-group {
  margin-bottom: 4rem;
}

.services-group:last-child {
  margin-bottom: 0;
}

.services-group-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-100);
}

.services-group-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-400) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.services-group-icon-business {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-600) 100%);
}

.services-group-icon svg {
  width: 24px;
  height: 24px;
}

.services-group-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-800);
}

/* Card variations for residential vs business */
.card-residential .card-icon-residential {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0284c7;
}

.card-business .card-icon-business {
  background: linear-gradient(135deg, var(--accent-100) 0%, var(--accent-200) 100%);
  color: var(--accent-500);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--gray-500);
  font-size: 1.125rem;
}

/* ========================================
   CARDS
   ======================================== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.card:hover {
  background: var(--white);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-100);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-500);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--navy-800);
}

.card p {
  color: var(--gray-500);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--accent-500);
  font-size: 0.9375rem;
}

.card-link:hover {
  gap: 0.75rem;
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.feature-card .card-icon {
  margin: 0 auto 1.5rem;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
  background: var(--gray-50);
  padding: 5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-500);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--gray-600);
  font-size: 1rem;
  font-weight: 500;
}

/* ========================================
   WHY CHOOSE US / FEATURES
   ======================================== */
.features-section {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-box {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.feature-box:hover {
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.feature-box-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--accent-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-box-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-500);
}

.feature-box h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--navy-800);
}

.feature-box p {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-section {
  background: var(--gray-50);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.testimonial-content {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: var(--accent-100);
  color: var(--accent-500);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 0.125rem;
}

.testimonial-info p {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: var(--accent-500);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--white);
}

.cta-section .btn-primary:hover {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
  background: var(--navy-800);
  padding: 160px 0 80px;
  text-align: center;
}

/* Ensure header shows white logo on pages with blue page-header */
body:has(.page-header) .header:not(.scrolled) {
  background: transparent;
}

body:has(.page-header) .header:not(.scrolled) .logo .logo-white {
  display: block;
}

body:has(.page-header) .header:not(.scrolled) .logo .logo-dark {
  display: none;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--navy-800);
  color: var(--white);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  max-width: 280px;
}

.footer-brand .logo img {
  height: 128px;
  filter: brightness(0) invert(1);
}

.footer-column h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-500);
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--navy-800);
}

.contact-item p,
.contact-item a {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

.contact-item a:hover {
  color: var(--accent-500);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy-800);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--gray-800);
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px var(--accent-100);
}

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

/* ========================================
   TEAM PAGE
   ======================================== */
.team-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.team-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--gray-100);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--accent-500);
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.team-card p {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

/* ========================================
   PORTFOLIO PAGE
   ======================================== */
.portfolio-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

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

.portfolio-image {
  height: 200px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-image svg {
  width: 64px;
  height: 64px;
  color: var(--gray-400);
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-content h3 {
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

/* ========================================
   LANGUAGE TOGGLE - Fixed bottom-right
   ======================================== */
.translate-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
}

.current-flag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full);
  border: none;
  background: var(--navy-800);
  color: var(--white);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-lg);
}

.current-flag:hover {
  background: var(--accent-500);
  transform: scale(1.05);
}

.current-flag .flag-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.current-flag .lang-label {
  font-size: 0.875rem;
  font-weight: 600;
}

.current-flag::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 0.25rem;
  opacity: 0.6;
}

.translate-widget.active .current-flag::after {
  border-top: none;
  border-bottom: 4px solid currentColor;
}

.lang-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.375rem;
  display: none;
  z-index: 10000;
  min-width: 150px;
  animation: fadeInUp 0.15s ease;
}

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

.translate-widget.active .lang-menu {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.lang-option:hover {
  background: var(--gray-50);
}

.lang-option.active {
  background: var(--accent-100);
  color: var(--accent-500);
}

.lang-option.active::after {
  content: '✓';
  margin-left: auto;
  font-size: 0.75rem;
}

.lang-option .flag-emoji {
  font-size: 1.25rem;
  line-height: 1;
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1080px) {
  .hero-grid {
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 991px) {
  section {
    padding: var(--section-padding-md) 0;
  }
  
  .nav-links,
  .nav-cta {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .header {
    padding: 1rem 0;
  }
  
  .logo img {
    height: 56px;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .hero-content p {
    font-size: 1.0625rem;
  }
  
  .hero-form {
    max-width: 100%;
  }
  
  .hero-stats {
    flex-direction: row;
    gap: 2rem;
    flex-wrap: nowrap;
  }
  
  .hero-stat-number {
    font-size: 2rem;
  }
  
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .page-header {
    padding: 120px 0 60px;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
  }
  
  /* Mobile menu improvements */
  .mobile-menu {
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
  }
  
  .mobile-menu a {
    padding: 1rem 0;
    font-size: 1.0625rem;
  }
  
  .mobile-menu .btn {
    margin-top: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 767px) {
  section {
    padding: var(--section-padding-sm) 0;
  }
  
  .container {
    padding: 0 1.25rem;
  }
  
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.125rem;
  }
  
  p {
    font-size: 0.9375rem;
  }
  
  .hero {
    padding: 110px 0 50px;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-stats {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
  
  .hero-stat-number {
    font-size: 1.75rem;
  }
  
  .hero-stat-label {
    font-size: 0.8125rem;
  }
  
  .hero-form {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }
  
  .hero-form h3 {
    font-size: 1.25rem;
  }
  
  .hero-form .form-group {
    margin-bottom: 0.75rem;
  }
  
  .hero-form input,
  .hero-form select,
  .hero-form textarea {
    padding: 0.75rem 0.875rem;
    font-size: 0.9375rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .stat-item h3 {
    font-size: 1.75rem;
  }
  
  .stat-item p {
    font-size: 0.875rem;
  }
  
  .feature-box {
    padding: 1.5rem;
    gap: 1rem;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .cta-section {
    padding: 3rem 0;
  }
  
  .cta-section h2 {
    font-size: 1.5rem;
  }
  
  .cta-section p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }
  
  .page-header {
    padding: 100px 0 50px;
  }
  
  .page-header h1 {
    font-size: 1.75rem;
  }
  
  .page-header p {
    font-size: 1rem;
  }
  
  .footer {
    padding: 3rem 0 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-brand .logo img {
    height: 80px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .footer-bottom p {
    font-size: 0.8125rem;
  }
  
  /* Language toggle on mobile */
  .translate-widget {
    bottom: 1rem;
    right: 1rem;
  }
  
  .current-flag {
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
  }
  
  .current-flag .lang-label {
    display: none;
  }
  
  /* Contact page mobile */
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-item {
    gap: 0.75rem;
  }
  
  /* Team page mobile */
  .team-card {
    padding: 1.5rem;
  }
  
  .team-avatar {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    padding: 100px 0 40px;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .hero-stats {
    flex-direction: row;
    justify-content: space-between;
    gap: 0.75rem;
  }
  
  .hero-stat-number {
    font-size: 1.5rem;
  }
  
  .hero-stat-label {
    font-size: 0.75rem;
  }
  
  .hero-stat:not(:last-child)::after {
    display: none;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .logo img {
    height: 48px;
  }
  
  .header {
    padding: 0.75rem 0;
  }
}

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

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* ========================================
   SERVICES PAGE - CUSTOMER SECTIONS
   ======================================== */
.customer-toggle {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.toggle-btn.active {
  background: white;
  color: var(--navy-700);
  border-color: white;
}

.toggle-btn svg {
  width: 20px;
  height: 20px;
}

.customer-section {
  display: none;
}

.customer-section.active {
  display: block;
}

.service-list {
  list-style: none;
  margin-top: 1rem;
  color: var(--gray-600);
}

.service-list li {
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-500);
  font-weight: 700;
}

.packages-header {
  text-align: center;
  margin: 4rem 0 2rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gray-200);
}

.packages-header h3 {
  font-size: 1.75rem;
  color: var(--navy-800);
  margin-bottom: 0.5rem;
}

.packages-header p {
  color: var(--gray-500);
}

.package-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: relative;
}

.package-card.package-business {
  border-color: var(--navy-200);
}

.package-popular {
  border: 2px solid var(--accent-500);
  box-shadow: var(--shadow-lg);
}

.package-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-500);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.package-badge-business {
  background: var(--navy-700);
}

.package-header {
  text-align: center;
  margin-bottom: 1rem;
}

.package-header h4 {
  font-size: 1.25rem;
  color: var(--navy-800);
  margin-bottom: 0.5rem;
}

.package-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
}

.package-users {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.package-desc {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.package-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.package-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
  font-size: 0.9375rem;
}

.package-features li:last-child {
  border-bottom: none;
}

.addons-section {
  margin-top: 3rem;
  padding: 2rem;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}

.addons-section h4 {
  text-align: center;
  font-size: 1.25rem;
  color: var(--navy-800);
  margin-bottom: 1.5rem;
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.addon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}

.addon-name {
  font-weight: 600;
  color: var(--navy-700);
  font-size: 0.9375rem;
}

.addon-price {
  color: var(--accent-500);
  font-weight: 700;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.package-card .btn-outline {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--navy-300);
}

.package-card .btn-outline:hover {
  background: var(--navy-700);
  color: white;
  border-color: var(--navy-700);
}

.section-label-enterprise {
  background: var(--navy-100);
  color: var(--navy-700);
}

@media (max-width: 767px) {
  .customer-toggle {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .toggle-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 1rem 1.5rem;
  }
  
  .addons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
