:root {
  /* LIGHT MODE PALETTE */
  --bg-page: #F8F9FC;     /* Very light cool gray/white */
  --bg-card: #FFFFFF;
  --text-main: #0F172A;   /* Dark Slate for high contrast reading */
  --text-muted: #64748B;
  
  /* FANTASY ACCENTS */
  --accent-blue: #4C7DFF;
  --accent-purple: #9D4EDD;
  --gradient-fantasy: linear-gradient(135deg, #4C7DFF 0%, #9D4EDD 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(76, 125, 255, 0.1) 0%, rgba(157, 78, 221, 0.1) 100%);
  
  /* BORDERS & SHADOWS */
  --border-light: rgba(0, 0, 0, 0.08);
  --shadow-card: 0 10px 30px -10px rgba(76, 125, 255, 0.15);
  --shadow-glow: 0 0 20px rgba(157, 78, 221, 0.2);
  
  --radius-lg: 24px;
  --radius-md: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif; /* Clean body font */
  line-height: 1.6;
  overflow-x: hidden;
}

/* TYPOGRAPHY */
h1, h2, h3, .logo, .pill-tag {
  font-family: 'Space Grotesk', sans-serif; /* The "Architect" font */
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

p { font-size: 1.05rem; color: var(--text-muted); }

.gradient-text {
  background: var(--gradient-fantasy);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* BACKGROUND ORBS */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.15; /* Fixed opacity from original source */
  animation: float 20s infinite ease-in-out;
}
.orb-1 {
  width: 50vw; height: 50vw;
  top: -10%; left: -10%;
  background: rgba(76, 125, 255, 0.15);
}
.orb-2 {
  width: 40vw; height: 40vw;
  bottom: 10%; right: -5%;
  background: rgba(157, 78, 221, 0.15);
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 50px); }
}

/* LAYOUT */
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { margin: 6rem 0; }

/* NAVIGATION */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center; 
  padding: 1rem 1.5rem; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(248, 249, 252, 0.9);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-bar.nav-hidden {
  transform: translateY(-100%);
}

.logo { font-weight: 700; font-size: 1.5rem; letter-spacing: -0.03em; }
.logo .highlight { color: var(--accent-blue); font-weight: 400; }

/* MOBILE HEADER FIX */
@media (max-width: 600px) {
  .nav-bar {
    padding: 0.8rem 1rem;
    gap: 0.5rem;
  }
  .logo {
    font-size: 1.1rem;
    white-space: nowrap;
  }
  .btn-sm {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    white-space: nowrap;
    line-height: 1; 
    display: flex;
    align-items: center;
  }
}

/* HERO */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 0 2rem 0;
}
.hero-content { max-width: 800px; }
.hero-sub { max-width: 600px; margin: 0 auto 2.5rem; font-size: 1.2rem; }

/* BUTTONS */
.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--gradient-fantasy);
  color: white;
  border-radius: 99px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(76, 125, 255, 0.3);
  transition: transform 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 25px rgba(76, 125, 255, 0.4); }

.btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  background: white;
  color: var(--accent-purple);
  border: 1px solid var(--accent-purple);
  border-radius: 99px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--bg-page); }

.btn-sm {
  padding: 0.6rem 1.2rem;
  background: var(--text-main);
  color: white;
  border-radius: 99px;
  font-size: 0.9rem;
  text-decoration: none;
}
.btn-outline { padding: 0.8rem 1.5rem; border: 1px solid white; color: white; border-radius: 99px; text-decoration: none; transition: 0.2s; background: transparent; cursor: pointer; }
.btn-outline:hover { background: white; color: var(--accent-blue); }

.hero-actions { display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; }

/* PHILOSOPHY */
.section.philosophy {
  background-color: var(--text-main);
  color: white;
  padding: 4rem;
  border-radius: var(--radius-lg);
  margin-left: -2rem; 
  margin-right: -2rem;
  width: calc(100% + 4rem);
}

.section.philosophy h2 { color: white; }
.section.philosophy p { color: rgba(255, 255, 255, 0.8); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.grid-2.align-top {
  align-items: start;
}

@media(max-width: 800px) { 
  .grid-2 { grid-template-columns: 1fr; }
  .section.philosophy { margin-left: 0; margin-right: 0; width: 100%; padding: 3rem 1.5rem; }
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.stat-card h3 { color: white; }
.stat-card p { color: rgba(255, 255, 255, 0.7); }

.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 6px; height: 100%;
  background: var(--gradient-fantasy);
}
.center-cta { margin-top: 1.5rem; }

/* VISUAL DIVIDER */
.section-divider {
  width: 100%;
  height: 4px;
  background: var(--gradient-fantasy);
  margin: 2rem auto;
  border-radius: 99px;
  opacity: 0.8;
  max-width: 200px; 
}

/* SERVICE INTRO CARDS */
.service-intro-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

.service-intro-card h3 { margin-bottom: 1rem; font-size: 1.5rem; }
.service-intro-card p { margin-bottom: 2rem; flex-grow: 1; }

/* SERVICES MAIN */
.eyebrow { color: var(--accent-purple); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 0.5rem; }
.section-header { text-align: center; margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* BRAND CARD (Card Wide) */
.card-wide {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* Text left, Image right */
  overflow: hidden;
}

.card-content { 
  padding: 3rem; 
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-image-side {
  position: relative;
  min-height: 100%;
  background: #f1f5f9;
}

.card-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media(max-width: 768px) { 
  .card-wide { grid-template-columns: 1fr; } 
  .card-image-side { height: 250px; order: -1; } 
}

/* Price specific styling for Brand Card */
.price { font-size: 2rem; font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin-bottom: 1rem; color: var(--accent-blue); }
.price .note { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.check-list { list-style: none; margin-top: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.check-list li::before { content: "✓"; color: var(--accent-purple); margin-right: 0.5rem; font-weight: bold; }

/* UPDATE 3: SERVICE VISUAL HEADER BOX (DISPLAY: NONE) */
.service-header-visual {
  display: none !important;
}

/* PILL BUTTONS CONTAINER */
.pill-container {
  display: flex;
  flex-direction: column; 
  align-items: center;    
  gap: 12px;              
  width: 100%;
  margin: 20px 0;         
}
.pill-link {
  font-size: 0.8rem;
  text-decoration: none;
  background: #f0f4ff;
  color: var(--accent-blue);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: 0.2s;
}
.pill-link:hover {
  border-color: var(--accent-blue);
  background: white;
}

/* PRICING GRID (Base styling before scoping) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch; /* Make them even height */
}

/* UPDATE 3: PACKAGE COLORS */
.price-card.pkg-1 { background-color: #4E7BFE !important; }
.price-card.pkg-2 { background-color: #7267EF !important; }
.price-card.pkg-3 { background-color: #8F55E2 !important; }

.price-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative; 
  overflow: hidden;
  will-change: transform; 
  content-visibility: auto; 
  contain-intrinsic-size: 1px 500px; 
}
.price-card:hover { transform: translateY(-5px); border-color: var(--accent-blue); }

.price-card.featured {
  border: 2px solid var(--accent-blue);
  z-index: 1;
}

/* New White Box Style for Content within Package Cards */
.package-text-wrapper {
  position: relative;
  z-index: 2;
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin-top: auto; 
}

.tier-name { 
  font-family: 'Space Grotesk'; 
  font-size: 1.4rem; 
  font-weight: 700; 
  margin-bottom: 0.5rem;
  background: white;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 99px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.badge {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  background: var(--accent-blue); color: white; padding: 0.25rem 0.8rem;
  border-radius: 99px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  z-index: 3;
}

/* PRICING STYLES */
.tier-price { 
  font-size: 1.5rem; 
  font-weight: 700; 
  color: var(--accent-blue);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem; 
}
.tier-desc { 
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem; 
  line-height: 1.4;
}

.price-card hr { border: none; height: 1px; background: var(--border-light); margin: 1rem 0; }
.feature-list { list-style: none; margin-bottom: 1rem; text-align: left; }
.feature-list li { padding: 0.4rem 0; border-bottom: 1px dashed var(--border-light); font-size: 0.95rem; }
.feature-list li:last-child { border-bottom: none; }

/* FLEXIBLE OPTION */
.flexible-opt { margin-top: -3rem; }
.flex-box {
  background: var(--text-main);
  color: white;
  padding: 2rem 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  background-image: var(--gradient-fantasy);
}
.flex-text h3 { margin-bottom: 0.3rem; }
.flex-text p { color: rgba(255,255,255,0.9); }

/* CAROUSEL STYLES */
.process-section { text-align: center; }

.carousel {
  position: relative;
  margin-top: 3rem;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.carousel-track-container { overflow: hidden; width: 100%; }
.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  list-style: none;
  padding: 0;
  margin: 0;
}
.carousel-slide { min-width: 100%; padding: 0 1rem; }

.mockup-window {
  width: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  border: 1px solid var(--border-light);
  overflow: hidden;
  text-align: left;
}
.mockup-header { background: #f1f5f9; padding: 0.8rem; display: flex; gap: 0.4rem; align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.url-bar { margin-left: 1rem; background: white; padding: 2px 10px; border-radius: 4px; font-size: 0.7rem; color: #999; flex-grow: 1; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.mockup-body { padding: 2rem; background: #fafafa; aspect-ratio: 16/9; display: flex; flex-direction: column; gap: 1rem; position: relative; }
.mockup-body.no-padding { padding: 0; }

.mockup-body a {
  display: block;
  height: 100%;
  width: 100%;
}

.site-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* CAROUSEL BUTTONS */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.4);
  border: none;
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: 0.3s;
}
.carousel-btn:hover { background: rgba(255, 255, 255, 0.6); }
.btn-prev { left: -4rem; }
.btn-next { right: -4rem; }

@media(max-width: 600px) { 
  .carousel-btn { 
    display: flex; 
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    background: rgba(0,0,0,0.3); 
  }
  .btn-prev { left: 0; }
  .btn-next { right: 0; }
  .carousel-slide { padding: 0 0.2rem; }
}

.carousel-nav { display: flex; justify-content: center; padding: 1.5rem 0; gap: 1rem; }
.carousel-indicator {
  border: none;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}
.carousel-indicator.current-slide { background: white; transform: scale(1.2); }

/* UPDATE 1: ARCHITECT & CONTACT LAYOUT (CENTERED) */
.about-section { position: relative; text-align: center; }

.about-text-content {
  text-align: center; 
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}
.about-text-content h2 { margin-bottom: 1rem; }
.about-text-content p { margin-bottom: 1.5rem; text-align: center; max-width: 600px; }

.profile-img-container {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1/1;
  margin: 0 auto 2rem auto; 
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 4px solid white;
}
.profile-img { width: 100%; height: 100%; object-fit: cover; }

/* UPDATE 2: DROPDOWN FORM STYLES */
.dropdown-form-container {
  display: none; 
  margin-top: 2rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  text-align: left;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 600px;
}

.dropdown-form-container.active {
  display: block;
  animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-form {
  display: grid;
  gap: 1.2rem;
}

.form-group { text-align: left; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-main); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  background: #f8fafc;
  transition: 0.2s;
}


/* FOOTER */
.main-footer { margin-top: 6rem; padding: 3rem 0; border-top: 1px solid var(--border-light); }
.footer-content { display: flex; justify-content: space-between; margin-bottom: 2rem; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.footer-links a { margin-left: 2rem; color: var(--text-muted); font-weight: 500; transition: 0.2s; }
.footer-links a:hover { color: var(--accent-blue); }
.footer-bottom { text-align: center; font-size: 0.85rem; color: #cbd5e1; }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ABOUT SECTION REDESIGN */
.about-section .section-header { margin-bottom: 3rem; text-align: center; }
.about-column-left { text-align: center; }
.about-mini-bio { margin-top: 1rem; }
.about-mini-bio p { font-size: 0.95rem; max-width: 320px; margin: 0 auto; }
.about-section .about-text-content { text-align: left; align-items: flex-start; margin: 0; }
.about-section .about-text-content h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.about-section .about-text-content p { text-align: left; margin-bottom: 1.2rem; }
.about-section .dropdown-form-container { margin: 2rem 0 0 0; max-width: 100%; }
.about-section .profile-img-container { margin-bottom: 1rem; }

@media (max-width: 800px) {
  .about-section .about-text-content { text-align: center; align-items: center; }
  .about-section .about-text-content p { text-align: center; }
  .about-section .about-actions { justify-content: center !important; }
}

h2 { line-height: 1.1; letter-spacing: -0.03em; }
.section.philosophy h2 { margin-bottom: 0.8rem; }


/* ========================================= */
/* DESKTOP PACKAGE CONDENSING & PERFECT ALIGNMENT 
   (SCOPED ONLY TO #packages-list TO FIX FLEXIBLE SERVICES PAGE) */
/* ========================================= */
@media (min-width: 1024px) {
  #packages-list .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    align-items: stretch; /* Makes all cards match the height of the tallest one */
    max-width: 1050px; 
    margin: 0 auto;
    gap: 1.5rem; /* Consistent horizontal spacing */
  }

  #packages-list .price-card {
    padding: 1.5rem;
    max-width: 340px; 
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  
  #packages-list .package-text-wrapper {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Forces the inner white box to stretch to full card height */
  }

  #packages-list .tier-name {
    margin-bottom: 1rem;
    font-size: 1.2rem; 
    padding: 0.4rem 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #packages-list .tier-desc {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    /* This forces all descriptions to share the exact same height, keeping prices aligned perfectly horizontally */
    min-height: 60px; 
    display: flex;
    align-items: flex-start;
  }

  #packages-list .tier-price {
    font-size: 1.35rem; 
    margin: 0.2rem 0;
    min-height: 35px; /* Ensures price blocks are uniform height */
  }

  #packages-list .price-card hr {
    margin: 0.75rem 0;
  }

  #packages-list .feature-list {
    /* Takes up all remaining middle space, pushing the button down */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  #packages-list .feature-list li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
  }

  #packages-list .pill-container {
    margin-top: auto !important; /* Locks the button to the absolute bottom edge of the box */
    padding-top: 1rem;
  }
}


/* ---------------------------------------------------- */
/* ABOUT SECTION BUTTON EQUALIZING                      */
/* ---------------------------------------------------- */
.about-actions {
  display: flex;
  flex-wrap: wrap; 
  gap: 1rem;
  width: 100%; /* Ensures the container gives them equal space on mobile */
}

.about-actions .btn-primary,
.about-actions .btn-secondary {
  flex: 1 1 200px; /* Allows them to grow evenly, but shrink if the screen is super small */
  width: 100%; /* Forces them to match widths exactly when stacked on mobile */
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0; 
  box-sizing: border-box;
  
  /* Forces the link and the button to have the exact same text and height rules */
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.8rem 1.5rem;
  height: 55px;
  
  /* NEW: Strips the mobile browser's default hidden button styling */
  -webkit-appearance: none;
  appearance: none;
}
