/* Enhanced CSS with Visual Improvements and Mobile Responsiveness */

/* Variables */
:root{
  --monitor-w: 900px;
  --monitor-h: 600px;
  --periph-gap-y: 20px;
  --keyboard-w: 570px;
  --keyboard-h: 240px;
  --mousepad-w: 300px;
  --mousepad-h: 240px;
  --pad-y-offset: 28px;
  --mousepad-gap-x: 56px;
  --scene-z-lift: 60px;
  --setup-scale: 1;

    --icloud-bg:
      radial-gradient(ellipse 1000px 600px at 50% 40%, rgba(102,126,234,0.08), transparent 60%),
      radial-gradient(ellipse 800px 500px at 80% 80%, rgba(118,75,162,0.06), transparent 50%),
      linear-gradient(160deg, #080810 0%, #0c0e18 50%, #080810 100%);
  

  /* Color palette (unchanged background vibe) */
  --primary: #667eea;
  --secondary: #191430;
  --accent: #f64f59;
  --success: #48bb78;
  --warning: #ffd700;
  --dark-bg: #1a1a2e; 
  --card-bg: rgba(30,30,46,.98);

  /* iCloud-like card + type */
  --icloud-text: rgba(255,255,255,.92);
  --icloud-subtext: rgba(255,255,255,.68);
  --icloud-hint: rgba(255,255,255,.45);

  --icloud-card: rgba(255,255,255,.08);
  --icloud-card-2: rgba(255,255,255,.06);
  --icloud-border: rgba(255,255,255,.16);
  --icloud-shadow: 0 40px 90px rgba(0,0,0,.55);
}

/* Base reset & background */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "SF Pro Text",
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:#000;
  overflow:hidden;
  height:100vh;
  position:relative
}
.bg-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--icloud-bg);
}

.bg-container::before{
  content:"";
  position:absolute;
  width:200%;
  height:200%;
  top:-50%;
  left:-50%;
  background:radial-gradient(circle,rgba(102,126,234,.08) 1px,transparent 1px);
  background-size:60px 60px;
  opacity:0.35;
  animation:none;
}
.particle{display:none !important;}


/* ========================================
   START SCREEN - Enhanced Premium Glass
   ======================================== */
.mobile-topbar{display:none}
.intro-section{display:none}

/* Main container */
.start-screen {
  background: linear-gradient(135deg, #0a0a14 0%, #0d0d1a 50%, #0a0a14 100%);
  transition: opacity .6s ease, filter .6s ease, transform .6s ease;
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 36px 18px;
  overflow: hidden;
}

/* Subtle ambient glow effects */
.start-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 400px at 50% 100%, rgba(118,75,162,.12), transparent 70%),
    radial-gradient(600px 300px at 80% 90%, rgba(168,85,247,.08), transparent 60%),
    radial-gradient(400px 200px at 20% 80%, rgba(59,130,246,.06), transparent 50%);
}

/* Hidden state */
.start-screen.hidden {
  opacity: 0;
  filter: blur(12px);
  transform: scale(1.03);
  pointer-events: none;
  visibility: hidden;
}

.start-screen.hidden > *::before,
.start-screen.hidden > *::after {
  opacity: 0 !important;
  content: none !important;
}

.start-screen.hidden > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}

/* Card wrapper with entrance animation */
.start-card {
  position: relative;
  width: min(480px, 90vw);
  padding: 50px 60px;
  border-radius: 24px;
  animation: card-entrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  text-align: center;
  background: rgba(20, 20, 35, 0.6);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 0 80px rgba(59,130,246,.08),
    0 0 120px rgba(118,75,162,.06),
    0 25px 50px rgba(0,0,0,.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@keyframes card-entrance {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Controller Icon */
.controller-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, rgba(59,130,246,.15) 0%, rgba(118,75,162,.15) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(59,130,246,.25), 0 0 60px rgba(118,75,162,.15);
  animation: icon-glow 3s ease-in-out infinite alternate;
}

.controller-icon svg {
  width: 36px;
  height: 36px;
  color: #00d4ff;
}

@keyframes icon-glow {
  0% { box-shadow: 0 0 30px rgba(59,130,246,.25), 0 0 60px rgba(118,75,162,.15); }
  100% { box-shadow: 0 0 40px rgba(59,130,246,.35), 0 0 80px rgba(118,75,162,.25); }
}

/* Portfolio eyebrow label */
.start-screen .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #00d4ff;
  margin-bottom: 16px;
  animation: fade-slide-in 0.8s ease 0.3s backwards;
}

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

/* Animated gradient title */
.start-screen .hero-title {
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px 0;
  background: linear-gradient(
    135deg,
    #00d4ff 0%,
    #667eea 35%,
    #a855f7 70%,
    #c084fc 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-entrance 0.8s ease 0.4s backwards;
}

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

/* Subtitle */
.start-screen .hero-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,.5);
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin: 0 0 8px 0;
  animation: fade-slide-up 0.8s ease 0.5s backwards;
}

@keyframes fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Actions container */
.start-screen .start-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  margin-bottom: 20px;
  animation: fade-slide-up 0.8s ease 0.7s backwards;
}

/* Enhanced gradient button */
.start-screen .start-button {
  position: relative;
  padding: 14px 36px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #00d4ff 0%, #667eea 50%, #a855f7 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 4px 20px rgba(0,212,255,.3),
    0 0 40px rgba(168,85,247,.2);
}

/* Shimmer effect on button */
.start-screen .start-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.start-screen .start-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 30px rgba(0,212,255,.4),
    0 0 60px rgba(168,85,247,.3);
}

.start-screen .start-button:hover::before {
  left: 100%;
}

.start-screen .start-button:active {
  transform: translateY(-1px) scale(0.98);
}

/* Hint text */
.start-screen .start-hint {
  font-size: 0.85rem;
  color: rgba(255,255,255,.35);
  margin: 0;
  animation: fade-slide-up 0.8s ease 0.9s backwards;
}

/* Mobile start screen */
@media (max-width: 768px) {
  .start-screen { padding: 22px 14px; }
  .start-card { 
    padding: 36px 28px; 
    width: min(480px, 92vw); 
  }
  
  .controller-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }
  
  .controller-icon svg {
    width: 30px;
    height: 30px;
  }
  
  .start-screen .hero-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
  
  .start-screen .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .start-screen .start-button {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
}

/* ========================================
   DESKTOP GAMING SETUP
   ======================================== */
.gaming-setup{
  position:relative;
  top:50%; left:50%;
  transform:translate(-50%,-50%) perspective(1500px) rotateX(5deg) scale(var(--setup-scale));
  transform-origin:center center;
  transform-style:preserve-3d;
  opacity:0; transition:opacity 1s ease;
  width:calc(var(--monitor-w) + var(--mousepad-gap-x) + var(--mousepad-w) + 80px);
  height:calc(var(--monitor-h) + var(--periph-gap-y) + var(--keyboard-h) + 120px);
}
.gaming-setup.visible{opacity:1;animation:setup-intro 1.2s ease-out}
@keyframes setup-intro{
  from{ transform: translate(-50%,-50%) perspective(1500px) rotateX(90deg) scale(var(--setup-scale)); }
  to{ transform: translate(-50%,-65%) perspective(1500px) rotateX(5deg) scale(var(--setup-scale)); }
}

/* Mobile Navigation */
.mobile-nav{display:none;position:fixed;top:0;left:0;right:0;height:100vh;background:linear-gradient(135deg,#1e1e2e 0%,#2d2d44 100%);z-index:100;padding:20px}
.nav-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:40px;padding-bottom:20px;border-bottom:1px solid rgba(102,126,234,.3)}
.nav-header h2{color:#fff;font-size:24px}
.nav-apps{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px}
.nav-app{background:linear-gradient(135deg,rgba(102,126,234,.2),rgba(126,87,194,.2));border:1px solid rgba(102,126,234,.3);border-radius:20px;padding:30px;text-align:center;cursor:pointer;transition:all .3s ease}
.nav-app:hover{background:linear-gradient(135deg,rgba(102,126,234,.4),rgba(126,87,194,.4));transform:translateY(-5px)}
.nav-icon{font-size:48px;margin-bottom:15px}
.nav-app span{color:#fff;font-weight:600;text-transform:uppercase;letter-spacing:.05em}

.desktop-setup{position:relative;width:100%;height:100%}

/* Monitor */
.monitor{
  width:var(--monitor-w); height:var(--monitor-h);
  background:linear-gradient(145deg,#2d2d2d,#1a1a1a);
  border-radius:24px; position:absolute;
  left:50%; top:0; transform:translateX(-50%) translateZ(0);
  z-index:2; border:3px solid #3a3a3a;
  box-shadow:0 30px 70px rgba(0,0,0,.9),0 0 120px rgba(102,126,234,.25),0 0 200px rgba(168,85,247,.1),inset 0 0 30px rgba(102,126,234,.08);
}
.screen{width:calc(100% - 24px);height:calc(100% - 64px);margin:12px;background:#050508;border-radius:14px;position:relative;overflow:hidden;box-shadow:inset 0 0 80px rgba(0,0,0,.7),inset 0 0 3px rgba(102,126,234,.3)}
.screen::before{content:"";position:absolute;inset:0;background:linear-gradient(transparent 50%,rgba(102,126,234,.02) 50%);background-size:100% 4px;pointer-events:none;animation:scanlines 10s linear infinite;opacity:.7}
@keyframes scanlines{0%{transform:translateY(0)}100%{transform:translateY(10px)}}
.desktop {
  background: var(--icloud-bg);
  width: 100%;
  height: 100%;
  position: relative;
  padding: 35px;

  /* Enhanced background with animated gradient */
  background:
    radial-gradient(ellipse 1200px 700px at 50% 30%, rgba(102,126,234,0.12), transparent 60%),
    radial-gradient(ellipse 900px 550px at 80% 70%, rgba(118,75,162,0.1), transparent 50%),
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(0,212,255,0.06), transparent 50%),
    linear-gradient(160deg, #080810 0%, #0c0e18 50%, #080810 100%);
}

.app-icons{display:grid;grid-template-columns:repeat(2,120px);gap:45px;position:relative;z-index:1}
.app-icon{width:120px;height:120px;border-radius:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:all .4s cubic-bezier(.34,1.56,.64,1);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.12);position:relative;overflow:hidden;background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.04))}
.app-icon::before{content:"";position:absolute;inset:-3px;background:linear-gradient(45deg,#00d4ff,#667eea,#a855f7,#c084fc,#00d4ff);background-size:400% 400%;border-radius:26px;opacity:0;z-index:-1;transition:opacity .4s ease;animation:gradient-rotate 4s ease infinite}
@keyframes gradient-rotate{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
.app-icon::after{content:"";position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:radial-gradient(circle,rgba(255,255,255,.15) 0%,transparent 60%);opacity:0;transition:opacity .4s ease;pointer-events:none}
.app-icon:hover{transform:translateY(-14px) scale(1.12);box-shadow:0 25px 50px rgba(102,126,234,.5),0 0 80px rgba(168,85,247,.3)}
.app-icon:hover::before{opacity:1}
.app-icon:hover::after{opacity:1}
.app-icon .icon{font-size:44px;margin-bottom:12px;filter:drop-shadow(0 3px 8px rgba(0,0,0,.4));transition:transform .3s ease}
.app-icon:hover .icon{transform:scale(1.15) rotate(-5deg)}
.app-icon .label{font-size:11px;color:#fff;font-weight:700;text-transform:uppercase;letter-spacing:.06em;text-shadow:0 2px 4px rgba(0,0,0,.3)}
.taskbar{position:absolute;left:0;bottom:0;width:100%;height:44px;background:linear-gradient(90deg,rgba(10,10,20,.95),rgba(20,20,40,.95));backdrop-filter:blur(24px);display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-top:1px solid rgba(102,126,234,.35)}
.time-display{color:#00d4ff;font-size:14px;font-weight:600;text-shadow:0 0 15px rgba(0,212,255,.6)}

/* Monitor Stand */
.monitor-stand,.monitor-base{z-index:1;}
.monitor-stand{
  width:150px; height:80px;
  background:linear-gradient(135deg,#2a2a2a,#1a1a1a);
  position:absolute; left:50%;
  top:calc(var(--monitor-h) - 40px);
  transform:translateX(-50%);
  clip-path:polygon(20% 0%,80% 0%,100% 100%,0% 100%);
  box-shadow:0 10px 30px rgba(0,0,0,.5);
}
.monitor-base{
  width:250px; height:15px;
  background:linear-gradient(90deg,#1a1a1a,#2a2a2a,#1a1a1a);
  position:absolute; left:50%;
  top:calc(var(--monitor-h) + 40px);
  transform:translateX(-50%);
  border-radius:50%; box-shadow:0 5px 20px rgba(0,0,0,.8);
}
/* Peripherals */
.keyboard{
  position:absolute; z-index:10;
  width:var(--keyboard-w); height:var(--keyboard-h);
  left:50%;
  top:calc(var(--monitor-h) + var(--periph-gap-y) + 60px);
  transform:translateX(-50%) translateZ(var(--scene-z-lift)) rotateX(35deg);
  will-change:transform;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:linear-gradient(135deg,#2a2a2a,#1a1a1a);
  border-radius:15px; padding:20px; border:1px solid #333; box-shadow:0 20px 40px rgba(0,0,0,.5);
}
.keyboard-row{display:flex;gap:6px;margin-bottom:8px;justify-content:center}
.key{min-width:35px;height:35px;background:linear-gradient(135deg,#3a3a3a,#2a2a2a);border-radius:5px;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.7);font-size:11px;font-weight:700;transition:all .1s ease;border:1px solid #444;position:relative;overflow:hidden}
.key::before{content:"";position:absolute;inset:0;background:radial-gradient(circle,rgba(102,126,234,.8),transparent);opacity:0;transition:opacity .1s ease}
.key.pressed::before{opacity:1}
.key.pressed{transform:scale(.95) translateY(2px);background:linear-gradient(135deg,#667eea,#764ba2);box-shadow:0 0 20px rgba(102,126,234,.8)}
.key.space{width:250px}

/* Mouse pad */
.mouse-pad{
  position:absolute; z-index:9;
  width:var(--mousepad-w); height:var(--mousepad-h);
  top:calc(var(--monitor-h) + var(--periph-gap-y) + 80px);
  left:calc(50% + (var(--keyboard-w)/2) + var(--mousepad-gap-x));
  transform:translateZ(var(--scene-z-lift));
  will-change:transform;
  background:linear-gradient(135deg,#1a1a1a,#0a0a0a);
  border-radius:10px; border:1px solid #333;
  box-shadow:inset 0 0 30px rgba(0,0,0,.8);
  padding:12px;
}

.mouse-pad .virtual-mouse{
  position: absolute;
  z-index: 11;
  width: 50px;
  height: 70px;
  left: 0;
  top: 0;
  transform: translate3d(0,0,0);
  will-change: transform;
  background: linear-gradient(135deg,#3a3a3a,#2a2a2a);
  border-radius: 25px 25px 30px 30px;
  border: 1px solid #444;
  box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 30px rgba(102,126,234,.3);
  pointer-events: none;
}
body.screen-hover, body.screen-hover * { cursor: none; }
.virtual-mouse::before{content:"";position:absolute;top:20%;left:50%;transform:translateX(-50%);width:3px;height:15px;background:#667eea;border-radius:2px;box-shadow:0 0 10px rgba(102,126,234,.8)}
.virtual-mouse.clicked{transform:scale(.95);box-shadow:0 5px 15px rgba(0,0,0,.5),0 0 40px rgba(102,126,234,.6)}

/* PC tower */
.pc-tower{width:140px;height:350px;background:linear-gradient(135deg,#2a2a2a,#1a1a1a);position:absolute;bottom:-380px;right:-280px;border-radius:10px;box-shadow:0 20px 50px rgba(0,0,0,.6);border:1px solid #333}
.pc-lights{position:absolute;top:30px;left:15px;right:15px;bottom:30px;border-radius:5px;overflow:hidden}
.pc-lights::before{content:"";position:absolute;top:-100%;left:0;width:100%;height:200%;background:linear-gradient(180deg,#ff0080,#ff8c00,#ffd700,#00ff00,#00ffff,#0080ff,#8000ff,#ff0080);animation:rgb-flow 3s linear infinite}
@keyframes rgb-flow{0%{transform:translateY(0)}100%{transform:translateY(50%)}}

/* Cursor follower */
.cursor-follower{position:fixed;width:30px;height:30px;border:2px solid rgba(102,126,234,.8);border-radius:50%;pointer-events:none;z-index:10000;display:none;will-change:transform}
.cursor-follower::before{content:"";position:absolute;top:50%;left:50%;width:5px;height:5px;background:#667eea;border-radius:50%;transform:translate(-50%,-50%)}
body.screen-hover .cursor-follower{display:block}
.screen, .screen *{cursor:none}

/* App Container and Windows */
.app-container{position:relative;width:100%;height:100%;pointer-events:none}
.app-window{position:absolute;top:16px;left:16px;right:16px;bottom:52px;background:linear-gradient(145deg,rgba(28,28,45,.98),rgba(40,40,62,.98));backdrop-filter:blur(24px);border-radius:18px;display:none;flex-direction:column;box-shadow:0 25px 70px rgba(0,0,0,.6),0 0 40px rgba(102,126,234,.15),inset 0 1px 0 rgba(255,255,255,.05);border:1px solid rgba(102,126,234,.25);z-index:50}
.app-window.window-enter{animation:window-open .5s cubic-bezier(.34,1.56,.64,1)}
@keyframes window-open{from{transform:scale(.85) translateY(80px);opacity:0}to{transform:scale(1) translateY(0);opacity:1}}
.nav-app, .app-icon, .close-btn, .suggestion-chip, button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.window-header{height:52px;background:linear-gradient(90deg,rgba(102,126,234,.15),rgba(126,87,194,.15));display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid rgba(102,126,234,.25);border-radius:18px 18px 0 0}
.window-title{color:#fff;font-weight:700;text-transform:uppercase;letter-spacing:.06em;display:flex;align-items:center;gap:12px;font-size:13px}
.app-icon-header{font-size:26px;filter:drop-shadow(0 2px 6px rgba(0,0,0,.3))}
.title-text{display:inline;background:linear-gradient(90deg,#fff,rgba(255,255,255,.85));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.close-btn{width:32px;height:32px;background:linear-gradient(145deg,#ff4757,#ff6b7a);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:18px;color:#fff;transition:all .3s ease;box-shadow:0 4px 15px rgba(255,71,87,.4)}
.close-btn:hover{transform:scale(1.15) rotate(90deg);box-shadow:0 6px 20px rgba(255,71,87,.6)}
.window-content{flex:1;padding:28px;overflow-y:auto;color:#fff}
.window-content::-webkit-scrollbar{width:8px}
.window-content::-webkit-scrollbar-track{background:rgba(0,0,0,.2);border-radius:10px}
.window-content::-webkit-scrollbar-thumb{background:linear-gradient(135deg,#667eea,#a855f7);border-radius:10px}

/* Enhanced AI Chat */
.ai-chat{display:flex;flex-direction:column;height:100%}
.chat-header{margin-bottom:24px}
.ai-status{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.status-dot{width:10px;height:10px;background:linear-gradient(135deg,#00d4ff,#00ff88);border-radius:50%;animation:pulse 2s infinite;box-shadow:0 0 15px rgba(0,212,255,.6)}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(1.1)}}
.chat-suggestions{display:flex;gap:12px;flex-wrap:wrap}
.suggestion-chip{padding:8px 16px;background:linear-gradient(135deg,rgba(102,126,234,.22),rgba(168,85,247,.22));border:1px solid rgba(102,126,234,.35);border-radius:20px;font-size:13px;cursor:pointer;transition:all .3s ease;font-weight:500}
.suggestion-chip:hover{background:linear-gradient(135deg,rgba(102,126,234,.4),rgba(168,85,247,.4));transform:translateY(-3px);box-shadow:0 8px 20px rgba(102,126,234,.3)}
.chat-messages{flex:1;overflow-y:auto;margin-bottom:22px;padding:22px;background:linear-gradient(145deg,rgba(0,0,0,.4),rgba(10,10,20,.4));border-radius:18px;border:1px solid rgba(102,126,234,.2)}
.message{margin-bottom:22px;display:flex;gap:12px;animation:message-pop .4s ease}
@keyframes message-pop{from{transform:scale(.9) translateY(10px);opacity:0}to{transform:scale(1) translateY(0);opacity:1}}
.message-avatar{width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#00d4ff,#667eea,#a855f7);border-radius:50%;font-size:18px;box-shadow:0 4px 15px rgba(102,126,234,.4)}
.message-content{flex:1;padding:18px;border-radius:18px;max-width:80%}
.user-message{flex-direction:row-reverse}
.user-message .message-avatar{background:linear-gradient(135deg,#a855f7,#c084fc)}
.user-message .message-content{background:linear-gradient(135deg,#667eea,#a855f7);margin-left:auto;box-shadow:0 8px 25px rgba(102,126,234,.35)}
.ai-message .message-content{background:linear-gradient(145deg,rgba(40,40,60,.9),rgba(28,28,45,.9));margin-right:auto;border:1px solid rgba(102,126,234,.25)}
.typing-indicator .typing-dots{display:inline-flex;gap:5px}
.typing-dots span{width:10px;height:10px;background:linear-gradient(135deg,#00d4ff,#667eea);border-radius:50%;animation:typing 1.4s infinite}
.typing-dots span:nth-child(2){animation-delay:.2s}
.typing-dots span:nth-child(3){animation-delay:.4s}
@keyframes typing{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-12px)}}
.chat-input{display:flex;gap:16px}
.chat-input input{flex:1;padding:16px 22px;border:1px solid rgba(102,126,234,.3);border-radius:30px;background:linear-gradient(145deg,rgba(0,0,0,.4),rgba(10,10,20,.4));color:#fff;outline:none;font-size:14px;transition:all .3s ease}
.chat-input input:focus{border-color:#00d4ff;box-shadow:0 0 30px rgba(0,212,255,.25)}
.chat-input input::placeholder{color:rgba(255,255,255,.45)}
.chat-input button{padding:16px 32px;background:linear-gradient(135deg,#00d4ff,#667eea,#a855f7);color:#fff;border:none;border-radius:30px;cursor:pointer;font-weight:700;text-transform:uppercase;letter-spacing:.06em;transition:all .3s ease;display:flex;align-items:center;gap:10px;box-shadow:0 6px 25px rgba(102,126,234,.4)}
.chat-input button:hover{transform:translateY(-3px);box-shadow:0 12px 35px rgba(102,126,234,.5)}

/* Timeline Experience */
.timeline-container{position:relative;padding:24px}
.timeline-line{position:absolute;left:50%;top:0;bottom:0;width:3px;background:linear-gradient(180deg,#00d4ff,#667eea,#a855f7);transform:translateX(-50%);border-radius:2px;box-shadow:0 0 20px rgba(102,126,234,.4)}
.timeline-item{position:relative;margin-bottom:45px;display:flex;align-items:center}
.timeline-item.left{justify-content:flex-start;padding-right:calc(50% + 35px)}
.timeline-item.right{justify-content:flex-end;padding-left:calc(50% + 35px)}
.timeline-dot{position:absolute;left:50%;width:18px;height:18px;background:linear-gradient(135deg,#00d4ff,#667eea);border:4px solid rgba(28,28,45,.98);border-radius:50%;transform:translateX(-50%);z-index:2;box-shadow:0 0 25px rgba(102,126,234,.6),0 0 50px rgba(0,212,255,.3)}
.timeline-card{background:linear-gradient(145deg,rgba(40,40,60,.95),rgba(28,28,45,.95));border-radius:18px;padding:24px;border:1px solid rgba(102,126,234,.25);transition:all .4s ease;animation:slide-in .6s ease;box-shadow:0 10px 40px rgba(0,0,0,.3)}
@keyframes slide-in{from{opacity:0;transform:translateX(-20px)}to{opacity:1;transform:translateX(0)}}
.timeline-card:hover{transform:translateY(-8px);box-shadow:0 20px 50px rgba(102,126,234,.35),0 0 40px rgba(168,85,247,.15)}
.card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.card-header h3{color:#fff;font-size:18px;font-weight:700}
.badge{padding:5px 12px;border-radius:20px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.badge-active{background:linear-gradient(135deg,#00d4ff,#00b4d8);color:#fff;box-shadow:0 4px 15px rgba(0,212,255,.4)}
.badge{background:linear-gradient(135deg,rgba(102,126,234,.35),rgba(168,85,247,.35));color:#fff}
.card-company{color:#00d4ff;font-weight:700;margin-bottom:6px;font-size:15px}
.card-date{color:rgba(255,255,255,.55);font-size:12px;margin-bottom:12px;font-weight:500}
.card-description p{color:rgba(255,255,255,.85);line-height:1.7;margin-bottom:12px}
.tech-stack{display:flex;flex-wrap:wrap;gap:8px}
.tech-tag{padding:5px 12px;background:linear-gradient(135deg,rgba(102,126,234,.22),rgba(168,85,247,.22));border:1px solid rgba(102,126,234,.3);border-radius:20px;font-size:11px;color:#fff;font-weight:500;transition:all .3s ease}
.tech-tag:hover{background:linear-gradient(135deg,rgba(102,126,234,.4),rgba(168,85,247,.4))}

/* Projects Grid */
.projects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px}
a.project-card{text-decoration:none;display:block}
.project-card{background:linear-gradient(135deg,rgba(45,45,68,.95),rgba(30,30,46,.95));border-radius:20px;padding:28px;border:1px solid rgba(102,126,234,.25);transition:all .4s cubic-bezier(.25,.46,.45,.94);position:relative;overflow:hidden;display:flex;flex-direction:column;height:100%}
.project-card::before{content:"";position:absolute;top:-2px;left:-2px;right:-2px;bottom:-2px;background:linear-gradient(45deg,#667eea,#764ba2,#00d4ff,#a855f7,#667eea);background-size:400% 400%;opacity:0;z-index:-1;transition:opacity .4s ease;border-radius:20px;animation:gradient-rotate 4s ease infinite}
.project-card::after{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.08),transparent);transition:left .6s ease}
.project-card:hover::before{opacity:1}
.project-card:hover::after{left:100%}
.project-card:hover{transform:translateY(-12px) scale(1.02);box-shadow:0 25px 50px rgba(102,126,234,.35),0 0 60px rgba(168,85,247,.2)}
.project-icon{font-size:52px;margin-bottom:18px;filter:drop-shadow(0 4px 12px rgba(0,0,0,.4));transition:transform .3s ease}
.project-card:hover .project-icon{transform:scale(1.1) rotate(-5deg)}
.project-card h3{color:#fff;margin-bottom:12px;font-size:20px;font-weight:700;letter-spacing:-.01em}
.project-desc{color:rgba(255,255,255,.75);line-height:1.6;margin-bottom:18px;font-size:14px;flex-grow:1}
.project-tech{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.tech-badge{padding:5px 12px;background:linear-gradient(135deg,rgba(102,126,234,.25),rgba(126,87,194,.25));border:1px solid rgba(102,126,234,.35);border-radius:20px;font-size:11px;color:#fff;font-weight:500;transition:all .3s ease}
.project-card:hover .tech-badge{background:linear-gradient(135deg,rgba(102,126,234,.4),rgba(126,87,194,.4));border-color:rgba(102,126,234,.5)}
.project-footer{padding-top:15px;border-top:1px solid rgba(102,126,234,.2);margin-top:auto}
.github-link{color:#00d4ff;font-size:13px;font-weight:600;display:flex;align-items:center;gap:6px;transition:all .3s ease}
.project-card:hover .github-link{color:#fff;letter-spacing:.03em}
.project-stats{display:flex;justify-content:space-around;padding-top:15px;border-top:1px solid rgba(102,126,234,.2)}
.stat{text-align:center}
.stat-value{display:block;font-size:18px;font-weight:700;color:#667eea;margin-bottom:4px}
.stat-label{font-size:10px;color:rgba(255,255,255,.5);text-transform:uppercase}

/* Education Dashboard */
.education-dashboard{display:flex;flex-direction:column;gap:28px}
.edu-card{background:linear-gradient(145deg,rgba(40,40,60,.95),rgba(28,28,45,.95));border-radius:20px;padding:28px;border:1px solid rgba(102,126,234,.25);box-shadow:0 10px 40px rgba(0,0,0,.3)}
.edu-header{display:flex;gap:22px;margin-bottom:24px}
.edu-logo{width:68px;height:68px;background:linear-gradient(135deg,#00d4ff,#667eea,#a855f7);border-radius:18px;display:flex;align-items:center;justify-content:center;font-size:34px;box-shadow:0 8px 25px rgba(102,126,234,.35)}
.edu-institution{color:#00d4ff;font-size:15px;margin-top:6px;font-weight:600}
.edu-details{display:flex;flex-direction:column;gap:14px}
.detail-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid rgba(102,126,234,.15)}
.detail-label{color:rgba(255,255,255,.6);font-size:14px}
.detail-value{color:#fff;font-weight:700}
.achievements{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.achievement-badge{padding:8px 14px;background:linear-gradient(135deg,#ffd700,#ffb800);color:#1a1a2e;border-radius:20px;font-size:12px;font-weight:700;box-shadow:0 4px 15px rgba(255,215,0,.3)}

/* Skills Section */
.skills-section{background:linear-gradient(145deg,rgba(40,40,60,.95),rgba(28,28,45,.95));border-radius:20px;padding:28px;border:1px solid rgba(102,126,234,.25);box-shadow:0 10px 40px rgba(0,0,0,.3)}
.skills-section h3{color:#fff;margin-bottom:24px;font-size:22px;font-weight:700}
.skill-category{margin-bottom:28px}
.skill-category h4{color:#00d4ff;margin-bottom:16px;font-size:14px;text-transform:uppercase;letter-spacing:1.5px;font-weight:700}
.skill-bars{display:flex;flex-direction:column;gap:18px}
.skill-item{display:flex;flex-direction:column;gap:10px}
.skill-header{display:flex;justify-content:space-between;color:rgba(255,255,255,.85);font-size:14px;font-weight:500}
.skill-bar{height:10px;background:rgba(0,0,0,.4);border-radius:10px;overflow:hidden}
.skill-progress{height:100%;background:linear-gradient(90deg,#00d4ff,#667eea,#a855f7);border-radius:10px;transition:width 1s ease;animation:skill-fill 1.2s ease;box-shadow:0 0 20px rgba(102,126,234,.4)}
@keyframes skill-fill{from{width:0}}
.tech-grid{display:flex;flex-wrap:wrap;gap:12px}
.tech-item{padding:10px 16px;background:linear-gradient(135deg,rgba(102,126,234,.22),rgba(168,85,247,.22));border:1px solid rgba(102,126,234,.3);border-radius:20px;font-size:13px;color:#fff;transition:all .3s ease;font-weight:500}
.tech-item:hover{background:linear-gradient(135deg,rgba(102,126,234,.4),rgba(168,85,247,.4));transform:translateY(-3px);box-shadow:0 8px 20px rgba(102,126,234,.3)}
.tech-item.ai{background:linear-gradient(135deg,rgba(0,212,255,.22),rgba(168,85,247,.22));border-color:rgba(0,212,255,.35)}
.tech-item.ai:hover{background:linear-gradient(135deg,rgba(0,212,255,.4),rgba(168,85,247,.4))}

/* ===== MOBILE RESPONSIVE STYLES ===== */
/* Only activate mobile view on actual phone screens (768px and below) */
@media (max-width: 768px) {
  /* Allow page scrolling on mobile */
  body { 
    overflow-x: hidden;
    overflow-y: auto; 
    height: auto; 
    background: linear-gradient(135deg,#0a0a14 0%,#0d0d1a 50%,#0a0a14 100%); 
  }

  .monitor, .keyboard, .mouse-pad, .pc-tower {
    display: none;
  }

  /* Hide zoom toggle on mobile */
  .zoom-toggle { display: none !important; }

  /* Remove full-screen fixed container; use normal flow */
  .gaming-setup { 
    transform: none; 
    position: static; 
    width: 100%; 
    height: auto; 
    opacity: 1; 
    display: flex; 
    flex-direction: column; 
  }
  .gaming-setup.visible { opacity: 1; animation: none; }

  /* Hide the old start overlay on mobile */
  .start-screen { display: none; }

  /* Enhanced top bar - scrollable navigation */
  .mobile-topbar { 
    display: flex; 
    position: sticky; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 300; 
    align-items: center; 
    padding: 12px 12px; 
    background: linear-gradient(135deg,rgba(12,12,20,.98),rgba(18,18,30,.98)); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
    border-bottom: 1px solid rgba(102,126,234,.3); 
    order: 0; 
    box-shadow: 0 4px 30px rgba(0,0,0,.5); 
  }
  .mobile-topbar .brand { display: none; }
  .mobile-topbar .mobile-navlinks { 
    display: flex; 
    flex-wrap: nowrap; 
    gap: 8px; 
    overflow-x: auto; 
    flex: 1; 
    -webkit-overflow-scrolling: touch; 
    padding: 4px 0;
    scrollbar-width: none;
  }
  .mobile-topbar .mobile-navlinks::-webkit-scrollbar { display: none; }
  .mobile-topbar .navlink { 
    color: rgba(255,255,255,.7); 
    text-decoration: none; 
    font-size: 13px; 
    font-weight: 600; 
    padding: 10px 16px; 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,.1); 
    white-space: nowrap; 
    transition: all .3s ease; 
    background: rgba(255,255,255,.05);
    flex-shrink: 0;
  }
  .mobile-topbar .navlink.active, 
  .mobile-topbar .navlink:focus { 
    color: #fff; 
    border-color: rgba(0,212,255,.6); 
    background: linear-gradient(135deg,rgba(0,212,255,.2),rgba(102,126,234,.2)); 
    box-shadow: 0 0 20px rgba(0,212,255,.25); 
  }
  .mobile-topbar .time-display { display: none; }

  /* Enhanced Intro hero */
  .intro-section { 
    display: block; 
    padding: 28px 20px 24px; 
    background: linear-gradient(160deg,#0a0a14 0%,#12121e 50%,#0a0a14 100%); 
    border-bottom: 1px solid rgba(102,126,234,.2); 
    scroll-margin-top: 70px; 
    order: 1; 
    position: relative; 
    overflow: hidden; 
  }
  .intro-section::before { 
    content: ""; 
    position: absolute; 
    top: -50%; 
    left: -50%; 
    width: 200%; 
    height: 200%; 
    background: radial-gradient(circle at 30% 70%,rgba(0,212,255,.08) 0%,transparent 50%),
                radial-gradient(circle at 70% 30%,rgba(168,85,247,.06) 0%,transparent 50%); 
    pointer-events: none; 
  }
  .intro-section h1 { 
    color: #fff; 
    font-size: 32px; 
    font-weight: 800; 
    margin-bottom: 14px; 
    background: linear-gradient(135deg,#fff 0%,#00d4ff 60%,#a855f7 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
    position: relative; 
    line-height: 1.2;
  }
  .intro-section p { 
    color: rgba(255,255,255,.8); 
    line-height: 1.7; 
    margin-bottom: 0; 
    font-size: 14px; 
    position: relative; 
  }
  .intro-cta { display: none; }

  /* Enhanced app windows as sections */
  .app-container { 
    position: static; 
    width: 100%; 
    height: auto; 
    pointer-events: auto; 
    order: 2; 
    display: flex; 
    flex-direction: column; 
    padding: 12px; 
    gap: 16px;
  }
  .app-window { 
    position: static !important; 
    display: block !important; 
    top: auto; 
    left: auto; 
    right: auto; 
    bottom: auto; 
    margin: 0; 
    border-radius: 20px; 
    z-index: auto; 
    scroll-margin-top: 70px; 
    background: linear-gradient(160deg,rgba(20,20,35,.98),rgba(28,28,45,.98)); 
    border: 1px solid rgba(102,126,234,.2); 
    box-shadow: 0 10px 40px rgba(0,0,0,.4), 0 0 40px rgba(102,126,234,.05); 
  }
  .window-header { 
    border-radius: 20px 20px 0 0; 
    height: auto; 
    padding: 16px 20px; 
    background: linear-gradient(90deg,rgba(0,212,255,.1),rgba(102,126,234,.1),rgba(168,85,247,.1)); 
  }
  .window-title {
    font-size: 12px;
  }
  .title-text { 
    display: inline; 
    font-size: 13px;
    letter-spacing: 0.04em;
  }
  .app-icon-header {
    font-size: 22px;
  }
  .close-btn { display: none; }
  .window-content { 
    padding: 20px 16px; 
    overflow: visible; 
  }

  /* Timeline mobile improvements */
  .timeline-container {
    padding: 8px 0;
  }
  
  .timeline-container.mobile-accordion .timeline-item {
    display: none;
  }
  
  .timeline-container.mobile-accordion .timeline-item.mobile-visible {
    display: block;
  }
  
  .timeline-line {
    display: none;
  }
  
  .timeline-dot {
    display: none;
  }
  
  .timeline-item {
    margin-bottom: 16px;
  }
  
  .timeline-item.left,
  .timeline-item.right {
    justify-content: center;
    padding: 0;
  }
  
  .timeline-card {
    padding: 20px;
    border-radius: 16px;
    width: 100%;
    background: linear-gradient(145deg,rgba(35,35,55,.95),rgba(25,25,40,.95));
  }
  
  .card-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .card-header h3 {
    font-size: 16px;
    flex: 1;
    min-width: 0;
  }
  
  .badge {
    font-size: 9px;
    padding: 4px 10px;
  }
  
  .card-company {
    font-size: 14px;
  }
  
  .card-date {
    font-size: 11px;
  }
  
  .card-description p {
    font-size: 13px;
    line-height: 1.6;
  }
  
  .card-description ul {
    font-size: 12px;
  }
  
  .tech-stack {
    gap: 6px;
  }
  
  .tech-tag {
    font-size: 10px;
    padding: 4px 10px;
  }
  
  /* Enhanced Show More/Less button styling */
  .mobile-timeline-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    margin-top: 16px;
    background: linear-gradient(135deg, rgba(0,212,255,.15), rgba(102,126,234,.15));
    border: 1px solid rgba(0,212,255,.3);
    border-radius: 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .mobile-timeline-toggle:active {
    transform: scale(0.98);
    background: linear-gradient(135deg, rgba(0,212,255,.25), rgba(102,126,234,.25));
  }
  
  .mobile-timeline-toggle .toggle-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
  }
  
  .mobile-timeline-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
  }
  
  /* Projects grid mobile */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .project-card {
    padding: 20px;
    border-radius: 16px;
  }
  
  .project-icon {
    font-size: 40px;
    margin-bottom: 12px;
  }
  
  .project-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
  }
  
  .project-desc {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 14px;
  }
  
  .project-tech {
    gap: 6px;
    margin-bottom: 14px;
  }
  
  .tech-badge {
    font-size: 10px;
    padding: 5px 10px;
  }
  
  .project-footer {
    padding-top: 12px;
  }
  
  .github-link {
    font-size: 12px;
  }
  
  /* AI Chat mobile improvements */
  .ai-chat {
    height: auto;
  }
  
  .chat-header {
    margin-bottom: 16px;
  }
  
  .ai-status {
    margin-bottom: 12px;
  }
  
  .chat-suggestions {
    gap: 8px;
  }
  
  .suggestion-chip {
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 10px;
  }
  
  .chat-messages {
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    max-height: 350px;
    min-height: 200px;
  }
  
  .message {
    margin-bottom: 16px;
    gap: 10px;
  }
  
  .message-avatar {
    width: 32px;
    height: 32px;
    font-size: 16px;
    flex-shrink: 0;
  }
  
  .message-content {
    max-width: 85%;
    padding: 14px;
    font-size: 13px;
    line-height: 1.6;
    border-radius: 14px;
    word-break: break-word;
  }
  
  .chat-input {
    flex-direction: column;
    gap: 12px;
  }
  
  .chat-input input {
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
  }
  
  .chat-input button {
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 13px;
  }
  
  /* Education section mobile */
  .education-dashboard {
    gap: 20px;
  }
  
  .edu-card {
    padding: 20px;
    border-radius: 16px;
  }
  
  .edu-header {
    flex-direction: row;
    text-align: left;
    gap: 16px;
    align-items: center;
  }
  
  .edu-logo {
    width: 56px;
    height: 56px;
    font-size: 28px;
    border-radius: 14px;
    flex-shrink: 0;
  }
  
  .edu-header h3 {
    font-size: 16px;
    margin-bottom: 2px;
  }
  
  .edu-institution {
    font-size: 13px;
  }
  
  .edu-details {
    gap: 10px;
  }
  
  .detail-row {
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
  }
  
  .detail-label {
    font-size: 13px;
  }
  
  .detail-value {
    font-size: 13px;
  }
  
  .achievements {
    gap: 8px;
    margin-top: 14px;
  }
  
  .achievement-badge {
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 10px;
  }
  
  /* Skills section mobile */
  .skills-section {
    padding: 20px;
    border-radius: 16px;
  }
  
  .skills-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .skill-category {
    margin-bottom: 22px;
  }
  
  .skill-category h4 {
    font-size: 12px;
    margin-bottom: 12px;
  }
  
  .skill-bars {
    gap: 14px;
  }
  
  .skill-header {
    font-size: 13px;
  }
  
  .skill-bar {
    height: 8px;
  }
  
  .tech-grid {
    gap: 8px;
  }
  
  .tech-item {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* Extra small screens (480px and below) */
@media (max-width: 480px) {
  .glitch-title {
    font-size: 2.5rem;
  }
  
  .start-subtitle {
    font-size: 0.9rem;
  }
  
  .nav-header h2 {
    font-size: 20px;
  }
  
  .nav-app {
    padding: 20px;
  }
  
  .nav-icon {
    font-size: 36px;
  }
  
  .window-content {
    padding: 16px 12px;
  }
  
  .intro-section {
    padding: 24px 16px 16px;
  }
  
  .intro-section h1 {
    font-size: 28px;
  }
  
  .intro-section p {
    font-size: 14px;
  }
  
  .timeline-container {
    padding: 8px;
  }
  
  .timeline-card {
    padding: 16px;
  }
  
  .project-card {
    padding: 18px;
  }
  
  .project-icon {
    font-size: 38px;
  }
  
  .project-card h3 {
    font-size: 16px;
  }
  
  .chat-messages {
    padding: 14px;
    border-radius: 14px;
  }
  
  .message-avatar {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
  
  .message-content {
    padding: 14px;
    font-size: 13px;
  }
  
  .edu-card {
    padding: 18px;
  }
  
  .skills-section {
    padding: 18px;
  }
  
  .mobile-topbar .navlink {
    font-size: 12px;
    padding: 7px 12px;
  }
  
  .tech-badge {
    font-size: 10px;
    padding: 4px 10px;
  }
  
  .github-link {
    font-size: 12px;
  }
}

/* Touch-specific improvements */
@media (hover: none) and (pointer: coarse) {
  .app-icon:hover,
  .nav-app:hover,
  .project-card:hover,
  .timeline-card:hover,
  .suggestion-chip:hover,
  .tech-item:hover,
  .close-btn:hover,
  .chat-input button:hover {
    transform: none;
  }
  
  .app-icon:active,
  .nav-app:active {
    transform: scale(0.95);
  }
  
  .suggestion-chip:active,
  .close-btn:active,
  .chat-input button:active {
    transform: scale(0.95);
  }
  
}
/* === Global Zoom Toggle (Desktop + Mobile) === */
/* === Zoom Toggle Button (top-left corner, monitor only) === */
.zoom-toggle {
  position: absolute;
  top: 20px;
  left: 100px;
  z-index: 10;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

/* Hover/active states */
.zoom-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}
.zoom-toggle:active {
  transform: scale(0.95);
}

/* Hide it completely during intro/start screen */
.start-screen .zoom-toggle {
  display: none;
}

/* ===== FULLSCREEN MODE - Screen takes over the page ===== */
/* Prepare elements for smooth transitions */
.gaming-setup,
.monitor,
.screen,
.desktop,
.keyboard,
.mouse-pad,
.pc-tower,
.monitor-stand,
.monitor-base {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When zoomed-in, hide all peripherals and monitor frame */
body.zoomed-in .keyboard,
body.zoomed-in .mouse-pad,
body.zoomed-in .pc-tower,
body.zoomed-in .monitor-stand,
body.zoomed-in .monitor-base {
  opacity: 0;
  pointer-events: none;
  transform: translateY(50px);
}

/* Monitor frame fades and scales out */
body.zoomed-in .monitor {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  z-index: 9998 !important;
}

/* The screen expands to fill viewport */
body.zoomed-in .screen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  z-index: 9999 !important;
  box-shadow: none !important;
}

body.zoomed-in .screen::before {
  opacity: 0.3;
}

/* Desktop content fills the screen */
body.zoomed-in .desktop {
  padding: 30px;
  border-radius: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* App icons reposition in fullscreen */
body.zoomed-in .app-icons {
  gap: 50px;
}

body.zoomed-in .app-icon {
  width: 130px;
  height: 130px;
  border-radius: 26px;
}

body.zoomed-in .app-icon .icon {
  font-size: 48px;
}

body.zoomed-in .app-icon .label {
  font-size: 12px;
}

/* Taskbar stretches full width in fullscreen */
body.zoomed-in .taskbar {
  padding: 0 30px;
  height: 48px;
}

/* App windows in fullscreen mode - fill available space */
body.zoomed-in .app-window {
  position: fixed !important;
  top: 20px !important;
  left: 20px !important;
  right: 20px !important;
  bottom: 58px !important;
  width: auto !important;
  height: auto !important;
  border-radius: 18px;
  z-index: 10000 !important;
}

body.zoomed-in .app-window .window-content {
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

/* Timeline fixes in fullscreen */
body.zoomed-in .timeline-container {
  max-width: 100%;
  overflow-x: hidden;
}

body.zoomed-in .timeline-item.left {
  padding-right: calc(50% + 25px);
}

body.zoomed-in .timeline-item.right {
  padding-left: calc(50% + 25px);
}

body.zoomed-in .timeline-card {
  max-width: 100%;
}

/* Hide the gaming setup transform in fullscreen */
body.zoomed-in .gaming-setup {
  transform: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9997 !important;
}

/* Zoom toggle in fullscreen mode - move to corner */
body.zoomed-in .zoom-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10001;
  background: linear-gradient(135deg, rgba(102,126,234,0.9), rgba(168,85,247,0.9));
  backdrop-filter: blur(10px);
}

/* Hide cursor follower and virtual mouse in fullscreen */
body.zoomed-in .cursor-follower,
body.zoomed-in .virtual-mouse {
  display: none !important;
}

/* Show normal cursor in fullscreen mode */
body.zoomed-in .screen,
body.zoomed-in .screen * {
  cursor: auto !important;
}

/* Background container adjustment in fullscreen */
body.zoomed-in .bg-container {
  z-index: -1;
}

/* App container in fullscreen */
body.zoomed-in .app-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: auto;
}