@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Inter:wght@400;500;600&family=Montserrat:wght@700;800;900&display=swap');

:root {
  /* Colors */
  --bg-color: #F4F4F5;
  --surface-color: #FFFFFF;
  --surface-inverted: #111111;
  --text-primary: #111111;
  --text-inverted: #FFFFFF;
  --text-secondary: #555555;
  --accent-yellow: #FFD700;
  --accent-orange: #FF5722;
  --border-color: #E4E4E7;
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Caveat', cursive;
  
  /* Spacing & Layout */
  --radius-lg: 32px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --container-width: 1400px;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Utility Classes */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 5%;
}

.section-padding {
  padding: var(--spacing-xl) 0;
}

.text-accent {
  font-family: var(--font-accent);
  color: var(--accent-orange);
  font-size: 2.5rem;
  transform: rotate(-5deg);
  display: inline-block;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  background: rgba(244, 244, 245, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-orange);
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--text-inverted);
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: var(--accent-orange);
}

.btn-yellow {
  background-color: var(--accent-yellow);
  color: var(--text-primary);
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}
.btn-yellow:hover {
  transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* Marquee */
.marquee-container {
  background: var(--surface-inverted);
  color: var(--text-inverted);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  transform: rotate(-2deg) scale(1.05);
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  z-index: 10;
}

.marquee-container.yellow {
  background: var(--accent-yellow);
  color: var(--text-primary);
  transform: rotate(2deg) scale(1.05);
  margin-top: -3rem;
  z-index: 9;
}

.marquee-content {
  display: inline-block;
  animation: marquee 25s linear infinite;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
}

.marquee-content span {
  margin: 0 2rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero Section */
.hero {
  padding-top: 150px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-visuals {
  position: relative;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.abstract-element {
  position: absolute;
  width: 120%;
  max-width: 600px;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.hero-portrait {
  position: relative;
  z-index: 2;
  width: 250px;
  height: 350px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  transform: rotate(5deg);
  border: 10px solid var(--surface-color);
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Stats Bento */
.stats-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.stat-card {
  background: var(--surface-color);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.stat-card h3 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card p {
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* Bento Grid System (Projects & Services) */
.section-header {
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
  font-weight: 800;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  grid-auto-flow: dense;
}

/* Project Cards */
.bento-item {
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.bento-item:hover {
  transform: translateY(-10px);
}

.bento-item.span-4 { grid-column: span 4; }
.bento-item.span-6 { grid-column: span 6; }
.bento-item.span-8 { grid-column: span 8; }
.bento-item.span-12 { grid-column: span 12; }

.project-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-item:hover .project-img {
  transform: scale(1.05);
}

.bento-item.span-8 .project-img,
.bento-item.span-6 .project-img {
  height: 400px;
}

.project-info {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-info h3 {
  font-size: 1.5rem;
  font-family: var(--font-heading);
}

.project-category {
  color: var(--text-secondary);
  font-size: 0.9rem;
  background: var(--bg-color);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-weight: 500;
}

/* Custom Highlight Box */
.highlight-box {
  background: var(--surface-inverted);
  color: var(--text-inverted);
  padding: 4rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.highlight-box h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

/* Filters */
.filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1.5rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--text-primary);
  color: var(--text-inverted);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--accent-yellow);
  padding: 4rem;
  border-radius: var(--radius-lg);
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.contact-card {
  background: var(--surface-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card-icon {
  font-size: 2rem;
}

.contact-card-title {
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 0.2rem;
}

.contact-card-value {
  color: var(--text-secondary);
}

.contact-form {
  background: var(--surface-color);
  padding: 3rem;
  border-radius: var(--radius-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  background: var(--bg-color);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-primary);
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

/* Custom About & Services Boxes */
.about-box {
  padding: 3rem;
  background: var(--surface-inverted);
  color: var(--text-inverted);
}

.about-box h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.about-desc {
  color: #999;
  margin-bottom: 2rem;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-img-large {
  border-radius: var(--radius-md);
  height: 400px;
  object-fit: contain;
  object-position: center top;
  width: 100%;
}

.services-box {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services-box h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.services-box p {
  color: var(--text-secondary);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 17, 17, 0.95);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
  overflow-y: auto;
  padding: 40px 0;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 90%;
  width: 1200px;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  margin: auto;
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  background: none;
  border: none;
}
.bento-item {
  cursor: pointer;
}

/* Clients */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.client-box {
  background: var(--surface-color);
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
  font-family: var(--font-heading);
}
.client-box:nth-child(4n+1) { background: var(--surface-color); color: var(--text-primary); }
.client-box:nth-child(4n+2) { background: var(--accent-yellow); color: var(--text-primary); }
.client-box:nth-child(4n+3) { background: var(--surface-inverted); color: var(--text-inverted); }
.client-box:nth-child(4n+4) { background: var(--accent-orange); color: var(--text-inverted); }

/* Testimonials Slider */
.slider-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.slide {
  min-width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}
.review-card {
  background: var(--surface-color);
  padding: 4rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.review-card p {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 2rem;
}
.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.slider-btn {
  background: var(--surface-inverted);
  color: var(--text-inverted);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.slider-btn:hover {
  background: var(--accent-orange);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.pricing-card {
  background: var(--surface-color);
  padding: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  background: var(--surface-inverted);
  color: var(--text-inverted);
  transform: translateY(-20px);
}
.pricing-price {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin: 1rem 0;
}
.pricing-features {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pricing-features li {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}
.pricing-card.featured .pricing-features li {
  border-bottom: 1px solid #333;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-content p {
    margin: 0 auto 2.5rem;
  }
  .bento-item.span-4,
  .bento-item.span-6,
  .bento-item.span-8 {
    grid-column: span 12;
  }
  .project-img {
    height: auto;
    aspect-ratio: 16/9;
  }
  .bento-item.span-8 .project-img,
  .bento-item.span-6 .project-img {
    height: auto;
    aspect-ratio: 16/9;
  }
  .about-split {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    padding: 3rem;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 4rem 0;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface-color);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .stats-bento {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .abstract-element {
    width: 100%;
  }
  .about-box {
    padding: 2rem;
  }
  .about-box h2 {
    font-size: 2rem;
  }
  .services-box {
    padding: 2rem;
  }
  .services-box h2 {
    font-size: 2rem;
  }
  .contact-grid {
    padding: 2rem;
    gap: 2rem;
  }
  .contact-info h2 {
    font-size: 2.5rem;
  }
  .contact-form {
    padding: 1.5rem;
  }
  .highlight-box {
    padding: 2rem;
  }
  .highlight-box h2 {
    font-size: 2rem;
  }
  .project-info {
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .pricing-card.featured {
    transform: translateY(0);
  }
  .clients-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* Loading Screen */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--accent-yellow);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s ease-out;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  overflow: hidden;
}

.loader-name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--surface-inverted);
  display: block;
  transform-origin: bottom center;
  animation: coolReveal 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
}

@keyframes coolReveal {
  0% {
    opacity: 0;
    transform: translateY(60px) rotateX(-30deg) scale(0.9);
    letter-spacing: 20px;
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
    letter-spacing: -0.04em;
    filter: blur(0);
  }
}
