/* styles.css - Main stylesheet for PIT-Lab Basic */

/* Import Bootstrap if using (assume CDN in HTML) */
/* @import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css'); */

/* Import AOS if using */
/* @import url('https://unpkg.com/aos@2.3.1/dist/aos.css'); */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Skip to content link (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brown);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  font-weight: 700;
  transition: top 0.3s ease;
}

.skip-link:focus {
  outline: none;
}

.skip-link:focus-visible {
  top: 0;
  color: var(--white);
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Color Palette */
:root {
  --beige: #f5f5dc;
  --brown: #8b4513;
  --gold: #d4af37;
  --text: #333;
  --white: #fff;
  --surface: #fff;
  --border: #e0e0e0;
  --text-muted: #555;
  --card-shadow: rgba(0, 0, 0, 0.08);
  --card-hover-shadow: rgba(212, 175, 55, 0.25);
  --icon-gradient-from: rgba(212, 175, 55, 0.15);
  --icon-gradient-to: rgba(139, 69, 19, 0.1);
  --icon-gradient-hover-from: rgba(212, 175, 55, 0.25);
  --icon-gradient-hover-to: rgba(139, 69, 19, 0.15);
  --form-bg: #fff;
  --hero-overlay-a: rgba(139, 69, 19, 0.85);
  --hero-overlay-b: rgba(212, 175, 55, 0.70);
  color-scheme: light dark;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --beige: #0d0d0d;
  --brown: #c9a96e;
  --gold: #f0d060;
  --text: #e8e0d4;
  --white: #1a1a1a;
  --surface: #141414;
  --border: #2a2a2a;
  --text-muted: #9a9080;
  --card-shadow: rgba(212, 175, 55, 0.06);
  --card-hover-shadow: rgba(212, 175, 55, 0.15);
  --icon-gradient-from: rgba(212, 175, 55, 0.12);
  --icon-gradient-to: rgba(240, 208, 96, 0.06);
  --icon-gradient-hover-from: rgba(212, 175, 55, 0.2);
  --icon-gradient-hover-to: rgba(240, 208, 96, 0.1);
  --form-bg: #1e1e1e;
  --hero-overlay-a: rgba(10, 10, 10, 0.88);
  --hero-overlay-b: rgba(212, 175, 55, 0.35);
  color-scheme: dark;
}

/* Typography */
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background-color: var(--beige);
  margin: 0;
  padding: 0;
  line-height: 1.7;
  font-size: 17px;
}

/* Smooth theme transition */
body.theme-transition,
body.theme-transition *,
body.theme-transition *::before,
body.theme-transition *::after {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease !important;
}

h1, h2, h3 {
  font-family: 'Lato', sans-serif; /* Or a distinctive font */
  color: var(--brown);
}

h1 {
  font-weight: 700;
  font-size: 2.2rem;
  margin: 10px 0 16px;
}

h2 {
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0 0 12px;
}

a {
  color: var(--brown);
  text-decoration: none;
}

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

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* Improve readability */
.container p {
  max-width: 900px;
}

header {
  background-color: var(--surface);
  border-bottom: 2px solid var(--gold);
  transition: background-color 0.5s ease;
  position: relative;
  z-index: 10;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 12px 0;
}

nav li {
  margin: 0 15px;
}

/* Active nav link */
nav a.active {
  color: var(--brown);
  font-weight: 700;
}

/* Morphing nav underlines — expand from center */
nav a {
  position: relative;
  padding-bottom: 4px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--brown));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
  left: 0;
}

nav a.lang-toggle::after {
  display: none;
}

/* Hamburger toggle */
.menu-toggle {
  display: none;
  background: var(--white);
  color: var(--brown);
  border: 1px solid var(--brown);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin: 8px auto 0;
  }
  nav ul {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
  }
  nav ul.active {
    display: flex;
  }
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }

[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.theme-toggle.rotating svg {
  transform: rotate(360deg);
}

.theme-toggle-li {
  display: flex;
  align-items: center;
}

/* Buttons and CTAs */
.btn {
  background-color: var(--gold);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--brown);
}

/* Form elements */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px 12px;
  margin: 8px 0 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--form-bg);
  color: var(--text);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}

/* Form layout enhancements */
form {
  max-width: 720px;
}

form label {
  display: block;
  font-weight: 600;
  margin: 14px 0 6px;
}

form .btn {
  display: inline-block;
  margin-top: 8px;
}

/* Form grid utilities */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-span-2 {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Visually hidden (for honeypot) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Animations */
[data-aos] {
  transition: all 0.5s ease;
}

/* Icons */
.icon {
  width: 50px;
  height: 50px;
  background-size: contain;
  display: inline-block;
}

/* Feature list styling */
.feature-list {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.feature-list .icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

.hero-image {
  width: 100%;
  margin: 12px 0 20px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 40px 0;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
  }
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 4px 20px var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--brown));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px var(--card-hover-shadow);
  border-color: var(--gold);
  animation: borderGlow 2s ease-in-out infinite;
}

.service-card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--icon-gradient-from), var(--icon-gradient-to));
  border-radius: 50%;
  transition: all 0.4s ease;
}

.service-card:hover .service-card-icon {
  animation: iconFloat 1.5s ease-in-out infinite;
  background: linear-gradient(135deg, var(--icon-gradient-hover-from), var(--icon-gradient-hover-to));
}

.service-card-icon img {
  width: 40px;
  height: 40px;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-icon img {
  transform: scale(1.15);
}

.service-card h2 {
  font-size: 1.4rem;
  margin: 0 0 16px;
  text-align: center;
  color: var(--brown);
  transition: color 0.3s ease;
}

.service-card:hover h2 {
  color: var(--gold);
}

.service-card p {
  margin: 0;
  max-width: 100%;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: center;
}

/* Page title styling */
.services-page-title {
  text-align: center;
  font-size: 2.8rem;
  margin: 20px 0 50px;
  color: var(--brown);
  position: relative;
  display: inline-block;
  width: 100%;
}

.services-page-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--brown));
  border-radius: 2px;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -24px -20px 60px;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: scale(1.08);
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--hero-overlay-a) 0%, var(--hero-overlay-b) 50%, var(--hero-overlay-a) 100%);
  background-size: 200% 200%;
  animation: heroShimmer 8s ease infinite;
  z-index: 2;
}

@keyframes heroShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: 60px 30px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 24px;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out;
}

.hero-content .hero-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-content .hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 35px;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-content .btn {
  font-size: 1.1rem;
  padding: 14px 35px;
  background: var(--white);
  color: var(--brown);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out 0.6s both;
  transition: all 0.3s ease;
}

.hero-content .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  background: var(--gold);
  color: var(--white);
}

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

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content .hero-subtitle {
    font-size: 1.1rem;
  }
  .hero-content .hero-description {
    font-size: 1rem;
  }
}

/* Feature Cards on Homepage */
.features-section {
  margin: 60px 0;
}

.features-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--brown);
  position: relative;
}

.features-section h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--brown));
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 4px 20px var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 25px;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px var(--card-hover-shadow);
  border-color: var(--gold);
  animation: borderGlow 2s ease-in-out infinite;
}

.feature-card-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--icon-gradient-from), var(--icon-gradient-to));
  border-radius: 50%;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-card-icon {
  animation: iconFloat 1.5s ease-in-out infinite;
  background: linear-gradient(135deg, var(--icon-gradient-hover-from), var(--icon-gradient-hover-to));
}

.feature-card-icon img {
  width: 45px;
  height: 45px;
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-card-icon img {
  transform: scale(1.15);
}

.feature-card-content h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: var(--brown);
  font-weight: 700;
  transition: color 0.3s ease;
}

.feature-card:hover .feature-card-content h3 {
  color: var(--gold);
}

.feature-card-content p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .feature-card {
    flex-direction: column;
    text-align: center;
  }
}

/* About Us Page */
.about-header {
  text-align: center;
  margin: 40px 0 60px;
}

.about-header h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.about-header h1::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--brown));
  border-radius: 2px;
}

.profile-section {
  max-width: 900px;
  margin: 0 auto 80px;
}

.profile-card {
  background: var(--white);
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 8px 30px var(--card-shadow);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  transition: all 0.4s ease;
}

.profile-card:hover {
  box-shadow: 0 12px 45px var(--card-hover-shadow);
  transform: translateY(-5px);
}

@media (min-width: 768px) {
  .profile-card {
    grid-template-columns: 300px 1fr;
  }
}

.profile-image-wrapper {
  position: relative;
}

.profile-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(139, 69, 19, 0.2);
  transition: all 0.4s ease;
  margin: 0 auto;
  display: block;
}

.profile-card:hover .profile-image {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.3);
}

.profile-content h2 {
  color: var(--brown);
  font-size: 2rem;
  margin-bottom: 10px;
}

.profile-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.profile-content p:last-child {
  margin-bottom: 0;
}

/* Values Section */
.values-section {
  margin: 80px 0;
}

.values-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--brown);
  position: relative;
}

.values-section h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--brown));
  border-radius: 2px;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 20px var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px var(--card-hover-shadow);
  border-color: var(--gold);
  animation: borderGlow 2s ease-in-out infinite;
}

.value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--icon-gradient-from), var(--icon-gradient-to));
  border-radius: 50%;
  transition: all 0.4s ease;
}

.value-card:hover .value-icon {
  animation: iconFloat 1.5s ease-in-out infinite;
  background: linear-gradient(135deg, var(--icon-gradient-hover-from), var(--icon-gradient-hover-to));
}

.value-icon img {
  width: 45px;
  height: 45px;
  transition: transform 0.4s ease;
}

.value-card:hover .value-icon img {
  transform: scale(1.15);
}

.value-card h3 {
  color: var(--brown);
  font-size: 1.4rem;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.value-card:hover h3 {
  color: var(--gold);
}

.value-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Contact Page */
.contact-header {
  text-align: center;
  margin: 40px 0 60px;
}

.contact-header h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.contact-header h1::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--brown));
  border-radius: 2px;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr 1.2fr;
  }
}

/* Contact Info Cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-info-card {
  background: var(--white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px var(--card-shadow);
  transition: all 0.4s ease;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--card-hover-shadow);
  border-color: var(--gold);
}

.contact-info-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--icon-gradient-from), var(--icon-gradient-to));
  border-radius: 50%;
  transition: all 0.4s ease;
}

.contact-info-card:hover .contact-info-icon {
  animation: iconFloat 1.5s ease-in-out infinite;
  background: linear-gradient(135deg, var(--icon-gradient-hover-from), var(--icon-gradient-hover-to));
}

.contact-info-icon img {
  width: 30px;
  height: 30px;
}

.contact-info-content h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--brown);
}

.contact-info-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.contact-info-content a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-content a:hover {
  color: var(--brown);
}

/* Contact Form Card */
.contact-form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 45px;
  box-shadow: 0 6px 30px var(--card-shadow);
  transition: all 0.4s ease;
}

.contact-form-card:hover {
  box-shadow: 0 10px 40px var(--card-hover-shadow);
}

.contact-form-card h2 {
  color: var(--brown);
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
}

.contact-form-card form label {
  color: var(--brown);
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form-card form input,
.contact-form-card form textarea {
  border: 2px solid var(--border);
  transition: all 0.3s ease;
}

.contact-form-card form input:focus,
.contact-form-card form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.contact-form-card form .btn {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.contact-form-card form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* Form success/error messages */
.form-message {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

.form-message.success {
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
  border: 2px solid rgba(76, 175, 80, 0.3);
}

.form-message.error {
  background: rgba(244, 67, 54, 0.1);
  color: #c62828;
  border: 2px solid rgba(244, 67, 54, 0.3);
}

/* Footer — sticky reveal */
footer {
  text-align: center;
  padding: 30px 20px;
  background-color: var(--surface);
  border-top: 2px solid var(--gold);
  margin-top: 60px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

footer p {
  margin: 8px 0;
  color: var(--text);
}

/* ... additional styles for sections, icons, form, etc. as per plan ... */
.btn:hover {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

section {
  transition: transform 0.5s ease;
  margin: 28px 0;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--brown), var(--gold));
  z-index: 9999;
  width: 0;
  transition: none;
}

/* Gradient text shimmer on page titles */
.shimmer-title {
  background: linear-gradient(
    90deg,
    var(--brown) 0%,
    var(--gold) 40%,
    var(--brown) 60%,
    var(--gold) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 4s ease-in-out infinite;
}

@keyframes textShimmer {
  0% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Glass morphism CTA button */
.hero-content .btn {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white) !important;
  position: relative;
  overflow: hidden;
}

.hero-content .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: none;
  animation: btnSweep 3s ease-in-out infinite;
}

@keyframes btnSweep {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.hero-content .btn:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white) !important;
}

/* Gold sparkle particles on hero */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(212,175,55,0.9), transparent);
  border-radius: 50%;
  animation: sparkleFloat linear infinite;
  opacity: 0;
}

@keyframes sparkleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  10% {
    opacity: 1;
    transform: scale(1);
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(0.5);
  }
}

/* Magnetic cursor tilt on cards */
.magnetic-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.magnetic-card .card-inner {
  transition: transform 0.15s ease-out;
}

/* Counting numbers */
.count-up {
  font-variant-numeric: tabular-nums;
}

/* Enhanced card entrance */
.card-entrance {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-entrance.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Animation Keyframes ── */
@keyframes iconFloat {
  0%, 100% { transform: translateY(0) scale(1.1); }
  50% { transform: translateY(-8px) scale(1.1); }
}

@keyframes borderGlow {
  0%, 100% { border-color: var(--gold); box-shadow: 0 12px 40px rgba(212, 175, 55, 0.25); }
  50% { border-color: var(--brown); box-shadow: 0 16px 50px rgba(212, 175, 55, 0.4); }
}

/* Hero word reveal animation */
.hero-content h1 .word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: wordReveal 0.6s ease forwards;
}

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark mode profile image */
[data-theme="dark"] .profile-image {
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15);
}

[data-theme="dark"] .profile-card:hover .profile-image {
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.25);
}

/* Dark mode form messages */
[data-theme="dark"] .form-message.success {
  background: rgba(76, 175, 80, 0.08);
  color: #66bb6a;
  border-color: rgba(76, 175, 80, 0.2);
}

[data-theme="dark"] .form-message.error {
  background: rgba(244, 67, 54, 0.08);
  color: #ef5350;
  border-color: rgba(244, 67, 54, 0.2);
}

/* Dark mode skip-link */
[data-theme="dark"] .skip-link {
  background: var(--gold);
  color: #0d0d0d;
}

/* Dark mode borderGlow */
[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .value-card:hover {
  box-shadow: 0 12px 40px rgba(240, 208, 96, 0.12);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .shimmer-title {
    -webkit-text-fill-color: var(--brown);
    background: none;
  }
  .scroll-progress,
  .hero-particles { display: none; }
  .card-entrance { opacity: 1; transform: none; }
  footer { opacity: 1; transform: none; }
}