/* ============================================
   PENCIL & HAMMER — Premium Portfolio Website
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #f7f5f0;
  --color-bg-alt: #eee9e0;
  --color-dark: #1a1714;
  --color-dark-soft: #2c2823;
  --color-gold: #c4a265;
  --color-gold-light: #d4b87a;
  --color-text: #3a3530;
  --color-text-light: #8a8279;
  --color-white: #ffffff;
  --color-border: rgba(0, 0, 0, 0.08);

  --font-primary: 'Myriad Pro', 'Segoe UI', 'Helvetica Neue', 'Avenir', sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;

  --transition-smooth: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-weight: 300;
  outline: none;
  border: none;
  background: none;
}

::selection {
  background: var(--color-gold);
  color: var(--color-white);
}

/* --- Loading Screen --- */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-dark);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: 80px;
  opacity: 0;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}

/* --- Container --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
    max-width: 100%;
  }

  .section {
    padding: 80px 0;
  }

  .section-lg {
    padding: 100px 0;
  }

  .hero-motto {
    bottom: 40px;
  }

  .hero-motto p {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
  }
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: background var(--transition-smooth), padding var(--transition-fast), box-shadow var(--transition-fast);
}

.header.scrolled {
  background: rgba(26, 23, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  box-shadow: 0 1px 30px rgba(0,0,0,0.15);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 36px;
  transition: opacity var(--transition-fast);
}

.header-logo:hover img {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  color: var(--color-white);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--color-gold);
}

.nav-links a:hover {
  color: var(--color-gold-light);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 1.5px;
  background: var(--color-white);
  transition: all var(--transition-fast);
  display: block;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(5.3px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-5.3px);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--color-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  transition: right var(--transition-smooth);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav a {
  color: var(--color-white);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 300;
  transition: color var(--transition-fast);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--color-gold);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-right .theme-toggle {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-video-wrap video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-video-wrap video {
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
  }
}

.hero-video-wrap .video-desktop {
  display: block;
}

.hero-video-wrap .video-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hero-video-wrap .video-desktop {
    display: none;
  }
  .hero-video-wrap .video-mobile {
    display: block;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(26, 23, 20, 0.4) 0%,
    rgba(26, 23, 20, 0.6) 50%,
    rgba(26, 23, 20, 0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 24px;
  font-weight: 400;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--color-gold);
  font-weight: 400;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 40px;
  letter-spacing: 0.03em;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-motto {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 24px;
}

.hero-motto p {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Page Hero (Inner Pages) --- */
.page-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-dark);
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(26, 23, 20, 0.3), rgba(26, 23, 20, 0.7));
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero-ornament {
  width: 30px;
  height: 2px;
  background: var(--color-gold);
  margin: 0 auto 20px;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--color-white);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.page-hero h1 em {
  font-style: italic;
  font-family: var(--font-serif);
}

.page-hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  letter-spacing: 0.03em;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border-radius: 0;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
  border: 1px solid var(--color-gold);
}

.btn-primary:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 162, 101, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--color-dark);
  color: var(--color-white);
  border: 1px solid var(--color-dark);
}

.btn-dark:hover {
  background: var(--color-dark-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn-text {
  background: none;
  border: none;
  color: var(--color-gold);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: color var(--transition-fast);
}

.btn-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition-smooth);
}

.btn-text:hover::after {
  width: 100%;
}

.btn-text .arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.btn-text:hover .arrow {
  transform: translateX(4px);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 120px 0;
  overflow: hidden;
}

.section-lg {
  padding: 160px 0;
  overflow: hidden;
}

.section-dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 80px;
}

.section-ornament {
  width: 30px;
  height: 2px;
  background: var(--color-gold);
  margin: 0 auto 24px;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-header h2 em {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--color-gold);
}

.section-header p {
  font-size: 1rem;
  color: var(--color-text-light);
  font-weight: 300;
  line-height: 1.8;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   ABOUT PREVIEW (Home Page)
   ============================================ */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-preview-image {
  position: relative;
  overflow: hidden;
}

.about-preview-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-preview-image:hover img {
  transform: scale(1.03);
}

.about-preview-image::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 120px;
  height: 120px;
  border: 1px solid var(--color-gold);
  opacity: 0.3;
  pointer-events: none;
}

@media (max-width: 768px) {
  .about-preview-image::after {
    display: none;
  }
}

.about-preview-text h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 32px;
}

.about-preview-text h2 em {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--color-gold);
}

.about-preview-text p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.about-preview-text .btn-text {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .about-preview {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-preview-image img {
    height: 350px;
  }
}

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.service-card {
  text-align: center;
  padding: 48px 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-gold);
  stroke-width: 1.5;
  fill: none;
}

.service-card h3 {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ============================================
   FEATURED PROJECTS / PORTFOLIO
   ============================================ */
.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
}

.projects-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
}

.projects-header h2 em {
  font-style: italic;
  font-family: var(--font-serif);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  group: true;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px 24px;
  background: linear-gradient(to top, rgba(26, 23, 20, 0.85) 0%, transparent 100%);
  transition: all var(--transition-smooth);
}

.project-card h3 {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 6px;
}

.project-card .project-location {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-card .project-location svg {
  width: 12px;
  height: 12px;
  fill: var(--color-gold);
}

.project-card-checkbox {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.project-card:hover .project-card-checkbox {
  opacity: 1;
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* --- Portfolio Page Filters --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 60px;
}

.filter-btn {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition-smooth);
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--color-gold);
}

.filter-btn.active::after {
  width: 100%;
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.feature-item {
  text-align: center;
  padding: 48px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition-smooth);
}

.feature-item:last-child {
  border-right: none;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-gold);
  stroke-width: 1.5;
  fill: none;
}

.feature-item h3 {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-white);
}

.feature-item p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .feature-item:nth-child(3) {
    border-right: none;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .feature-item:nth-child(even) {
    border-right: none;
  }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  text-align: center;
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196, 162, 101, 0.06) 0%, transparent 70%);
  pointer-events: none;
  max-width: 100vw;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--color-white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.cta-section h2 em {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--color-gold);
}

.cta-section p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-story-image {
  position: relative;
}

.about-story-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.about-story-image::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-gold);
  opacity: 0.2;
  z-index: -1;
}

@media (max-width: 768px) {
  .about-story-image::before {
    display: none;
  }
}

.about-story-text h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 32px;
}

.about-story-text h2 em {
  font-style: italic;
  font-family: var(--font-serif);
}

.about-story-text p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .about-story {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-story-image img {
    height: 400px;
  }
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
}

.stat-item {
  padding: 48px 24px;
  border-right: 1px solid var(--color-border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-gold);
  stroke-width: 1.5;
  fill: none;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

@media (max-width: 600px) {
  .stats-row {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .stat-item:last-child {
    border-bottom: none;
  }
}

/* Philosophy Quote */
.philosophy-section {
  text-align: center;
  background: var(--color-dark);
}

.philosophy-section .section-ornament {
  margin-bottom: 32px;
}

.philosophy-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--color-white);
  margin-bottom: 32px;
}

.philosophy-quote {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  font-family: var(--font-serif);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 24px;
}

.philosophy-author {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 400;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 20px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(196, 162, 101, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-gold);
  stroke-width: 1.5;
  fill: none;
}

.contact-info-item h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--color-white);
  padding: 48px;
  border: 1px solid var(--color-border);
}

.contact-form-wrap h3 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 8px;
  font-weight: 400;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 0;
  font-size: 0.95rem;
  color: var(--color-text);
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  transition: border-color var(--transition-fast);
  font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--color-gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8279' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}

.form-submit {
  margin-top: 12px;
}

.form-submit .btn {
  width: auto;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 32px 24px;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-dark);
  padding: 80px 0 0;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand img {
  height: 32px;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-white);
  font-weight: 400;
  margin-bottom: 24px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-contact p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.5);
  word-break: break-all;
}

.footer-contact a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-fast);
}

.footer-socials a:hover {
  color: var(--color-gold);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* --- Scroll to Top --- */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-fast);
  z-index: 100;
  box-shadow: 0 4px 20px rgba(196, 162, 101, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(196, 162, 101, 0.4);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-white);
  stroke-width: 2;
  fill: none;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }

/* ============================================
   TEXT SPLIT ANIMATION
   ============================================ */
.text-reveal-word {
  display: inline-block;
  overflow: hidden;
}

.text-reveal-word span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.text-reveal-word.visible span {
  transform: translateY(0);
}

/* ============================================
   PARALLAX
   ============================================ */
.parallax-element {
  will-change: transform;
}

/* ============================================
   LAZY LOAD
   ============================================ */
.lazy-img {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.lazy-img.loaded {
  opacity: 1;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-light);
}

/* ============================================
   PORTFOLIO PAGE - LARGER CARDS
   ============================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 1;
  cursor: pointer;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-card:hover img {
  transform: scale(1.06);
}

.portfolio-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(26, 23, 20, 0.8) 0%, rgba(26, 23, 20, 0.1) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transition: background var(--transition-smooth);
}

.portfolio-card:hover .portfolio-card-overlay {
  background: linear-gradient(to top, rgba(26, 23, 20, 0.9) 0%, rgba(26, 23, 20, 0.3) 50%, rgba(26, 23, 20, 0.1) 100%);
}

.portfolio-card h3 {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 8px;
  transform: translateY(8px);
  transition: transform var(--transition-smooth);
}

.portfolio-card:hover h3 {
  transform: translateY(0);
}

.portfolio-card .project-tag {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.8;
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PLACEHOLDER IMAGES
   ============================================ */
.placeholder-img {
  background: linear-gradient(135deg, #d4c5a9 0%, #b8a88a 50%, #9c8c6e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================
   ADDITIONAL UTILITY
   ============================================ */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }

/* Smooth page transitions */
.page-transition-in {
  animation: fadeInPage 0.6s ease forwards;
}

@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   DARK / LIGHT MODE TOGGLE
   ============================================ */

/* Toggle Button */
.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-gold);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(196, 162, 101, 0.12);
  transform: scale(1.06);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.theme-toggle .icon-sun {
  stroke: var(--color-gold);
  fill: none;
  stroke-width: 1.5;
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .icon-moon {
  stroke: var(--color-gold);
  fill: none;
  stroke-width: 1.5;
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* When in dark mode, show sun, hide moon */
body.dark-mode .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body.dark-mode .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

/* Mobile theme toggle in mobile nav */
.mobile-nav .theme-toggle-mobile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.mobile-nav .theme-toggle {
  margin-left: 0;
}

.mobile-nav .theme-toggle-label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

/* Nav area for toggle on desktop */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
}

/* ============================================
   DARK MODE THEME OVERRIDES
   ============================================ */
body.dark-mode {
  --color-bg: #111110;
  --color-bg-alt: #1a1918;
  --color-dark: #0a0a09;
  --color-dark-soft: #1e1d1b;
  --color-text: #d4cfc7;
  --color-text-light: #9a9489;
  --color-white: #ffffff;
  --color-border: rgba(255, 255, 255, 0.08);
}

/* Header in dark mode */
body.dark-mode .header.scrolled {
  background: rgba(17, 17, 16, 0.95);
}

/* Service cards */
body.dark-mode .service-card {
  background: #1a1918;
  border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .service-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Contact form */
body.dark-mode .contact-form-wrap {
  background: #1a1918;
  border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
  color: var(--color-text);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

body.dark-mode .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a9489' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}

/* Stat items */
body.dark-mode .stat-item {
  border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .stat-number {
  color: var(--color-white);
}

/* Placeholder images */
body.dark-mode .placeholder-img {
  background: linear-gradient(135deg, #2c2823 0%, #1e1d1b 50%, #141312 100%);
}

/* Section-alt dark */
body.dark-mode .section-alt {
  background: var(--color-bg-alt);
}

/* About preview image decoration */
body.dark-mode .about-preview-image::after {
  border-color: var(--color-gold);
  opacity: 0.15;
}

body.dark-mode .about-story-image::before {
  border-color: var(--color-gold);
  opacity: 0.1;
}

/* Footer adjustments */
body.dark-mode .footer {
  background: #0a0a09;
}

/* CTA section on about page override */
body.dark-mode .cta-section[style*="var(--color-bg)"] {
  background: var(--color-bg) !important;
}

body.dark-mode .cta-section[style*="var(--color-bg)"] h2 {
  color: var(--color-text) !important;
}

/* Scrollbar */
body.dark-mode::-webkit-scrollbar-track {
  background: #111110;
}

/* Custom scrollbar in dark mode */
body.dark-mode::-webkit-scrollbar-thumb {
  background: var(--color-gold);
}

/* Page hero */
body.dark-mode .page-hero {
  background: #0a0a09;
}

/* Project cards */
body.dark-mode .project-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .portfolio-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Contact info icon */
body.dark-mode .contact-info-icon {
  background: rgba(196, 162, 101, 0.08);
}

/* Mobile nav dark mode */
body.dark-mode .mobile-nav {
  background: #0a0a09;
}

/* Selection */
body.dark-mode ::selection {
  background: var(--color-gold);
  color: #0a0a09;
}

/* Logo swap — show the correct logo for the mode */
body.dark-mode .logo-dark {
  display: none;
}

body.dark-mode .logo-light {
  display: block;
}

body:not(.dark-mode) .logo-dark {
  display: block;
}

body:not(.dark-mode) .logo-light {
  display: none;
}

/* Ensure transition on body background */
body {
  transition: background-color 0.5s ease, color 0.5s ease;
}
