:root {
  --bg-primary: #050505;
  --bg-secondary: #0c0c0c;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --accent-color: #6366f1;
  /* Indigo-600 */
  --accent-shopify: #10b981;
  --accent-glow: rgba(99, 102, 241, 0.4);
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(10, 10, 10, 0.7);

  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 1.2s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1320px;
  --noise-opacity: 0.05;
}

/* Light Mode Overrides */
.light-mode {
  --bg-primary: #E8EDF2;
  /* User specified grey */
  --bg-secondary: #D1D9E0;
  /* Slightly deeper grey for contrast */
  --bg-card: #F3F6F9;
  /* Off-white, not full white */
  --bg-card-hover: #ffffff;
  /* Keeping hover slightly brighter for interaction */
  --text-primary: #1A1C1E;
  /* Dark charcoal */
  --text-secondary: #585F66;
  --accent-glow: rgba(99, 102, 241, 0.12);
  --border-color: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(232, 237, 242, 0.9);
  --noise-opacity: 0.03;
}

.light-mode nav {
  background: rgba(232, 237, 242, 0.8);
  /* Matching #E8EDF2 */
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.light-mode .nav-links a {
  color: #1A1C1E;
  /* Dark charcoal for links */
}

.light-mode .nav-links a:hover,
.light-mode .nav-links a.active {
  color: var(--accent-color);
}

.light-mode .btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.light-mode .tagline {
  background: var(--bg-secondary);
  border-color: rgba(0, 0, 0, 0.05);
}

.light-mode .service-card,
.light-mode .portfolio-card,
.light-mode .process-card,
.light-mode .feature-card {
  background: var(--bg-card);
  border-color: var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.light-mode .service-card:hover,
.light-mode .portfolio-card:hover,
.light-mode .process-card:hover,
.light-mode .feature-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  background: #ffffff;
}

.light-mode .expertise-showcase {
  background: rgba(243, 246, 249, 0.9);
  border-color: var(--border-color);
  box-shadow: 0 15px 35px rgba(26, 28, 30, 0.05);
}

.light-mode .text-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.light-mode .process,
.light-mode footer {
  background-color: var(--bg-secondary);
  background-image: radial-gradient(#cbd5e1 0.5px, transparent 0.5px);
  background-size: 24px 24px;
}

.light-mode .marquee-item {
  opacity: 0.8;
  color: #1A1C1E;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-accent {
  background: linear-gradient(135deg, var(--accent-color) 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-shopify {
  background: linear-gradient(135deg, var(--accent-shopify) 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  transition: padding 0.3s ease;
}

nav.scrolled {
  padding: 0.8rem 0;
  background: var(--glass-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.light-mode nav.scrolled {
  background: rgba(232, 237, 242, 0.98);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

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

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

.nav-links .btn-primary {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.theme-toggle,
.hamburger {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
  background: rgba(255, 255, 255, 0.05);
}

.light-mode .theme-toggle,
.light-mode .hamburger {
  background: rgba(0, 0, 0, 0.05);
}

.theme-toggle:hover,
.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.light-mode .theme-toggle:hover,
.light-mode .hamburger:hover {
  background: rgba(0, 0, 0, 0.1);
}

.hamburger {
  display: none;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.light-mode .btn-primary:hover {
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

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

.btn-outline:hover {
  border-color: var(--text-primary);
  background: var(--bg-card-hover);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 3rem 0;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.03) 0%, transparent 40%);
  z-index: -2;
}

.floating-shape {
  position: absolute;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--accent-color), transparent);
  filter: blur(100px);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.15;
  animation: float 20s infinite alternate ease-in-out;
}

.shape-1 {
  top: 10%;
  left: 10%;
}

.shape-2 {
  bottom: 10%;
  right: 10%;
  background: linear-gradient(135deg, var(--accent-shopify), transparent);
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(50px, 100px) scale(1.2);
  }
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(16, 185, 129, 0.05) 50%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
}

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

.tagline {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  backdrop-filter: blur(5px);
}

@media (min-width: 992px) {
  .tagline {
    font-size: 0.9rem;
    padding: 0.6rem 1.8rem;
    margin-bottom: 2rem;
    margin-top: 3rem;
    letter-spacing: 3px;
  }
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  /* Reduced max size slightly */
  margin-bottom: 1rem;
  /* Reduced from 1.5rem */
  letter-spacing: -1.5px;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  /* Reduced from 2.5rem */
  max-width: 650px;
  margin-inline: auto;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Trusted By Marquee */
.trusted-by {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
  overflow: hidden;
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 4rem;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  min-width: 100%;
  gap: 4rem;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.marquee-item:hover {
  opacity: 1;
}

.marquee-item i {
  font-size: 1.5rem;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Process Section */
.process {
  background: var(--bg-secondary);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
  position: relative;
}

.process-card {
  position: relative;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  transition: var(--transition-normal);
}

.process-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  background: var(--bg-card-hover);
}

.process-step {
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  font-size: 1.2rem;
  box-shadow: 0 0 20px var(--accent-glow);
}

.process-card h3 {
  margin-bottom: 1rem;
}

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

/* Stats Section */
.stats {
  padding: 4rem 0;
  background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h2 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-color) 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 0.8rem;
}

/* Final CTA Section */
.final-cta {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.featured-work {
  padding: 6rem 0;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  z-index: -1;
  filter: blur(80px);
  opacity: 0.4;
}

.cta-content h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-inline: auto;
}

/* Expertise Dual Display */
.expertise-showcase {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  /* Reduced from 4rem */
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.expertise-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.expertise-item i {
  font-size: 2.5rem;
}

.expertise-item.wp i {
  color: var(--accent-color);
}

.expertise-item.shopify i {
  color: var(--accent-shopify);
}

.expertise-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.expertise-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Sections */
section {
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Services Preview */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4rem 2.5rem;
  border-radius: 32px;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
  pointer-events: none;
}

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

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.service-card:nth-child(2) .service-icon {
  color: var(--accent-shopify);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.service-link i {
  transition: var(--transition-fast);
}

.service-link:hover i {
  transform: translateX(5px);
}

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

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

/* Footer */
footer {
  background: var(--bg-secondary);
  padding: 6rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

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

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

.social-icons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: nowrap;
  /* Force one row */
  margin-bottom: 2rem;
  align-items: center;
}

.social-icons a {
  color: var(--text-secondary);
  font-size: 1.4rem;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icons a:hover {
  color: var(--accent-color);
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.1);
}

.light-mode .social-icons a {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.05);
}

.light-mode .social-icons a:hover {
  background: rgba(99, 102, 241, 0.08);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Premium Tools & Utilities */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://grainy-gradients.vercel.app/noise.svg');
  opacity: var(--noise-opacity);
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, var(--accent-color), #8b5cf6);
  z-index: 1001;
  transition: width 0.1s ease-out;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

.preloader.fade-out {
  transform: translateY(-100%);
}

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

.preloader-logo {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: preloaderReveal 0.5s ease forwards 0.2s;
}

.preloader-logo span {
  color: var(--accent-color);
}

.preloader-bar {
  width: 150px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
}

.preloader-progress {
  width: 0%;
  height: 100%;
  background: var(--accent-color);
  animation: preloaderProgress 2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes preloaderReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes preloaderProgress {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

.light-mode ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    padding: 8rem 2rem;
    gap: 2rem;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .nav-links .btn-primary {
    display: inline-block;
    margin-top: 1rem;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: 8rem 0 4rem;
  }

  .hero h1 {
    font-size: 2.8rem;
    line-height: 1.1;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }

  .expertise-showcase {
    flex-direction: column;
    gap: 2rem;
    text-align: left;
    padding: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Unique Features Section */
.features-section {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  padding: 4rem 3rem;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-15px);
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.05);
}

.feature-number {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  position: absolute;
  top: -10px;
  right: 10px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.feature-icon {
  margin-top: 2rem;
  font-size: 2rem;
  color: var(--accent-color);
  opacity: 0.5;
  transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
  opacity: 1;
  transform: scale(1.1);
}

/* Featured Work Gallery */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.portfolio-card {
  transition: var(--transition-normal);
  cursor: pointer;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.portfolio-card {
  position: relative;
  transition: var(--transition-normal);
}

.portfolio-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: var(--transition-normal);
  aspect-ratio: 4/3;
  background: var(--bg-card);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-card:hover .portfolio-image {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  border-color: var(--accent-color);
}

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

.portfolio-info {
  padding: 1.5rem 0.5rem;
}

.portfolio-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  transition: color 0.3s;
}

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

.portfolio-category {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Back to Top Button */
#backToTop {
  display: none;
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--accent-color);
  color: white;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition-normal);
  opacity: 0.8;
}

#backToTop:hover {
  transform: translateY(-5px);
  opacity: 1;
  box-shadow: 0 15px 30px var(--accent-glow);
}

.light-mode #backToTop {
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}