/* ===== LAYOUT SYSTEM ===== */

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-3);
  }
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--space-20) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

/* ===== GRID SYSTEMS ===== */

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-16);
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-top: var(--space-12);
  }
  
  .feature-card {
    padding: var(--space-6);
  }
  
  .feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-4);
  }
  
  .card-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
  }
  
  .card-description {
    font-size: var(--text-sm);
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .features-grid {
    gap: var(--space-3);
  }
  
  .feature-card {
    padding: var(--space-4);
  }
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
  align-items: stretch;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* Process Steps Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-16);
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-16);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ===== HERO LAYOUT ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: var(--text-6xl);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    padding: var(--space-16) 0;
  }
  
  .hero-content {
    padding: 0 var(--space-4);
  }
  
  .hero-title {
    font-size: var(--text-3xl);
    line-height: 1.2;
    margin-bottom: var(--space-4);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
    line-height: 1.6;
    margin-bottom: var(--space-6);
    padding: 0 var(--space-2);
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-lg);
    min-height: 56px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--text-2xl);
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: var(--text-base);
    padding: 0 var(--space-1);
  }
  
  .hero-cta .btn {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-base);
    min-height: 48px;
  }
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: var(--space-20) 0 var(--space-12);
  text-align: center;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-dynamic);
  opacity: 0.1;
}

.page-header-content {
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.page-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .page-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
  }
  
  .page-subtitle {
    font-size: var(--text-lg);
    padding: 0 var(--space-2);
  }
  
  .page-header {
    padding: var(--space-16) 0 var(--space-8);
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
  }
  
  .page-subtitle {
    font-size: var(--text-base);
    padding: 0 var(--space-1);
  }
  
  .page-header {
    padding: var(--space-12) 0 var(--space-6);
  }
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
  padding: var(--space-16) 0;
}

.content-section-alt {
  background-color: var(--surface-800);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.section-subtitle {
  font-size: var(--text-xl);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
  }
  
  .section-subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
    padding: 0 var(--space-2);
  }
  
  .section-header {
    margin-bottom: var(--space-12);
    padding: 0 var(--space-4);
  }
  
  .section {
    padding: var(--space-16) 0;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
  }
  
  .section-subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
    padding: 0 var(--space-1);
  }
  
  .section-header {
    margin-bottom: var(--space-8);
    padding: 0 var(--space-2);
  }
  
  .section {
    padding: var(--space-12) 0;
  }
}

/* ===== FLOATING SHAPES ===== */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
}

.floating-shape:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-shape:nth-child(2) {
  top: 20%;
  right: 10%;
  animation-delay: 5s;
}

.floating-shape:nth-child(3) {
  bottom: 20%;
  left: 20%;
  animation-delay: 10s;
}

.floating-shape:nth-child(4) {
  bottom: 10%;
  right: 20%;
  animation-delay: 15s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(-10px) rotate(-3deg);
  }
  75% {
    transform: translateY(-15px) rotate(2deg);
  }
}

/* Mobile Responsive Floating Shapes */
@media (max-width: 768px) {
  .floating-shape {
    opacity: 0.05;
  }
  
  .floating-shape:nth-child(1) {
    width: 80px;
    height: 80px;
  }
  
  .floating-shape:nth-child(2) {
    width: 60px;
    height: 60px;
  }
  
  .floating-shape:nth-child(3) {
    width: 40px;
    height: 40px;
  }
  
  .floating-shape:nth-child(4) {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 480px) {
  .floating-shape {
    opacity: 0.03;
  }
  
  .floating-shape:nth-child(1) {
    width: 60px;
    height: 60px;
  }
  
  .floating-shape:nth-child(2) {
    width: 45px;
    height: 45px;
  }
  
  .floating-shape:nth-child(3) {
    width: 30px;
    height: 30px;
  }
  
  .floating-shape:nth-child(4) {
    width: 20px;
    height: 20px;
  }
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none;
  }
  
  .mobile-full-width {
    width: 100%;
  }
  
  .mobile-center {
    text-align: center;
  }
  
  .mobile-stack {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .mobile-hidden {
    display: none;
  }
  
  .mobile-full-width {
    width: 100%;
  }
  
  .mobile-center {
    text-align: center;
  }
  
  .mobile-stack {
    flex-direction: column;
  }
}

@media (min-width: 769px) {
  .desktop-hidden {
    display: none;
  }
}

/* ===== SPACING UTILITIES ===== */
.mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

.pt-0 { padding-top: 0; }
.pt-4 { padding-top: var(--space-4); }
.pt-8 { padding-top: var(--space-8); }
.pt-12 { padding-top: var(--space-12); }
.pt-16 { padding-top: var(--space-16); }
.pt-20 { padding-top: var(--space-20); }

.pb-0 { padding-bottom: 0; }
.pb-4 { padding-bottom: var(--space-4); }
.pb-8 { padding-bottom: var(--space-8); }
.pb-12 { padding-bottom: var(--space-12); }
.pb-16 { padding-bottom: var(--space-16); }
.pb-20 { padding-bottom: var(--space-20); }

/* ===== MAX WIDTH UTILITIES ===== */
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-full { max-width: 100%; }

.mx-auto { margin-left: auto; margin-right: auto; }
