/* BIM Takeoff Web Styles - Updated October 2025 with Advanced Animations
 * 
 * Typography: Per updated brand guidelines, using Inter for all web text
 * - Headings: Inter Bold (700) / Semi-bold (600)
 * - Body Text: Inter Regular (400) - optimized for screen rendering
 * - Note: Lora serif font reserved for print/PDF documents only
 * 
 * Colors: Official BIM Takeoff brand palette
 * - Primary: Orange #FF9900, Charcoal #2C2C2C, White #FFFFFF
 * - Secondary: Light Gray #F0F0F0, Medium Gray #757575
 */

/* Import Brand Fonts - Inter for all web text */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* BIM Takeoff Brand Colors */
:root {
  --bim-orange: #FF9900;
  --bim-orange-hover: #E68A00;
  --bim-charcoal: #2C2C2C;
  --bim-white: #FFFFFF;
  --bim-light-gray: #F0F0F0;
  --bim-medium-gray: #757575;
  --font-heading: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
}

/* ============================================
   SMOOTH SCROLLING
   ============================================ */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--bim-charcoal);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Remove any top margin/padding from main content */
#quarto-content,
main,
.quarto-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Ensure first element has no top margin */
#quarto-content > :first-child,
main > :first-child,
.quarto-container > :first-child {
  margin-top: 0 !important;
}

/* Hide the page title (keeps it for SEO/browser tab) */
.quarto-title,
#title-block-header,
.title {
  display: none !important;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ============================================
   SCROLL PROGRESS INDICATOR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bim-orange) 0%, var(--bim-orange-hover) 100%);
  width: 0%;
  z-index: 9999;
  transition: width 0.2s ease-out;
  box-shadow: 0 2px 5px rgba(255, 153, 0, 0.3);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--bim-orange);
  color: var(--bim-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.scroll-to-top:hover {
  background: var(--bim-orange-hover);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(255, 153, 0, 0.6);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============================================
   LOADING ANIMATIONS
   ============================================ */
body:not(.loaded) .hero-title,
body:not(.loaded) .hero-subtitle,
body:not(.loaded) .cta-primary,
body:not(.loaded) .cta-secondary {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* ============================================
   ENHANCED CARD ANIMATIONS
   ============================================ */
.feature-card,
.portfolio-item,
.trust-badge {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  will-change: transform;
}

.feature-card:hover,
.portfolio-item:hover,
.trust-badge:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* ============================================
   NAVBAR ANIMATIONS
   ============================================ */
.navbar {
  transition: box-shadow 0.3s ease;
}

/* Navbar Logo Styling */
.navbar-brand img {
  max-height: 50px;
  width: auto;
}

/* Hide the site title text next to logo - show only logo */
.navbar-brand .navbar-title {
  display: none !important;
}

.navbar-title {
  display: none !important;
}

.navbar {
  background-color: var(--bim-charcoal) !important;
}

/* Navbar Font Styling - Consistent with Brand */
.navbar-nav .nav-link,
.navbar-nav .nav-item .nav-link,
.navbar .navbar-nav .nav-link {
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  color: var(--bim-white) !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item .nav-link:hover {
  color: var(--bim-orange) !important;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-item .nav-link.active {
  color: var(--bim-orange) !important;
}

/* Dropdown menu styling */
.navbar .dropdown-menu {
  background-color: var(--bim-charcoal);
  border: 1px solid var(--bim-orange);
  animation: fadeIn 0.3s ease-out;
}

.navbar .dropdown-menu .dropdown-item {
  font-family: var(--font-heading) !important;
  font-weight: 500 !important;
  color: var(--bim-white) !important;
  transition: all 0.3s ease;
}

.navbar .dropdown-menu .dropdown-item:hover {
  background-color: var(--bim-orange);
  color: var(--bim-white) !important;
  transform: translateX(5px);
}

/* Language switcher styling */
.navbar-nav .nav-link[href*="/pl/"],
.navbar-nav .nav-link[href="index.qmd"] {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  color: var(--bim-white) !important;
}

/* ============================================
   TYPOGRAPHY WITH ANIMATIONS
   ============================================ */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
}

h2 {
  border-bottom: 3px solid var(--bim-orange);
  padding-bottom: 8px;
  color: var(--bim-charcoal);
  position: relative;
  overflow: hidden;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--bim-orange-hover);
  transition: width 0.6s ease;
}

h2:hover::after {
  width: 100%;
}

h3 {
  color: var(--bim-charcoal);
}

/* ============================================
   HERO SECTION WITH ENHANCED PARALLAX
   ============================================ */
.hero-section {
  background-image: linear-gradient(rgba(44, 44, 44, 0.3), rgba(64, 64, 64, 0.3)), url('../images/header-background.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--bim-white);
  padding: 80px 0;
  text-align: center;
  margin-bottom: var(--spacing-xxl);
  margin-top: 0;
  position: relative;
  min-height: 600px;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* Video background container */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-video-bg video {
  position: absolute;
  top: 0;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  max-width: none;
  transform: translateX(-50%);
  object-fit: cover;
  object-position: center top;
  transition: transform 0.1s ease-out;
}

/* Dark overlay over video */
.hero-video-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(44, 44, 44, 0.3), rgba(64, 64, 64, 0.3));
  z-index: 1;
}

/* Ensure hero content is above video and overlay */
.hero-section > .container,
.hero-section .container {
  position: relative;
  z-index: 10;
  padding: 0 32px;
  max-width: 1200px;
  margin: 0 auto;
  transition: opacity 0.3s ease-out;
}

.hero-logo {
  margin-bottom: 32px;
  text-align: center;
}

.hero-logo img {
  max-width: 300px;
  height: auto;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--bim-white);
  margin-bottom: 24px;
  line-height: 1.2;
  position: relative;
  z-index: 10;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-title h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--bim-white);
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-title h3 {
  color: var(--bim-orange);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--bim-white);
  margin-bottom: 32px;
  line-height: 1.4;
  position: relative;
  z-index: 10;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle p {
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--bim-white);
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ============================================
   CTA BUTTONS WITH ENHANCED ANIMATIONS
   ============================================ */
.cta-primary {
  display: inline-block;
  background-color: var(--bim-orange);
  color: var(--bim-white);
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-primary:hover::before {
  width: 300px;
  height: 300px;
}

.cta-primary:hover {
  background-color: var(--bim-orange-hover);
  transform: translateY(-2px);
  color: var(--bim-white);
  box-shadow: 0 5px 15px rgba(255, 153, 0, 0.4);
}

.cta-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--bim-white);
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid var(--bim-white);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--bim-white);
  transition: left 0.3s ease;
  z-index: -1;
}

.cta-secondary:hover::before {
  left: 0;
}

.cta-secondary:hover {
  color: var(--bim-charcoal);
  border-color: var(--bim-white);
}

/* ============================================
   FEATURE GRID
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin: 48px 0;
}

.feature-card {
  background: white;
  padding: 32px;
  border-left: 4px solid var(--bim-orange);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 153, 0, 0.1), transparent);
  transition: left 0.5s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card h3 {
  margin-top: 0;
  color: var(--bim-charcoal);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
}

.feature-card h3 i {
  font-size: 32px;
  margin-right: 12px;
  color: var(--bim-orange);
  transition: transform 0.3s ease;
}

.feature-card:hover h3 i {
  transform: scale(1.2) rotate(5deg);
}

.feature-card p {
  font-family: var(--font-body);
  color: var(--bim-charcoal);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.feature-card a {
  color: var(--bim-orange);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.feature-card a:hover {
  text-decoration: underline;
  padding-left: 5px;
}

/* Override for CTA buttons inside feature cards */
.feature-card a.cta-primary {
  color: var(--bim-white) !important;
}

.feature-card a.cta-primary:hover {
  color: var(--bim-white) !important;
  text-decoration: none;
  padding-left: 32px;
}

/* ============================================
   STATS SECTION WITH ANIMATED COUNTERS
   ============================================ */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 48px 0;
  padding: 32px;
  background: linear-gradient(135deg, var(--bim-charcoal) 0%, #3a3a3a 100%);
  color: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat {
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.stat:hover {
  background: rgba(255, 153, 0, 0.1);
  transform: translateY(-5px);
}

.stat-number,
.stat-number p {
  font-size: 48px;
  font-weight: 700;
  color: var(--bim-orange);
  display: block;
  font-family: var(--font-heading);
  margin: 0;
  transition: all 0.5s ease;
}

.stat:hover .stat-number {
  transform: scale(1.1);
  text-shadow: 0 0 20px rgba(255, 153, 0, 0.5);
}

.stat-label,
.stat-label p {
  font-size: 16px;
  color: var(--bim-light-gray);
  font-family: var(--font-body);
  margin: 0;
}

/* ============================================
   TRUST SECTION
   ============================================ */
.trust-section {
  background: linear-gradient(135deg, var(--bim-light-gray) 0%, #e0e0e0 100%);
  padding: 48px 32px;
  text-align: center;
  margin: 48px 0;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.trust-badge {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px;
}

.trust-badge h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--bim-charcoal);
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
  display: flex;
  align-items: center;
}

.trust-badge h4 i {
  color: var(--bim-orange);
  transition: transform 0.3s ease;
}

.trust-badge:hover h4 i {
  transform: scale(1.3) rotate(10deg);
}

.trust-badge p {
  font-family: var(--font-body);
  color: var(--bim-charcoal);
  margin: 0;
  font-size: 14px;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-table {
  width: 100%;
  margin: 32px 0;
  border-collapse: collapse;
}

.comparison-table thead {
  background: var(--bim-charcoal);
  color: white;
}

.comparison-table th,
.comparison-table td {
  padding: 16px;
  text-align: left;
  font-family: var(--font-body);
  transition: background 0.3s ease;
}

.comparison-table th {
  font-family: var(--font-heading);
  font-weight: 700;
}

.comparison-table tr:nth-child(even) {
  background-color: var(--bim-light-gray);
}

.comparison-table tr:hover {
  background-color: rgba(255, 153, 0, 0.1);
}

.comparison-table .highlight {
  color: var(--bim-orange);
  font-weight: 700;
}

.comparison-table td strong {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* ============================================
   PROCESS STEPS WITH ANIMATIONS
   ============================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  counter-reset: step-counter;
}

.process-step {
  position: relative;
  padding: 24px 32px 32px 32px;
  background: var(--bim-light-gray);
  border-radius: 8px;
  counter-increment: step-counter;
  transition: all 0.3s ease;
}

.process-step:hover {
  background: linear-gradient(135deg, var(--bim-light-gray) 0%, #e8e8e8 100%);
  transform: translateY(-5px);
}

.process-step::before {
  content: counter(step-counter);
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--bim-orange);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  font-family: var(--font-heading);
  box-shadow: 0 4px 10px rgba(255, 153, 0, 0.3);
  transition: all 0.3s ease;
}

.process-step:hover::before {
  transform: scale(1.1) rotate(360deg);
  box-shadow: 0 6px 15px rgba(255, 153, 0, 0.5);
}

.process-step h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--bim-charcoal);
  margin-top: 60px;
  margin-bottom: 12px;
  font-size: 18px;
}

.process-step p {
  font-family: var(--font-body);
  color: var(--bim-charcoal);
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin: 48px 0;
}

.portfolio-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-10px) scale(1.02);
}

.portfolio-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-content {
  padding: 24px;
}

.portfolio-content h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--bim-charcoal);
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 20px;
}

.portfolio-content p {
  font-family: var(--font-body);
  color: var(--bim-charcoal);
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.portfolio-meta {
  margin: 12px 0;
}

.portfolio-tag {
  background: var(--bim-orange);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  display: inline-block;
  margin: 8px 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: all 0.3s ease;
}

.portfolio-tag:hover {
  background: var(--bim-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(255, 153, 0, 0.3);
}

.portfolio-tag p {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  color: white;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  margin: 48px 0;
}

.faq-item {
  background: white;
  border-left: 4px solid var(--bim-orange);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

.faq-question,
.faq-question p,
.faq-question strong {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--bim-charcoal);
  margin-top: 0;
}

.faq-answer,
.faq-answer p {
  font-family: var(--font-body);
  color: var(--bim-charcoal);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   CALLOUT BOX
   ============================================ */
.callout-box {
  background: linear-gradient(135deg, var(--bim-light-gray) 0%, #e8e8e8 100%);
  border-left: 4px solid var(--bim-orange);
  padding: 24px;
  margin: 32px 0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.callout-box:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.callout-box h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--bim-charcoal);
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 20px;
}

.callout-box p {
  font-family: var(--font-body);
  color: var(--bim-charcoal);
  margin-bottom: 12px;
  line-height: 1.6;
}

.callout-box a.cta-primary {
  margin-top: 16px;
}

/* Fix secondary button visibility on light backgrounds */
.callout-box .cta-secondary {
  color: var(--bim-charcoal);
  border-color: var(--bim-charcoal);
}

.callout-box .cta-secondary:hover {
  background-color: var(--bim-charcoal);
  color: var(--bim-white);
  border-color: var(--bim-charcoal);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
  max-width: 600px;
  margin: 32px auto;
  padding: 32px;
  background: var(--bim-light-gray);
  border-radius: 8px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--bim-medium-gray);
  border-radius: 4px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--bim-orange);
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Image sections for visual breaks */
.image-section {
  margin: 48px 0;
  text-align: center;
}

.image-section img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.image-section img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.text-center {
  text-align: center;
}

.mt-xl {
  margin-top: 32px;
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-section {
    min-height: 400px;
    padding: 48px 0;
  }
  
  .hero-section .container {
    padding: 0 16px;
  }
  
  .hero-title,
  .hero-title h1 {
    font-size: 32px;
  }
  
  .hero-subtitle,
  .hero-subtitle p {
    font-size: 18px;
  }
  
  .feature-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}
