@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-dark: #0f172a; 
  --primary-light: #f8fafc;
  --accent: #d4af37;
  --text-dark: #1e293b;
  --text-light: #f1f5f9;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: var(--primary-light);
  color: var(--text-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .outfit {
  font-family: 'Outfit', sans-serif;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background-color: rgba(15, 23, 42, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  box-sizing: border-box;
  z-index: 1000;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

header.scrolled {
  height: 70px;
  background-color: rgba(15, 23, 42, 0.98);
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-container img {
  height: 80px;
  transition: height 0.4s ease;
}

header.scrolled .logo-container img {
  height: 50px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
  color: var(--accent);
}

/* Sections */
section {
  padding: 100px 5%;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* First section of every page */
.first-section {
  background-color: var(--primary-dark);
  color: var(--text-light);
  min-height: 100vh;
  padding-top: 150px;
}

/* Hero Slideshow for Home */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  transform: scale(1);
}

.hero-slide.active {
  opacity: 0.4; 
  animation: zoomInOut 15s infinite alternate linear;
}

@keyframes zoomInOut {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-content p {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--accent);
  color: var(--primary-dark);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 4px;
  transition: all 0.3s;
}

.btn:hover {
  background-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Content Sections */
.bg-light { background-color: var(--primary-light); color: var(--text-dark); }
.bg-dark { background-color: var(--primary-dark); color: var(--text-light); }
.bg-image {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  color: var(--text-light);
}
.bg-image::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.85); /* High opacity */
  z-index: 0;
}
.bg-image > * {
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 48px;
  margin-bottom: 30px;
  text-transform: uppercase;
  font-weight: 700;
}

.section-subtitle {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: 'Outfit', sans-serif;
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.grid-2-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.card {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  transition: transform 0.4s;
  color: var(--text-dark);
}
.card:hover { transform: translateY(-10px); }
.card img { width: 100%; height: 250px; object-fit: cover; border-radius: 4px; margin-bottom: 20px; }

/* Motion Effects */
.fade-up { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in { opacity: 0; transition: opacity 1s ease; }
.slide-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s ease; }
.slide-right { opacity: 0; transform: translateX(50px); transition: all 0.8s ease; }

.visible { opacity: 1; transform: translate(0); }

/* Footer */
footer {
  background-color: #0b1120;
  color: #fff;
  padding: 80px 5% 40px;
}
.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  font-size: 14px;
}

/* Contact Form */
.contact-form {
  background: #fff;
  padding: 50px;
  border-radius: 8px;
  color: var(--text-dark);
}
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 600; font-family: 'Outfit'; }
.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Montserrat';
  font-size: 16px;
  box-sizing: border-box;
}
.form-control:focus { outline: none; border-color: var(--accent); }
.success-message {
  display: none;
  background: #4ade80;
  color: #064e3b;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-family: 'Outfit';
  font-weight: 600;
  font-size: 18px;
  text-align: center;
}

/* Mobile Menu Base */
.mobile-menu-btn { display: none; }

/* Responsive */
@media (max-width: 768px) {
  /* Header - Row Layout */
  header { flex-direction: row !important; justify-content: space-between; padding: 15px 5%; height: auto !important; position: fixed; width: 100%; box-sizing: border-box; }
  .logo-container img { height: 40px !important; }
  
  /* Mobile Hamburger Button */
  .mobile-menu-btn { display: flex; flex-direction: column; justify-content: space-around; width: 28px; height: 22px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001; }
  .mobile-menu-btn span { width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s linear; transform-origin: 1px; }
  .mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg); }
  .mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
  .mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg); }

  /* Mobile Dropdown Nav */
  nav { position: absolute; top: 100%; left: 0; width: 100%; background: rgba(15, 23, 42, 0.98); border-top: 1px solid rgba(255,255,255,0.1); padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.4s ease; backdrop-filter: blur(10px); }
  nav.open { max-height: 500px; padding: 10px 5% 30px; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
  nav ul { flex-direction: column; gap: 0; align-items: flex-start; margin-top: 0; width: 100%; }
  nav ul li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }
  nav ul li:last-child { border-bottom: none; }
  nav ul li a { display: block; padding: 15px 0; font-size: 15px; letter-spacing: 1px; }

  /* Typography Overrides */
  .hero-content h1, .first-section h1 { font-size: 32px !important; margin-bottom: 15px !important; line-height: 1.2 !important; }
  .first-section p.outfit { font-size: 20px !important; margin-bottom: 15px !important; line-height: 1.4 !important; }
  .first-section p { font-size: 16px !important; margin-bottom: 20px !important; }
  .section-title { font-size: 28px !important; margin-bottom: 20px !important; line-height: 1.3 !important; }
  .section-subtitle { font-size: 18px !important; margin-bottom: 10px !important; }
  p, ul { font-size: 16px !important; line-height: 1.6 !important; }
  
  /* Layout Overrides */
  section { padding: 60px 5% !important; min-height: auto !important; }
  .first-section { padding-top: 140px !important; min-height: 80vh !important; }
  .grid-2, .grid-2-cards, .grid-3 { grid-template-columns: 1fr !important; gap: 40px !important; }
  
  /* Target inline multi-column grids */
  [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: 1fr 1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: repeat"] { grid-template-columns: 1fr !important; }
  
  /* Image and Iframe height overrides */
  img[style*="height: 750px"], 
  img[style*="height: 700px"], 
  img[style*="height: 650px"],
  img[style*="height: 500px"],
  img[style*="height: 400px"],
  img[style*="height: 350px"] {
    height: 300px !important;
  }
  
  /* Specifically for the project gallery images */
  .fade-up img { height: 250px !important; }
  
  iframe { height: 300px !important; }
  
  /* Padding and Card overrides */
  .card { padding: 25px !important; }
  [style*="padding: 50px"] { padding: 30px !important; }
  [style*="padding: 40px"] { padding: 25px !important; }
  [style*="padding: 30px"] { padding: 20px !important; }
  
  /* Footer */
  footer { padding: 50px 5% 30px !important; }
  .footer-bottom { margin-top: 20px !important; padding-top: 20px !important; }
  
  /* Buttons */
  .btn { padding: 12px 24px !important; font-size: 14px !important; width: 100%; box-sizing: border-box; text-align: center; }
}