:root {
  --primary: #ffffff;
  --secondary: #9ca3af;
  --accent: #4b5563;
  --dark: #080c10;
  --light: #e6edf3;
  --color-1: #00ff88; /* Neon Green */
  --color-2: #00ccff; /* Neon Blue */
  --color-3: #ff0055; /* Neon Pink */
  --color-4: #a200ff; /* Neon Purple */
  --color-5: #00ffcc; /* Cyan */

  /* Dark Mode Default */
  --bg-primary: #080c10;
  --bg-secondary: #121820;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --border-color: #21262d;
  --glass-bg: rgba(8, 12, 16, 0.85);
  --grid-color: rgba(0, 255, 136, 0.05);
}

body.dark-mode {
  --bg-primary: #080c10;
  --bg-secondary: #121820;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --border-color: #21262d;
  --glass-bg: rgba(8, 12, 16, 0.85);
  --grid-color: rgba(0, 255, 136, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Brutalist: Sharp Corners */
  border-radius: 0 !important;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "JetBrains Mono", monospace;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6, .section-title, .sidebar-name, .project-item h3 {
  font-family: "Space Mono", monospace;
  letter-spacing: -0.5px;
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */

/* Sidebar Container */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 280px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem 1.5rem;
}

/* Sidebar Header */
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.sidebar-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-1), var(--color-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.sidebar-profile {
  flex: 1;
  min-width: 0;
}

.sidebar-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.sidebar-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 0 0;
  font-weight: 500;
  min-height: 1.2rem;
}

.role-text {
  display: inline-block;
  animation: fadeText 1s ease-in-out;
}

@keyframes fadeText {
  0% {
    opacity: 0;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
}

.sidebar-link .material-icons {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.sidebar-link:hover {
  background-color: rgba(255, 107, 107, 0.08);
  color: var(--color-1);
  transform: translateX(4px);
}

.sidebar-link:hover .material-icons {
  transform: scale(1.1);
}

.sidebar-link.active {
  background-color: rgba(255, 107, 107, 0.12);
  color: var(--color-1);
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--color-1);
  border-radius: 0 2px 2px 0;
}

/* Sidebar Footer */
.sidebar-footer {
  display: flex;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.sidebar-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  color: var(--text-secondary);
  background-color: rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  text-decoration: none;
}

body.dark-mode .sidebar-social {
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-social:hover {
  background-color: rgba(255, 107, 107, 0.1);
  color: var(--color-1);
  transform: translateY(-2px);
}

.sidebar-social .material-icons {
  font-size: 1.125rem;
}

/* Main Content Wrapper */
.main-content {
  margin-left: 280px;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  color: var(--color-1);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background-color: rgba(255, 107, 107, 0.1);
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

/* Dark Mode Toggle Position Adjustment */
.dark-mode-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 40;
}

/* 3D Background Styles */
.bg-3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

#canvas-container {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* Glassmorphism Effect - Simplified */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
}

/* Floating Animation */
.float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* 3D Card Effect - Simplified */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}

.card-3d:hover {
  transform: translateY(-2px);
}

/* Navigation */
.nav-link {
  position: relative;
  transition: color 0.3s;
  color: var(--text-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-1);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Modern Navigation Links */
.nav-link-modern {
  position: relative;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-link-modern:hover {
  color: var(--color-1);
  background-color: rgba(255, 107, 107, 0.08);
}

.nav-link-modern.active {
  color: var(--color-1);
  background-color: rgba(255, 107, 107, 0.12);
}

/* Clean Text Effect */
.text-3d {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
}

/* Animated Chart Container */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* Floating Elements - Simplified */
.floating-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  animation: float 15s infinite ease-in-out;
}

.floating-element:nth-child(1) {
  width: 300px;
  height: 300px;
  background: var(--color-1);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  width: 200px;
  height: 200px;
  background: var(--color-2);
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  width: 250px;
  height: 250px;
  background: var(--color-3);
  bottom: 10%;
  left: 15%;
  animation-delay: 4s;
}

/* Grid Background */
.grid-bg {
  background-image: linear-gradient(
      var(--grid-color) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 20px 20px;
  transition: all 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
  .text-3d {
    font-size: 2rem;
  }
}

/* Icon Colors */
.icon-1 {
  color: var(--color-1);
}
.icon-2 {
  color: var(--color-2);
}
.icon-3 {
  color: var(--color-3);
}
.icon-4 {
  color: var(--color-4);
}
.icon-5 {
  color: var(--color-5);
}

/* Filter Button Styles */
.filter-btn {
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.filter-btn.active {
  background-color: var(--color-1);
  color: white;
  border-color: var(--color-1);
}

.filter-btn:not(.active) {
  background-color: transparent;
  color: var(--color-4);
  border-color: var(--color-4);
}

.filter-btn:not(.active):hover {
  background-color: var(--color-4);
  color: white;
}

/* Filter Item Animation */
.filter-item {
  transition: all 0.5s ease;
}

.filter-item.hide {
  opacity: 0;
  transform: scale(0.8);
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Project Filter Button Styles */
.filter-project-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-project-btn.active {
  background-color: var(--color-1);
  color: white;
}

.filter-project-btn:not(.active):hover {
  background-color: var(--color-1);
  color: white;
}

/* Project Item Animation */
.project-item {
  transition: all 0.3s ease;
}

/* Project Tag Styles */
.project-item .glass {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .project-item .glass {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark Mode Toggle Button - Adjusted for Sidebar */
.dark-mode-toggle {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.dark-mode-toggle .material-icons {
  transition: opacity 0.3s;
}

.dark-mode-toggle .sun-icon {
  opacity: 1;
  position: absolute;
}

.dark-mode-toggle .moon-icon {
  opacity: 0;
  position: absolute;
}

body.dark-mode .dark-mode-toggle .sun-icon {
  opacity: 0;
}

body.dark-mode .dark-mode-toggle .moon-icon {
  opacity: 1;
}

/* Dark Mode Card Styles */
body.dark-mode .bg-white {
  background-color: #1e293b;
}

body.dark-mode .border-gray-100 {
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .text-gray-700,
body.dark-mode .text-gray-800 {
  color: #cbd5e1;
}

body.dark-mode .bg-gray-100 {
  background-color: #334155;
}

body.dark-mode input,
body.dark-mode textarea {
  background-color: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #f1f5f9;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #94a3b8;
}

body.dark-mode input:focus,
body.dark-mode textarea:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .border-t {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .text-gray-600 {
  color: #94a3b8;
}

body.dark-mode .shadow-lg {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

/* ============================================
   ANIMATION STYLES
   ============================================ */

/* Fade In Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale Animations */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Typing Effect */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Gradient Animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Rotate Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Shake Animation */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

/* Glow Animation */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.8), 0 0 30px rgba(78, 205, 196, 0.6);
  }
}

/* Animation Classes */
.animate-fadeIn {
  animation: fadeIn 1s ease-out;
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fadeInDown {
  animation: fadeInDown 0.8s ease-out;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fadeInRight {
  animation: fadeInRight 0.8s ease-out;
}

.animate-scaleIn {
  animation: scaleIn 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

.animate-glow {
  animation: glow 3s ease-in-out infinite;
}

/* Scroll Animation Classes */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-left.active {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-right.active {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Text Gradient Animation */
.text-gradient-animate {
  background: linear-gradient(
    90deg,
    var(--color-1),
    var(--color-2),
    var(--color-3),
    var(--color-1)
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

/* Hover Animations */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hover-grow {
  transition: transform 0.3s ease;
}

.hover-grow:hover {
  transform: scale(1.05);
}

.hover-glow:hover {
  animation: glow 1.5s ease-in-out infinite;
}

/* ============================================
   SIMPLIFIED DESIGN UTILITIES
   ============================================ */

/* Consistent Spacing */
.section-spacing {
  padding: 5rem 0;
}

.section-spacing-sm {
  padding: 3rem 0;
}

/* Simplified Cards */
.card-simple {
  background: var(--glass-bg);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.card-simple:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Clean Section Headers */
.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Simplified Grid */
.grid-simple {
  display: grid;
  gap: 2rem;
}

/* Clean Buttons */
.btn-simple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-simple:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Cleaner Typography */
body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
}

p {
  line-height: 1.7;
}

/* Simplified Navigation */
nav {
  backdrop-filter: blur(12px);
}

/* Cleaner Form Inputs */
input, textarea {
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-1);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}


/* ============================================
   BRUTALIST & HACKER THEME OVERRIDES
   ============================================ */

/* Glass Cards Override */
.glass {
  background: var(--glass-bg) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: none !important;
  transition: all 0.3s ease !important;
}

.glass:hover, .card-simple:hover, .project-item:hover, .sidebar-link:hover {
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2), 0 0 5px rgba(0, 255, 136, 0.4) !important;
  border-color: var(--color-1) !important;
  transform: translateY(-2px);
}

/* Buttons Override */
.btn-simple, .filter-btn {
  border: 1px solid var(--color-1) !important;
  background: transparent !important;
  color: var(--color-1) !important;
  box-shadow: none !important;
  transition: all 0.3s ease !important;
}

.btn-simple:hover, .filter-btn:hover, .filter-btn.active {
  background: var(--color-1) !important;
  color: #000 !important;
  box-shadow: 0 0 15px var(--color-1) !important;
}

/* Gradient Text Override */
.text-gradient-animate {
  color: var(--color-1) !important;
  background: none !important;
  -webkit-text-fill-color: var(--color-1) !important;
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

/* Sidebar overrides */
.sidebar-logo {
  background: transparent !important;
  border: 1px solid var(--color-1);
  color: var(--color-1) !important;
  box-shadow: inset 0 0 10px rgba(0, 255, 136, 0.2);
}

.sidebar-name span {
  color: var(--text-primary) !important;
}
.sidebar-name span:last-child {
  color: var(--color-1) !important;
}

/* Scrollbar Hacker style */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border: 1px solid var(--color-1);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-1);
}
