/* Google Fonts Import */
/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: transparent !important; /* Let 3D background show through */
  color: #fff;
  overflow-x: hidden;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  background: var(--bg-color);
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
  width: 10px; /* Width of the scrollbar */
}

::-webkit-scrollbar-track {
  background: var(--bg-dark); /* Match your background */
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--main-color)
  );
  border-radius: 5px;
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    to bottom,
    var(--main-color),
    var(--primary-color)
  );
  box-shadow: 0 0 10px var(--main-color);
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--main-color) var(--bg-dark);
}

:root {
  /* Fonts */
  --font-heading: "Orbitron", sans-serif;

  /* Theme Colors from style2.css */
  --neon-cyan: #00f3ff;
  --glass: rgba(0, 243, 255, 0.05);
  --border: rgba(0, 243, 255, 0.2);
  --neon-glow: 0 0 10px rgba(0, 255, 255, 0.4);

  /* Colors - mostly kept as in your original design */
  --btn-primary: linear-gradient(135deg, #007cf0 0%, #00dfd8 100%);
  --btn-secondary: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  --bg-color: #080808;
  --main-color: #00ffee;
  --primary-color: #3a86ff;
  --git: #6e40c9;
  --dark-color: #121212;
  --bg-color: #0a0a0a;
  --light-color: #f8f9fa;
  --text-color: #e0e0e0;
  --muted-text: #a0a0a0;
  --bg-dark: #121212;
  --card-bg: #1e1e1e;
  --progress-bg: #2c2c2c;
  --header-bg: rgba(8, 8, 8, 0.95);
  --header-border: rgba(0, 255, 238, 0.2);

  /* Added hover effect colors */
  --hover-glow: rgba(0, 255, 238, 0.4);
  --hover-shadow: rgba(0, 255, 238, 0.2);

  /* Programming Skills Colors */
  --html-color: #e44d26;
  --css-color: #264de4;
  --cpp-color: #00599c;
  --python-color: #ffd43b;
  --python-text: #3776ab;
  --csharp-color: #239120;
  --database-color: #f29111;
  --light-black: rgb(13, 13, 13);

  /* Professional Skills Colors */
  --teamwork-color: #9c27b0;
  --communication-color: #03a9f4;
  --git-color: #f05032;
  --mstools-color: #0078d7;

  --portfolio-btn-primary: linear-gradient(135deg, #007cf0 0%, #00dfd8 100%);
  --portfolio-bg-color: #0a0a0a;
  --portfolio-main-color: #00ffee;
  --portfolio-primary-color: #3a86ff;
  --portfolio-dark-color: #121212;
  --portfolio-muted-text: #a0a0a0;
  --portfolio-card-bg: #1e1e1e;
  --portfolio-neon-glow: 0 0 10px rgba(0, 255, 255, 0.4);
  --portfolio-neon-border: 1px solid rgba(0, 255, 255, 0.2);
  --portfolio-separator-color: var(--portfolio-main-color);
}

/* Reset and base styles */
/* (duplicate reset removed to keep stylesheet concise) */

/* Global Heading Styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

h1 {
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  font-weight: 800;
}

h3,
h4,
h5,
h6 {
  font-weight: 700;
}

.demo-section {
  min-height: 100vh;
  padding: 120px 2rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.demo-section h1,
.demo-section h2 {
  color: var(--main-color);
  margin-bottom: 1rem;
}

/* Header Styles - Enhanced with sticky behavior and effects */

/* === 3D Background Integration === */

#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Glassmorphism Class */
.glass {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass:hover {
  box-shadow: 0 0 40px rgba(0, 243, 255, 0.3);
  border-color: var(--neon-cyan);
}

/* Performance: content-visibility for below-fold sections */
.education-section,
.cert-section,
.skills-container,
.portfolio-projects-section {
  content-visibility: auto;
  contain-intrinsic-size: 0 800px;
}

/* Ensure content appears above 3D background */
#intro-overlay,
section,
.demo-section {
  position: relative;
  z-index: 1;
}

/* Ensure header stays above 3D background */


/* Intro overlay should be above 3D background but below header */
#intro-overlay {
  z-index: 500;
}

/* Fallback for no 3D support */
.no-webgl body {
  background: var(--bg-color) !important;
}

/* Content should receive pointer events */
#main-header,
section,
.demo-section,
#intro-overlay {
  pointer-events: auto;
}

/* Header when scrolled */
#main-header.scrolled {
  /* DO NOT change padding or height here */
  /* Only change visual effects, not dimensions */
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--main-color);
  background-color: rgba(8, 8, 8, 0.98); /* Slightly more opaque */
}
