/* ==========================================================================
   LAYOUT & PAGE-SPECIFIC STYLES - Material Space Theme
   ========================================================================== */

/* Container Layout */
.container {
  width: 100%;
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Section Layout */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glow);
  opacity: 0.05;
  pointer-events: none;
}

.section--hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: var(--gradient-space);
  position: relative;
  overflow: hidden;
}

.section--hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(100, 255, 218, 0.1) 0%,
    transparent 50%
  );
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.2;
  }
  100% {
    transform: scale(1);
    opacity: 0.1;
  }
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--projects {
  grid-template-columns: 1fr;
}

/* Hero Section */
.hero__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.2;
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Section Headers */
.section__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section__title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.section__title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 60px;
  height: 2px;
  background: var(--color-primary);
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--color-primary);
}

.section__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* About Section */
.about__content {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.about__text {
  font-size: var(--font-size-lg);
  line-height: 1.7;
  color: var(--color-text-light);
}

.about__image {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.about__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0.2;
}

/* Footer */
.footer {
  background: var(--color-surface-dark);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-light);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-primary) 50%,
    transparent 100%
  );
  opacity: 0.3;
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-xl);
  }

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

  .hero__title {
    font-size: var(--font-size-4xl);
  }

  .about__content {
    grid-template-columns: 1fr 300px;
    gap: var(--space-2xl);
  }
}

@media (min-width: 1024px) {
  .grid--projects {
    grid-template-columns: repeat(3, 1fr);
  }
}
