/* --- VARIABLES --- */
:root {
  --primary-color: #9c8c7c;
  --secondary-color: #f4f2ef;
  --accent-color: #d4c8be;
  --text-color: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --black: #000000;
  --gray-light: #f8f8f8;
  --gray-medium: #e0e0e0;
  --gray-dark: #777777;
  --font-primary: 'DM Sans', sans-serif;
  --font-secondary: 'Jost', sans-serif;
  --font-tertiary: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(.4,2,.6,1);
  --shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  --container-width: 1200px;
  --container-padding: 20px;
  --section-spacing: 100px;
}

/* --- BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}
a { color: var(--text-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-color); }
ul, ol { margin-left: 20px; margin-bottom: 20px; }
img { max-width: 100%; height: auto; display: block; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 20px;
}
h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 20px; }

/* --- CONTAINER --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}
.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* --- NAVBAR --- */
.floating-navbar {
  position: fixed;
  top: 24px;
  left: 0;
  width: 100%;
  z-index: 2000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: var(--transition);
}
.floating-navbar.minimized {
  top: 30px;
  transition: var(--transition);
}
.navbar-container {
  background: rgba(133, 133, 136, 0.7);
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(151, 150, 150, 0.037);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  padding: 12px 32px;
  pointer-events: auto;
  transition: var(--transition);
}
.floating-navbar.minimized .navbar-container {
  padding: 6px 18px;
  border-radius: 10px;
  transition: var(--transition);
}
.logo {
  display: flex;
  align-items: center;
}
.navbar-logo {
  height: 60px;
  width: auto;
  transition: height 0.3s cubic-bezier(.4,2,.6,1);
}
.floating-navbar.minimized .navbar-logo {
  height: 50px;
}
.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav li { margin: 0; }
.main-nav a {
  color: #fff;
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  opacity: 0.85;
  padding: 4px 0;
  transition: color 0.2s;
}
.main-nav a.active,
.main-nav a:hover {
  color: #ffcc00;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}
.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* --- HAMBURGER --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  margin-left: 24px;
  z-index: 3000;
}
.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- NAVBAR MOBILE --- */
@media (max-width: 900px) {
  .navbar-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
  }
  .navbar-logo { height: 36px; }
  .main-nav {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 70vw;
    height: 100vh;
    background: rgba(61, 61, 72, 0.97);
    box-shadow: -2px 0 16px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 32px 32px 32px;
    transition: right 0.3s cubic-bezier(.4,2,.6,1);
    z-index: 2500;
    overflow-y: auto;
  }
  .main-nav.active { right: 0; }
  .main-nav ul {
    flex-direction: column;
    gap: 28px;
    width: 100%;
  }
  .menu-toggle { display: flex; margin-left: 0; }
  /* Hide active link only when menu is open */
}

/* --- HERO SECTION --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../assets/docs/tupe/7.jpg');
  /* assets/docs/nebula-architects/101.jpg */
  /* assets/docs/tupe/2.jpg */
  /* assets/img/R.jpeg */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  color: #fff;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.3);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero h1 { margin-bottom: 20px; }
.hero p { font-size: 1.25rem; margin-bottom: 40px; }

/* --- SECTION GRID --- */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.section-grid.reverse { grid-template-columns: 1fr 1fr; }
.text-content { padding: 30px 0; }
.image-content {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}
.image-placeholder {
  width: 100%;
  padding-top: 75%;
  background-color: var(--gray-medium);
  border-radius: 5px;
}
.image-placeholder.large { padding-top: 56.25%; }
.image-placeholder.circle {
  border-radius: 50%;
  padding-top: 100%;
  width: 80px;
}

/* --- SECTION STYLES --- */
section { padding: 100px 0; }
section.alt-bg { background-color: var(--secondary-color); }
.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--primary-color);
  margin: 20px auto 0;
}
.text-center { text-align: center; }

/* --- SERVICES GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}
.service-card {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: 5px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-10px); }
.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background-color: var(--accent-color);
  border-radius: 50%;
}
.service-card h3 { margin-bottom: 15px; font-size: 1.5rem; }
.service-features { list-style-type: none; margin-left: 0; }
.service-features li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}
.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* --- PROJECTS GRID --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: var(--shadow);
}
.project-image { position: relative; overflow: hidden; }
.project-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--white);
  color: var(--text-color);
  font-family: var(--font-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  transform: translateY(20px);
  transition: var(--transition);
}
.project-card:hover .project-link { transform: translateY(0); }
.project-info {
  padding: 20px;
  background-color: var(--white);
}
.project-info h3 { margin-bottom: 5px; font-size: 1.25rem; }
.project-info p { margin-bottom: 0; color: var(--text-light); font-size: 0.875rem; }

/* --- TESTIMONIALS --- */
.testimonials { background-color: var(--secondary-color); position: relative; }
.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.testimonial-item { display: none; }
.testimonial-item.active { display: block; }
.testimonial-content {
  background-color: var(--white);
  padding: 40px;
  border-radius: 5px;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-content p {
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 30px;
}
.client-info { display: flex; align-items: center; }
.client-image { margin-right: 20px; }
.client-details h4 { margin-bottom: 5px; }
.client-details p { font-size: 0.875rem; margin-bottom: 0; color: var(--text-light); }
.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}
.prev-btn, .next-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 10px;
  color: var(--text-color);
}
.testimonial-dots { display: flex; margin: 0 20px; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--gray-medium);
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}
.dot.active { background-color: var(--primary-color); }

/* --- CTA SECTION --- */
.cta-section {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}
.cta-content h2 { color: var(--white); margin-bottom: 15px; }
.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn-primary {
  background-color: var(--white);
  color: var(--primary-color);
}
.cta-section .btn-primary:hover {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* --- FOOTER --- */
.footer {
  background-color: #222222;
  color: var(--white);
  padding: 80px 0 20px;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}
.footer-logo {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-column h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  position: relative;
}
.footer-column h3::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
  margin-top: 10px;
}
.footer-links { list-style: none; margin-left: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #aaaaaa; }
.footer-links a:hover { color: var(--white); }
.social-links { display: flex; margin-top: 20px; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  color: var(--white);
  font-size: 0.875rem;
}
.social-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom p {
  font-size: 0.875rem;
  color: #aaaaaa;
  margin-bottom: 0;
}
address p { margin-bottom: 5px; color: #aaaaaa; }

/* --- PAGE HEADER --- */
.page-header {
  background-color: var(--secondary-color);
  padding: 150px 0 80px;
  text-align: center;
}
.page-header h1 { margin-bottom: 10px; }
.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary-color); }

/* --- ABOUT PAGE --- */
.about-section, .mission-section { padding: 80px 0; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}
.team-member { text-align: center; }
.member-image { margin-bottom: 20px; }
.member-info h3 { margin-bottom: 5px; }
.member-title {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 10px;
}
.member-bio { font-size: 0.875rem; margin-bottom: 0; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}
.process-step {
  text-align: center;
  padding: 30px;
  background-color: var(--white);
  border-radius: 5px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.process-step:hover { transform: translateY(-10px); }
.step-number {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}
.value-card {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 5px;
  text-align: center;
}

/* --- SERVICES PAGE --- */
.services-intro, .projects-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.service-detail { padding: 80px 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.pricing-card {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: 5px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.pricing-card:hover { transform: translateY(-10px); }
.pricing-card.featured { border: 2px solid var(--primary-color); }
.popular-tag {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: var(--white);
  padding: 5px 15px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pricing-card h3 { margin-bottom: 15px; }
.price {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}
.pricing-features { list-style-type: none; margin: 20px 0; text-align: left; }
.pricing-features li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}
.pricing-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* --- PROJECTS PAGE --- */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px 0;
}
.filter-btn {
  background: none;
  border: none;
  padding: 5px 15px;
  margin: 0 5px 10px;
  font-family: var(--font-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.filter-btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}
.filter-btn.active::after,
.filter-btn:hover::after {
  width: 100%;
}
.filter-btn.active { color: var(--primary-color); }
.projects-grid-section { padding-top: 0; }
.project-detail-preview {
  margin-top: 80px;
  background-color: var(--secondary-color);
}
.project-highlights { margin-bottom: 30px; }

/* --- PROJECT DETAIL PAGE --- */
.project-header {
  background-color: var(--secondary-color);
  padding: 150px 0 60px;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
}
.meta-item { margin-right: 40px; margin-bottom: 10px; }
.meta-label { font-weight: 600; margin-right: 5px; }
.overview-image { margin-bottom: 60px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.gallery-item {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f3f3f3;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gallery-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  background: #f3f3f3;
}
.image-caption { margin-top: 10px; font-size: 0.875rem; color: var(--text-light); }
.challenge-item { margin-bottom: 20px; }
.challenge-item h3 { font-size: 1.25rem; margin-bottom: 10px; }

/* --- CONTACT PAGE --- */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  margin-top: 60px;
}
.contact-form-container {
  background-color: var(--white);
  padding: 40px;
  border-radius: 5px;
  box-shadow: var(--shadow);
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group.full-width { grid-column: 1 / -1; }
label { display: block; margin-bottom: 5px; font-weight: 500; }
input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray-medium);
  border-radius: 5px;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}
.checkbox-group { display: flex; align-items: center; }
.checkbox-group input { width: auto; margin-right: 10px; }
.checkbox-group label { margin-bottom: 0; font-weight: normal; }
.form-submit { grid-column: 1 / -1; }
.form-status { grid-column: 1 / -1; text-align: center; font-weight: 500; }
.form-status.success { color: green; }
.form-status.error { color: red; }
.contact-info {
  padding: 40px;
  background-color: var(--secondary-color);
  border-radius: 5px;
}
.info-item { display: flex; margin-bottom: 30px; }
.info-icon { font-size: 1.5rem; margin-right: 20px; }
.info-content h4 { margin-bottom: 5px; }
.map-placeholder {
  height: 500px;
  background-color: var(--gray-medium);
  position: relative;
}
.map-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
}
.location-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 5px;
  box-shadow: var(--shadow);
  max-width: 300px;
}
.location-card h3 { margin-bottom: 15px; }
.location-card address { margin-bottom: 20px; }
.faq-grid { max-width: 800px; margin: 0 auto; }
.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gray-medium);
  padding-bottom: 20px;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-question h3 { margin-bottom: 0; font-size: 1.25rem; }
.faq-toggle { font-size: 1.5rem; font-weight: 300; transition: var(--transition); }
.faq-answer { display: none; padding-top: 20px; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-item.active .faq-answer { display: block; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  :root { --section-spacing: 80px; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  .section-grid { gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .section-grid, .section-grid.reverse { grid-template-columns: 1fr; gap: 30px; }
  .image-content { order: -1; }
  .contact-form { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-spacing: 60px; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  .main-nav ul { align-items: center; }
  .main-nav li { margin: 10px 0; }
  .section-grid, .section-grid.reverse { grid-template-columns: 1fr; }
  .image-content, .section-grid.reverse .image-content { order: -1; }
  .contact-form { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root { --container-padding: 15px; --section-spacing: 50px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  .btn { padding: 10px 20px; font-size: 0.875rem; }
  .footer-content { grid-template-columns: 1fr; }
  .meta-item { width: 100%; margin-right: 0; }
}

/* --- UTILITY --- */
.hide-navbar { display: none !important; }