/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
  background-color: var(--color-bg);
  color: var(--color-text-secondary);
  font-family: var(--font-secondary);
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Subtle Grain Texture Overlay */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
}

/* Global Text Selection */
::selection {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
  letter-spacing: -0.02em;
  text-transform: none;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h3 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

p {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
  max-width: 650px;
}

.text-accent {
  color: var(--color-accent);
}

.text-center {
  text-align: left; 
}

/* Fix Hero Layout & Alignment */
.hero {
  background: var(--color-bg) !important;
  position: relative;
  z-index: 1;
}

/* Create golden glow inside hero */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(255, 212, 59, 0.2) 0%, rgba(255, 212, 59, 0) 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(80px);
}

.hero-content {
  text-align: left;
  max-width: 1400px !important;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-sm) !important;
  z-index: 2;
  position: relative;
}

section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: left;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-family: var(--font-secondary);
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
}

/* Utility layout updates */
.container {
  padding: 0 var(--space-sm);
  max-width: 1400px;
}

.hidden {
  display: none !important;
}

/* Adjust stats section */
.stats-section {
  background-color: transparent !important;
  border-top: none !important;
  border-bottom: 1px solid var(--color-border) !important;
}

/* Featured Images & Portfolio Previews */
.img-reveal {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.img-reveal img {
  transition: transform var(--transition-slow);
}

.img-reveal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: background-color var(--transition-normal);
  pointer-events: none;
}

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

.img-reveal:hover::before {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Testimonial Quotation Marks */
.testimonial-preview {
  position: relative;
  padding: var(--space-md);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-preview p {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  margin-left: auto;
  margin-right: auto;
}

.testimonial-preview::before {
  content: '""';
  position: absolute;
  top: -20px;
  left: 30px;
  font-size: 8rem;
  font-family: var(--font-primary);
  color: rgba(255, 212, 59, 0.1);
  line-height: 1;
  z-index: 0;
}

/* Custom Cursor */
body {
  cursor: url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"><circle cx="6" cy="6" r="5" fill="%23FFD43B" /></svg>') 6 6, auto;
}

a, button, .btn, .portfolio-item, .img-reveal {
  cursor: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="7" fill="none" stroke="%23FFD43B" stroke-width="2"/></svg>') 8 8, pointer !important;
}

/* Mobile Responsive Section Overrides */
@media (max-width: 768px) {
  h1 {
    font-size: clamp(2.1rem, 6.5vw, 3rem) !important;
    line-height: 1.15;
  }

  h2 {
    font-size: clamp(1.75rem, 5vw, 2.2rem) !important;
    line-height: 1.2;
  }

  h3 {
    font-size: clamp(1.3rem, 4vw, 1.6rem) !important;
    line-height: 1.25;
  }

  section {
    padding: 55px 0;
  }

  .section-header {
    margin-bottom: var(--space-sm);
  }

  .hero-content {
    padding: 105px 18px 45px !important;
  }

  .hero-btns {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-btns .btn {
    width: 100%;
    min-height: 48px;
  }

  /* Statistics 2-column Grid */
  .stats-container, .stats-grid, [class*="stats"] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .stat-number {
    font-size: 2.25rem !important;
  }

  .featured-grid img {
    height: 280px !important;
  }

  .testimonial-preview {
    padding: 24px 18px;
  }

  .testimonial-preview p {
    font-size: 1.05rem;
  }
}

@media (max-width: 414px) {
  section {
    padding: 42px 0;
  }

  p {
    font-size: 0.975rem;
    line-height: 1.6;
  }

  .hero::after {
    width: 100vw;
    height: 100vw;
  }

  .featured-grid img {
    height: 240px !important;
  }
}

@media (pointer: coarse) {
  body, a, button, .btn, .portfolio-item, .img-reveal {
    cursor: auto !important;
  }
}
