/* Global resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
}

/* Helper styles */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.bg-dark-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-padding {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-top: 0.5rem;
}

.bg-dark-section .section-title p {
  color: var(--text-light-muted);
}

/* Scroll revelation classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Header & Nav style */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  height: 70px;
  box-shadow: var(--shadow-sm);
}

body.dark-header-scrolled .header.scrolled {
  background: var(--glass-bg-dark);
  border-bottom: 1px solid var(--glass-border-dark);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 48px;
  width: auto;
  transition: var(--transition-smooth);
}

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

.logo-fallback {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-orange);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.logo-title span {
  color: var(--primary-purple);
}

.logo-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Desktop nav link menu */
.nav-list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-purple));
  transition: var(--transition-fast);
}

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

.nav-link:hover {
  color: var(--primary-orange);
}

/* Dark header page overrides (Services, Gallery, About, Contact) */
body.dark-header-scrolled .header .nav-link {
  color: var(--text-light-muted);
}

body.dark-header-scrolled .header .nav-link:hover {
  color: var(--primary-orange);
}

body.dark-header-scrolled .header .nav-link.active {
  color: var(--text-light);
}

body.dark-header-scrolled .header .logo-title {
  color: var(--text-light);
}

body.dark-header-scrolled .header .logo-tagline {
  color: var(--text-light-muted);
}

body.dark-header-scrolled .header .menu-btn-bar {
  background-color: var(--text-light);
}

/* Header Action Call */
.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Drawer mobile menu toggle */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.menu-btn-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  position: absolute;
  left: 0;
  transition: var(--transition-fast);
}

.menu-btn-bar:nth-child(1) { top: 0; }
.menu-btn-bar:nth-child(2) { top: 9px; }
.menu-btn-bar:nth-child(3) { top: 18px; }

/* Open mobile menu drawer toggle */
.menu-btn.open .menu-btn-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn.open .menu-btn-bar:nth-child(2) {
  opacity: 0;
}
.menu-btn.open .menu-btn-bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -8px);
}

/* Mobile nav menu style */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 999;
  transition: var(--transition-smooth);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 600;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary-orange);
}

/* Dark theme elements for Footer & Sections */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light-muted);
  border-top: 1px solid var(--glass-border-dark);
  padding-top: 5rem;
  padding-bottom: 2rem;
  font-size: 0.9rem;
}

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

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
}

.footer-logo-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.footer-logo-title span {
  color: var(--primary-orange);
}

.footer-desc {
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-dark-card);
  border: 1px solid var(--glass-border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-purple));
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.footer-col-title {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-orange);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-link:hover {
  color: var(--text-light);
  transform: translateX(3px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-contact-icon {
  color: var(--primary-orange);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--glass-border-dark);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-link:hover {
  color: var(--text-light);
}

/* Responsive adjustment settings */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-list, .header-cta-btn {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
