:root {
  --bg-color: #fcfbf9;
  /* Warm off-white */
  --text-color: #2c2c2c;
  /* Softer black */
  --secondary-text: #595959;
  --accent-color: #1a1a1a;
  --light-gray: #f0eee9;
  /* Warm gray */
  --border-color: #dcdad5;
  --font-main: 'Inter', sans-serif;
  --max-width: 1400px;
  /* Modern Renowned Width */
  --header-height: 80px;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
  /* Prevent horizontal scroll from effects */
}

/* ... */

header.scrolled {
  border-color: var(--border-color);
}

.nav-links a.active {
  color: var(--accent-color);
  font-weight: 500;
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-color);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-main);
  font-weight: 300;
  /* Light weight for elegance */
  letter-spacing: -0.04em;
  /* Tight editorial tracking */
  color: var(--accent-color);
}

.section-title {
  font-size: 2.5rem;
  /* Larger */
  margin-bottom: 80px;
  text-transform: uppercase;
  font-size: 0.9rem;
  /* Architectural Label Style */
  letter-spacing: 0.2em;
  border-left: 1px solid var(--accent-color);
  padding-left: 20px;
  line-height: 1;
  display: inline-block;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
  z-index: 10;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 6px;
  background: #fff;
  border-radius: 2px;
  animation: scrollMouse 2s infinite;
}

.scroll-text {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

@keyframes scrollMouse {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

header.scrolled {
  border-color: var(--border-color);
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary-text);
}

.nav-links a:hover {
  color: var(--accent-color);
}

.mobile-toggle {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  margin-top: 0;
  /* Cover everything including header area visually if needed, but header is fixed */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/hero.png');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  /* Slight overlay for text readability */
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: #ffffff;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 300;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  letter-spacing: 0.05em;
}

/* Sections General */
section {
  padding: 120px 40px;
  /* Standardized vertical rhythm */
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ... */


.section-title {
  font-size: 2rem;
  margin-bottom: 60px;
  font-weight: 300;
}

/* About Section */
/* About Section - Balanced Grid */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 40px 0;
  position: relative;
}

.about-text {
  /* Clean text block */
  display: block;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.about-image {
  /* Clean image block */
  height: auto;
  min-height: 400px;
  position: relative;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  filter: grayscale(100%);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.about-content:hover .about-image img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.about-text p {
  margin-bottom: 25px;
  color: var(--secondary-text);
  font-size: 1.1rem;
  /* Proportional text */
  line-height: 1.8;
  font-weight: 300;
}

/* Responsive About */
@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0;
  }

  .about-text {
    grid-column: 1 / -1;
    padding: 20px;
    box-shadow: none;
    background: transparent;
  }

  .about-image {
    grid-column: 1 / -1;
    height: 300px;
  }
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
}

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: grayscale(100%);
  /* Start B&W */
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}

.project-card:hover .project-image {
  transform: scale(1.03);
  filter: grayscale(0%);
  /* Color on hover */
}

.project-info {
  margin-top: 15px;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 5px;
}

.project-category {
  font-size: 0.85rem;
  color: var(--secondary-text);
  text-transform: uppercase;
}

/* Contact Form Standard */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  /* Adjust padding to center text */
  border: 1px solid #ccc;
  border-radius: 0;
  /* Sharp architectural edges */
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input {
  height: 54px;
  /* Fixed Height */
}

.form-group textarea {
  height: auto;
  min-height: 150px;
}

.submit-btn {
  height: 54px;
  /* Matches Input Height */
  width: 100%;
  /* Full width */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info div {
  margin-bottom: 30px;
}

.contact-info h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.contact-info p,
.contact-info a {
  color: var(--secondary-text);
  font-size: 1rem;
}

/* Footer */
footer {
  padding: 40px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--secondary-text);
  font-size: 0.85rem;
  margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
    /* Simple hide, would need JS for drawer */
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  section {
    padding: 80px 20px;
  }
}


/* Hero Split Layout */
/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-card {
  border: 1px solid var(--border-color);
  padding: 0;
  /* Flush images */
  background: transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  filter: grayscale(100%);
  /* Initial Grayscale */
  transition: transform 0.6s ease, filter 0.6s ease;
}

.service-card:hover {
  border-color: var(--accent-color);
  background: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-card:hover .service-image {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.service-card h3 {
  font-size: 1.25rem;
  margin: 25px 30px 15px 30px;
  /* Adjusted padding */
  font-weight: 500;
  color: var(--accent-color);
}

/* Numbering Emphasis */
.service-card h3::first-letter {
  font-size: 1.5rem;
  font-weight: 600;
}

.service-card p {
  font-size: 1rem;
  color: var(--secondary-text);
  line-height: 1.6;
  margin: 0 30px 40px 30px;
  /* Adjusted padding */
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Unified Hero Layout */
.hero-unified {
  height: 100vh;
  width: 100%;
  max-width: none;
  /* FORCE FULL WIDTH */
  position: relative;
  overflow: hidden;
  padding: 0;
  /* Reset all padding including inherited section padding */
  margin: 0;
}

/* --- Project Modal --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  /* Darker blur */
  backdrop-filter: blur(8px);
  z-index: -1;
}

.modal-content {
  background: #fcfbf9;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border-radius: 4px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent-color);
  z-index: 10;
  line-height: 1;
}

.modal-body {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0;
}

/* Modal Gallery (Carousel) */
.modal-gallery {
  position: relative;
  height: 500px;
  background: #000;
}

.modal-carousel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.modal-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.modal-slide.active {
  opacity: 1;
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  border-radius: 50%;
  z-index: 2;
}

.modal-prev:hover,
.modal-next:hover {
  background: rgba(255, 255, 255, 0.5);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

.modal-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.modal-dot.active {
  background: white;
}

/* Modal Info */
.modal-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-info h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.modal-info p {
  font-size: 0.9rem;
  color: var(--secondary-text);
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.modal-info #modal-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
}

/* Responsive Modal */
@media (max-width: 900px) {
  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-gallery {
    height: 300px;
  }

  .modal-info {
    padding: 20px;
  }
}

.unified-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.unified-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
  z-index: 0;
}

.unified-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide-split-text {
  width: 100%;
  /* Full Width Overlay */
  height: 100%;
  background: transparent;
  /* No solid bg */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Center alignment */
  padding: 0 20px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  /* Text on top */
  text-align: center;
}

.slide-split-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s 0.2s, transform 0.8s 0.2s;
  color: #ffffff;
  /* Ensure white text */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  /* Readability */
}

.slide-split-text p {
  font-size: 1.25rem;
  color: #f0f0f0;
  /* Lighter text */
  margin-bottom: 30px;
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s 0.4s, transform 0.8s 0.4s;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.slide-split-text .btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background-color: #ffffff;
  /* White button */
  color: var(--accent-color);
  /* Dark text */
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: background 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s 0.6s, transform 0.8s 0.6s, background 0.3s;
  border: none;
}

.slide-split-text .btn-primary:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

/* Staggered Animations on Active */
.unified-slide.active .slide-split-text h1,
.unified-slide.active .slide-split-text p,
.unified-slide.active .slide-split-text .btn-primary {
  opacity: 1;
  transform: translateY(0);
}

.slide-split-image {
  width: 100%;
  /* Full screen image */
  position: absolute;
  top: 0;
  left: 0;
  /* Left 0 */
  height: 100%;
  clip-path: none;
  z-index: 1;
  overflow: hidden;
  border: none;
}

/* Dark Overlay for Readability */
.slide-split-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  /* 40% Black Overlay */
  z-index: 1;
  /* On top of image, below text (because text is z-index 2) */
}

.bg-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  filter: grayscale(100%);
  /* Initial Grayscale */
  transition: transform 6s ease, filter 0.6s ease;
  /* Smooth transition */
}

/* Color on Hero Hover (Interaction) */
.hero-unified:hover .bg-img {
  filter: grayscale(0%);
}

.unified-slide.active .bg-img {
  transform: scale(1);
}

/* About Section Image Styling */
.about-image img {
  width: 100%;
  border-radius: 4px;
  filter: grayscale(100%);
  /* Initial Grayscale */
  transition: filter 0.6s ease, transform 0.6s ease;
  cursor: pointer;
}

.about-image:hover img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* Controls */
.carousel-controls-unified {
  position: absolute;
  bottom: 40px;
  left: 10%;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.uni-btn {
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.uni-btn:hover {
  transform: scale(1.1);
}

.uni-indicators {
  display: flex;
  gap: 10px;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.3s;
}

.indicator.active {
  background: var(--accent-color);
}

/* --- Success Modal Specifics --- */
.success-content {
  max-width: 400px;
  text-align: center;
  padding: 40px;
  align-items: center;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-color);
  color: white;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.success-content h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.success-content p {
  color: var(--secondary-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Revert Mobile layout */
@media (max-width: 900px) {
  .hero-unified {
    height: auto;
  }

  .unified-slide {
    position: relative;
    flex-direction: column-reverse;
    visibility: visible;
    opacity: 1;
    display: none;
    /* Hide non-active slides manually or via flex order? better to use absolute for carousel effect on mobile too, or stack them */
    /* Let's keep absolute for fade effect */
  }

  .unified-slide.active {
    display: flex;
  }

  .slide-split-text {
    width: 100%;
    padding: 120px 20px 60px;
    /* Increased top padding to push text down */
    height: auto;
    text-align: center;
  }

  .slide-split-text h1 {
    font-size: 2rem;
    /* Reduced from 3.5rem */
    margin-bottom: 15px;
  }

  .slide-split-text p {
    font-size: 1rem;
    /* Reduced from 1.25rem */
    margin: 0 auto 25px;
  }

  .slide-split-text .btn-primary {
    display: none;
  }

  .slide-split-image {
    width: 100%;
    height: 50vh;
    position: relative;
    clip-path: none;
  }

  .carousel-controls-unified {
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
  }
}

/* Mist/Fog Effect */
.mist-container-global {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(to right, rgba(252, 251, 249, 0.4) 0%, transparent 50%);
  mix-blend-mode: screen;
}

/* Blueprint Grid Lines */
.project-card::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover::after {
  opacity: 1;
}

/* Logo Refresh */
.logo {
  font-family: var(--font-serif);
  font-style: italic;
}

/* --- Floating WhatsApp --- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 2px 2px 6px #666;
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: white;
}