/* CSS Reset & Variables */
:root {
  --primary-color: #2F3E46; /* Deep architectural green-grey */
  --secondary-color: #CAD2C5; /* Light stone */
  --accent-color: #DDA15E; /* Warm accent, like golden hour sunlight */
  --text-dark: #1F2833;
  --text-light: #F8F9FA;
  --bg-main: #FAFAFA;
  --bg-dark: #121619;
  
  --font-main: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem; }
h3 { font-size: 1.75rem; }
p { color: #555; margin-bottom: 1.5rem; }

a { text-decoration: none; color: inherit; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-main);
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(221, 161, 94, 0.3);
}

.btn-primary:hover {
  background-color: #c98c4a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(221, 161, 94, 0.4);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--text-light);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
  color: #fff;
}

.navbar.scrolled {
  background: rgba(18, 22, 25, 0.85);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0; height: 2px;
  bottom: -4px; left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.lang-switcher {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.lang-switcher select {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.lang-switcher select:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lang-switcher select option {
  background: var(--bg-dark);
  color: #fff;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(18, 22, 25, 0.9) 0%, rgba(18, 22, 25, 0.4) 100%);
  z-index: -1;
}

.hero-content {
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding-top: 5rem;
}

.hero-text {
  max-width: 700px;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.highlight {
  color: var(--accent-color);
  position: relative;
  display: inline-block;
}

.hero-text p {
  color: #ddd;
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 20px;
  width: max-content;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent-color);
  font-family: var(--font-main);
  font-weight: 700;
}

.stat-item p {
  color: #e0e0e0;
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Projects Section */
.projects {
  padding: 8rem 0;
  background-color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.projects .container {
  max-width: 1536px;
  width: 96%;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.project-card {
  border-radius: 20px;
  overflow: hidden;
  background: #f9f9f9;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.project-img-wrapper {
  overflow: hidden;
  height: 330px;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-info {
  padding: 2rem;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.project-info p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.read-more {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.read-more span {
  transition: var(--transition);
}

.project-card:hover .read-more span {
  transform: translateX(5px);
}

/* Catalog Section */
.catalog {
  padding: 8rem 0;
  background: var(--bg-main);
  position: relative;
}

.catalog-flex {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.catalog-text {
  flex: 1;
}

.catalog-text h2 {
  margin-bottom: 1.5rem;
}

.catalog-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.catalog-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 1.1rem;
  color: #444;
}

.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: rgba(221, 161, 94, 0.2);
  color: var(--accent-color);
  border-radius: 50%;
  font-size: 0.8rem;
}

.catalog-carousel {
  flex: 1;
  display: flex;
  gap: 1.5rem;
  position: relative;
}

.catalog-item {
  flex: 1;
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.catalog-item:hover {
  transform: translateY(-10px);
}

.catalog-item:nth-child(2) {
  transform: translateY(2rem);
}

.catalog-item:nth-child(2):hover {
  transform: translateY(calc(2rem - 10px));
}

.catalog-img {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.catalog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-details h4 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.catalog-details p {
  font-size: 0.85rem;
  margin-bottom: 0;
  color: #777;
}

/* Footer / Contact */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding-top: 6rem;
  position: relative;
}

.footer-cta {
  background: var(--primary-color);
  margin: 0 auto;
  max-width: 1000px;
  border-radius: 20px;
  padding: 4rem 2rem;
  text-align: center;
  transform: translateY(-50%);
  position: absolute;
  top: 0; left: 0; right: 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.cta-container h2 {
  color: #fff;
  font-size: 2.2rem;
}

.cta-container p {
  color: #e0e0e0;
  margin-bottom: 2rem;
}

.cta-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 0.5rem;
}

.cta-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: var(--font-main);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  margin-top: 5rem; /* Space for the floating CTA */
}

.footer-brand p {
  margin-top: 1.5rem;
  color: #a0a0a0;
  max-width: 300px;
}

.footer-links h3, .footer-contact h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-links ul, .footer-contact ul {
  list-style: none;
}

.footer-links li, .footer-contact li {
  margin-bottom: 1rem;
  color: #a0a0a0;
}

.footer-links a {
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 2rem 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #777;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content-box {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-overlay.active .modal-content-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0,0,0,0.05);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: var(--text-dark);
}

.modal-close:hover {
  background: rgba(0,0,0,0.1);
}

.modal-body h2 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
}

.modal-body h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.modal-body p, .modal-body li {
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.modal-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.modal-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.modal-img-placeholder {
  width: 100%;
  height: 200px;
  background: #f0f0f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-style: italic;
  object-fit: cover;
}

@media (max-width: 768px) {
  .modal-content-box { padding: 2rem 1.5rem; }
  .modal-body h2 { font-size: 1.8rem; }
}

/* Responsive */
@media (max-width: 992px) {
  h1 { font-size: 2.8rem; }
  .catalog-flex { flex-direction: column; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-stats { flex-direction: column; gap: 1.5rem; width: 100%; }
  .cta-form { flex-direction: column; }
  .footer-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-cta { margin-top: -3rem; position: relative; transform: none; box-shadow: none; border-radius: 0; padding: 3rem 1.5rem; }
  .footer { padding-top: 0; }
  .projects-grid { grid-template-columns: 1fr; }
}
