/* HFZY Developments - Premium Portfolio CSS */
/* Mobile-First Responsive Design with Theme Switching */

/* CSS Custom Properties for Theme System */
:root {
  /* Theme Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  /* Elegant Brand Colors */
  --color-gold: #d4af37;
  --color-silver: #c0c0c0;
  --color-platinum: #e5e4e2;
  --gradient-elegant: linear-gradient(135deg, var(--color-gold) 0%, var(--color-silver) 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(192, 192, 192, 0.05) 100%);
  
  /* Theme Variables - Default Light Theme */
  --theme-bg: var(--color-white);
  --theme-text: var(--color-black);
  --theme-text-secondary: var(--color-gray-600);
  --theme-border: var(--color-gray-200);
  --theme-shadow: rgba(0, 0, 0, 0.1);
  --theme-logo: url('../images/logo-black.png');
  --theme-logo-full: url('../images/Full-HFZY-Developments-Black-logo.png');
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Font Sizes - Mobile First */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */
  
  /* Spacing */
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  
  /* Breakpoints */
  --mobile: 320px;
  --tablet: 768px;
  --desktop: 1024px;
  --large: 1440px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-theme: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-index layers */
  --z-loader: 9999;
  --z-modal: 1000;
  --z-nav: 100;
  --z-dropdown: 50;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --theme-bg: var(--color-black);
  --theme-text: var(--color-white);
  --theme-text-secondary: var(--color-gray-300);
  --theme-border: var(--color-gray-700);
  --theme-shadow: rgba(255, 255, 255, 0.1);
  --theme-logo: url('../images/logo-white.png');
  --theme-logo-full: url('../images/Full-HFZY-Developments-White-logo.png');
}

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  /* Mobile viewport fixes */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Ensure page always starts at top */
html, body {
  scroll-behavior: auto !important;
}

/* Re-enable smooth scrolling after loading */
body:not(.loading) {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--theme-text);
  background-color: var(--theme-bg);
  /* Mobile fixes */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  overflow-x: hidden;
  transition: background-color var(--transition-theme), color var(--transition-theme);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Flowing Smoke Atmospheric Background */
.atmospheric-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  overflow: hidden;
}

.geometric-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  background-image: 
    linear-gradient(rgba(212, 175, 55, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.25) 3px, transparent 3px),
    radial-gradient(circle at 75% 75%, rgba(192, 192, 192, 0.2) 2px, transparent 2px);
  background-size: 
    80px 80px,
    80px 80px,
    160px 160px,
    120px 120px;
  background-position:
    0 0,
    0 0,
    0 0,
    60px 60px;
  animation: geometricShift 40s ease-in-out infinite;
}

/* Light theme - darker geometric grid */
[data-theme="light"] .geometric-grid {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 25% 25%, rgba(0, 0, 0, 0.18) 3px, transparent 3px),
    radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.15) 2px, transparent 2px),
    radial-gradient(circle at 10% 90%, rgba(212, 175, 55, 0.08) 40px, transparent 80px),
    radial-gradient(circle at 90% 10%, rgba(192, 192, 192, 0.06) 35px, transparent 70px);
  background-size: 
    80px 80px,
    80px 80px,
    160px 160px,
    120px 120px,
    400px 400px,
    350px 350px;
}

/* Dark theme - enhanced lighter geometric grid */
[data-theme="dark"] .geometric-grid {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.14) 3px, transparent 3px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.12) 2px, transparent 2px),
    radial-gradient(circle at 15% 85%, rgba(212, 175, 55, 0.08) 50px, transparent 100px),
    radial-gradient(circle at 85% 15%, rgba(192, 192, 192, 0.06) 45px, transparent 90px);
  background-size: 
    80px 80px,
    80px 80px,
    160px 160px,
    120px 120px,
    500px 500px,
    400px 400px;
}

@keyframes geometricShift {
  0%, 100% {
    background-position:
      0 0,
      0 0,
      0 0,
      60px 60px;
    opacity: 1;
  }
  25% {
    background-position:
      20px -15px,
      -10px 18px,
      25px -20px,
      80px 40px;
    opacity: 0.8;
  }
  50% {
    background-position:
      -15px 25px,
      25px -8px,
      -20px 35px,
      100px 80px;
    opacity: 1;
  }
  75% {
    background-position:
      10px -20px,
      -18px 12px,
      20px -15px,
      50px 100px;
    opacity: 0.9;
  }
}





.smoke-particle:nth-child(4) {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(128, 128, 128, 0.35) 0%, rgba(128, 128, 128, 0.12) 50%, transparent 70%);
  border-radius: 50%;
  animation: smokeFloat4 28s infinite;
  right: 20%;
  bottom: 10%;
  animation-delay: -15s;
}

.smoke-particle:nth-child(5) {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(128, 128, 128, 0.4) 0%, rgba(128, 128, 128, 0.15) 50%, transparent 70%);
  border-radius: 50%;
  animation: smokeFloat5 32s infinite;
  left: 20%;
  bottom: 30%;
  animation-delay: -25s;
}

/* Theme-specific smoke colors */
[data-theme="light"] .smoke-particle {
  opacity: 1;
}

[data-theme="light"] .smoke-particle:nth-child(1) {
  background: 
    radial-gradient(ellipse 40% 30% at 30% 70%, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 30%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 30%, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 40%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 70%);
  filter: blur(60px);
}

[data-theme="light"] .smoke-particle:nth-child(2) {
  background: 
    radial-gradient(ellipse 50% 40% at 20% 60%, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.18) 35%, transparent 55%),
    radial-gradient(ellipse 30% 50% at 80% 40%, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.12) 40%, transparent 65%);
  filter: blur(70px);
}

[data-theme="light"] .smoke-particle:nth-child(3) {
  background: 
    radial-gradient(ellipse 60% 30% at 50% 20%, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.2) 30%, transparent 50%),
    radial-gradient(ellipse 40% 50% at 30% 80%, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.15) 40%, transparent 60%);
  filter: blur(65px);
}

[data-theme="dark"] .smoke-particle {
  opacity: 1;
}

[data-theme="dark"] .smoke-particle:nth-child(1) {
  background: 
    radial-gradient(ellipse 40% 30% at 30% 70%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.12) 30%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 30%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 40%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 50%, transparent 70%);
  filter: blur(60px);
}

[data-theme="dark"] .smoke-particle:nth-child(2) {
  background: 
    radial-gradient(ellipse 50% 40% at 20% 60%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.1) 35%, transparent 55%),
    radial-gradient(ellipse 30% 50% at 80% 40%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 40%, transparent 65%);
  filter: blur(70px);
}

[data-theme="dark"] .smoke-particle:nth-child(3) {
  background: 
    radial-gradient(ellipse 60% 30% at 50% 20%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.11) 30%, transparent 50%),
    radial-gradient(ellipse 40% 50% at 30% 80%, rgba(255, 255, 255, 0.19) 0%, rgba(255, 255, 255, 0.09) 40%, transparent 60%);
  filter: blur(65px);
}


@keyframes smokeFloat4 {
  0%, 100% { 
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.28;
  }
  30% { 
    transform: translate(-90px, -100px) scale(1.1) rotate(108deg);
    opacity: 0.35;
  }
  70% { 
    transform: translate(80px, -150px) scale(0.85) rotate(252deg);
    opacity: 0.2;
  }
}

@keyframes smokeFloat5 {
  0%, 100% { 
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.22;
  }
  25% { 
    transform: translate(70px, -70px) scale(1.05) rotate(90deg);
    opacity: 0.3;
  }
  50% { 
    transform: translate(-50px, -120px) scale(0.95) rotate(180deg);
    opacity: 0.18;
  }
  75% { 
    transform: translate(110px, -40px) scale(1.08) rotate(270deg);
    opacity: 0.28;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .smoke-particle {
    animation: none;
  }
}

/* Mobile optimization - reduce complexity */
@media (max-width: 768px) {
  .smoke-container {
    opacity: 1;
  }
  
  .smoke-particle:nth-child(n+4) {
    display: none;
  }
  
  [data-theme="light"] .smoke-particle {
    filter: blur(1px);
    opacity: 1;
  }

  [data-theme="dark"] .smoke-particle {
    filter: blur(1px) brightness(2.5);
    opacity: 1;
  }
}

/* Improved text rendering */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  color: var(--theme-text-secondary);
  transition: color var(--transition-theme);
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Cinematic Loading Animation */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-black);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: var(--z-loader);
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
  overflow: hidden;
  padding: var(--space-20) var(--space-4) var(--space-16);
}

/* Lock body scroll when loader is active */
body.loading {
  overflow: hidden;
  height: 100vh;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__logo {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: var(--space-8);
}

.loader__logo-img {
  width: min(600px, 90vw);
  height: auto;
  opacity: 0;
  margin: 0 auto;
  display: block;
  animation: cinematicLogoFadeIn 1.2s ease forwards;
}

/* Dynamic Logo Color Transition */
.loader__logo-container {
  position: relative;
  display: inline-block;
}

.loader__logo-white {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.loader__logo-white.active {
  clip-path: inset(0 0 0 0);
}

/* White Transition Wave */
.loader__transition {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  z-index: 1;
  transition: left 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.loader__transition.active {
  left: 0;
}

@keyframes cinematicLogoFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    filter: drop-shadow(0 8px 32px rgba(212, 175, 55, 0));
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 8px 32px rgba(212, 175, 55, 0.3));
  }
}

@keyframes cinematicProgressBar {
  0% {
    width: 0;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0);
  }
  100% {
    width: 100%;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--theme-border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: var(--z-nav);
  transition: all var(--transition-theme);
}

[data-theme="dark"] .nav {
  background: rgba(0, 0, 0, 0.95);
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav__brand {
  z-index: calc(var(--z-nav) + 1);
}

.nav__logo {
  height: 80px;
  width: auto;
  transition: all var(--transition-theme);
  max-width: 180px;
}

/* Mobile Navigation */
.nav__menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--theme-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  transition: right var(--transition-normal);
}

.nav__menu.active {
  right: 0;
}

.nav__link {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-medium);
  color: var(--theme-text);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-purple-pink);
  transition: width var(--transition-fast);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Hamburger Menu */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: calc(var(--z-nav) + 1);
}

.nav__toggle span {
  width: 25px;
  height: 2px;
  background: var(--theme-text);
  transition: all var(--transition-fast);
}

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

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-20) var(--space-4) var(--space-16);
  position: relative;
  background: linear-gradient(135deg, var(--theme-bg) 0%, rgba(139, 92, 246, 0.03) 100%);
  z-index: 2;
}

.hero__container {
  max-width: 800px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.hero__logo {
  margin-bottom: var(--space-8);
  width: 100%;
}

.hero__logo-img {
  width: min(600px, 90vw);
  height: auto;
  margin: 0 auto;
  opacity: 0;
  animation: heroLogoFadeIn 1s ease 0.5s forwards;
  filter: drop-shadow(0 8px 32px rgba(212, 175, 55, 0.2));
  transition: all var(--transition-slow);
}

.hero__logo-img:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 12px 48px rgba(212, 175, 55, 0.3));
}

.hero__title {
  margin-bottom: var(--space-6);
}

.hero__title-main {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  background: var(--gradient-elegant);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: titleSlideUp 0.8s ease 1s forwards;
  text-shadow: 0 2px 4px rgba(212, 175, 55, 0.1);
}

.hero__tagline {
  font-size: var(--text-lg);
  color: var(--theme-text-secondary);
  margin-bottom: var(--space-10);
  opacity: 0;
  animation: taglineSlideUp 0.8s ease 1.3s forwards;
}

.hero__cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: ctaSlideUp 0.8s ease 1.6s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0.3;
  transition: opacity var(--transition-fast);
  display: none; /* Hide on mobile by default */
}

.hero__scroll:hover {
  opacity: 0.7;
}

.hero__scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--theme-text-secondary);
  font-size: 10px;
  animation: scrollBounce 2s ease-in-out infinite;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}

.hero__scroll-arrow {
  width: 12px;
  height: 12px;
  border-right: 1px solid var(--theme-text-secondary);
  border-bottom: 1px solid var(--theme-text-secondary);
  transform: rotate(45deg);
}

/* Hero Animations */
@keyframes heroLogoFadeIn {
  to {
    opacity: 1;
  }
}

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

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

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

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(60px) rotateX(15deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  border-radius: 6px;
  transition: all var(--transition-fast);
  min-height: 44px; /* Touch-friendly minimum */
  text-align: center;
}

.btn--primary {
  background: var(--gradient-elegant);
  color: var(--color-black);
  box-shadow: var(--shadow-sm);
  font-weight: var(--font-weight-semibold);
}

.btn--primary:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

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

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

.btn--small {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  min-height: 36px;
}

.btn--full {
  width: 100%;
}

/* Section Styles */
section {
  padding: var(--space-20) var(--space-4);
}

.portfolio, .services, .about, .contact {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.portfolio__container,
.services__container,
.about__container,
.contact__container {
  width: 100%;
}

/* Portfolio Section */
.portfolio__header,
.services__header,
.contact__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.portfolio__title,
.services__title,
.contact__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.portfolio__subtitle,
.services__subtitle,
.contact__subtitle {
  font-size: var(--text-xl);
  color: var(--theme-text-secondary);
}

/* Portfolio Filters */
.portfolio__filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
  padding: var(--space-2);
  background: rgba(var(--theme-shadow), 0.03);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--theme-border);
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.portfolio__filter {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--theme-text-secondary);
  background: transparent;
  border: none;
  border-radius: 30px;
  transition: all var(--transition-normal);
  min-height: 40px;
  position: relative;
  overflow: hidden;
}

.portfolio__filter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-elegant);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.portfolio__filter:hover {
  color: var(--theme-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.portfolio__filter:hover::before {
  opacity: 0.1;
}

.portfolio__filter--active {
  color: var(--color-white);
  font-weight: var(--font-weight-semibold);
}

.portfolio__filter--active::before {
  opacity: 1;
}

.filter__icon {
  font-size: var(--text-base);
  transition: transform var(--transition-fast);
}

.portfolio__filter:hover .filter__icon,
.portfolio__filter--active .filter__icon {
  transform: scale(1.1);
}

/* Portfolio Grid */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 400px);
  gap: 2rem;
  justify-content: start;
  padding: 0;
}

.portfolio__item {
  background: var(--theme-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--theme-border);
  position: relative;
  width: 400px !important;
  height: 300px !important;
  min-width: 400px !important;
  max-width: 400px !important;
  min-height: 300px !important;
  max-height: 300px !important;
  flex: none !important;
  transform: none !important;
  display: block !important;
}

/* Mobile portfolio items */
@media (max-width: 768px) {
  .portfolio__item {
    width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    min-width: calc(100vw - 2rem) !important;
    height: auto !important;
    min-height: 250px !important;
    max-height: none !important;
  }
  
  .portfolio__grid {
    grid-template-columns: 1fr !important;
    justify-content: center !important;
    padding: 0 1rem !important;
  }
  
  /* Mobile portfolio images - show full image without cropping */
  .portfolio__item-image {
    aspect-ratio: auto !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  .portfolio__item-image img {
    object-fit: contain !important;
    height: auto !important;
    width: 100% !important;
    max-height: 300px !important;
  }
}

/* Portfolio filtering classes */
.portfolio-hidden {
  display: none !important;
}

.portfolio-visible {
  display: block !important;
}

.portfolio__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-elegant);
  opacity: 0;
  border-radius: 16px;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.portfolio__item {
  animation: floatIn 0.8s ease-out forwards;
  animation-delay: calc(var(--item-index, 0) * 0.1s);
}

.portfolio__item:hover {
  transform: translateY(-16px) scale(1.03) rotateX(2deg);
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
}

.portfolio__item:hover::before {
  opacity: 0.05;
}

.portfolio__item--featured {
  grid-column: 1 / -1;
}

.portfolio__item-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.portfolio__item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio__item:hover .portfolio__item-image img {
  transform: scale(1.05);
}

.portfolio__item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.portfolio__item:hover .portfolio__item-overlay {
  opacity: 1;
}

.portfolio__item-content {
  text-align: center;
  color: var(--color-white);
}

.portfolio__item-content h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.portfolio__item-content p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-4);
}

.portfolio__item-links {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}

.portfolio__item-info {
  padding: var(--space-6);
}

.portfolio__item-info h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.portfolio__item-info p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.portfolio__item-tech {
  font-size: var(--text-xs);
  color: var(--theme-text-secondary);
  font-weight: var(--font-weight-medium);
}

/* Placeholder styles */
.portfolio__item-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: var(--space-8);
  text-align: center;
  background: linear-gradient(135deg, var(--theme-border), transparent);
}

.portfolio__item-icon {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
  opacity: 0.6;
}

/* Services Grid */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.service__card {
  position: relative;
  background: transparent;
  padding: var(--space-10);
  border-radius: 24px;
  text-align: left;
  border: 1px solid transparent;
  transition: all var(--transition-slow);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.service__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(var(--color-gold-rgb, 212, 175, 55), 0.03) 0%, 
    rgba(var(--color-silver-rgb, 192, 192, 192), 0.02) 50%, 
    transparent 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--gradient-elegant);
  z-index: -1;
  opacity: 0;
  transition: all var(--transition-normal);
}

.service__card:hover {
  transform: translateX(8px);
  border-color: rgba(var(--color-gold-rgb, 212, 175, 55), 0.2);
}

.service__card:hover::before {
  opacity: 1;
}

.service__card:hover::after {
  opacity: 1;
  width: 4px;
}

.service__icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(var(--color-gold-rgb, 212, 175, 55), 0.1);
  border-radius: 20px;
  border: 1px solid rgba(var(--color-gold-rgb, 212, 175, 55), 0.2);
  transition: all var(--transition-normal);
}

.service__card:hover .service__icon {
  background: rgba(var(--color-gold-rgb, 212, 175, 55), 0.15);
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(var(--color-gold-rgb, 212, 175, 55), 0.2);
}

.service__card h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  font-weight: var(--font-weight-semibold);
  background: var(--gradient-elegant);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all var(--transition-normal);
}

.service__card:hover h3 {
  transform: translateX(4px);
}

.service__card p {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--theme-text-secondary);
  transition: all var(--transition-normal);
}

.service__card:hover p {
  color: var(--theme-text);
  transform: translateX(4px);
}

/* About Section */
.about__content {
  display: grid;
  gap: var(--space-12);
}

.about__text h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

.about__intro {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  color: var(--theme-text);
}

.about__values {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.about__value h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--theme-text);
}

.about__mission,
.about__vision {
  background: var(--theme-bg);
  padding: var(--space-6);
  border-radius: 12px;
  border: 1px solid var(--theme-border);
  margin-bottom: var(--space-6);
}

.about__mission h3,
.about__vision h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  color: var(--theme-text);
}

/* Contact Section */
.contact__content {
  display: grid;
  gap: var(--space-12);
}

.contact__info h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.contact__cta {
  margin-top: var(--space-6);
}

/* Footer */
.footer {
  background: var(--theme-bg);
  border-top: 1px solid var(--theme-border);
  padding: var(--space-12) var(--space-4) var(--space-6);
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__content {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer__brand {
  text-align: center;
}

.footer__logo {
  height: 32px;
  width: auto;
  margin: 0 auto var(--space-4);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer__links a {
  color: var(--theme-text-secondary);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--theme-text);
}

.footer__bottom {
  text-align: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--theme-border);
  color: var(--theme-text-secondary);
  font-size: var(--text-sm);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-modal);
  display: none;
}

.modal.active {
  display: block;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative !important;
  max-width: 900px !important;
  width: 900px !important;
  margin: var(--space-4) auto !important;
  background: var(--theme-bg);
  border-radius: 12px;
  max-height: calc(100vh - var(--space-8)) !important;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: none !important;
}

/* Mobile Modal Improvements */
@media (max-width: 768px) {
  .modal {
    padding: 0.5rem;
    align-items: flex-start;
    justify-content: center;
  }
  
  .modal__content {
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    margin: 1rem auto 0 auto;
    max-height: calc(100vh - 2rem);
    border-radius: 8px;
    position: relative;
    left: auto;
    transform: none;
  }
  
  .modal__close {
    top: var(--space-2);
    right: var(--space-2);
    width: 32px;
    height: 32px;
    font-size: var(--text-lg);
  }
  
  .modal__body {
    padding: var(--space-4);
  }
}

/* Mobile-Specific Improvements */
@media (max-width: 480px) {
  /* Hero Section */
  .hero {
    padding: var(--space-16) var(--space-4) var(--space-12);
  }
  
  .hero__logo-img {
    width: min(300px, 85vw);
  }
  
  .loader__logo-img {
    width: min(300px, 85vw);
  }
  
  .loader {
    padding: var(--space-16) var(--space-4) var(--space-12);
  }
  
  .hero__title-main {
    font-size: var(--text-3xl);
    line-height: 1.1;
  }
  
  .hero__tagline {
    font-size: var(--text-base);
    margin-bottom: var(--space-8);
  }
  
  .hero__cta {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }
  
  /* Buttons */
  .btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  
  /* Portfolio Section Mobile Fixes */
  .portfolio__container,
  .services__container,
  .about__container,
  .contact__container {
    padding: var(--space-12) var(--space-4);
  }
  
  .portfolio__title,
  .services__title,
  .about__container h2,
  .contact__title {
    font-size: var(--text-2xl);
  }
  
  .portfolio__grid {
    gap: var(--space-6);
    grid-template-columns: 1fr;
  }
  
  /* Portfolio Filters Mobile */
  .portfolio__filters {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-1);
    margin-bottom: var(--space-8);
  }
  
  .portfolio__filter {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    min-height: 32px;
    white-space: nowrap;
  }
  
  .filter__icon {
    font-size: var(--text-sm);
  }
  
  .filter__text {
    display: none;
  }
  
  /* Portfolio Items Mobile */
  .portfolio__item {
    margin-bottom: var(--space-4);
  }
  
  .portfolio__item--featured {
    flex-direction: column;
  }
  
  .portfolio__item-image {
    width: 100%;
    height: 200px;
    margin-bottom: var(--space-4);
  }
  
  .portfolio__item-info {
    width: 100%;
    text-align: center;
  }
  
  .portfolio__item-info h3 {
    font-size: var(--text-lg);
  }
  
  .portfolio__item-info p {
    font-size: var(--text-sm);
  }
  
  /* Coming Soon Cards Mobile */
  .portfolio__coming-soon-preview {
    height: 200px;
  }
  
  .coming-soon__mockup {
    max-width: 160px;
  }
  
  /* Service Cards Mobile */
  .services__grid {
    gap: var(--space-4);
    grid-template-columns: 1fr;
  }
  
  .service__card {
    padding: var(--space-6);
    text-align: center;
  }
  
  .service__card:hover {
    transform: translateY(-4px);
  }
  
  .service__card h3 {
    font-size: var(--text-lg);
  }
  
  .service__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-4) auto;
  }
  
  /* About Section */
  .about__content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .about__values {
    gap: var(--space-4);
  }
  
  .about__value h3 {
    font-size: var(--text-lg);
  }
  
  /* Navigation */
  .nav {
    padding: 0 var(--space-4);
  }
  
  .nav__logo {
    height: 40px;
  }
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  font-size: var(--text-2xl);
  color: var(--theme-text-secondary);
  z-index: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal__close:hover {
  background: var(--theme-border);
  color: var(--theme-text);
}

.modal__body {
  padding: var(--space-8);
}

/* Coming Soon Portfolio Items */
.portfolio__coming-soon-preview {
  position: relative;
  width: 100%;
  height: 300px;
  background: var(--theme-bg);
  border-radius: 12px;
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon__mockup {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9/16;
  background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 20px;
  padding: var(--space-3);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mockup__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Neon Game Preview */
.neon-game__preview {
  padding: var(--space-4);
  height: 100%;
  background: radial-gradient(ellipse at center, #1a0033 0%, #000011 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.neon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin: var(--space-4) 0;
}

.neon-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.5),
    0 0 40px rgba(255, 0, 255, 0.3);
  animation: neonPulse 2s ease-in-out infinite alternate;
}

.neon-dot:nth-child(2) { animation-delay: 0.5s; }
.neon-dot:nth-child(3) { animation-delay: 1s; }
.neon-dot:nth-child(4) { animation-delay: 1.5s; }

@keyframes neonPulse {
  from { 
    transform: scale(0.8);
    opacity: 0.7;
  }
  to { 
    transform: scale(1.2);
    opacity: 1;
  }
}

.game-ui {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ui-element {
  font-size: var(--text-xl);
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
}

/* Website Preview */
.website__preview {
  padding: var(--space-3);
  height: 100%;
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.web-header {
  height: 30px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  padding: var(--space-2);
}

.header-nav {
  display: flex;
  gap: var(--space-2);
}

.nav-item {
  width: 40px;
  height: 4px;
  background: var(--color-gray-400);
  border-radius: 2px;
}

.web-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.content-block {
  height: 60px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  flex: 1;
}

.grid-item {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 6px;
}

/* Design Preview */
.design__preview {
  padding: var(--space-4);
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
}

.brand-elements {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.logo-placeholder {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-shape {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}

.color-palette {
  display: flex;
  gap: var(--space-2);
}

.color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.color1 { background: #ff6b6b; }
.color2 { background: #4ecdc4; }
.color3 { background: #45b7d1; }

.typography-sample {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  width: 80%;
}

.type-line {
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
}

.type-line.short {
  width: 60%;
  height: 6px;
}

/* Coming Soon Overlay */
.coming-soon__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.coming-soon__badge {
  background: var(--gradient-elegant);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
  animation: badgePulse 2s ease-in-out infinite;
}

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

/* Responsive Design */

/* Tablet Styles */
@media (min-width: 768px) {
  /* Typography Scale Up */
  :root {
    --text-4xl: 2.5rem;    /* 40px */
    --text-5xl: 3.5rem;    /* 56px */
    --text-6xl: 4.5rem;    /* 72px */
  }
  
  /* Navigation */
  .nav__menu {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    flex-direction: row;
    gap: var(--space-8);
  }
  
  .nav__toggle {
    display: none;
  }
  
  .nav__link {
    font-size: var(--text-base);
  }
  
  /* Hero */
  .hero__title-main {
    font-size: var(--text-5xl);
  }
  
  .hero__tagline {
    font-size: var(--text-xl);
  }
  
  /* Portfolio Grid */
  .portfolio__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .portfolio__item--featured {
    grid-column: 1 / -1;
  }
  
  /* Services Grid */
  .services__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  /* About Layout */
  .about__content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
  
  .about__values {
    grid-template-columns: 1fr;
  }
  
  /* Contact Layout */
  .contact__content {
    grid-template-columns: 1fr 1fr;
  }
  
  /* Footer */
  .footer__content {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  
  .footer__brand {
    text-align: left;
  }
  
  .footer__logo {
    margin: 0 0 var(--space-4);
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  /* Larger spacing */
  section {
    padding: var(--space-24) var(--space-4);
  }
  
  /* Show scroll indicator only on desktop */
  .hero__scroll {
    display: block;
  }
  
  /* Portfolio Grid */
  .portfolio__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .portfolio__item--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  
  .portfolio__item--featured .portfolio__item-image {
    aspect-ratio: auto;
  }
  
  .portfolio__item--featured .portfolio__item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-8);
  }
  
  /* Services Grid */
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* About Values */
  .about__values {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Desktop Styles */
@media (min-width: 1440px) {
  /* Enhanced typography */
  :root {
    --text-5xl: 4rem;      /* 64px */
    --text-6xl: 5rem;      /* 80px */
  }
  
  .hero__title-main {
    font-size: var(--text-6xl);
  }
  
  /* Larger containers */
  .nav__container,
  .portfolio,
  .services,
  .about,
  .contact,
  .footer__container {
    /* Utility class for hiding elements */
.hidden {
  display: none !important;
}
  }
}

/* Accessibility & Performance */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --theme-border: var(--theme-text);
    --shadow-sm: 0 1px 2px 0 var(--theme-text);
    --shadow-md: 0 4px 6px -1px var(--theme-text);
    --shadow-lg: 0 10px 15px -3px var(--theme-text);
    --shadow-xl: 0 20px 25px -5px var(--theme-text);
  }
}

/* Print styles */
@media print {
  .nav,
  .hero__scroll,
  .loader,
  .modal {
    display: none !important;
  }
  
  body {
    color: black !important;
    background: white !important;
  }
  
  .hero,
  section {
    padding: var(--space-4) 0;
  }
}