/* ==========================================================
                    ROOT VARIABLES
========================================================== */

:root {
  --black: #181818;
  --charcoal: #2b2b2b;
  --steel: #3b3936;
  --stone: #b0aa99;

  --gold: #c29b38;

  --white: #f7f7f7;
  --muted: #d2cec3;

  --glass: rgb(255 255 255 / 8%);
  --glass-border: rgb(255 255 255 / 15%);

  --heading: "Cormorant Garamond", serif;
  --body: "Inter", sans-serif;

  --container: 1400px;
  --transition: 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================
                    GLOBAL RESET & BASE
========================================================== */

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

body {
  font-family: var(--body);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================
            FLOATING NAVBAR HEADER & SPACING FIX
========================================================== */

.header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  padding: 0 2rem;
}

.navbar {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(24, 24, 24, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  height: 38px;
  width: auto;
}

.logo-text .company-name {
  display: block;
  font-family: var(--heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.logo-text .company-subtitle {
  display: block;
  font-size: 0.6rem;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Navigation Links */
.nav-links,
.navigation ul {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a,
.navigation a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active,
.navigation a:hover,
.navigation a.active {
  color: var(--gold);
}

/* Navigation CTA Button */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  background: var(--gold);
  color: var(--black);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ==========================================================
            CONTENT TOP CLEARANCE (PREVENTS CARDS GOING UNDER NAVBAR)
========================================================== */

main,
.hero,
.about-hero,
.services-hero,
.projects-hero {
  padding-top: 130px;
}

/* ==========================================================
            GLOBAL H1 & BUTTON UTILITIES
========================================================== */

h1 {
  font-family: var(--heading);
  color: var(--white);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
}

h1 span {
  display: block;
  color: var(--gold);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  background: var(--gold);
  color: var(--black);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(194, 155, 56, 0.2);
}

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

/* Secondary Button Style */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.9rem 2.2rem;
  background: transparent;
  color: var(--white, #f7f7f7);
  font-family: var(--body, sans-serif);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold, #c29b38);
  color: var(--gold, #c29b38);
  transform: translateY(-3px);
}



/* ==========================================================
            CINEMATIC FOOTER & MOBILE SCREEN LAYOUT
========================================================== */

.footer {
  position: relative;
  background:
    linear-gradient(rgba(10, 10, 10, 0.94), rgba(6, 6, 6, 0.98)),
    url("../images/projects/index-bg.jpg") center center/cover no-repeat;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6rem 0 2.5rem;
  color: var(--muted, #d2cec3);
  overflow: hidden;
}

/* Atmospheric Radial Glow */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at bottom left,
    rgba(194, 155, 56, 0.07),
    transparent 60%
  );
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr;
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

/* Footer Logo Component */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 44px;
  width: auto;
}

.footer-logo h3 {
  font-family: var(--heading, "Cormorant Garamond", serif);
  color: var(--white, #f7f7f7);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.footer-logo p {
  font-size: 0.75rem;
  color: var(--gold, #c29b38);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  max-width: 450px;
}

/* Columns & Links */
.footer-col h4 {
  font-family: var(--heading, "Cormorant Garamond", serif);
  color: var(--white, #f7f7f7);
  font-size: 1.3rem;
  margin-bottom: 1.4rem;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.6rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--gold, #c29b38);
}

/* Social Media Icons */
.footer-socials {
  display: flex;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 2rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white, #f7f7f7);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-socials a:hover {
  background: var(--gold, #c29b38);
  color: var(--black, #181818);
  border-color: var(--gold, #c29b38);
  transform: translateY(-3px);
}

/* Bottom Copyright Section */
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}
/* ==========================================================
            RESPONSIVE STYLES (MOBILE & TABLET)
========================================================== */

@media (max-width: 992px) {
  .header {
    top: 10px;
    padding: 0 1rem;
  }


  .navbar {
    border-radius: 20px;
    padding: 0.8rem 1.2rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .nav-links,
  .navigation {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-links.active,
  .navigation.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  main,
  .hero,
  .about-hero,
  .services-hero,
  .projects-hero {
    padding-top: 100px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-col:first-child {
    grid-column: span 2;
  }
}

/* ==========================================================
            RESPONSIVE MOBILE CONTAINER & LAYOUT FIX
========================================================== */

@media (max-width: 1150px) {
  /* Prevent horizontal content overflow and match mobile width */
  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    margin: 0 auto;
    box-sizing: border-box;
  }

  /* Ensure body and html constrain elements properly */
  body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Fix header spacing */
  .header {
    width: 100%;
    padding: 0 0.75rem;
    top: 10px;
  }

  .navbar {
    width: 100%;
    max-width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 16px;
    box-sizing: border-box;
  }

  /* Perfect mobile screen dropdown layout wrapper */
  .navigation,
  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    gap: 1.5rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-sizing: border-box;
  }

  .navigation.active,
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 768px) {

  .logo img {
  height: 35px;
  width: auto;
  padding-left: 3px;
  border-radius: 3px;
}

.logo-text .company-name {
  display: block;
  font-family: var(--heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .logo-text .company-subtitle {
    display: none;
    font-size: 0.6rem;
    color: var(--gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }

  /* Hides the Get in Touch button on mobile screens */
  .footer {
    padding: 4rem 0 2rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    margin-bottom: 2.5rem;
  }

  .footer-col:first-child {
    grid-column: span 1;
  }

  .footer-logo {
    gap: 12px;
  }

  .footer-logo img {
    height: 38px;
  }

  .footer-socials {
    justify-content: center;
    padding-top: 1.5rem;
  }

  .footer-col h4 {
    display: flex;
    justify-content: center;
  }

  .footer-col-1 {
    text-align: center; /* Centers the contact details on mobile */
    padding: 0 1rem;
    margin-bottom: 2rem;
  }

  .footer-col-1 h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--white, #fff);
    letter-spacing: 1px;
  }

  .footer-col-1 p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--muted, #aaa);
    margin-bottom: 0.5rem;
  }

  .footer-links {
    list-style: none;
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 0;
    margin: 0;
  }

  .footer-links li {
    margin-bottom: 0.8rem;
  }

  .footer-links a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
  }

  .footer-bottom {
    text-align: center;
    font-size: 0.8rem;
  }
}
