/* ============================================
   AESTHETIX - Custom Styles
   Design System: Playfair Display + Montserrat
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Colors */
  --color-primary: #09152e;
  --color-secondary: #006a63;
  --color-background: #fbf8fb;
  --color-surface: #fbf8fb;
  --color-surface-low: #f5f3f5;
  --color-surface-container: #f0edf0;
  --color-surface-container-high: #eae7ea;
  --color-surface-variant: #e4e2e4;
  --color-outline: #76777e;
  --color-outline-variant: #c6c6ce;
  --color-on-surface: #1b1b1d;
  --color-on-surface-variant: #45464d;
  --color-on-primary: #ffffff;
  --color-on-secondary: #ffffff;
  --color-primary-fixed-dim: #bbc6e7;
  --color-secondary-fixed: #9cf2e8;
  --color-secondary-fixed-dim: #80d5cb;

  /* Spacing */
  --section-gap-desktop: 120px;
  --section-gap-mobile: 64px;
  --grid-margin: 24px;
  --grid-gutter: 24px;
  --container-max: 1440px;
}

/* ---------- Bootstrap Overrides ---------- */
body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-on-surface);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Typography ---------- */
.font-display {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.font-headline {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

.font-headline-medium {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
}

.font-body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
}

.font-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Display Sizes */
.display-lg {
  font-size: 64px;
  line-height: 1.1;
}

.display-lg-mobile {
  font-size: 40px;
  line-height: 1.2;
}

/* Headline Sizes */
.headline-xl {
  font-size: 48px;
  line-height: 1.2;
}

.headline-xl-mobile {
  font-size: 32px;
  line-height: 1.3;
}

.headline-md {
  font-size: 32px;
  line-height: 1.4;
}

/* Body Sizes */
.body-lg {
  font-size: 18px;
  line-height: 1.6;
}

/* ---------- Responsive Typography ---------- */
@media (min-width: 768px) {
  .display-lg-responsive {
    font-size: 64px;
    line-height: 1.1;
  }
  .headline-xl-responsive {
    font-size: 48px;
    line-height: 1.2;
  }
}

@media (max-width: 767.98px) {
  .display-lg-responsive {
    font-size: 40px;
    line-height: 1.2;
  }
  .headline-xl-responsive {
    font-size: 32px;
    line-height: 1.3;
  }
}

/* ---------- Container ---------- */
.container-aesthetix {
  max-width: var(--container-max);
  padding-left: var(--grid-margin);
  padding-right: var(--grid-margin);
}

/* ---------- Section Spacing ---------- */
.section-gap {
  padding-top: var(--section-gap-mobile);
  padding-bottom: var(--section-gap-mobile);
}

@media (min-width: 768px) {
  .section-gap {
    padding-top: var(--section-gap-desktop);
    padding-bottom: var(--section-gap-desktop);
  }
}

/* ---------- Navbar ---------- */
.navbar-aesthetix {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-outline-variant);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 0;
  height: 80px;
}

.navbar-brand-aesthetix {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--color-primary) !important;
}

.nav-link-aesthetix {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: var(--color-on-surface-variant) !important;
  transition: color 0.3s ease;
  padding: 8px 12px !important;
}

.nav-link-aesthetix:hover,
.nav-link-aesthetix.active {
  color: var(--color-secondary) !important;
}

.nav-link-aesthetix.active {
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 6px !important;
}

/* Mobile navbar */
@media (max-width: 767.98px) {
  .navbar-aesthetix {
    height: auto;
    padding: 12px 0;
  }
  .navbar-collapse {
    background: var(--color-surface);
    border-top: 1px solid var(--color-outline-variant);
    margin-top: 12px;
    padding: 16px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  .navbar-collapse .navbar-nav {
    gap: 8px !important;
  }
  .navbar-collapse .nav-link-aesthetix {
    padding: 10px 16px !important;
    display: block;
  }
  .navbar-collapse .nav-link-aesthetix.active {
    border-bottom: none;
    padding-bottom: 10px !important;
  }
  .navbar-collapse .btn-primary-aesthetix {
    margin-top: 8px;
    display: inline-block;
  }
}

/* ---------- Buttons ---------- */
.btn-primary-aesthetix {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: none;
  transition: background-color 0.3s ease;
}

.btn-primary-aesthetix:hover {
  background-color: var(--color-secondary);
  color: var(--color-on-secondary);
}

.btn-outline-aesthetix {
  background-color: transparent;
  color: var(--color-primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid var(--color-primary);
  transition: all 0.3s ease;
}

.btn-outline-aesthetix:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-on-secondary);
}

.btn-secondary-aesthetix {
  background-color: var(--color-secondary);
  color: var(--color-on-secondary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: none;
  transition: background-color 0.3s ease;
}

.btn-secondary-aesthetix:hover {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  min-height: 819px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 21, 46, 0.8), rgba(9, 21, 46, 0.2), transparent);
}

.hero-section .hero-content {
  position: relative;
  z-index: 10;
}

/* ---------- Service Cards ---------- */
.service-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card .service-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  background-color: var(--color-surface-variant);
}

.service-card .service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease-in-out;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

/* ---------- Project Cards ---------- */
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.7s ease-in-out;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card .project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 21, 46, 0.9), rgba(9, 21, 46, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* ---------- Feature Cards (Dark) ---------- */
.feature-card-dark {
  background-color: var(--color-primary);
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.feature-card-dark .feature-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  transition: opacity 0.5s ease;
}

.feature-card-dark:hover .feature-bg {
  opacity: 0.4;
}

.feature-card-dark .feature-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card-dark .feature-content {
  position: relative;
  z-index: 10;
  color: var(--color-on-primary);
}

.feature-card-dark .feature-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.feature-card-dark:hover .feature-accent {
  transform: scaleX(1);
}

/* ---------- Bento Grid ---------- */
.bento-grid .bento-item-large {
  grid-column: span 8;
}

.bento-grid .bento-item-small {
  grid-column: span 4;
}

.bento-grid .bento-item-third {
  grid-column: span 4;
}

@media (max-width: 767.98px) {
  .bento-grid .bento-item-large,
  .bento-grid .bento-item-small,
  .bento-grid .bento-item-third {
    grid-column: span 1;
  }
}

/* ---------- Filter Tabs ---------- */
.filter-tab {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
  background: none;
  border: none;
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.filter-tab:hover {
  color: var(--color-secondary);
}

.filter-tab.active {
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
}

/* ---------- CTA Section ---------- */
.cta-section {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

.cta-section .cta-decoration {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
  background: radial-gradient(circle at center, var(--color-secondary-fixed) 0%, transparent 70%);
}

/* ---------- Footer ---------- */
.footer-aesthetix {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-outline-variant);
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 600;
  color: var(--color-primary);
}

.footer-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--color-secondary);
}

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  width: 100%;
  background-color: var(--color-outline-variant);
}

/* ---------- Utilities ---------- */
.text-primary-aesthetix {
  color: var(--color-primary) !important;
}

.text-secondary-aesthetix {
  color: var(--color-secondary) !important;
}

.bg-primary-aesthetix {
  background-color: var(--color-primary) !important;
}

.bg-secondary-aesthetix {
  background-color: var(--color-secondary) !important;
}

.bg-surface-aesthetix {
  background-color: var(--color-surface) !important;
}

.bg-surface-low-aesthetix {
  background-color: var(--color-surface-low) !important;
}

.border-outline-aesthetix {
  border-color: var(--color-outline-variant) !important;
}

/* Selection */
::selection {
  background-color: var(--color-secondary-fixed);
  color: var(--color-primary);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface-low);
}

::-webkit-scrollbar-thumb {
  background: var(--color-outline-variant);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-outline);
}

/* ---------- Transitions ---------- */
.transition-all-300 {
  transition: all 0.3s ease;
}

.transition-transform-700 {
  transition: transform 0.7s ease-in-out;
}
