/* ==========================================================================
   Suvam - WEB DEVELOPER PORTFOLIO
   Core Design System & Global Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  /* Brand Color Palette */
  --bg-primary: #0a0604;
  --bg-secondary: #110905;
  --bg-tertiary: #180d07;
  --bg-card: rgba(26, 15, 10, 0.55);
  
  --accent-orange: #FF5722;
  --accent-orange-hover: #ff6a3c;
  --accent-orange-glow: rgba(255, 87, 34, 0.45);
  --accent-orange-soft: rgba(255, 87, 34, 0.12);
  --accent-amber: #FFA048;
  --accent-gold: #FFB74D;
  
  /* Text Colors */
  --text-white: #FFFFFF;
  --text-primary: #F7F5F3;
  --text-secondary: #A69E99;
  --text-muted: #736B66;
  
  /* Glassmorphism System */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-subtle: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  --glass-blur: blur(24px);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Layout */
  --max-width: 1440px;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg-primary: #fbfaf8;
  --bg-secondary: #f4f1ed;
  --bg-tertiary: #ebe5de;
  --bg-card: rgba(255, 255, 255, 0.86);
  --text-white: #24140d;
  --text-primary: #2b1a13;
  --text-secondary: #695a51;
  --text-muted: #88776d;
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-bg-hover: rgba(255, 255, 255, 0.96);
  --glass-border: rgba(91, 64, 47, 0.16);
  --glass-border-subtle: rgba(91, 64, 47, 0.1);
  --glass-shadow: 0 18px 45px rgba(76, 52, 38, 0.12);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Atmospheric Glows */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: 
    radial-gradient(circle at 70% 35%, rgba(255, 87, 34, 0.16) 0%, transparent 60%),
    radial-gradient(circle at 20% 70%, rgba(255, 112, 67, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(255, 152, 0, 0.06) 0%, transparent 45%);
  z-index: 0;
}

:root[data-theme="light"] body::before {
  opacity: 0.28;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #2b180f;
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange);
}

/* Base Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

/* Glass Card Utility */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

/* Badges and Buttons */
button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Noise overlay for high-end feel */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.025;
  pointer-events: none;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
