@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;700;800&display=swap');

:root {
  /* Colors */
  --bg-color: #050505;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --accent-color: #ff5722;
  --accent-glow: #ff3d00;
  --accent-gradient: linear-gradient(135deg, #ff8a65, #ff3d00);
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  cursor: none; /* Hide default cursor to use custom one */
  transition: opacity 0.5s ease;
  width: 100%;
  position: relative;
}

html {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
}

body.fade-out {
  opacity: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-gradient);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-glow);
}

/* Custom Cursor Follower */
.cursor-follower {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.1s ease-out, opacity 0.3s ease;
  transform: translate(-50%, -50%);
  filter: blur(2px);
  box-shadow: 0 0 20px var(--accent-glow);
}

.cursor-follower.expanding {
  transform: translate(-50%, -50%) scale(4);
  background: rgba(255, 87, 34, 0.2);
  border: 1px solid var(--accent-color);
}


h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Margin Utilities */
/* Responsive Margin Utilities */
.mb-xl { margin-bottom: clamp(60px, 10vw, 150px); }
.mb-lg { margin-bottom: clamp(40px, 8vw, 120px); }
.mb-md { margin-bottom: clamp(30px, 5vw, 60px); }
.mb-sm { margin-bottom: 20px; }

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Typography Utility */
.text-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Fluid Headings */
h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.6s ease-in-out;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 61, 0, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(255, 61, 0, 0.6);
  transform: translateY(-3px) scale(1.02);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  border-color: var(--accent-color);
  background: rgba(255, 87, 34, 0.05);
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.1) inset;
  transform: translateY(-3px);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: padding var(--transition-normal), background var(--transition-normal), backdrop-filter var(--transition-normal);
}

.header.scrolled {
  padding: 15px 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-primary);
  letter-spacing: -1px;
}

.hero-content-scroll {
  will-change: transform, opacity;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links li a {
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 5px 10px;
  transition: all 0.3s ease;
}

.nav-links li a:hover {
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(255, 61, 0, 0.4);
}


.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-normal);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

/* Dropdown Styles */
.has-dropdown {
  position: relative;
}

.dropdown-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-top: 4px solid;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  min-width: 240px;
  padding: 15px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  z-index: 1002;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu li {
  display: block;
  width: 100%;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 25px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  width: 100%;
}

.dropdown-menu li a::after {
  display: none !important; /* No underline in dropdown */
}

.dropdown-menu li a:hover {
  background: rgba(255, 87, 34, 0.08);
  color: var(--accent-color);
  padding-left: 30px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition-normal), opacity var(--transition-fast);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: clamp(100px, 15vw, 150px);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(255, 61, 0, 0.15) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  transform: translate(25%, -25%);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 15px;
  display: block;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  margin-bottom: 25px;
  line-height: 1.1;
  letter-spacing: -2px;
}

.hero-text {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
  font-size: 0.9rem;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

/* Grids / Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 100%, 400px), 1fr));
  gap: clamp(20px, 5vw, 50px);
  align-items: flex-start;
}

.crystal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  transform: perspective(1000px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y)) translateY(0) scale(1);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.crystal-card.hover-active {
  transition: transform 0.1s ease-out, box-shadow 0.4s ease-out, border-color 0.4s ease-out;
}

/* Small Landscape Image Style */
.floating-landscape {
  position: absolute;
  width: 55px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  z-index: 5;
  transition: transform 0.5s ease;
  pointer-events: none;
}

.floating-landscape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Mouse tracking glow */
.crystal-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 0);
  left: var(--mouse-x, 0);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 61, 0, 0.15) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
  pointer-events: none;
}

.crystal-card:hover {
  transform: perspective(1000px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y)) translateY(-10px) scale(1.02);
  border-color: rgba(255, 87, 34, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 61, 0, 0.15);
  z-index: 10;
}

.crystal-card:hover::before {
  opacity: 1;
}


.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 87, 34, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--accent-color);
  font-size: 24px;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.card-text {
  color: var(--text-secondary);
  font-size: 1rem;
}

.footer {
  background: var(--bg-secondary);
  padding: 80px 0 30px;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h3 {
  font-size: 1.25rem;
  margin-bottom: 25px;
}

.footer-col p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Forms */
.form-group {
  margin-bottom: 25px;
}

.form-control {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 16px 20px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Media Queries */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--bg-secondary);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 100px 40px;
    transition: right var(--transition-normal);
  }
  
  .nav-links.active {
    right: 0;
  }

  /* Mobile Dropdown */
  .has-dropdown .dropdown-menu {
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
  }

  .has-dropdown.active .dropdown-menu {
    max-height: 500px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .has-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
  }

  .dropdown-menu li a {
    padding: 15px 25px; /* Increase hit target */
    font-size: 1rem;
  }
  
  /* Adjusting Paddings & Margins for Mobile */
  .section {
    padding: 60px 0;
  }
  
  .hero {
    padding-top: 120px !important;
  }
  
  .mb-xl { margin-bottom: 80px; }
  .mb-lg { margin-bottom: 60px; }
  .mb-md { margin-bottom: 40px; }

  /* Typography Adjustments */
  .hero-title {
    font-size: 3rem !important;
    text-align: center;
  }
  
  .hero-text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
  }
  
  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .section-title, .section-header {
    text-align: center;
  }
  
  .section-header p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  
  /* Grid Adjustments */
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .grid-2 ul {
    text-align: left;
    display: inline-block;
  }

  /* Reverse Order for alternating layouts on mobile */
  .reverse-mobile {
    display: flex;
    flex-direction: column;
  }
  .reverse-mobile > div:first-child {
    order: 2;
  }
  .reverse-mobile > div:last-child {
    order: 1;
  }

  /* Footer Adjustments */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-col p {
    margin: 0 auto 20px auto;
  }

  /* Form Adjustments */
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .about-image .glowing-element {
    width: 80% !important;
    height: 80% !important;
  }
  .about-image h2 {
    font-size: clamp(2.5rem, 10vw, 4rem) !important;
  }

  /* New Sections Mobile Adjustments */
  .process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .portfolio-grid.grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .stat-num {
    font-size: 2.5rem !important;
  }
  
  .stat-num::after {
    font-size: 1.25rem !important;
  }
  
  .stat-item {
    padding: 10px;
  }

  /* Portfolio Image Adjustments */
  .portfolio-img-wrapper {
    height: 200px;
  }
}

/* Extra Thin Screens Audit */
@media (max-width: 400px) {
  .hero-title {
    font-size: 2.5rem !important;
  }
  .section-title {
    font-size: 2rem !important;
  }
  .container {
    padding: 0 20px;
  }
  .crystal-card {
    padding: 30px 20px;
  }
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-secondary);
}

.faq-sonar {
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  margin-right: 15px;
  position: relative;
  display: inline-block;
}

.faq-sonar::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent-color);
  animation: sonar-pulse 2s infinite;
}

.faq-item.active .faq-sonar::after {
  display: none;
}

.faq-item.active {
  border-color: var(--accent-color);
  background: rgba(255, 87, 34, 0.03);
}

.faq-item.active .faq-answer {
  padding-bottom: 25px;
  max-height: 200px;
}

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-primary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 100%;
  height: 2px;
}

.faq-icon::after {
  height: 100%;
  width: 2px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Testimonials */
.testimonial-card {
  padding: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-quote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: auto;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--accent-color);
}

.testimonial-stars {
  color: #ffd700;
  font-size: 0.9rem;
}

/* --- ULTRA-PREMIUM SCROLLING EFFECTS --- */

/* Velocity Skew */
.skew-on-scroll {
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Parallax Marquee Background Text */
.parallax-marquee-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.05;
}

.parallax-marquee {
  font-size: 15vw;
  font-weight: 900;
  white-space: nowrap;
  color: var(--text-primary);
  text-transform: uppercase;
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  will-change: transform;
}

/* Gradient Focal Point (CSS Variable) */
:root {
  --scroll-focal-x: 50%;
  --scroll-focal-y: 50%;
}

.scroll-gradient-bg {
  background: radial-gradient(circle at var(--scroll-focal-x) var(--scroll-focal-y), rgba(255, 87, 34, 0.05), transparent 60%);
}

/* About specifics */
.about-image {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.about-image img {
  width: 100%;
  height: auto;
  display: block;
}
.about-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--glass-border);
  pointer-events: none;
}

/* --- New Homepage Sections --- */

/* Process Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.process-step {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 40px 30px;
  border-radius: 20px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.process-step:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 87, 34, 0.4);
  transform: translateY(-10px);
}

.step-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 25px;
}

.process-step h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Portfolio Grid */
.portfolio-grid {
  margin-top: 50px;
}

.portfolio-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.portfolio-img-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  position: relative;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-cat {
  color: var(--accent-color);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 10px;
}

.portfolio-content h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.portfolio-link {
  margin-top: auto;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.portfolio-link:hover {
  color: var(--accent-color);
}

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-num::after {
  content: attr(data-suffix);
  font-size: 2rem;
  color: var(--accent-color);
  margin-left: 5px;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Elite Mobile Polish & Safety */
@media (max-width: 768px) {
  /* Prevent iOS zoom on form inputs */
  input, textarea, select {
    font-size: 16px !important;
  }

  /* Zero-Overflow Safety */
  * {
    max-width: 100vw;
  }
}

/* Template-Specific Mobile Polish */
@media (max-width: 768px) {
  /* Reduce Project Hero height on mobile */
  .hero[style*="min-height: 60vh"] {
    min-height: 40vh !important;
  }
  
  /* Project Aspect Ratio on Mobile */
  .reveal-clip[style*="aspect-ratio: 16/9"] {
    aspect-ratio: 4/3 !important;
  }
}
