/* --- Root Variables & Theme Colors --- */
:root {
  /* --- Primary & Brand Accent --- */
  --accent-gold: #E0A348;          /* Buttons, CTA background, badge dots, scroll-to-top */
  --accent-gold-dark: #CC8F35;     /* Hover states for gold buttons */

  /* --- Background Colors --- */
  --bg-dark-gray: #4A4A4A;        /* Main section background (Why Choose Me, Workflow, About) */
  --bg-cream: #FDFBF0;            /* Light section background (Footer, Development card background) */
  --bg-pure-white: #FFFFFF;       /* Clean white cards (Selected Work, CTA Card) */

  /* --- Card Backgrounds --- */
  --card-dark-navy: #0E1626;      /* "Why Choose Me" feature cards */
  --card-medium-gray: #545454;    /* Testimonial & Brand Identity card background */
  --card-cream: #FAF6EA;          /* Light feature cards & top testimonial card */

  /* --- Text & Neutral Shades --- */
  --text-dark: #1E2530;           /* Primary dark text on light backgrounds */
  --text-white: #FFFFFF;          /* Primary light text on dark backgrounds */
  --text-muted-dark: #717D8A;     /* Muted/Secondary text on light areas */
  --text-muted-light: #C5CBD3;    /* Muted/Secondary text on dark areas */

  /* --- Borders & Dividers --- */
  --border-light: #EFEBE0;         /* Subtle card borders on cream background */
  --border-dark: #5C5C5C;          /* Horizontal lines/dividers on dark backgrounds */

  /* =========================================
     MAPPED FUNCTIONAL VARIABLES
     ========================================= */
  
  /* Global Layout */
  --primary: var(--accent-gold);
  --primary-hover: var(--accent-gold-dark);
  --bg-main: var(--bg-pure-white); 
  --bg-dark: var(--bg-dark-gray);  
  --text-main: var(--text-dark);   
  --text-muted: var(--text-muted-dark);
  --border-color: var(--border-light);
  
  /* Badges & Cards */
  --accent-badge: var(--card-cream);
  --bg-card: var(--bg-pure-white);
  --bg-card-hover: var(--bg-cream);

  /* Hero & Light Mode Sections */
  --hero-bg: var(--bg-cream);
  --hero-text: var(--text-dark);
  --hero-muted: var(--text-muted-dark);
  --hero-gold: var(--accent-gold);
  --hero-gold-hover: var(--accent-gold-dark);

  /* Essentials */
  --font-family: "Times New Roman", Times, serif;
  --transition: all 0.3s ease;
}

/* =========================================
   GLOBAL RESET & BASE STYLES
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Lenis Smooth Scroll Rules */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: clip; 
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-up.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Stagger card transitions */
.grid-3 .card:nth-child(1) { transition-delay: 0ms; }
.grid-3 .card:nth-child(2) { transition-delay: 150ms; }
.grid-3 .card:nth-child(3) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal-left, .reveal-right, .reveal-up, .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================
   SECTION BACKGROUND UTILITIES
   ========================================= */
.section-dark {
  background-color: var(--bg-dark-gray);
  color: var(--text-white);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--text-white);
}

.section-dark p, .section-dark .section-badge {
  color: var(--text-muted-light);
  border-color: var(--border-dark);
}

.section-gold {
  background-color: var(--accent-gold);
  color: var(--bg-pure-white);
}

.section-gold h1, .section-gold h2, .section-gold h3, .section-gold p {
  color: var(--bg-pure-white);
}

.why-choose {
  background-color: var(--bg-dark-gray);
}

/* =========================================
   LAYOUT & CONTAINERS
   ========================================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.align-center { align-items: center; }

/* =========================================
   BADGES & HEADINGS
   ========================================= */
.section-badge, .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--accent-badge);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--bg-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Fluid Responsive Typography */
.section-title {
  font-size: clamp(2.2rem, 5vw, 5.5rem);
  font-weight: 500;
  margin-bottom: 2.5rem;
  color: #ffffff;
}

.about-title {
  color: #000000;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  background-color: #ffffff;
  color: var(--hero-text);
  padding-top: 60px;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.status-badge-wrapper, .hero-top-badge {
  text-align: center;
  margin-top: 15px;
  width: 100%;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  border: 1px solid var(--border-light);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--hero-text);
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--hero-gold);
  border-radius: 50%;
  display: inline-block;
}

.hero-stage, .hero-container {
  position: relative;
  text-align: center;
  margin-top: 20px;
  width: 100%;
  flex-grow: 1;
}

.hero-title {
  font-size: clamp(2.2rem, 9.5vw, 8.5rem);
  line-height: 0.88;
  font-weight: normal;
  color: var(--hero-text);
  text-align: center;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
  user-select: none;
  font-family: var(--font-family);
  word-break: break-word;
}

.copyright-icon, .copyright-symbol {
  font-size: clamp(2rem, 6vw, 7.5rem);
  font-weight: 400;
  vertical-align: super;
  margin-left: -5px;
}

/* Hero Person Centering */
.person-container, .hero-person-wrapper {
  position: absolute;
  bottom: -180px; /* <--- Lowered this from -20px to move it further down */
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.person-img, .hero-person-img {
  pointer-events: auto;
  max-width: 440px;
  width: 100%;
  height: auto;
  display: block;
}

.hero-footer-left, .hero-bottom-left {
  position: absolute;
  bottom: 40px;
  left: 5%;
  z-index: 20;
  max-width: 330px;
  text-align: left;
}

.hero-description, .hero-subtext {
  font-size: 0.85rem;
  color: var(--hero-muted);
  line-height: 1.5;
  margin-bottom: 24px;
  font-weight: 500;
}

.btn-cta, .btn-gold {
  background-color: var(--hero-gold);
  color: var(--text-white);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: none;
}

.btn-cta:hover, .btn-gold:hover {
  background-color: var(--hero-gold-hover);
  transform: translateY(-2px);
}

.arrow-icon, .btn-icon {
  font-size: 1rem;
}

/* =========================================
   CARDS & FEATURES
   ========================================= */
.card, .service-card {
  background-color: #0F172A;
  padding: 2.5rem;
  border-radius: 16px;
  transition: var(--transition);
}

.card:hover, .service-card:hover {
  transform: translateY(-5px);
}

.section-dark .card, .section-dark .service-card, .section-dark .step-card {
  background-color: var(--card-dark-navy);
  border-color: var(--border-dark);
  color: var(--text-white);
}

.section-dark .card p, .section-dark .service-card p, .section-dark .step-card p {
  color: var(--text-muted-light);
}

.section-dark .card:hover, .section-dark .service-card:hover, .section-dark .step-card:hover {
  background-color: #121c2e;
  border-color: var(--accent-gold);
}

.card-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

.card h3, .service-card h3 {
  margin-bottom: 0.8rem;
  color: #ffffff;
}

.card p, .service-card p {
  color: #ffffff;
  font-size: 0.95rem;
}

.service-list {
  list-style: none;
  margin-top: 1.5rem;
}

.service-list li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-list li i {
  color: var(--primary);
  font-size: 0.8rem;
}

/* =========================================
   PROJECTS, PROCESS, SOCIALS & STATS
   ========================================= */
.project-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.project-info {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-year {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.process-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.step-card {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  position: relative;
}

.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.social-links a:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.stat-item h2 {
  font-size: 3.5rem;
  color: var(--primary);
  font-weight: 800;
}

.section-gold .stat-item h2,
.section-gold .stat-item h3,
.section-gold .stat-item p {
  color: var(--bg-pure-white);
}

.stat-item h3 { margin-bottom: 0.5rem; }
.stat-item p { color: var(--text-muted); }

.testimonial-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.stars {
  color: #f59e0b;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

/* =========================================
   CONTACT CTA & FOOTER
   ========================================= */
.contact-cta {
  background: var(--bg-dark);
}

.cta-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 2rem;
  color: #ffffff;
}

.email-link {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative; /* Required for the animated line positioning */
  text-decoration: none;
  padding-bottom: 4px; /* Gives the line a little breathing room below the text */
}

/* The animated underline base state */
.email-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 5px; /* Line thickness */
  background-color: var(--accent-gold-dark);
  transition: width 0.3s ease-in-out; /* Smooth slide transition */
}

/* Hover states */
.email-link:hover {
  color: var(--accent-gold-dark);
}

/* Expand the line to 100% on hover */
.email-link:hover::after {
  width: 100%;
}

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  z-index: 100;
}

#scrollTopBtn:hover {
  background-color: var(--primary-hover);
}

/* =========================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================= */

/* --- Laptops & Tablets (Max-Width: 1024px) --- */
@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .person-img, .hero-person-img {
    max-width: 360px;
  }

  .container {
    padding: 60px 0;
  }
}

/* --- Tablets & Large Phones (Max-Width: 992px) --- */
@media (max-width: 992px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .process-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .mobile-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--hero-bg);
    flex-direction: column;
    padding: 1.5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }
}

/* --- Smartphones (Max-Width: 768px) --- */
@media (max-width: 768px) {
  .hero {
    padding-top: 20px;
    padding-bottom: 30px;
  }

  .person-container, .hero-person-wrapper {
    position: relative;
    bottom: 0;
    margin-top: 30px;
  }

  .person-img, .hero-person-img {
    max-width: 290px;
  }

  .hero-footer-left, .hero-bottom-left {
    position: relative;
    bottom: 0;
    left: 0;
    max-width: 100%;
    margin-top: 25px;
    padding: 0 10px;
    text-align: center;
  }

  .btn-cta, .btn-gold {
    width: 100%;
    justify-content: center;
  }

  .card, .service-card {
    padding: 1.8rem;
  }

  .about-image {
    text-align: center;
  }

  .about-image img {
    margin: 0 auto;
  }

  .social-links {
    justify-content: center;
  }

  #scrollTopBtn {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* --- Small Mobile Devices (Max-Width: 480px) --- */
@media (max-width: 480px) {
  .container {
    width: 92%;
    padding: 45px 0;
  }

  .status-badge {
    font-size: 0.68rem;
    padding: 5px 14px;
  }

  .person-img, .hero-person-img {
    max-width: 250px;
  }
}