/* =========================================
   1. CSS VARIABLES & THEME
   ========================================= */
:root {
  --bg: #000000;
  --bg-surface: #0a0a0a;
  --bg-surface-hover: #121212;
  --text: #ffffff;
  --text-muted: #888888;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.3);
  --accent: #ffffff;
  
  --venz-neon: #b026ff;
  --venz-glow: rgba(176, 38, 255, 0.5);

  --header-height: 80px;
  
  /* Premium Easing Curves */
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1); 
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   2. RESET, BASE & TEXTURE
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
}

html, body {
  overflow-x: hidden; width: 100%; max-width: 100vw;
}

html {
  scroll-behavior: smooth; font-size: 16px;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%; 
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  cursor: none; position: relative;
}

/* Cinematic Noise Overlay */
body::before {
  content: ""; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
  opacity: 0.04; pointer-events: none; z-index: -2;
}

p, a, h1, h2, h3, h4, span { overflow-wrap: break-word; word-wrap: break-word; }
::selection { background-color: var(--text); color: var(--bg); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 8px; }

@media (hover: hover) { ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); } }

a { color: inherit; text-decoration: none; transition: all 0.4s var(--ease-premium); }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   3. BACKGROUND AMBIENT GLOW
   ========================================= */
.ambient-glow {
  position: fixed; top: 50%; left: 50%; width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(176, 38, 255, 0.08) 0%, rgba(0,0,0,0) 65%);
  transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  filter: blur(80px); will-change: transform;
}

/* =========================================
   4. TYPOGRAPHY
   ========================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

h1, h2, h3, h4 { font-weight: 500; line-height: 1.1; color: var(--text); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.03em; margin-bottom: 2rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 1rem; }
h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; color: var(--text-muted); }
p { color: var(--text-muted); font-size: clamp(1rem, 1.5vw, 1.125rem); margin-bottom: 1.5rem; }
strong { color: var(--text); font-weight: 600; }

.eyebrow {
  display: inline-block; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--text-muted); margin-bottom: 1.5rem;
  border: 1px solid var(--border); padding: 0.4rem 1rem; border-radius: 100px;
}

/* =========================================
   5. LAYOUT UTILITIES & CARDS (Premium Glassmorphism)
   ========================================= */
.container {
  width: 100%; max-width: 1250px; margin: 0 auto;
  padding-left: max(clamp(1.5rem, 4vw, 3rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.5rem, 4vw, 3rem), env(safe-area-inset-right));
}

.section { padding: clamp(6rem, 10vw, 8rem) 0; border-bottom: 1px solid var(--border); }
.section:last-of-type { border-bottom: none; }
.section-header { margin-bottom: 4rem; }
.text-center { text-align: center; }

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

.card, .skill-group {
  background: rgba(15, 15, 15, 0.5) !important; /* Overriding HTML inline styles */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  padding: 3rem !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.5s var(--ease-premium);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover, .skill-group:hover {
    background: rgba(25, 25, 25, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
  }
}

/* =========================================
   6. CUSTOM CURSOR & BUTTONS (Liquid Hovers)
   ========================================= */
.cursor-dot {
  width: 6px; height: 6px; background-color: var(--accent);
  border-radius: 50%; position: fixed; pointer-events: none;
  z-index: 9999; mix-blend-mode: difference; transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%; position: fixed; pointer-events: none;
  z-index: 9999; mix-blend-mode: difference; transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-premium), height 0.3s var(--ease-premium), background-color 0.3s ease;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2.5rem; font-size: 0.85rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: 6px; 
  transition: all 0.4s var(--ease-premium);
  cursor: none; z-index: 1;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease-premium);
  z-index: -1;
}

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

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-surface);
  color: var(--text-muted); transition: all 0.4s var(--ease-premium);
  cursor: none;
}
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover::before {
    left: 150%;
    transition: left 0.6s var(--ease-premium);
  }
  .btn-primary:hover { 
    background-color: var(--text-muted); color: var(--bg); 
    box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.5); 
    transform: translateY(-2px);
  }
  .btn-outline:hover { 
    border-color: var(--text); background-color: rgba(255,255,255,0.05); 
    box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
  }
  .icon-btn:hover { 
    color: var(--bg); background: var(--text); 
    transform: translateY(-5px); box-shadow: 0 10px 20px rgba(255,255,255,0.2); 
  }
}

/* =========================================
   7. NAVIGATION HEADER
   ========================================= */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--header-height); display: flex; align-items: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border); z-index: 1000;
  transition: transform 0.4s var(--ease-premium);
}

.nav { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.brand { display: flex; align-items: center; gap: 0.85rem; }

.brand-logo {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--text); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: transform 0.4s var(--ease-premium), box-shadow 0.4s ease;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { font-weight: 600; letter-spacing: -0.02em; font-size: 1.15rem; line-height: 1; transform: translateY(1px); }

.nav-links { display: flex; gap: 3rem; align-items: center; }
.nav-links a {
  font-size: 0.85rem; color: var(--text-muted); position: relative; padding: 0.5rem 0;
  transition: transform 0.3s var(--ease-premium), color 0.3s ease, text-shadow 0.3s ease;
}
.nav-links a::after {
  content: ''; position: absolute; width: 100%; height: 1px;
  bottom: 0; left: 0; background-color: var(--text);
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-premium);
}

@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand-logo { transform: scale(1.1) rotate(5deg); box-shadow: 0 0 15px rgba(255,255,255,0.2); }
  .nav-links a:hover { color: var(--text); transform: translateY(-2px); text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); }
  .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
}

.nav-toggle { display: none; background: transparent; border: none; cursor: none; z-index: 1001; }

/* =========================================
   8. HERO SECTION
   ========================================= */
.hero-split { min-height: 100vh; display: flex; align-items: center; padding-top: var(--header-height); }
.hero-container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(4rem, 8vw, 8rem); align-items: center; }

.hero-left { animation: fadeUp 1s var(--ease-premium) 0.2s forwards; opacity: 0; }
.hero-bio { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--text-muted); line-height: 1.8; max-width: 600px; }
.hero-socials { display: flex; gap: 1rem; margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 2rem; }

.hero-right {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  animation: fadeUp 1s var(--ease-premium) 0.4s forwards; opacity: 0;
}

/* Modern Photo Frame */
.modern-profile-frame {
  position: relative; width: 100%; max-width: 320px; margin: 0 auto;
  padding: 8px; border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(0,0,0,0));
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transition: all 0.4s var(--ease-premium);
}
.modern-profile-frame::before {
  content: ''; position: absolute; inset: 0; border-radius: 12px; padding: 1px;
  background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.profile-img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 8px;
  filter: grayscale(100%) contrast(1.1); transition: filter 0.6s var(--ease-premium);
}

@media (hover: hover) and (pointer: fine) {
  .tilt-card:hover .profile-img { filter: grayscale(0%) contrast(1); }
}

.hero-name { font-size: clamp(2.5rem, 4vw, 3.5rem); letter-spacing: -0.04em; margin-bottom: 0.5rem; }
.hero-title { font-size: 1rem; font-family: monospace; color: var(--text-muted); line-height: 1.6; }

/* =========================================
   9. PROJECTS & CAPABILITIES
   ========================================= */
.project-layout { display: grid; grid-template-columns: 1fr; gap: 4rem; }

.project-info {
  background: rgba(15, 15, 15, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 2px solid var(--venz-neon); 
  padding: clamp(2rem, 5vw, 4rem); border-radius: 12px; transition: all 0.5s var(--ease-premium);
}

@media (hover: hover) and (pointer: fine) {
  .project-info:hover { 
    box-shadow: 0 20px 50px var(--venz-glow), inset 0 1px 0 rgba(255,255,255,0.1); 
    border-color: rgba(176, 38, 255, 0.5); 
    transform: translateY(-5px) scale(1.01); 
  }
}

.project-eyebrow { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--venz-neon); margin-bottom: 1rem; }
.project-role { font-family: monospace; margin-bottom: 1.5rem; color: #d896ff; }
.project-tags { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }
.project-tags span { font-family: monospace; font-size: 0.85rem; color: var(--text-muted); }
.project-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Clickable Tags */
.tags { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tag-btn {
  padding: 0.5rem 1.2rem; border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.85rem; color: var(--text-muted); background: transparent;
  transition: all 0.4s var(--ease-premium); font-family: inherit; cursor: none;
}
@media (hover: hover) and (pointer: fine) {
  .tag-btn:hover { border-color: var(--text); color: var(--bg); background: var(--text); transform: translateY(-3px); box-shadow: 0 4px 12px rgba(255,255,255,0.1); }
}
.tag-btn:active { transform: scale(0.95); }

/* =========================================
   10. CONTACT & FOOTER
   ========================================= */
.contact-subtext { margin: 0 auto 3rem auto; max-width: 600px; }
.contact-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; }

.site-footer {
  padding: 3rem 0; padding-bottom: max(3rem, env(safe-area-inset-bottom)); 
  border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted);
}
.footer-flex { display: flex; justify-content: center; align-items: center; text-align: center; }

/* =========================================
   11. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 4rem; }
  .hero-left { order: 2; } .hero-right { order: 1; }
  .hero-socials { justify-content: center; }
  .hero-bio { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  .ambient-glow { display: none; } 

  .nav-toggle { display: flex; flex-direction: column; gap: 6px; padding: 0.5rem; -webkit-tap-highlight-color: transparent; }
  .nav-toggle .line { width: 28px; height: 1px; background: var(--text); transition: all 0.3s ease; }
  .nav-links { display: none; }

  .btn { width: 100%; }
  .contact-buttons { flex-direction: column; }
  .project-actions { flex-direction: column; }
}