/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --black: #ffffff;
  --dark: #f8f8f8;
  --dark-2: #f2f2f2;
  --dark-3: #ebebeb;
  --red: #DC2626;
  --red-dark: #991b1b;
  --red-glow: rgba(220, 38, 38, 0.1);
  --white: #1a1a1a;
  --gray-100: #1a1a1a;
  --gray-300: #333333;
  --gray-400: #555555;
  --gray-500: #777777;
  --gray-600: #999999;
  --gray-800: #e0e0e0;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
em { font-family: var(--font-serif); font-style: italic; color: var(--red); }

/* ===== LOADER ===== */
.loader {
  position: fixed; inset: 0; z-index: 9999; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-phoenix { width: 60px; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.1); opacity: 1; } }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  transition: all 0.4s var(--ease);
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.nav-logo-icon { color: var(--red); font-size: 20px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 400; color: var(--gray-400); transition: color 0.3s; letter-spacing: 0.01em; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--red) !important; color: var(--white) !important;
  padding: 10px 20px !important; border-radius: 6px; font-weight: 500 !important;
  transition: all 0.3s var(--ease) !important;
}
.nav-cta:hover { background: var(--red-dark) !important; transform: translateY(-1px); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: #1a1a1a; margin: 5px 0; transition: all 0.3s; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden; padding: 120px 24px 80px;
}
.hero-bg { position: absolute; inset: 0; }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-glow {
  position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  filter: blur(80px); opacity: 0.6;
}
.hero-content { position: relative; text-align: center; max-width: 800px; }
.hero-label {
  font-size: 13px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--red); margin-bottom: 24px;
}
.hero-title { font-size: clamp(36px, 6vw, 72px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px; }
.hero-title span { display: block; }
.hero-sub { font-size: 18px; color: var(--gray-400); line-height: 1.7; max-width: 560px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 40px; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 36px; font-weight: 700; color: var(--white); }
.hero-stat-plus, .hero-stat-pct { font-size: 24px; font-weight: 700; color: var(--red); }
.hero-stat-label { display: block; font-size: 13px; color: var(--gray-500); margin-top: 4px; letter-spacing: 0.02em; }
.hero-stat-divider { width: 1px; height: 40px; background: var(--gray-800); }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll span { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-600); }
.hero-scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--red), transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0% { opacity: 1; transform: scaleY(1); } 50% { opacity: 0.3; } 100% { opacity: 1; transform: scaleY(1); } }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; padding: 14px 28px; border-radius: 6px;
  font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.3s var(--ease);
  border: none; letter-spacing: 0.01em;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 30px var(--red-glow); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(0,0,0,0.15); }
.btn-outline:hover { border-color: var(--gray-600); background: rgba(0,0,0,0.02); }
.btn-lg { padding: 18px 36px; font-size: 16px; }

/* ===== SECTION HEADERS ===== */
.section-label {
  font-size: 13px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--red); display: block; margin-bottom: 16px;
}
.section-title { font-size: clamp(28px, 4vw, 48px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

/* ===== FEATURED WORK ===== */
.featured { padding: 120px 0; }
.section-header { margin-bottom: 60px; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.featured-card {
  position: relative; overflow: hidden; border-radius: 12px;
  aspect-ratio: 4/3; cursor: pointer; display: block;
}
.featured-card--large { grid-column: span 2; }
.featured-card-img { position: absolute; inset: 0; }
.featured-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.featured-card:hover .featured-card-img img { transform: scale(1.05); filter: brightness(0.6); }
.featured-card-overlay {
  position: absolute; inset: 0; padding: 30px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
  opacity: 0; transition: opacity 0.4s var(--ease);
  color: #fff;
}
.featured-card:hover .featured-card-overlay { opacity: 1; }
.featured-card-cat {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red); margin-bottom: 8px;
}
.featured-card-overlay h3 { font-size: 22px; font-weight: 600; margin-bottom: 4px; color: #fff; }
.featured-card-overlay p { font-size: 14px; color: rgba(255,255,255,0.7); }
.featured-card-arrow {
  position: absolute; top: 24px; right: 24px; font-size: 24px;
  transform: translate(-10px, 10px); opacity: 0;
  transition: all 0.4s var(--ease);
}
.featured-card:hover .featured-card-arrow { transform: translate(0, 0); opacity: 1; }
.featured-cta { text-align: center; margin-top: 60px; }

/* ===== SERVICES ===== */
.services-section { padding: 120px 0; background: var(--dark); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  padding: 40px; border-radius: 16px; border: 1px solid rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.02);
  transition: all 0.4s var(--ease);
}
.service-card:hover {
  border-color: rgba(220, 38, 38, 0.2);
  background: rgba(220, 38, 38, 0.03);
  transform: translateY(-4px);
}
.service-card-icon { width: 48px; height: 48px; color: var(--red); margin-bottom: 24px; }
.service-card-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.service-card p { font-size: 15px; color: var(--gray-400); line-height: 1.7; margin-bottom: 20px; }
.service-card-link { font-size: 14px; font-weight: 500; color: var(--red); transition: all 0.3s; }
.service-card-link:hover { color: var(--white); letter-spacing: 0.02em; }

/* ===== TESTIMONIALS ===== */
.testimonials-section { padding: 100px 0; position: relative; }
.testimonials-section::before {
  content: '"'; position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-serif); font-size: 200px; color: rgba(220,38,38,0.06); pointer-events: none;
}
.testimonials-wrapper { text-align: center; max-width: 700px; margin: 0 auto; min-height: 200px; position: relative; }
.testimonial {
  position: absolute; inset: 0; opacity: 0; transform: translateY(20px);
  transition: all 0.5s var(--ease); pointer-events: none;
}
.testimonial.active { opacity: 1; transform: translateY(0); pointer-events: auto; position: relative; }
.testimonial blockquote {
  font-family: var(--font-serif); font-size: clamp(20px, 3vw, 28px);
  font-weight: 400; line-height: 1.6; color: var(--gray-300); font-style: italic;
  margin-bottom: 24px;
}
.testimonial cite { font-size: 14px; color: var(--gray-500); font-style: normal; letter-spacing: 0.02em; }
.testimonial-dots { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.testimonial-dots .dot {
  width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--gray-600);
  background: transparent; cursor: pointer; transition: all 0.3s;
}
.testimonial-dots .dot.active { background: var(--red); border-color: var(--red); }

/* ===== CTA ===== */
.cta-section {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--dark) 0%, rgba(220,38,38,0.06) 100%);
}
.cta-content { text-align: center; }
.cta-content h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.cta-content p { font-size: 18px; color: var(--gray-400); margin-bottom: 40px; }

/* ===== FOOTER ===== */
.footer { padding: 80px 0 40px; border-top: 1px solid rgba(0,0,0,0.06); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-logo { font-size: 18px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer-tagline { font-size: 14px; color: var(--gray-500); line-height: 1.6; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray-400); }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: var(--gray-500); margin-bottom: 10px; transition: color 0.3s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { padding-top: 40px; border-top: 1px solid rgba(0,0,0,0.06); text-align: center; }
.footer-bottom span { font-size: 13px; color: var(--gray-600); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--gray-800); background: var(--dark);
  color: var(--white); font-size: 18px; cursor: pointer;
  opacity: 0; transform: translateY(20px); transition: all 0.3s var(--ease); z-index: 50;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--red); border-color: var(--red); }

/* ===== ANIMATIONS ===== */
.anim-up {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.anim-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; position: fixed; inset: 0; background: rgba(255,255,255,0.97); flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 20px; color: #1a1a1a; }
  .nav-burger { display: block; }
  .nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card--large { grid-column: span 1; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-stat-divider { width: 40px; height: 1px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 600px) {
  .hero { padding: 100px 20px 60px; }
  .hero-sub { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== PORTFOLIO PAGE ===== */
.page-hero { padding: 160px 0 80px; text-align: center; }
.page-hero .section-label { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; letter-spacing: -0.02em; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.filters button {
  padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 500;
  background: rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.08);
  color: var(--gray-400); cursor: pointer; transition: all 0.3s var(--ease);
  font-family: var(--font-sans);
}
.filters button:hover { border-color: var(--gray-600); color: var(--white); }
.filters button.active { background: var(--red); border-color: var(--red); color: var(--white); }

.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.portfolio-card {
  position: relative; overflow: hidden; border-radius: 12px;
  aspect-ratio: 16/10; cursor: pointer; display: block;
}
.portfolio-card-img { position: absolute; inset: 0; }
.portfolio-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.portfolio-card:hover .portfolio-card-img img { transform: scale(1.05); }
.portfolio-card-overlay {
  position: absolute; inset: 0; padding: 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0) 100%);
  transform: translateY(100%); transition: transform 0.5s var(--ease);
}
.portfolio-card:hover .portfolio-card-overlay { transform: translateY(0); }
.portfolio-card-overlay h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; color: #fff; }
.portfolio-card-overlay span { font-size: 12px; color: var(--red); text-transform: uppercase; letter-spacing: 0.1em; }
.portfolio-card-name {
  position: absolute; bottom: 16px; left: 20px;
  font-size: 14px; font-weight: 500; color: white;
  opacity: 1; transition: opacity 0.3s;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.portfolio-card:hover .portfolio-card-name { opacity: 0; }

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ===== SERVICES PAGE ===== */
.service-detail { padding: 80px 0; }
.service-detail:nth-child(even) { background: var(--dark); }
.service-detail-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.service-detail-content h3 { font-size: 32px; font-weight: 700; margin-bottom: 16px; }
.service-detail-content p { font-size: 16px; color: var(--gray-400); line-height: 1.8; margin-bottom: 24px; }
.service-detail-features { list-style: none; }
.service-detail-features li { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 15px; color: var(--gray-300); display: flex; align-items: center; gap: 12px; }
.service-detail-features li::before { content: '✦'; color: var(--red); font-size: 10px; }
.service-detail-visual {
  aspect-ratio: 4/3; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(135deg, #f5f5f5, #ebebeb);
  display: flex; align-items: center; justify-content: center;
}
.service-detail-visual svg { width: 120px; height: 120px; color: var(--red); opacity: 0.3; }

@media (max-width: 900px) {
  .service-detail-inner { grid-template-columns: 1fr; gap: 30px; }
}

/* ===== ABOUT PAGE ===== */
.about-hero { padding: 160px 0 80px; }
.about-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-hero h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 20px; }
.about-hero p { font-size: 17px; color: var(--gray-400); line-height: 1.8; }
.about-visual {
  aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  background: var(--dark-2);
  display: flex; align-items: center; justify-content: center;
}
.about-values { padding: 100px 0; background: var(--dark); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { padding: 36px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.06); }
.value-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.value-card p { font-size: 14px; color: var(--gray-400); line-height: 1.7; }

.about-stats { padding: 100px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item {}
.stat-num { font-size: 48px; font-weight: 700; color: var(--red); display: block; }
.stat-label { font-size: 14px; color: var(--gray-500); }

@media (max-width: 900px) {
  .about-hero-inner { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 80px 0; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--gray-400); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 16px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02); color: var(--white); font-family: var(--font-sans);
  font-size: 15px; transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--red); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group select { appearance: none; }
.form-group select option { background: #fff; color: #1a1a1a; }

.contact-info { padding-top: 20px; }
.contact-info h3 { font-size: 24px; font-weight: 600; margin-bottom: 24px; }
.contact-info-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.contact-info-item span:first-child { font-size: 20px; }
.contact-info-item a, .contact-info-item span { font-size: 15px; color: var(--gray-400); }
.contact-info-item a:hover { color: var(--white); }

.cal-embed { margin-top: 40px; border-radius: 12px; overflow: hidden; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
