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

/* Design System Variables */
:root {
  /* Colors - Pure Black & White */
  --bg-primary: #000000;
  --bg-secondary: #111111;
  --bg-tertiary: #1A1A1A;
  --bg-hover: #222222;
  --text-primary: #FFFFFF;
  --text-secondary: #CCCCCC;
  --text-tertiary: #999999;
  --accent-primary: #FFFFFF;
  --accent-secondary: #CCCCCC;
  --accent-hover: #CCCCCC;
  --border-primary: #333333;
  --border-secondary: #444444;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 24px rgba(0, 0, 0, 0.15);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --line-height-body: 1.6;
  --letter-spacing-headline: 0.02em;
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: var(--letter-spacing-headline);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  color: var(--text-secondary);
  line-height: var(--line-height-body);
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 5rem 0;
}



/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-primary);
  z-index: 1000;
  transition: all var(--transition-normal);
  height: 100px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  position: relative;
}

.nav-container > .back-btn {
  order: -1;
  margin-left: -1rem;
}

.nav-container > .nav-logo {
  order: 0;
  flex: 1;
  justify-content: center;
}

.nav-container > .nav-links {
  order: 1;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.25rem;
}

.nav-logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.nav-icon {
  width: 80px;
  height: 80px;
  filter: brightness(0) invert(1);
}

.nav-text-logo {
  height: 120px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Ensure all images in nav-logo have consistent sizing (defaults to icon size) */
.nav-logo img:not(.nav-text-logo) {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

/* Ensure nav-text-logo images have proper sizing (overrides default) */
.nav-logo img.nav-text-logo,
.nav-logo .nav-text-logo {
  width: auto !important;
  height: 120px !important;
  max-width: 200px;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

/* Style text spans in nav-logo for consistency */
.nav-logo span {
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  margin-right: 1rem;
}

.back-btn:hover {
  color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.05);
}

.back-btn svg {
  transition: transform var(--transition-fast);
}

.back-btn:hover svg {
  transform: translateX(-2px);
}

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

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero {
  min-height: auto;
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  padding-top: 110px;
  padding-bottom: 1rem;
  background: var(--bg-primary);
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: flex-start;
  min-height: auto;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}


.hero-title {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 800px;
  /* Advanced readability: Optimal reading width */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Brand Name - Dominant, Bold */
.hero-title-brand {
  display: flex;
  align-items: baseline;
  gap: 0;
  margin-bottom: 0.25rem;
  /* Visual rhythm: Creates breathing room */
}

.hero-title-brand-main {
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--text-primary);
  display: inline-block;
  background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.15);
  position: relative;
  /* Advanced typography: Optical sizing for better readability */
  font-feature-settings: "kern" 1, "liga" 1;
  /* Subtle animation for visual interest */
  animation: fadeInUp 0.8s ease-out;
}

.hero-title-brand-accent {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 300;
  color: var(--text-secondary);
  opacity: 0.35;
  margin-left: 0.125rem;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

/* AI Line - Elegant, Medium */
.hero-title-line {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: 0.375rem;
  margin-top: 0.25rem;
  /* Visual rhythm: Creates clear separation */
}

.hero-title-ai {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.025em;
  color: var(--text-secondary);
  font-style: italic;
  opacity: 0.88;
  /* Advanced readability: Optimal line-height for readability */
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title-separator {
  width: clamp(40px, 8vw, 80px);
  height: 1px;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.35) 0%, 
    rgba(255, 255, 255, 0.15) 50%, 
    transparent 100%);
  flex-shrink: 0;
  margin-top: 0.125rem;
  /* Visual element: Creates elegant separation */
  animation: fadeInScale 1s ease-out 0.3s both;
}

/* Products Line - Readable, Structured */
.hero-title-products {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.625rem;
  margin-left: 0.375rem;
  margin-top: 0.625rem;
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  line-height: 1.65;
  letter-spacing: -0.008em;
  color: var(--text-tertiary);
  max-width: 700px;
  /* Advanced readability: Optimal line-height for body text */
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-title-products-main {
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0.92;
  /* Better contrast for readability */
  transition: opacity 0.3s ease;
}

.hero-title-products-main:hover {
  opacity: 1;
}

.hero-title-products-connector {
  font-weight: 300;
  color: var(--text-tertiary);
  opacity: 0.65;
  font-style: italic;
  font-size: 0.95em;
  /* Subtle size reduction for visual hierarchy */
}

.hero-title-products-action {
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0.98;
  margin-left: 0.125rem;
  position: relative;
  /* Strong emphasis on action word */
  letter-spacing: 0.01em;
}

.hero-title-products-action::after {
  content: '.';
  font-weight: 300;
  opacity: 0.25;
  margin-left: 0.125rem;
}

/* Advanced readability animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}


.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: 500px;
  line-height: 1.4;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 2px solid var(--accent-primary);
  cursor: pointer;
  text-align: center;
  min-width: 140px;
  position: relative;
  overflow: hidden;
}

.hero-cta.primary {
  background: var(--accent-primary);
  color: var(--bg-primary);
  box-shadow:
    0 8px 32px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
}

.hero-cta.secondary {
  background: transparent;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-cta.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.hero-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 12px 48px rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}


.hero-background {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Ensure no filters are applied to the container */
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Changed from cover to contain to avoid cropping */
  min-height: 400px;
  /* Removed aspect-ratio to let video maintain its natural proportions */
  /* Removed image-rendering and transform properties that might affect quality */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.02));
  /* Completely removed backdrop-filter blur - video should now be crystal clear */
}

.hero-decoration {
  position: absolute;
  top: 20%;
  right: 5%;
  opacity: 0.1;
  pointer-events: none;
  z-index: 1;
}

.hero-decoration-icon {
  width: 120px;
  height: 120px;
  filter: brightness(0) invert(1);
  animation: float 6s ease-in-out infinite;
}

/* Tablet and small laptop styles */
@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
  }

  .game-video {
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .hero-decoration {
    display: none; /* Hide background decoration on mobile to reduce clutter */
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.floating-elements {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-device {
  position: absolute;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 16px 64px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(255, 255, 255, 0.1);
  transition: transform 0.6s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.device-1 {
  top: 10%;
  right: 10%;
  width: 120px;
  height: 120px;
  animation: float 6s ease-in-out infinite;
}

.device-2 {
  top: 60%;
  right: 5%;
  width: 100px;
  height: 100px;
  animation: float 8s ease-in-out infinite reverse;
}

.device-3 {
  top: 30%;
  right: -10%;
  width: 140px;
  height: 140px;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

/* Features Section */
.features {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-primary);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-primary);
  transition: all var(--transition-normal);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-primary);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Featured Projects Grid */
.featured-projects {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.projects-grid-2x3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, 220px);
  gap: 2rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 500px) {
  .projects-grid-2x3 {
    grid-template-columns: 220px;
    justify-content: center;
  }
}

.project-nav-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.project-nav-card:not(.coming-soon) {
  cursor: pointer;
}

.project-nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-nav-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.project-nav-card:hover::before {
  opacity: 1;
}

.project-nav-content {
  position: relative;
  z-index: 1;
}

.project-nav-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.project-nav-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.nav-arrow {
  color: var(--accent-primary);
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform var(--transition-fast);
}

.project-nav-card:hover .nav-arrow {
  transform: translateX(4px);
}

.project-nav-card.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
}

.project-nav-card.coming-soon:hover {
  transform: none;
  border-color: var(--border-primary);
  box-shadow: var(--shadow-sm);
}

.project-nav-card.coming-soon .project-nav-content::after {
  content: "Yakında";
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Success Story Section */
.success-story {
  padding: 6rem 0;
  background: var(--bg-tertiary);
}

.success-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.success-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-primary);
}

.success-badge img {
  width: 40px;
  height: 40px;
}

.success-badge span {
  font-weight: 600;
  color: var(--accent-primary);
  font-size: 0.875rem;
}

.success-content blockquote {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
  position: relative;
  padding-left: 2rem;
}

.success-content blockquote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 4rem;
  color: var(--accent-primary);
  font-family: serif;
  opacity: 0.3;
}

.success-visual img,
.success-video {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

/* Mobile/Desktop detection for video backgrounds */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* Mobile devices */
@media (max-width: 768px), (pointer: coarse) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .mobile-only.hero-video,
  .mobile-only.success-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}

/* About Teaser */
.about-teaser {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.about-teaser-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-teaser-content h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.about-teaser-content p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.about-cta {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 2rem;
}

.about-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
}

/* Contact Teaser */
.contact-teaser {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.contact-teaser-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-teaser-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-teaser-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-cta {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
  padding: 1.25rem 3rem;
  border-radius: var(--radius-xl);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.contact-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 64px rgba(255, 255, 255, 0.3);
}/* Page Header */
.page-header {
  padding: 8rem 0 4rem;
  background: var(--bg-primary);
}

.page-header-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.page-header-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.page-header-content > p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.page-description {
  font-size: 1rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Apps Section */
.apps-section {
  padding: 4rem 0;
  background: var(--bg-primary);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.app-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
  border-color: var(--accent-primary);
}

.app-card.featured {
  box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
}

.app-media-gallery {
  position: relative;
  width: 100%;
  max-width: 400px; /* Limit width for portrait aspect ratio */
  height: 600px; /* More balanced height for desktop */
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin: 0 auto; /* Center the portrait container */
}

.video-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.app-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Contain to fit video without cropping */
  object-position: center; /* Center the video content */
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.app-video.active {
  opacity: 1;
  pointer-events: auto;
}

.video-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.indicator.active {
  background: var(--accent-primary);
  transform: scale(1.2);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

.video-text-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.7) 40%,
    rgba(0, 0, 0, 0.3) 70%,
    transparent 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5rem 1.5rem 2rem;
  color: white;
  z-index: 5;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.video-text-overlay h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: white;
}

.video-text-overlay p {
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.9;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.app-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.app-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.stars {
  color: #FFD700;
  font-size: 1rem;
}

.rating-text {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.app-info p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  text-align: left;
}

.app-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.app-features span {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-align: left;
}

.app-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-store-btn.primary {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow-md);
}

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

.app-size {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.app-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

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

.app-tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.app-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-store-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent-primary);
  color: var(--bg-primary);
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.app-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Games Section */
.games-section {
  padding: 4rem 0;
  background: var(--bg-primary);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 2400px;
  margin: 0 auto;
}

.game-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  width: 100%;
  margin: 0 auto;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
  border-color: var(--accent-primary);
}

.game-media-gallery {
  position: relative;
  width: 100%;
  max-width: 400px; /* Limit width for portrait aspect ratio */
  height: 600px; /* More balanced height for desktop */
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin: 0 auto; /* Center the portrait container */
}

.game-media {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.game-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.app-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Contain to fit video without cropping */
  object-position: center; /* Center the video content */
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.app-video.active {
  opacity: 1;
  pointer-events: auto;
}

.video-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.indicator.active {
  background: var(--accent-primary);
  transform: scale(1.2);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

.video-text-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.7) 40%,
    rgba(0, 0, 0, 0.3) 70%,
    transparent 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5rem 1.5rem 2rem;
  color: white;
  z-index: 5;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.video-text-overlay h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: white;
}

.video-text-overlay p {
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.9;
}

.game-card:hover .game-media video {
  transform: scale(1.05);
}

.game-info {
  padding: 1.5rem;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.game-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.game-badges {
  display: flex;
  gap: 0.5rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.live {
  background: #00ba7c;
  color: white;
}

.badge.prototype {
  background: #f4b942;
  color: white;
}

.badge.development {
  background: #666666;
  color: white;
}

.badge.featured {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.game-info > p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.game-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.game-features span {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  text-align: left;
}

.game-card.coming-soon {
  opacity: 0.8;
  position: relative;
}

.game-card.coming-soon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
  pointer-events: none;
}

.game-card.coming-soon .game-info {
  position: relative;
  z-index: 2;
}

.game-media.placeholder {
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-content {
  text-align: center;
  color: var(--text-tertiary);
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.placeholder-content p {
  font-size: 1.125rem;
  margin: 0;
}

.game-card.featured {
  box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
  border-color: var(--accent-primary);
}

.game-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
  opacity: 1;
  transition: opacity var(--transition-normal);
  pointer-events: none;
  z-index: 1;
}

.game-card.featured .game-info {
  position: relative;
  z-index: 2;
}

/* ===== SUPER SIMPLE GAME CARDS ===== */
.game-card {
  background: rgba(22, 22, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(178, 124, 255, 0.2);
}

.game-video {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
}

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

.game-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.game-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.game-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-actions {
  display: flex;
  gap: 0.75rem;
}

.game-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.game-btn.primary {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

.game-btn.secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

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

/* Projects Section */
.projects {
  display: block;
  padding: 8rem 0;
  background: var(--bg-primary);
  background-image:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  clear: both;
  position: relative;
}

.projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, transparent 50%, rgba(255, 255, 255, 0.01) 100%);
  pointer-events: none;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

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

.section-title {
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 400;
}

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


.category-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.project-items {
  display: grid;
  gap: 2rem;
}

.project-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
}

.project-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.project-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 80px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
}

.project-item:hover::before {
  opacity: 1;
}

.project-media {
  position: relative;
  width: 100%;
  height: 300px; /* Increased height for portrait aspect ratio */
  overflow: hidden;
}

.project-media video,
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.project-item:hover .project-media video,
.project-item:hover .project-media img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
}

.project-info h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

/* About Section */
.about {
  display: block;
  padding: 8rem 0;
  background: var(--bg-secondary);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.01) 0%, transparent 40%);
  clear: both;
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.005) 0%, transparent 50%);
  pointer-events: none;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}


.about-description {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}

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

.stat {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  position: relative;
}

.stat-number::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  border-radius: 1px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}


.about-visual img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

/* Contact Section */
.contact {
  display: block;
  padding: 8rem 0;
  background: var(--bg-primary);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
  clear: both;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.005) 0%, transparent 50%);
  pointer-events: none;
}

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

.contact-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.contact-form {
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.25rem;
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
  box-sizing: border-box;
  position: relative;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
  opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.1),
    0 8px 32px rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit {
  width: 100%;
  padding: 1.25rem;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-lg);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow:
    0 8px 32px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
  transition: left 0.6s;
}

.contact-submit:hover::before {
  left: 100%;
}

.contact-submit:hover {
  background: var(--accent-primary);
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 16px 64px rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Playable Ads Section */
.playable-ads {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.playable-ads #games-container {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  padding: 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

#games-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  padding: 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.loading {
  text-align: center;
  padding: 3rem;
  color: #b8b8b8;
  font-size: 1.125rem;
  font-weight: 500;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(42, 42, 42, 0.8) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.loading::before {
  content: '⏳';
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

.no-content {
  text-align: center;
  padding: 3rem;
  color: #b8b8b8;
  font-size: 1.125rem;
  font-weight: 500;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(42, 42, 42, 0.8) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem auto;
  max-width: 400px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.no-content::before {
  content: '🎮';
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.expand-btn {
  display: block;
  margin: 2rem auto 0;
  padding: 1rem 2rem;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.expand-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

.expand-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Web Experiences Section */
.web-experiences {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.web-experiences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.web-experience-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: block;
}

.web-experience-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
  border-color: var(--accent-primary);
}

.web-experience-media {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.web-experience-media img,
.web-experience-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
  border: none;
}

.web-experience-card:hover .web-experience-media img,
.web-experience-card:hover .web-experience-media iframe {
  transform: scale(1.05);
}

.web-experience-content {
  padding: 1.5rem;
  color: var(--text-primary);
}

.web-experience-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

.web-experience-content p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.web-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.web-link:hover {
  color: var(--accent-secondary);
  transform: translateX(4px);
}

/* About Page Styles */
.about-content {
  padding: 6rem 0;
  background: var(--bg-primary);
  display: flex;
  justify-content: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
  width: 100%;
}

.about-card-header {
  margin-bottom: 2rem;
  text-align: center;
}

.about-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all var(--transition-normal);
  width: 100%;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-primary);
}

.about-card-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  color: var(--text-primary);
}

.team-members {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.team-member {
  display: block;
  padding: 1.5rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-primary);
}

.team-member:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.team-member-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

.team-member-content p {
  margin: 0 0 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.team-member:hover .linkedin-link {
  color: var(--accent-secondary);
  transform: translateX(4px);
}

.team-member-detailed {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all var(--transition-normal);
}

.team-member-detailed:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-primary);
}

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  width: 100%;
}

@media (max-width: 1024px) {
  .team-members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .team-members-grid {
    grid-template-columns: 1fr;
  }
}

.team-member-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all var(--transition-normal);
  height: fit-content;
}

.team-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-primary);
}

.company-section {
  margin-top: 2rem;
  text-align: center;
}

.member-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.role-tag {
  background: var(--bg-secondary);
  color: var(--accent-primary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--accent-secondary);
}

.member-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.member-photo {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 3px solid var(--accent-primary);
  flex-shrink: 0;
}

.member-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

.member-title {
  color: var(--text-secondary);
  margin: 0 0 1rem 0;
  font-size: 1rem;
}

.member-experience {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.experience-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-fast);
}

.experience-item:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.experience-company {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.company-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.company-placeholder {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-primary);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.experience-company h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
}

.experience-company p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.3;
}

.experience-date {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 500;
  flex-shrink: 0;
}

.experience-location {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0.5rem 0;
}

.experience-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0.5rem 0;
}

.experience-details {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.experience-details li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.experience-details li:last-child {
  margin-bottom: 0;
}

.experience-skills {
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 500;
  margin: 0.5rem 0 0 0;
}

/* Mobile responsive for detailed team member */
@media (max-width: 768px) {
  .about-card {
    padding: 1rem;
  }

  .team-member-card {
    padding: 1rem;
  }

  .member-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .member-photo {
    width: 80px;
    height: 80px;
  }

  .member-roles {
    justify-content: center;
  }

  .role-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }

  .experience-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .experience-company {
    width: 100%;
  }

  .experience-date {
    align-self: flex-end;
    margin-top: -2rem;
  }

  .experience-item {
    padding: 1rem;
  }
}

.timeline {
  position: relative;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  width: 12px;
  height: 12px;
  background: var(--accent-primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 0 0 3px var(--bg-secondary);
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

.timeline-content p {
  margin: 0 0 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.timeline-detail {
  display: block;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Contact Page Styles */
.contact-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-form-card,
.contact-info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: all var(--transition-normal);
}

.contact-form-card:hover,
.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-primary);
}

.form-header h2,
.info-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

.form-header p,
.info-header p {
  margin: 0 0 2rem 0;
  color: var(--text-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

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

.form-submit-btn {
  padding: 1rem 2rem;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 1rem;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--text-primary);
}

.team-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.linkedin-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-primary);
}

.linkedin-profile:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.linkedin-profile svg {
  color: #0077b5;
  flex-shrink: 0;
}

.linkedin-profile span {
  color: var(--text-primary);
  font-weight: 500;
}

.info-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.info-item ul {
  margin: 0;
  padding-left: 1.5rem;
}

.info-item li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.info-item li:last-child {
  margin-bottom: 0;
}

/* Success Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 3rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.success-icon {
  color: #00ba7c;
  margin-bottom: 1.5rem;
}

.modal-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--text-primary);
}

.modal-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Homepage About Teaser Updates */
.team-links {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.team-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.team-link:hover {
  color: var(--accent-secondary);
  transform: translateX(4px);
}

.team-link svg {
  flex-shrink: 0;
}

.timeline-preview {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-primary);
}

.timeline-preview h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--text-primary);
}

.timeline-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-year {
  font-weight: 600;
  color: var(--accent-primary);
  flex-shrink: 0;
  min-width: 80px;
}

.timeline-desc {
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Footer */
.footer {
  display: block;
  padding: 4rem 0 2rem;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-primary);
  background-image:
    radial-gradient(circle at 25% 75%, rgba(255, 255, 255, 0.01) 0%, transparent 40%),
    radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.005) 0%, transparent 40%);
  clear: both;
  position: relative;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.footer-logo img {
  width: 32px;
  height: 32px;
}

.footer-icon {
  filter: brightness(0) invert(1);
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.footer-links a[href*="privacy-policy"] {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.7;
}

.footer-links a[href*="privacy-policy"]:hover {
  opacity: 1;
}

.footer-social {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-background {
    min-height: 200px;
  }

  .hero-video {
    min-height: 200px;
    object-fit: contain; /* Show full video without cropping */
    height: 100%;
  }

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

  .projects-grid-2x3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .success-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 3px;
    min-height: auto;
    padding-bottom: 0;
  }

  .nav-container {
    padding: 0 0.25rem;
    height: 90px;
  }

  .nav-text-logo {
    height: 60px;
    max-width: 150px;
  }

  .nav-icon {
    width: 60px;
    height: 60px;
  }

  /* Ensure all images in nav-logo have consistent mobile sizing (defaults to icon size) */
  .nav-logo img:not(.nav-text-logo) {
    width: 60px;
    height: 60px;
    max-width: 60px;
    max-height: 60px;
  }

  /* Ensure nav-text-logo images have proper mobile sizing (overrides default) */
  .nav-logo img.nav-text-logo,
  .nav-logo .nav-text-logo {
    width: auto !important;
    height: 60px !important;
    max-width: 150px;
  }

  /* Style text spans in nav-logo for mobile */
  .nav-logo span {
    font-size: 1rem;
    font-weight: 600;
  }

  .nav {
    height: 90px;
  }

  .nav-logo {
    gap: 0rem;
    justify-content: flex-start;
    margin-left: -0.5rem;
    flex-shrink: 0;
    width: auto;
    max-width: fit-content;
  }

  .nav-container > .nav-logo {
    justify-content: flex-start;
    flex: 0 0 auto;
    width: auto;
    max-width: fit-content;
  }

  .nav-logo a {
    display: inline-flex;
    width: auto;
    height: auto;
    flex-shrink: 0;
    pointer-events: auto;
    align-items: center;
    gap: 0.5rem;
    max-width: fit-content;
  }

  /* Ensure nav-logo doesn't expand beyond its content */
  .nav-logo {
    max-width: fit-content;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-link {
    display: none;
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
    gap: 0;
    min-height: auto;
    align-items: stretch;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-visual {
    order: 1;
    width: 100%;
    margin: 0;
  }

  .hero-content {
    order: 2;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .hero-background {
    min-height: 200px;
    margin-bottom: -1rem;
    width: 100%;
  }

  .hero-video {
    min-height: 200px;
    width: 100%;
    margin: 0;
  }

  .hero-title {
    gap: 0.75rem;
    margin-bottom: 1rem;
    margin-top: 0;
    max-width: 100%;
  }

  .hero-title-brand {
    margin-bottom: 0.125rem;
  }

  .hero-title-brand-main {
    font-size: clamp(2.5rem, 12vw, 4rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
  }

  .hero-title-brand-accent {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
    opacity: 0.3;
  }

  .hero-title-line {
    margin-left: 0;
    gap: 0.875rem;
    margin-top: 0.125rem;
  }

  .hero-title-ai {
    font-size: clamp(1.375rem, 6vw, 2rem);
    line-height: 1.4;
    opacity: 0.85;
  }

  .hero-title-separator {
    width: clamp(25px, 10vw, 45px);
    opacity: 0.8;
  }

  .hero-title-products {
    font-size: clamp(1rem, 3.5vw, 1.375rem);
    margin-left: 0;
    margin-top: 0.5rem;
    gap: 0.375rem 0.5rem;
    max-width: 100%;
    line-height: 1.6;
  }

  .hero-title-products-main {
    opacity: 0.88;
  }

  .hero-title-products-connector {
    opacity: 0.6;
  }

  .hero-title-products-action {
    opacity: 0.95;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    margin-top: 0;
    line-height: 1.3;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
  }

  .hero-cta {
    width: 100%;
    max-width: 300px;
  }

  .section-container {
    padding: 0 1rem;
  }

  .features {
    padding: 2rem 0;
  }

  .featured-projects {
    padding: 2rem 0;
  }

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

  .success-story {
    padding: 2rem 0;
  }

  .about-teaser {
    padding: 2rem 0;
  }

  .contact-teaser {
    padding: 2rem 0;
  }

  .contact-teaser-content {
    padding-bottom: 2rem; /* Prevent bottom text cutoff */
  }

  .page-header {
    padding: 4rem 0 2rem;
  }

  /* Ensure footer and bottom content are visible */
  .footer {
    padding-bottom: 3rem;
  }

  body {
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .about-content {
    overflow-x: hidden;
  }

  .about-card {
    box-sizing: border-box;
    max-width: 100%;
  }

  .page-header-content h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .apps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .app-card {
    padding: 1.5rem;
  }

  .game-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .game-media-gallery {
    max-width: 300px; /* Narrower on mobile */
    height: 450px; /* Balanced height for mobile */
  }

  .video-indicators {
    bottom: 10px;
    gap: 6px;
  }

  .indicator {
    width: 6px;
    height: 6px;
  }

  .video-text-overlay {
    padding: 1.5rem 1rem 1rem;
  }

  .video-text-overlay h4 {
    font-size: 1.1rem;
  }

  .video-text-overlay p {
    font-size: 0.8rem;
  }

  .app-features {
    display: none;
  }

  .game-features {
    display: none;
  }

  .app-rating {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .app-media-gallery {
    max-width: 300px; /* Narrower on mobile */
    height: 450px; /* Balanced height for mobile */
  }

  .video-indicators {
    bottom: 10px;
    gap: 6px;
  }

  .indicator {
    width: 6px;
    height: 6px;
  }

  .video-text-overlay {
    padding: 1.5rem 1rem 1rem;
  }

  .video-text-overlay h4 {
    font-size: 1.1rem;
  }

  .video-text-overlay p {
    font-size: 0.8rem;
  }

  .game-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }

  .floating-elements {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .feature-card {
    padding: 2rem;
  }

  .project-nav-card {
    padding: 2rem;
  }

  .success-badge {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .web-experiences-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .web-experience-card {
    max-width: 100%;
  }

  .web-experience-media {
    height: 180px;
  }

  .about-grid {
    gap: 2rem;
  }

  .about-card-header {
    margin-bottom: 1.5rem;
  }

  .team-members-grid {
    gap: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .team-links {
    flex-direction: column;
    gap: 1rem;
  }

  .timeline-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .timeline-year {
    min-width: auto;
  }

  .modal-content {
    padding: 2rem;
    margin: 1rem;
  }
}

/* Playable Ads Styles */
.playableads-card {
  position: relative;
  background: linear-gradient(135deg,
    #ffffff 0%,
    #f8f9fa 50%,
    #e9ecef 100%);
  border: 3px solid #4ade80;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 8px 25px rgba(74, 222, 128, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 240px;
  margin: 0.75rem auto;
  transform-style: preserve-3d;
}

.playableads-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(74, 222, 128, 0.1) 0%,
    transparent 50%,
    rgba(34, 197, 94, 0.1) 100%);
  pointer-events: none;
  z-index: 1;
  border-radius: 21px;
}

.playableads-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow:
    0 16px 40px rgba(74, 222, 128, 0.3),
    0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: #22c55e;
}

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

.playableads-thumbnail {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(45deg, rgba(74, 222, 128, 0.1), rgba(34, 197, 94, 0.1));
}

.playableads-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px 20px 0 0;
}

.playableads-card:hover .playableads-thumbnail img {
  transform: scale(1.05);
  filter: brightness(1.1) saturate(1.2);
}

.playableads-thumbnail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(74, 222, 128, 0.15) 0%,
    transparent 50%,
    rgba(34, 197, 94, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  border-radius: 20px 20px 0 0;
}

.playableads-card:hover .playableads-thumbnail::before {
  opacity: 1;
}

.playableads-thumbnail::after {
  content: '🎮';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg,
    #4ade80 0%,
    #22c55e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 3px 10px rgba(74, 222, 128, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.8);
  z-index: 3;
  transition: all 0.3s ease;
}

.playableads-card:hover .playableads-thumbnail::after {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 4px 15px rgba(74, 222, 128, 0.6);
}

.playableads-info {
  padding: 1rem;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(248, 249, 250, 0.8) 100%);
  border-top: 2px solid #4ade80;
  position: relative;
  z-index: 2;
}

.playableads-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: #1f2937;
  line-height: 1.3;
  text-align: center;
  position: relative;
}

.playableads-title::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg,
    #4ade80 0%,
    #22c55e 100%);
  border-radius: 1px;
}

.playableads-stats {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-weight: 500;
}

.playableads-stats::before {
  content: '👥';
  font-size: 0.9rem;
  opacity: 0.8;
}

.playableads-btn {
  background: linear-gradient(135deg,
    #4ade80 0%,
    #22c55e 100%);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow:
    0 4px 15px rgba(74, 222, 128, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.playableads-btn::before {
  content: '🎮';
  margin-right: 0.25rem;
}

.playableads-btn:hover {
  background: linear-gradient(135deg,
    #22c55e 0%,
    #16a34a 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 6px 20px rgba(74, 222, 128, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.playableads-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    0 2px 10px rgba(74, 222, 128, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modal Styles */
#game-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

#game-modal.active {
  opacity: 1;
  visibility: visible;
}

.phone-container {
  position: relative;
  width: 375px;
  height: 667px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: 30px;
  padding: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 25px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: 0 0 20px 20px;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top: none;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.1);
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: linear-gradient(135deg, #ff3742 0%, #ff282f 100%);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
}

.phone-home-indicator {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 5px;
  background: #333;
  border-radius: 3px;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .phone-container {
    width: 320px;
    height: 568px;
  }

  .playableads-card {
    max-width: 220px;
    margin: 0.5rem auto;
  }

  .playableads-thumbnail {
    height: 120px;
  }

  .playableads-info {
    padding: 0.75rem;
  }

  .playableads-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .playableads-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }

  #games-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .playable-ads #games-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  .playableads-card {
    max-width: 200px;
    margin: 0.5rem auto;
  }

  .playableads-thumbnail {
    height: 110px;
  }

  .phone-container {
    width: 280px;
    height: 497px;
  }

  #games-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .playable-ads #games-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    padding: 0.5rem;
  }
}

/* Portrait Mobile - Specific handling for narrow portrait screens */
@media (max-width: 768px) and (orientation: portrait) {
  .hero-video {
    object-fit: contain !important; /* Show full width without side cropping */
    height: 100% !important;
    min-height: 180px !important;
    width: 100% !important;
  }

  .hero-background {
    min-height: 180px !important;
    aspect-ratio: 9/16; /* Portrait aspect ratio */
  }

  .hero-container {
    padding: 1rem;
  }

  /* ===== MOBILE PLAYABLE ADS CARDS ===== */
  #games-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .playable-ads #games-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .playableads-card {
    min-height: auto;
    padding: 0;
    max-width: none;
  }

  .playableads-thumbnail {
    width: 180px;
    height: 120px;
  }

  .playableads-info {
    padding: 0.75rem;
  }

  .playableads-title {
    font-size: 0.9rem;
  }

  .playableads-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  /* ===== MOBILE GAME CARDS ===== */
  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .game-card {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .game-video {
    max-width: 350px;
  }

  .game-text h3 {
    font-size: 1.1rem;
  }
}

/* Project Video Cards */
.project-video-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  text-decoration: none;
  color: inherit;
  display: block;
  height: 350px;
  width: 220px;
  min-height: 350px;
  max-height: 350px;
  min-width: 220px;
  max-width: 220px;
}

.project-video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-normal);
}

.project-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


.project-video-overlay {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 1.5rem 1rem 1rem;
  color: white;
  transition: bottom var(--transition-normal);
}

.project-video-card:hover .project-video-overlay {
  bottom: 0;
}

.project-video-overlay h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.project-video-overlay p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
}

.app-store-badge {
  display: inline-block;
  background: #007AFF;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.project-video-card:hover .app-store-badge {
  background: #0056CC;
  transform: scale(1.05);
}

/* Video Play Button */
.video-play-button {
  transition: all 0.3s ease;
}

.video-play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(0,0,0,0.9);
}

/* Video loading states */
.game-video {
  transition: opacity 0.3s ease;
}

.game-video[preload="none"] {
  background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
              linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
              linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
              linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  animation: loading-stripes 1s linear infinite;
}

@keyframes loading-stripes {
  0% { background-position: 0 0, 0 10px, 10px -10px, -10px 0px; }
  100% { background-position: 20px 0, 20px 10px, 30px -10px, 10px 0px; }
}

/* Fullscreen video styles */
.game-video:fullscreen {
  background: black;
  object-fit: contain;
}

.game-video:-webkit-full-screen {
  background: black;
  object-fit: contain;
}

  /* Mobile project video cards */
  .project-video-card {
    margin-bottom: 1rem;
    height: 320px;
    min-height: 320px;
    max-height: 320px;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
  }

  .project-video {
    height: 100%;
  }

  .project-video-overlay {
    padding: 1.25rem 0.875rem 0.875rem;
  }

  .project-video-overlay h3 {
    font-size: 1.1rem;
  }

  .project-video-overlay p {
    font-size: 0.85rem;
    margin-bottom: 0.625rem;
  }

  .app-store-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  /* Mobile video optimizations */
  .video-play-button {
    width: 60px !important;
    height: 60px !important;
    font-size: 36px !important;
  }

  .game-video, .project-video {
    /* Reduce video quality hint on mobile */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
  }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
