/* ==========================================================================
   Velocity Creations - Modern Stylesheet
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #e63946;
  --color-primary-dark: #c1121f;
  --color-dark: #1a1a2e;
  --color-darker: #111122;
  --color-text: #333;
  --color-text-light: #666;
  --color-text-muted: #999;
  --color-white: #fff;
  --color-light-bg: #f8f9fa;
  --color-border: #e0e0e0;

  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-max: 1140px;
  --section-padding: 100px 0;
  --transition: 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
  --radius: 12px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 600;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

.btn-accent {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-accent:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

/* --- Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.5px;
}

.nav-brand:hover {
  color: var(--color-white);
  opacity: 0.9;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu li a {
  display: block;
  padding: 8px 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: all var(--transition);
}

.nav-menu li a:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.85) 0%,
    rgba(26, 26, 46, 0.6) 50%,
    rgba(230, 57, 70, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--color-white);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 32px;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 0 auto 40px;
  border-radius: 2px;
}

/* --- Section Common --- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.section-divider {
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-divider-light {
  background: var(--color-white);
}

.section-description {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* --- Services --- */
.services {
  padding: var(--section-padding);
  background: var(--color-light-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--color-white);
  padding: 40px 28px;
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  font-size: 1.5rem;
  transition: transform var(--transition);
}

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

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-dark);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- About --- */
.about {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.85);
}

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

.about-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  font-size: 2.2rem;
  color: var(--color-white);
  margin-bottom: 16px;
}

.about-lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: 16px;
}

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

.about-content strong {
  color: var(--color-white);
}

/* --- Contact --- */
.contact {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.9) 0%,
    rgba(230, 57, 70, 0.6) 100%
  );
}

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

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content h2 {
  font-size: 2.2rem;
  color: var(--color-white);
  margin-bottom: 16px;
}

.contact-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-darker);
  padding: 28px 0;
  text-align: center;
}

.site-footer p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 72px 0;
  }

  /* Mobile Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 0;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
  }

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

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
  }

  .nav-menu li a:hover {
    background: none;
    color: var(--color-primary);
  }

  /* Hero */
  .hero-bg {
    background-attachment: scroll;
  }

  .hero-content h1 {
    letter-spacing: 1px;
  }

  /* About / Contact parallax fallback */
  .about-bg,
  .contact-bg {
    background-attachment: scroll;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card {
    padding: 32px 24px;
  }

  /* About */
  .about {
    padding: 80px 0;
  }

  .about-content {
    text-align: left;
  }

  .about-content .section-divider {
    margin-left: 0;
  }

  /* Contact */
  .contact {
    padding: 80px 0;
  }
}

@media (max-width: 480px) {
  .nav-brand {
    font-size: 1.2rem;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  .section-header h2,
  .about-content h2,
  .contact-content h2 {
    font-size: 1.8rem;
  }
}
