/* Base & Reset */
:root {
  /* Premium Luxury Monochrome Palette (White, Black, Grey) */
  --bg-primary: #ffffff;      /* Pure white */
  --bg-secondary: #f4f4f5;    /* Sleek light grey (zinc-100) */
  --bg-tertiary: rgba(255, 255, 255, 0.9);
  
  --accent-primary: #18181b;    /* Sleek dark charcoal/off-black (zinc-900) */
  --accent-secondary: #71717a;  /* Cool grey (zinc-500) */
  --accent-dark: #09090b;       /* Pure black/dark zinc-950 */
  --accent-rgb: 24, 24, 27;     /* RGB of off-black for transparency */
  
  --text-primary: #18181b;      /* Zinc-900 */
  --text-secondary: #52525b;    /* Zinc-600 */
  --text-muted: #a1a1aa;        /* Zinc-400 */
  
  /* Tokens */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(24, 24, 27, 0.08);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}


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

/* Luxury Headings */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: var(--accent-primary);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

ul {
  list-style: none;
}

/* General Layout spacing */
.section {
  padding: 120px 8%;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section {
    padding: 160px 8%;
  }
}

.highlight {
  color: var(--accent-primary);
  font-style: italic;
}

.dot {
  color: var(--accent-primary);
}

/* Minimal Luxury Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 0; /* Sharp corners denote pure high-end luxury architectural styling */
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(28, 25, 23, 0.2);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 46px;
  font-size: 0.9rem;
}

/* Section Title */
.section-title {
  margin-bottom: 5rem;
  text-align: center;
}

.section-title h2 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  font-family: var(--font-serif);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* Premium Floating Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
  background: rgba(250, 249, 246, 0.96);
  box-shadow: var(--glass-shadow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 8%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo Alignment */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
  transition: transform 0.4s ease;
}

.logo:hover .nav-logo-img {
  transform: rotate(5deg) scale(1.05);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--text-primary);
  line-height: 1;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -6px;
  left: 0;
  background-color: var(--accent-primary);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Right Navigation Layout */
.right-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Language Switcher CSS (Luxury Capsule Pill Selector) */
.lang-switcher {
  display: inline-flex;
  background: rgba(28, 25, 23, 0.05); /* Soft beige-charcoal background */
  padding: 4px;
  border-radius: 30px;
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  position: relative;
  gap: 2px;
  align-items: center;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  min-width: 44px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-btn.active {
  background: var(--bg-primary); /* Alabaster white active tab */
  color: var(--text-primary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.lang-btn:hover:not(.active) {
  color: var(--accent-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 4rem;
  padding-top: 140px;
  position: relative;
  overflow: visible;
  z-index: 2; /* Stack on top of .about to let the laptop base draw over it */
  pointer-events: none; /* Clicks pass through empty areas */
}

@media (min-width: 992px) {
  .hero {
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
  }
}

.hero-content {
  z-index: 10;
  pointer-events: auto; /* Re-enable clicks for text/buttons */
}

.greeting {
  color: var(--accent-primary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(3.5rem, 7vw, 6rem);
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary) 50%, var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 550px;
  line-height: 1.5;
}

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

/* Premium Graphics & Orbs */
.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 450px;
  transform-style: preserve-3d; /* Propagate 3D context to prevent clipping on mobile viewports */
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  animation: float-orb 10s ease-in-out infinite alternate;
  opacity: 0.65;
}

.orb-1 {
  width: 350px;
  height: 350px;
  background: rgba(196, 176, 143, 0.22);
  top: 5%;
  right: 5%;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(var(--accent-rgb), 0.15);
  bottom: 5%;
  left: 5%;
  animation-delay: -5s;
}

@keyframes float-orb {
  0% { transform: translate(0px, 0px) scale(1); }
  100% { transform: translate(-30px, -20px) scale(1.08); }
}

/* MacBook Pro Mockup - Photorealistic Space Gray 3D Design */
.macbook-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px; /* Base horizontal design width for laptop + phone + gap */
  perspective: 1600px;
  transform-style: preserve-3d; /* Propagate 3D context to prevent clipping on mobile viewports */
  z-index: 10;
  margin: 0 auto;
  /* Control scale dynamically using CSS variable */
  transform: scale(var(--macbook-scale, 1));
  transform-origin: center top;
  transition: transform 0.1s ease-out;
  pointer-events: auto; /* Re-enable clicks and hover tracking for laptop */
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: 40px;
}

.macbook {
  position: relative;
  width: 540px;
  aspect-ratio: 16 / 10;
  transform-style: preserve-3d;
  transform: rotateX(-10deg) rotateY(0deg); /* Flat front-facing view, matching the reference layout */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  outline: 1px solid transparent;
  flex-shrink: 0;
}

/* Screen Shell Casing - Silver 2026 MacBook Pro */
.macbook-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #09090b; /* Glossy deep black screen */
  border: 6px solid #09090b; /* Modern ultra-thin black screen bezel */
  border-top: 10px solid #09090b; /* Top bezel optimized for camera & notch */
  border-radius: 14px;
  box-shadow: 
    0 0 0 1.2px #e2e8f0, /* Bright silver chamfered metal rim */
    0 0 0 2.5px #cbd5e1, /* Brushed silver outer lid edge */
    0 22px 45px rgba(0, 0, 0, 0.38), /* Deep premium drop shadow */
    inset 0 0 0 1px rgba(255, 255, 255, 0.05); /* Inner screen border highlight */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: bottom center;
  transform: rotateX(24deg);
  outline: 1px solid transparent;
}

/* Glass Screen Reflection Overlay */
.macbook-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 150%;
  height: 150%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
  z-index: 20;
}

/* Hinge Cover to remove alignment gaps at screen bottom */
.macbook-screen::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 5%;
  width: 90%;
  height: 8px;
  background: #000;
  border-radius: 4px;
  z-index: 10;
}

/* Realistic Bezel Notch */
.macbook-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 10px;
  background: #09090b;
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
  z-index: 100;
}

.macbook-camera {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #050505;
  border-radius: 50%;
  border: 1px solid #1f2937;
  box-shadow: inset 0 0 1px #000;
}

/* Blue camera lens reflection */
.macbook-camera::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 1.5px;
  height: 1.5px;
  background: #2563eb;
  border-radius: 50%;
  opacity: 0.8;
}

/* Silver Base Panel - Perfect Hinge Alignment & Proportions */
.macbook-base {
  position: absolute;
  top: 99.5%;
  left: 0;
  width: 100%; /* Perfectly matches display width at the hinge */
  aspect-ratio: 16 / 10; /* Perfectly proportional base aspect ratio */
  background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 45%, #f1f5f9 65%, #94a3b8 100%);
  border-radius: 0 0 20px 20px;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.85), /* Specular chamfered top highlight */
    inset 0 10px 20px rgba(0, 0, 0, 0.05),     /* Ambient shading under screen */
    inset 0 -2px 5px rgba(0, 0, 0, 0.1),       /* Recess shading at bottom */
    0 1px 0 #e2e8f0,                           /* Top light reflection border */
    0 4px 0 #cbd5e1,                           /* Main aluminum chassis side thickness */
    0 5.5px 0 #94a3b8,                         /* Shadow highlight accent border */
    0 6px 1px rgba(0, 0, 0, 0.35),             /* Soft contact occlusion shadow */
    0 22px 40px rgba(0, 0, 0, 0.26);           /* Premium soft table drop shadow */
  transform-style: preserve-3d;
  transform-origin: top center;
  transform: rotateX(90deg);
  outline: 1px solid transparent;
}

/* Lid Opening Recessed Notch */
.macbook-base::after {
  content: '';
  position: absolute;
  bottom: -2.5px; /* Sits precisely on the front vertical thickness face */
  left: 50%;
  transform: translateX(-50%) translateZ(0.2px) rotateX(-90deg);
  transform-origin: bottom center;
  width: 65px;
  height: 3.5px;
  background: #475569; /* Slate gray representing the recessed opening notch */
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.6),
    0 0.5px 0.5px rgba(255, 255, 255, 0.2);
}

/* Keyboard Well & Key Placement Map */
.macbook-keyboard {
  position: absolute;
  top: 14%;
  left: 6%;
  width: 88%;
  height: 46%;
  background-color: #080706; /* Deep anodized black keyboard well */
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05); /* Extremely subtle top sheen */
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.95);
  padding: 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5px;
}

.key-row {
  display: flex;
  width: 100%;
  gap: 2.5px;
  height: 15%;
}

.key-row.row-1 {
  height: 10%;
}

.key {
  background: #1a1816; /* Matte dark charcoal keycaps */
  border-radius: 2px;
  flex: 1;
  position: relative;
  box-shadow: 
    0 0 0 0.5px rgba(0, 0, 0, 0.85),            /* Sharp key border */
    inset 0 1px 0.5px rgba(255, 255, 255, 0.07), /* Key cap top bevel sheen */
    inset 0 -1px 0.5px rgba(0, 0, 0, 0.6),       /* Key cap bottom depth */
    0 0 2.5px rgba(255, 255, 255, 0.48),        /* Bright warm-white backlight bleed glow */
    0 0 0.5px rgba(255, 255, 255, 0.25);
  
  /* Keycap Text Styling */
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95); /* Bright backlit illuminated text */
  text-shadow: 
    0 0 1.5px rgba(255, 255, 255, 0.65), /* Specular text glow */
    0 0 3px rgba(255, 255, 255, 0.2);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 3.5px;
  font-weight: 500;
  text-transform: none; /* Respect HTML lowercase/uppercase case */
  letter-spacing: 0.2px;
  user-select: none;
  pointer-events: none;
}

/* Shrink text on modifier keys to prevent overflow */
.key.tab, 
.key.caps, 
.key.return, 
.key.left-shift, 
.key.right-shift, 
.key.backspace, 
.key.modifier {
  font-size: 2.2px;
  letter-spacing: 0px;
}

/* Special Keycap widths */
.key.backspace { flex: 1.8; }
.key.tab { flex: 1.5; }
.key.backslash { flex: 1; }
.key.caps { flex: 1.8; }
.key.return { flex: 1.8; }
.key.left-shift { flex: 2.3; }
.key.right-shift { flex: 2.3; }
.key.space { flex: 7.5; }
.key.modifier { flex: 1.2; }
.key.arrow { flex: 1; }
.key.double-arrow {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.key.double-arrow .sub-key {
  flex: 1;
  background: #1a1816;
  border-radius: 2px;
  box-shadow: 
    0 0 0 0.5px rgba(0, 0, 0, 0.85),
    inset 0 1px 0.5px rgba(255, 255, 255, 0.05),
    0 0 2.2px rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
  font-size: 2px;
  line-height: 1;
}

/* Touch ID Key Styling */
.key.touch-id {
  background: #080706; /* Solid matte black surface */
  box-shadow: 
    0 0 0 0.5px rgba(0, 0, 0, 0.9),
    inset 0 1px 1px rgba(0, 0, 0, 0.85),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.05); /* Concentric metal edge ring */
  border-radius: 2.5px;
}

/* Silver Frosted Glass Trackpad */
.macbook-trackpad {
  position: absolute;
  bottom: 8%;
  left: 34%;
  width: 32%;
  height: 24%;
  background: linear-gradient(180deg, #f8fafc, #cbd5e1);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12); /* Hairline trackpad gap outline */
  box-shadow: 
    inset 0 1px 2.5px rgba(0, 0, 0, 0.08),
    0 0.5px 0.5px rgba(255, 255, 255, 0.7); /* Shiny chamfered metal rim effect */
}

.macbook-base-front {
  display: none !important;
}

/* Under-chassis soft luxury shadow */
.macbook-shadow {
  position: absolute;
  top: 99.5%;
  left: -5%;
  width: 110%;
  height: 68%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0) 70%);
  filter: blur(16px);
  z-index: -1;
  pointer-events: none;
  transform-origin: top center;
  transform: rotateX(90deg) translateZ(-8px);
}

.mockup-website {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 7px; /* Leave room for bottom bezel bar */
  background: var(--bg-primary);
  z-index: 5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.macbook-bezel-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 7px;
  background: #09090b; /* Matches deep black bezel */
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Bezel boundary divider */
}

.macbook-bezel-bottom span {
  color: rgba(255, 255, 255, 0.45); /* Engraved silver text effect */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 3.5px;
  font-weight: 500;
  letter-spacing: 0.6px;
  line-height: 1;
}


.mockup-scroll-container {
  width: 100%;
  height: min-content;
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 12px;
}

@keyframes mockup-scroll {
  0%, 15% { transform: translateY(0); }
  45%, 55% { transform: translateY(-28%); }
  85%, 100% { transform: translateY(-48%); }
}

/* iPhone 17 Pro Mockup - Premium Vector Styling */
.iphone-17 {
  position: relative;
  width: 120px;
  height: 260px;
  background: #09090b; /* Glossy deep black chassis body */
  border-radius: 24px;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.85), /* Specular chamfered metal rim */
    0 0 0 2.2px #e2e8f0, /* Titanium silver edge outline */
    0 0 0 3.2px #cbd5e1, /* Brushed metal side bevel shadow */
    0 15px 35px rgba(0, 0, 0, 0.38), /* Soft ambient table shadow */
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  /* Removed preserve-3d to force Safari to treat the iPhone as a single flat 2D layer before rotating, fixing all inner 3D rendering bugs */
  /* Flat front-facing design, projected forward in Z-space to float in front of the laptop display */
  transform: translate3d(0, 0, 100px) rotateY(0deg) rotateX(0deg);
  pointer-events: none; /* Let hover events pass to the MacBook wrapper */
  z-index: 50;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-bottom: -15px; /* sit slightly lower to ground it visually next to laptop base */
  margin-left: -40px; /* Overlap laptop right bezel on desktop */
}
/* Add physical side buttons protruding from the metal rim */
.iphone-button {
  position: absolute;
  background: linear-gradient(to bottom, #cbd5e1, #94a3b8);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  z-index: -1;
}

.iphone-button.action-btn {
  top: 48px;
  left: -2.2px;
  width: 2.2px;
  height: 10px;
  border-radius: 1.5px 0 0 1.5px;
}

.iphone-button.volume-up {
  top: 70px;
  left: -2.2px;
  width: 2.2px;
  height: 18px;
  border-radius: 1.5px 0 0 1.5px;
}

.iphone-button.volume-down {
  top: 94px;
  left: -2.2px;
  width: 2.2px;
  height: 18px;
  border-radius: 1.5px 0 0 1.5px;
}

.iphone-button.power-btn {
  top: 78px;
  right: -2.2px;
  width: 2.2px;
  height: 24px;
  border-radius: 0 1.5px 1.5px 0;
}

/* Inner Screen Frame with Bezels */
.iphone-screen-frame {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  background: #09090b;
  border-radius: 20px;
  box-shadow: inset 0 0 3px rgba(0,0,0,0.85);
  /* Force Safari to properly isolate this layer and prevent dropping the child content */
  isolation: isolate;
  transform-style: flat;
  -webkit-transform-style: flat;
  z-index: 1;
  /* Removed overflow: hidden as it causes iOS Safari rendering bugs with 3D transforms */
}

/* Screen reflection overlay inside the scaled viewport wrapper */
.iphone-screen-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 150%;
  height: 150%;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
  z-index: 200; /* Ensure reflection covers the status bar and scrolls cleanly */
}

/* Dynamic Island Capsule */
.iphone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 10px;
  background: #000;
  border-radius: 5px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  box-shadow: 0 0 1px rgba(255,255,255,0.15);
}

.iphone-camera {
  width: 3.5px;
  height: 3.5px;
  background: #080706;
  border-radius: 50%;
  border: 0.5px solid #1f2937;
  position: relative;
}

.iphone-camera::after {
  content: '';
  position: absolute;
  top: 0.8px;
  left: 0.8px;
  width: 1.2px;
  height: 1.2px;
  background: #2563eb;
  border-radius: 50%;
  opacity: 0.7;
}

/* Viewport for Mobile Content */
.iphone-screen-content {
  position: absolute;
  top: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  width: 320px;
  height: 720px; /* 252px / 0.35 = 720px */
  border-radius: 52px; /* Scales down visually (52 * 0.35 = 18.2px) to match the concentric geometry of the bezel */
  overflow: hidden;
  background: var(--bg-primary);
  transform: scale(0.35); /* Scale 320px viewport layout down to fit 112px visual screen width */
  transform-origin: top left;
  z-index: 5;
}

/* iPhone Status Bar */
.iphone-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: var(--bg-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 150;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

.iphone-status-bar .status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.iphone-status-bar .status-icons ion-icon {
  font-size: 12px;
  color: var(--text-primary);
}

.iphone-screen-content .mini-hamburger {
  display: block !important;
  font-size: 16px !important;
  color: var(--text-primary);
  cursor: pointer;
}

/* Hide hamburger in laptop screen */
.macbook-screen .mini-hamburger {
  display: none !important;
}

/* Scroll container inside phone is unscaled, fills the 320px viewport */
.iphone-screen-content .mockup-scroll-container {
  width: 100%;
  padding: 12px !important;
  padding-top: 36px !important; /* Spacing for sticky status bar + nav bar */
  gap: 16px !important;
  background: var(--bg-primary);
  animation: mockup-scroll 14s ease-in-out infinite alternate;
}

/* Mobile-Responsive Specific Mockup Styles */
.iphone-screen-content .mini-links {
  display: none !important;
}

.iphone-screen-content .mini-logo {
  gap: 5px;
}

.iphone-screen-content .mini-logo-text {
  font-size: 8px !important;
  letter-spacing: 0.1em !important;
}

.iphone-screen-content .mini-logo img {
  height: 14px !important;
}

.iphone-screen-content .mini-nav {
  padding: 8px 12px !important;
}

.iphone-screen-content .mini-hero {
  padding: 24px 12px !important;
  gap: 8px !important;
}

.iphone-screen-content .mini-greeting {
  font-size: 7px !important;
}

.iphone-screen-content .mini-title {
  font-size: 18px !important;
}

.iphone-screen-content .mini-tagline {
  font-size: 8px !important;
}

.iphone-screen-content .mini-buttons {
  gap: 6px !important;
  margin-top: 2px !important;
}

.iphone-screen-content .mini-btn-primary,
.iphone-screen-content .mini-btn-secondary {
  font-size: 7px !important;
  padding: 4px 8px !important;
}

.iphone-screen-content .mini-section {
  padding: 16px 12px !important;
}

.iphone-screen-content .mini-section-title {
  font-size: 12px !important;
  margin-bottom: 10px !important;
}

.iphone-screen-content .mini-about-grid {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

.iphone-screen-content .mini-about-para {
  font-size: 8px !important;
  line-height: 1.4 !important;
}

.iphone-screen-content .mini-skill-title {
  font-size: 8px !important;
  margin-bottom: 4px !important;
}

.iphone-screen-content .mini-skills-grid {
  gap: 3px !important;
}

.iphone-screen-content .mini-skill-tag {
  font-size: 7px !important;
  padding: 2px 4px !important;
}

.iphone-screen-content .mini-projects-grid {
  gap: 10px !important;
}

.iphone-screen-content .mini-project-img {
  height: 40px !important;
}

.iphone-screen-content .mini-project-content {
  padding: 6px !important;
  gap: 3px !important;
}

.iphone-screen-content .mini-project-title {
  font-size: 9px !important;
}

.iphone-screen-content .mini-text-line {
  height: 2px !important;
}

/* Contact shadow underneath the iPhone chassis */
.iphone-shadow {
  position: absolute;
  bottom: -12px;
  left: 10%;
  width: 80%;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(6px);
  z-index: -1;
  pointer-events: none;
  transform: rotateX(80deg);
}


.mini-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.mini-logo {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-logo-text {
  font-family: var(--font-display);
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.mini-links {
  display: flex;
  gap: 6px;
  font-size: 4.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.mini-hero {
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.mini-greeting {
  color: var(--accent-primary);
  font-size: 5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mini-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-primary);
}

.mini-subtitle {
  margin: 2px 0 6px;
  width: 90%;
}

.mini-tagline {
  font-size: 5.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  font-family: var(--font-serif);
  font-style: italic;
}

.mini-buttons {
  display: flex;
  gap: 4px;
}

.mini-btn-primary {
  background: var(--text-primary);
  color: #fff;
  font-size: 4.5px;
  padding: 3px 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mini-btn-secondary {
  border: 1px solid rgba(28, 25, 23, 0.2);
  color: var(--text-primary);
  font-size: 4.5px;
  padding: 3px 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mini-section {
  padding: 14px 10px;
  background: var(--bg-secondary);
}

.mini-section.alt-bg {
  background-color: var(--bg-primary);
}

.mini-section-title {
  font-family: var(--font-serif);
  font-size: 9px;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.mini-section-title span.highlight-text {
  color: var(--accent-primary);
  font-style: italic;
}

.mini-about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6px;
}

.mini-about-para {
  font-size: 4.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.mini-skills {
  background: var(--bg-primary);
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  border-radius: 0;
  padding: 5px;
}

.mini-skill-title {
  font-size: 5px;
  font-weight: 500;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mini-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.mini-skill-tag {
  padding: 1px 3px;
  font-size: 4px;
  color: var(--accent-primary);
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
}

.mini-projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.mini-project-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mini-project-img {
  height: 24px;
  width: 100%;
}

.mini-project-content {
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-project-title {
  font-size: 6px;
  font-weight: 500;
  color: var(--text-primary);
}

.mini-text-line {
  height: 2px;
  background: rgba(28, 25, 23, 0.1);
  border-radius: 1px;
}
.mini-text-line.w-100 { width: 100%; }
.mini-text-line.w-80 { width: 80%; }

/* About Section */
.about {
  background: var(--bg-secondary);
  position: relative;
  border-top: 1px solid rgba(var(--accent-rgb), 0.05);
  z-index: 1; /* Stack below .hero to prevent clipping the laptop base */
}

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

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 6rem;
  }
}

.about-text p {
  margin-bottom: 2rem;
  font-size: 1.35rem;
  font-family: var(--font-serif);
  line-height: 1.65;
  color: var(--text-secondary);
}

.skills-container {
  background: var(--bg-primary);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  padding: 3rem;
  border-radius: 0;
}

.skills-container h3 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-serif);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tag {
  background: rgba(var(--accent-rgb), 0.05);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  color: var(--accent-primary);
  padding: 8px 18px;
  border-radius: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-tag:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Projects Section (Minimal Luxury Gallery) */
.projects {
  background-color: var(--bg-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

.project-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  border-radius: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: var(--glass-shadow);
}

.project-image {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-card:hover .image-placeholder,
.project-card:hover .project-image img {
  transform: scale(1.04);
}

/* Sophisticated Pastel Gradients */
.bg-gradient-1 { background: linear-gradient(135deg, #E6DFD3 0%, #D4C5B9 100%); }
.bg-gradient-2 { background: linear-gradient(135deg, #D4C5B9 0%, #CBBCA9 100%); }
.bg-gradient-3 { background: linear-gradient(135deg, #CBBCA9 0%, #E6DFD3 100%); }

.project-content {
  padding: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-links {
  display: flex;
  justify-content: flex-end;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.project-links a {
  font-size: 1.4rem;
  color: var(--text-muted);
}

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

.project-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
  flex-grow: 1;
  line-height: 1.6;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tech-stack span {
  padding: 2px 0;
  margin-right: 14px;
  color: var(--accent-primary);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
}

/* Contact Section (High-End Agency Sign-off) */
.contact {
  background: var(--bg-secondary);
  text-align: center;
  border-top: 1px solid rgba(var(--accent-rgb), 0.05);
}

.contact-card {
  max-width: 650px;
  margin: 0 auto;
  padding: 5rem 3rem;
  border-radius: 0;
  background: var(--bg-primary);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
}

/* Premium Contact Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  text-align: left;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

@media (min-width: 576px) {
  .form-row {
    flex-direction: row;
  }
  .form-row .form-group {
    flex: 1;
  }
}

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

.form-group label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 2px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-primary);
  background: var(--bg-primary);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.08);
}

/* Custom Dropdown select indicator */
.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper::after {
  content: '\25BE'; /* Down arrow symbol */
  font-size: 0.8rem;
  color: var(--accent-primary);
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.form-group select {
  width: 100%;
  appearance: none; /* Hide default native arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Success status toast banner */
.form-status {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  display: none;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-status.success {
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent-primary);
}

.form-status.visible {
  display: block;
}

@keyframes slide-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.social-links a {
  font-size: 1.6rem;
  color: var(--text-muted);
}

.social-links a:hover {
  color: var(--accent-primary);
  transform: translateY(-3px);
}

/* Socials Standalone Section */
.socials-section {
  background: var(--bg-primary);
  padding: 6rem 8%;
  text-align: center;
  border-top: 1px solid rgba(var(--accent-rgb), 0.05);
}

.socials-container {
  max-width: 600px;
  margin: 0 auto;
}

.socials-tagline {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  display: block;
  margin-bottom: 1.2rem;
}

.socials-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

.socials-section .social-links {
  margin-top: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary) !important;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.social-btn ion-icon {
  font-size: 1.45rem;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-btn::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-primary);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.social-btn:hover {
  border-color: var(--accent-primary);
  color: var(--bg-primary) !important;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.social-btn:hover::before {
  top: 0;
}

.social-btn:hover ion-icon {
  transform: scale(1.08);
}

/* Luxury Editorial Footer */
footer {
  background-color: var(--bg-primary);
  padding: 3rem 8%;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid rgba(var(--accent-rgb), 0.08);
}

footer p {
  margin-bottom: 0.5rem;
}

.copyright {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Fade-In & Scroll Reveal Classes */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Responsive Mobile & Tablet Optimizations */
@media (max-width: 768px) {
  /* Spacing */
  .section {
    padding: 80px 6%;
  }

  .nav-container {
    padding: 0.9rem 6%;
  }

  /* Header & Navigation */
  .menu-toggle {
    display: block;
    z-index: 1001; /* Keep it clickable above the menu */
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: none;
    flex-direction: column;
    padding: 100px 10% 4rem 10%; /* Leave space for the fixed header */
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    gap: 0;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    align-items: flex-start;
  }
  
  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.2rem 0;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
  }

  .nav-links a::after {
    display: none; /* Remove desktop hover underline on mobile */
  }

  .nav-links.active a {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered cascade animation */
  .nav-links.active li:nth-child(1) a { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(2) a { transition-delay: 0.15s; }
  .nav-links.active li:nth-child(3) a { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(4) a { transition-delay: 0.25s; }

  /* Logo scaling */
  .nav-logo-img {
    height: 34px;
  }
  .logo-text {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
  }

  /* Hero Section Mobile Formatting */
  .hero {
    padding-top: 100px;
    gap: 2rem;
    min-height: auto;
  }
  
  .hero h1 {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
  }

  .subtitle {
    font-size: 1.15rem;
    margin-bottom: 2rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
  }

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

  .hero-graphic {
    min-height: auto;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .macbook-wrapper {
    width: 100%;
    max-width: 540px !important;
    margin: 2.5rem auto 0 auto;
    display: flex !important;
    flex-direction: row !important; /* Keep side-by-side on mobile viewports */
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 20px !important;
    min-width: 0 !important;
    /* Shift slightly left to counteract the 3D perspective making the right side (iPhone) heavier */
    transform: scale(var(--macbook-scale, 1)) translateX(-5%) !important;
  }

  .macbook {
    width: 420px !important; /* Scale laptop down slightly on mobile so the side-by-side fits screen */
    aspect-ratio: 16 / 10 !important;
    transform: rotateX(-10deg) rotateY(0deg) !important; /* Flat on mobile too */
  }

  .iphone-17 {
    width: 90px !important; /* Slightly smaller layout width, but 3D perspective will enlarge it visually */
    height: 195px !important;
    margin-bottom: -40px !important; /* Pull down to align with extended laptop base */
    margin-left: -60px !important; /* Natural overlap on the right bezel */
    /* Push phone far forward in Z-space (280px) so it sits completely IN FRONT of the 3D laptop base which extends to Z~258px */
    transform: translate3d(0, 0, 280px) rotateY(0deg) rotateX(0deg) !important; 
    z-index: 50 !important;
  }

  .iphone-screen-content {
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    transform: scale(0.25625) !important;
    transform-origin: top left !important;
    width: 320px !important;
    height: 720px !important;
  }

  /* Brighter keyboard glow for mobile view */
  .macbook-keyboard .key {
    box-shadow: 
      0 0 0 0.5px rgba(0, 0, 0, 0.85),
      inset 0 1px 0.5px rgba(255, 255, 255, 0.1),
      inset 0 -1px 0.5px rgba(0, 0, 0, 0.6),
      0 0 4px rgba(255, 255, 255, 0.8),
      0 0 1px rgba(255, 255, 255, 0.4) !important;
    color: rgba(255, 255, 255, 1) !important;
    text-shadow: 
      0 0 2px rgba(255, 255, 255, 0.9),
      0 0 4px rgba(255, 255, 255, 0.4) !important;
  }

  .mockup-scroll-container {
    padding: 6px;
    gap: 8px;
  }

  .mini-title {
    font-size: 12px;
  }

  .mini-hero {
    padding: 12px 6px;
  }

  .mini-section {
    padding: 10px 6px;
  }

  /* Text & Cards adjustments */
  .section-title {
    margin-bottom: 3rem;
  }

  .section-title h2 {
    font-size: 2.4rem;
  }

  .about-grid {
    gap: 2.5rem;
  }

  .about-text p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .skills-container {
    padding: 2rem 1.5rem;
  }

  .skills-container h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }

  .projects-grid {
    gap: 2rem;
  }

  .project-content {
    padding: 1.8rem;
  }

  .project-card h3 {
    font-size: 1.5rem;
  }

  .contact-card {
    padding: 3rem 1.5rem;
  }

}
