/* ==========================================================================
   LAYOUT STYLES
   ========================================================================== */

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-md);
}

.container-sm {
  max-width: 640px;
}

.container-md {
  max-width: 768px;
}

.container-lg {
  max-width: 1024px;
}

.container-xl {
  max-width: 1280px;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-cols-auto {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.align-start {
  align-items: flex-start;
}

.align-end {
  align-items: flex-end;
}

.align-center {
  align-items: center;
}

.align-stretch {
  align-items: stretch;
}

.flex-1 {
  flex: 1;
}

.flex-auto {
  flex: auto;
}

.flex-none {
  flex: none;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  transition: var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  height: 80px;
  display: flex;
  align-items: center;
}

.nav__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 40px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__item {
  position: relative;
}

.nav__link {
  color: var(--text-dark);
  font-weight: var(--fw-medium);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
  position: relative;
}

.nav__link:hover,
.nav__link:focus {
  color: var(--primary);
  background-color: var(--bg-light);
}

.nav__link--active {
  color: var(--primary);
  background-color: var(--bg-light);
}

.nav__link--login {
  background-color: var(--primary);
  color: var(--bg-white);
}

.nav__link--login:hover,
.nav__link--login:focus {
  background-color: var(--accent);
  color: var(--bg-white);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: var(--space-sm);
}

.nav__toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: var(--transition-fast);
  transform-origin: center;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */

.main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

/* Section Spacing */
section {
  padding: 5rem 0;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}

section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

section:first-child {
  padding-top: 3rem;
}

section:last-child {
  padding-bottom: 6rem;
}

/* Section Background Styles */
.about-preview {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 6rem 0;
}

.services {
  background: #ffffff;
  padding: 6rem 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.testimonials {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 6rem 0;
}

.blog-teaser {
  background: #ffffff;
  padding: 6rem 0;
}

.blog-teaser__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.blog-teaser__cta {
  text-align: center;
  margin-top: 4rem;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.25rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.about-preview__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-preview__text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-light);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--bg-white);
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.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 320"><path fill="%23ffffff" fill-opacity="0.08" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,133.3C672,139,768,181,864,186.7C960,192,1056,160,1152,138.7C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom center;
  background-size: cover;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
  z-index: 1;
}

.hero__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__content {
  text-align: left;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero__title {
  font-size: 3.8rem;
  font-weight: var(--fw-bold);
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--bg-white);
  background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.35rem;
  line-height: var(--lh-relaxed);
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 90%;
}

.hero__buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero__image {
  text-align: center;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero__img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  background: linear-gradient(135deg, #f0f0f0 0%, #d0d0d0 100%);
  padding: 2rem;
}

.hero__img:hover {
  transform: translateY(-10px) scale(1.02);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background-color: var(--text-dark);
  color: var(--bg-white);
  padding: var(--space-4xl) 0 var(--space-lg);
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__section h4 {
  color: var(--bg-white);
  margin-bottom: var(--space-md);
  font-size: var(--fs-lg);
}

.footer__logo-img {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-md);
}

.footer__description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-lg);
  line-height: var(--lh-relaxed);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.footer__social-link:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
}

.footer__social-link .icon {
  width: 20px;
  height: 20px;
}

.footer__title {
  color: var(--bg-white);
  margin-bottom: var(--space-md);
  font-size: var(--fs-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
}

.footer__link:hover {
  color: var(--bg-white);
}

.footer__contact {
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--lh-relaxed);
}

.footer__contact p {
  margin-bottom: var(--space-sm);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }
  
  .hero__title {
    font-size: var(--fs-4xl);
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-2xl) var(--space-md);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
  }
  
  .nav__menu.active {
    left: 0;
  }
  
  .nav__toggle {
    display: flex;
  }
  
  .hero {
    padding: 4rem 0;
    min-height: 80vh;
  }
  
  .hero__container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero__title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  .hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 100%;
  }
  
  .hero__buttons {
    justify-content: center;
    gap: 1rem;
  }
  
  .hero__buttons .btn {
    min-width: 160px;
  }
  
  .services__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .blog-teaser__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .about-preview__text {
    font-size: 1.1rem;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .nav__container {
    padding: 0 var(--space-sm);
  }
  
  .hero__container {
    padding: 0 var(--space-sm);
  }
  
  .footer__container {
    padding: 0 var(--space-sm);
  }
} 