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

:root {
  --gold: #C0A062;
  --gold-light: #D9B87F;
  --mint: #7FD8BE;
  --charcoal: #1A1A1A;
  --charcoal-light: #242424;
  --white: #FFFFFF;
  --off-white: #EAEAEA;
  --shadow-light: rgba(192, 160, 98, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.2);
  
  --font-headings: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  color: var(--off-white);
  background: var(--charcoal);
  overflow-x: hidden;
  padding-top: 80px; /* Add padding to account for the banner */
}

body.loading {
  overflow: hidden;
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--charcoal);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  max-width: 300px;
  animation: pulse 2s infinite ease-in-out;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* General link styling to prevent browser defaults */
a {
  color: inherit; /* Inherit color from parent by default */
  text-decoration: none;
}

a:visited {
  color: inherit; /* Ensure visited links don't turn purple/blue */
}

/* Portfolio Offer Banner - START */
.portfolio-offer-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--gold);
  color: var(--charcoal);
  z-index: 10000;
  padding: 1rem 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

.portfolio-offer-banner.hidden {
  transform: translateY(-100%);
}

.portfolio-offer-banner .banner-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.portfolio-offer-banner h2 {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  color: var(--charcoal);
  margin: 0;
  line-height: 1.2;
}

.portfolio-offer-banner p {
  font-size: 0.95rem;
  color: var(--charcoal);
  margin: 0;
  max-width: 500px;
  line-height: 1.4;
}

.portfolio-offer-banner .banner-cta {
  background: var(--charcoal);
  color: var(--gold) !important;
  border: 1px solid var(--charcoal);
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.portfolio-offer-banner .banner-cta:hover {
  background: var(--mint);
  color: var(--charcoal) !important;
}

/* Ensure .banner-cta reverts to original styles on focus/active */
.portfolio-offer-banner .banner-cta:focus,
.portfolio-offer-banner .banner-cta:active {
  background: var(--charcoal);
  color: var(--gold) !important;
  border: 1px solid var(--charcoal);
  outline: none; /* Remove default focus outline */
}

.portfolio-offer-banner .banner-close-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--charcoal);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
  transition: color 0.3s ease;
}

.portfolio-offer-banner .banner-close-btn:hover {
  color: var(--white);
}
/* Portfolio Offer Banner - END */

/* Navbar */
.navbar {
  position: fixed;
  top: 80px; /* Position below the banner */
  width: 100%;
  background: transparent;
  z-index: 1000;
  padding: 2rem 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(12px);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(192, 160, 98, 0.2);
}

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

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

.logo {
  height: 120px;
  width: auto;
}

.brand-name {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.cta-button {
  background: transparent;
  border: 1px solid var(--gold);
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  color: var(--gold) !important;
  font-weight: 500;
}

.cta-button::after { display: none; }

.cta-button:hover {
  background: var(--mint);
  color: var(--charcoal) !important;
}

/* Ensure .cta-button reverts to original styles on focus/active */
.cta-button:focus,
.cta-button:active {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  outline: none;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 6px 0;
  background: var(--gold);
  transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
  position: relative;
  height: 60vh; /* Further reduced from 70vh */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
  margin-top: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)), url('https://images.unsplash.com/photo-1531297484001-80022131f5a1?w=1200&h=800&fit=crop&q=80');
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  transform: scale(1.1);
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 900px;
  padding: 2rem;
}

.hero-title {
  font-size: 5.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--gold);
  text-shadow: 0 4px 20px var(--shadow-dark);
  animation: fadeInUp 1s ease;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--off-white);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  animation: fadeInUp 1s ease 0.4s both;
}

.btn {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--gold);
  color: var(--charcoal);
  box-shadow: 0 4px 15px var(--shadow-light);
}

.btn-primary:hover {
  background: var(--mint);
  box-shadow: 0 8px 25px rgba(192, 160, 98, 0.2);
  color: var(--charcoal);
}

/* Ensure .btn-primary reverts to original styles on focus/active */
.btn-primary:focus,
.btn-primary:active {
  background: var(--gold);
  color: var(--charcoal);
  box-shadow: 0 4px 15px var(--shadow-light);
  outline: none;
}

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

.btn-secondary:hover {
  background: var(--mint);
  color: var(--charcoal);
  transform: translateY(-3px) scale(1.05);
}

/* Ensure .btn-secondary reverts to original styles on focus/active */
.btn-secondary:focus,
.btn-secondary:active {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
  outline: none;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.mouse {
  width: 25px;
  height: 45px;
  border: 1px solid var(--gold);
  border-radius: 20px;
  position: relative;
  animation: bounce 2s infinite;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

/* General Section Styling */
section {
  padding: 4rem 0; /* Further reduced from 5rem 0 */
  position: relative; /* Ensure sections are positioned correctly */
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--off-white);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* Services Section */
.services {
  background: var(--charcoal-light);
}

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

.service-card {
  background: var(--charcoal);
  padding: 3rem;
  border-radius: 4px;
  box-shadow: 0 15px 40px var(--shadow-dark);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--charcoal-light);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border-color: rgba(192, 160, 98, 0.5);
}

.badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0,0,0,0.2);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: transparent;
  border: 1px solid var(--mint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--mint);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: var(--mint);
  color: var(--charcoal);
}

.service-card h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.service-card p {
  margin-bottom: 1.5rem;
  font-weight: 300;
  color: var(--off-white);
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.feature-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

/* Testimonials Section */
.testimonials {
  background: var(--charcoal);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--charcoal-light);
  padding: 4rem 3rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(192, 160, 98, 0.2);
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
}

.quote-icon {
  color: var(--gold);
  margin-bottom: 2rem;
  opacity: 0.8;
}

.testimonial-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--white);
  font-family: var(--font-headings);
  font-style: italic;
  margin-bottom: 2rem;
  font-weight: 600;
}

.testimonial-author h4 {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.testimonial-author p {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--mint);
}

.testimonial-link {
  color: var(--mint) !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.testimonial-link:hover {
  color: var(--gold) !important;
}

/* Contact Section */
.contact {
  background: var(--charcoal-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem;
  align-items: center;
  justify-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
}

.contact-info h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  white-space: nowrap;
}

.contact-info p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  color: var(--off-white);
  font-weight: 300;
  text-align: center;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item svg {
  color: var(--mint);
  min-width: 24px;
}

.contact-item a {
  color: var(--off-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--gold);
}

.contact-cta-btn {
  margin-top: 1.5rem;
  padding: 1rem 3rem;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 1.5rem 0 0.75rem;
  border-top: 1px solid rgba(192, 160, 98, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--off-white);
  line-height: 1.6;
  margin-top: 0.25rem;
  max-width: 300px;
  font-weight: 300;
}

.footer-logo {
  height: 80px;
}

.footer h4 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--gold);
}

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

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

.footer-links a {
  color: var(--off-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Scroll to Top Button */
.scroll-to-top-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--gold);
  color: var(--charcoal);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.scroll-to-top-btn:hover {
  background-color: var(--mint);
}

/* Ensure .scroll-to-top-btn reverts to original styles on focus/active */
.scroll-to-top-btn:focus,
.scroll-to-top-btn:active {
  background-color: var(--gold);
  color: var(--charcoal);
  outline: none;
}

.scroll-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.footer-bottom {
  border-top: 1px solid rgba(192, 160, 98, 0.2);
  padding-top: 0.75rem;
  text-align: center;
  color: var(--off-white);
  font-weight: 300;
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes scroll {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-title { font-size: 4.5rem; }
}

@media (max-width: 992px) {
  .hero-title { font-size: 3.5rem; }
  .section-title { font-size: 3rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-content { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Portfolio Offer Banner Responsive */
  .portfolio-offer-banner .banner-inner {
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 2rem;
  }
  .portfolio-offer-banner h2 {
    font-size: 1.5rem;
  }
  .portfolio-offer-banner p {
    font-size: 0.85rem;
  }
  .portfolio-offer-banner .banner-cta {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 120px; /* Increase padding for mobile due to banner wrapping */
  }

  .navbar {
    top: 120px; /* Adjust navbar position for mobile */
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    justify-content: center;
    background: var(--charcoal);
    width: 100%;
    height: 100vh;
    text-align: center;
    transition: 0.3s;
    padding: 2rem;
    gap: 2rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: block;
    z-index: 1001;
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-title { font-size: 2.5rem; white-space: normal; }
  .hero-subtitle { font-size: 1.2rem; }
  .hero-buttons { flex-direction: column; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin: 1rem auto; }

  .contact-info h2 {
    white-space: normal;
    font-size: 2.5rem;
  }

  .scroll-to-top-btn {
    display: block;
  }

  /* Portfolio Offer Banner Responsive */
  .portfolio-offer-banner h2 {
    font-size: 1.2rem;
  }
  .portfolio-offer-banner p {
    font-size: 0.75rem;
  }
  .portfolio-offer-banner .banner-cta {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}
