/* ========================================
   FLASH FACTORY - DESIGN SYSTEM
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Primary Colors */
  --color-dark-green: #1B3C2D;
  --color-dark-green-light: #264A38;
  --color-dark-green-deep: #132A1F;
  
  /* Accent Colors */
  --color-coral: #E85D4A;
  --color-coral-hover: #D14A38;
  --color-coral-light: #FF7B6A;
  --color-orange: #F09C4A;
  --color-orange-light: #FFB86C;
  --color-peach: #F4C9A0;
  --color-pink: #F2A7B3;
  --color-mint: #6ECFB5;
  --color-teal: #3BA89C;
  --color-purple: #8B7EC8;
  
  /* Neutral Colors */
  --color-cream: #FAF6EF;
  --color-cream-warm: #F5ECDD;
  --color-white: #FFFFFF;
  --color-offwhite: #FDFCFA;
  --color-black: #1A1A1A;
  --color-text: #2D2D2D;
  --color-text-light: #6B6B6B;
  --color-text-muted: #999999;
  --color-border: #E8E2D8;
  --color-border-light: #F0EBE3;
  
  /* Feature strip colors */
  --color-strip-green: #E8F5E9;
  --color-strip-blue: #E3F2FD;
  --color-strip-coral: #FBE9E7;
  --color-strip-purple: #EDE7F6;
  --color-strip-peach: #FFF3E0;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 2px 16px rgba(27, 60, 45, 0.06);
  --shadow-card-hover: 0 8px 30px rgba(27, 60, 45, 0.12);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;
  --container-padding: 0 24px;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-offwhite);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input {
  font-family: inherit;
  border: none;
  outline: none;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* --- Section Titles --- */
.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-coral);
  margin-bottom: 12px;
  display: inline-block;
  position: relative;
}

.section-tag::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-coral);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  transition: var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-coral);
  border-radius: 2px;
  transition: var(--transition-base);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.navbar-links a.active {
  color: var(--color-coral);
}

.navbar-links a:hover {
  color: var(--color-coral);
}

.navbar-cta {
  background: var(--color-coral) !important;
  color: var(--color-white) !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: var(--transition-base) !important;
  box-shadow: 0 2px 12px rgba(232, 93, 74, 0.3);
}

.navbar-cta:hover {
  background: var(--color-coral-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232, 93, 74, 0.4) !important;
}

.navbar-cta::after {
  display: none !important;
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition-base);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  padding: 140px 0 80px;
  background: var(--color-dark-green);
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(110, 207, 181, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 93, 74, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-coral-light);
  margin-bottom: 24px;
  display: inline-block;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.12;
  margin-bottom: 24px;
}

.hero-title .dot {
  color: var(--color-coral);
}

.hero-description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 460px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--color-coral);
  color: var(--color-white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-base);
  box-shadow: 0 4px 20px rgba(232, 93, 74, 0.35);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232, 93, 74, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  transition: var(--transition-base);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.hero-image {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Floating decorative elements */
.hero-float-element {
  position: absolute;
  border-radius: var(--radius-md);
  animation: floatBubble 4s ease-in-out infinite;
}

.hero-float-element.el-1 {
  width: 60px;
  height: 60px;
  background: rgba(110, 207, 181, 0.15);
  top: -20px;
  right: -30px;
  animation-delay: 0.5s;
}

.hero-float-element.el-2 {
  width: 40px;
  height: 40px;
  background: rgba(232, 93, 74, 0.15);
  bottom: 30px;
  left: -20px;
  animation-delay: 1s;
  border-radius: var(--radius-full);
}

@keyframes floatBubble {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

/* ========================================
   FEATURES STRIP
   ======================================== */
.features-strip {
  background: var(--color-cream);
  padding: 60px 0;
  position: relative;
  border-bottom: 1px solid var(--color-border-light);
}

.features-strip .container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.feature-item {
  text-align: center;
  padding: 30px 16px;
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  position: relative;
}

.feature-item:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.5rem;
  transition: var(--transition-base);
}

.feature-item:nth-child(1) .feature-icon {
  background: var(--color-strip-green);
  color: var(--color-dark-green);
}

.feature-item:nth-child(2) .feature-icon {
  background: var(--color-strip-blue);
  color: #1565C0;
}

.feature-item:nth-child(3) .feature-icon {
  background: var(--color-strip-coral);
  color: var(--color-coral);
}

.feature-item:nth-child(4) .feature-icon {
  background: var(--color-strip-purple);
  color: var(--color-purple);
}

.feature-item:nth-child(5) .feature-icon {
  background: var(--color-strip-peach);
  color: var(--color-orange);
}

.feature-item:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
  padding: var(--section-padding);
  background: var(--color-offwhite);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--color-border-light);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-coral), var(--color-orange));
  opacity: 0;
  transition: var(--transition-base);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.6rem;
  position: relative;
}

.service-card:nth-child(1) .service-card-icon {
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
  color: var(--color-dark-green);
}

.service-card:nth-child(2) .service-card-icon {
  background: linear-gradient(135deg, #FBE9E7, #FFCCBC);
  color: var(--color-coral);
}

.service-card:nth-child(3) .service-card-icon {
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  color: #1565C0;
}

.service-card:nth-child(4) .service-card-icon {
  background: linear-gradient(135deg, #EDE7F6, #D1C4E9);
  color: var(--color-purple);
}

.service-card:nth-child(5) .service-card-icon {
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
  color: var(--color-orange);
}

.service-card:nth-child(6) .service-card-icon {
  background: linear-gradient(135deg, #E0F2F1, #B2DFDB);
  color: var(--color-teal);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-card .learn-more {
  color: var(--color-coral);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-base);
}

.service-card .learn-more:hover {
  gap: 10px;
}

.service-card .learn-more .arrow {
  transition: var(--transition-base);
  display: inline-block;
}

.service-card:hover .learn-more .arrow {
  transform: translateX(4px);
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */
.portfolio {
  padding: var(--section-padding);
  background: var(--color-cream);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.portfolio-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: var(--transition-base);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.portfolio-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.portfolio-card:hover .portfolio-card-image img {
  transform: scale(1.08);
}

.portfolio-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(27, 60, 45, 0.85);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.portfolio-card-content {
  padding: 22px 20px;
}

.portfolio-card-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 8px;
}

.portfolio-card-content p {
  font-size: 0.83rem;
  color: var(--color-text-light);
  line-height: 1.55;
  margin-bottom: 16px;
}

.portfolio-card-content .view-case {
  color: var(--color-coral);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-base);
}

.portfolio-card-content .view-case:hover {
  gap: 10px;
}

.portfolio-cta {
  text-align: center;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border: 2px solid var(--color-dark-green);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-dark-green);
  transition: var(--transition-base);
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--color-dark-green);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(27, 60, 45, 0.2);
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
  padding: 30px 0;
  background: var(--color-offwhite);
}

.cta-banner-inner {
  background: linear-gradient(135deg, var(--color-dark-green) 0%, var(--color-dark-green-light) 50%, var(--color-teal) 100%);
  border-radius: var(--radius-xl);
  padding: 60px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.cta-banner-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 93, 74, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner-inner::after {
  content: '';
  position: absolute;
  bottom: -60%;
  left: 20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(110, 207, 181, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 12px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 400px;
}

.cta-button {
  position: relative;
  z-index: 1;
}

.btn-cta {
  background: var(--color-coral);
  color: var(--color-white);
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-base);
  box-shadow: 0 4px 24px rgba(232, 93, 74, 0.4);
  white-space: nowrap;
  cursor: pointer;
}

.btn-cta:hover {
  background: var(--color-coral-hover);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 32px rgba(232, 93, 74, 0.5);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-dark-green-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr 1.4fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo {
  margin-bottom: 18px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-brand .footer-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  transition: var(--transition-base);
}

.footer-socials a:hover {
  background: var(--color-coral);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-column h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--color-coral-light);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-contact-item .contact-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-coral-light);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* Newsletter */
.footer-newsletter p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input {
  width: 100%;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-size: 0.85rem;
  transition: var(--transition-base);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.newsletter-form input:focus {
  border-color: var(--color-coral);
  background: rgba(255, 255, 255, 0.12);
}

.newsletter-form button {
  width: 100%;
  padding: 11px 24px;
  background: var(--color-coral);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-base);
  cursor: pointer;
}

.newsletter-form button:hover {
  background: var(--color-coral-hover);
  transform: translateY(-1px);
}

/* Footer Bottom */
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links a:hover {
  color: var(--color-coral-light);
}

/* ========================================
   ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Staggered card animation */
.service-card.reveal:nth-child(1) { transition-delay: 0s; }
.service-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.service-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.service-card.reveal:nth-child(4) { transition-delay: 0.3s; }
.service-card.reveal:nth-child(5) { transition-delay: 0.4s; }
.service-card.reveal:nth-child(6) { transition-delay: 0.5s; }

.portfolio-card.reveal:nth-child(1) { transition-delay: 0s; }
.portfolio-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.portfolio-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.portfolio-card.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Count-up animation */
@keyframes countPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .section-title { font-size: 2.3rem; }
  .features-strip .container { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-banner-inner { padding: 50px 40px; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }
  
  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 20px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-base);
    z-index: 1000;
  }
  
  .navbar-links.open {
    right: 0;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .mobile-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-title { font-size: 2.4rem; }
  .hero-description { margin: 0 auto 40px; }
  .hero-buttons { justify-content: center; }
  .hero-image { max-width: 400px; }
  
  .features-strip .container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  
  .section-title { font-size: 2rem; }
  
  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }
  
  .cta-content p { margin: 0 auto; }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.9rem; }
  .hero { padding: 120px 0 60px; }
  .section-title { font-size: 1.7rem; }
  .features-strip .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .cta-content h2 { font-size: 1.7rem; }
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--color-dark-green-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-dark-green);
}

/* ========================================
   SELECTION STYLING
   ======================================== */
::selection {
  background: rgba(232, 93, 74, 0.2);
  color: var(--color-dark-green);
}
