:root {
  /* High-Contrast Light Theme Palette */
  --bg-main: #f0f2f5;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --accent-red: #c81922;
  --accent-red-glow: rgba(200, 25, 34, 0.25);
  --text-primary: #121418;
  --text-muted: #5a6270;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(200, 25, 34, 0.4);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.08);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==========================================================
   Pulsating Light Gray / Platinum Gradient Animation
========================================================== */
@keyframes pulseLightGrayGradient {
  0% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
  50% {
    background-position: 100% 50%;
    filter: brightness(1.06);
  }
  100% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
}

body {
  min-height: 100vh;
  /* Multi-stop silver, mist, and platinum tones */
  background: linear-gradient(
    -45deg,
    #A6A6A6,
    #D6D6D6,
    #F8F8F8,
    #F7D2D2,
    #EDA9A9
  );
  background-size: 350% 350%;
  animation: pulseLightGrayGradient 14s ease-in-out infinite;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  background: rgba(245, 247, 250, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 58px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-red);
  border-bottom: 2px solid var(--accent-red);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-red-glow);
}

.btn-primary:hover {
  background: #a31119;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(200, 25, 34, 0.4);
}

.btn-outline {
  border-color: #cbd2dc;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  border-color: var(--accent-red);
  background: #ffffff;
  color: var(--accent-red);
}

/* Hero Section */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-red);
  font-weight: 800;
  margin-bottom: 1rem;
  border-left: 3px solid var(--accent-red);
  padding-left: 0.6rem;
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 800;
  color: #0b0c0e;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
}

.hero-visual img {
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.12));
}

/* Sections & Grids */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #0b0c0e;
}

.section-header p {
  color: var(--text-muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
}

/* Cards & Glass Containers */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 2rem;
  color: var(--accent-red);
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: #0b0c0e;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Portfolio Item */
.portfolio-item {
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.portfolio-item:hover {
  border-color: var(--accent-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.portfolio-img {
  height: 240px;
  background: #e2e6ee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6d7685;
  font-weight: 600;
}

.portfolio-info {
  padding: 1.5rem;
}

.portfolio-tag {
  color: var(--accent-red);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 800;
}

/* Portfolio Image Containers */
.portfolio-img-container {
  height: 280px;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.portfolio-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-img-cover,
.portfolio-item:hover .portfolio-img-contain {
  transform: scale(1.04);
}

/* Form Styling */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

input, textarea, select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid #cbd2dc;
  border-radius: 6px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(200, 25, 34, 0.15);
}

/* Footer */
footer {
  background: #e1e5ec;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  color: #0b0c0e;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent-red);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 868px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 85px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 85px);
    background: #f4f6f9;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 3rem;
    gap: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.open {
    left: 0;
  }
}

@media (max-width: 540px) {
  .hero h1 {
    font-size: 2.3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}