/* ===================================
   PROFESSIONAL PORTFOLIO STYLESHEET
   Modern, Clean & Sophisticated Design
   =================================== */

/* ===== CSS VARIABLES ===== */
:root {
  /* Primary Colors */
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --primary-glow: rgba(59, 130, 246, 0.3);

  /* Secondary Colors */
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Dark Theme */
  --dark-bg: #0a0a0a;
  --dark-surface: #111111;
  --dark-elevated: #1a1a1a;
  --dark-border: rgba(255, 255, 255, 0.1);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* Spacing */
  --section-padding: 120px;
  --container-padding: 20px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px var(--primary-glow);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* Light Theme Variables */
.light-theme {
  --dark-bg: #ffffff;
  --dark-surface: #f9fafb;
  --dark-elevated: #f3f4f6;
  --dark-border: rgba(0, 0, 0, 0.1);
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-base),
    color var(--transition-base);
}

::selection {
  background-color: var(--primary);
  color: white;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  color: var(--text-secondary);
  line-height: 1.8;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-base);
}

a:hover {
  color: var(--primary-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-alt {
  background-color: var(--dark-surface);
}

/* ===== CUSTOM CURSOR ===== */
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, opacity 0.3s ease;
  opacity: 0;
}

.cursor-outline {
  width: 32px;
  height: 32px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.2s ease, opacity 0.3s ease;
  opacity: 0;
}

@media (pointer: fine) {
  .cursor-dot,
  .cursor-outline {
    opacity: 1;
  }
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  z-index: 1000;
  transition: all var(--transition-base);
}

header.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-md);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  position: relative;
  z-index: 1001;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.logo-accent {
  color: var(--primary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.theme-toggle:hover {
  background: var(--primary);
  color: white;
  transform: rotate(180deg) scale(1.1);
  box-shadow: var(--shadow-glow);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%;
  transition: width 0.1s ease;
}

/* ===== HOME SECTION ===== */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-50px) translateX(50px);
  }
  50% {
    transform: translateY(-100px) translateX(-50px);
  }
  75% {
    transform: translateY(-50px) translateX(50px);
  }
}

.home-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.profile-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 40px;
}

.profile-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  animation: rotate 8s linear infinite;
  opacity: 0.5;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--dark-bg);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base);
}

.profile-photo:hover {
  transform: scale(1.05);
}

.profile-status {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-surface);
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--dark-border);
  z-index: 3;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.status-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.intro-text {
  margin: 40px 0;
}

.greeting {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 10px;
  font-family: "JetBrains Mono", monospace;
}

.name-title {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.first-name,
.last-name {
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.last-name {
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.typing-container {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subtitle {
  font-size: 1.4rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.typing-text {
  font-weight: 500;
}

.cursor-blink {
  color: var(--primary);
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 60px 0;
}

.stat-card {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
}

.stat-card[data-aos="fade-up"] {
  animation: fadeInUp 0.6s ease forwards;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  background: var(--dark-surface);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i {
  font-size: 1.5rem;
  color: white;
}

.stat-content {
  text-align: left;
}

.stat-content h3 {
  font-size: 2rem;
  margin-bottom: 5px;
  font-family: "Space Grotesk", sans-serif;
}

.stat-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 40px 0;
}

.cta-button {
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.cta-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;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.cta-button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.cta-button.secondary {
  background: var(--dark-elevated);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta-button.secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.social-preview {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.social-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-glow);
}

.social-icon i {
  font-size: 1.2rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--primary);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 3px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    top: 8px;
  }
  100% {
    opacity: 0;
    top: 20px;
  }
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 60px;
}

.section-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-family: "Space Grotesk", sans-serif;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 100%;
  max-width: 300px;
  height: 1px;
  background: var(--dark-border);
  margin-left: 30px;
  position: absolute;
  top: 50%;
  left: 100%;
}

/* ===== ABOUT SECTION ===== */
.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

.lead-text {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 50px;
  text-align: center;
}

.highlight {
  color: var(--primary);
  font-weight: 600;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.about-card {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 35px;
  transition: all var(--transition-base);
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon i {
  font-size: 1.8rem;
  color: white;
}

.about-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.about-card p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.highlight-list {
  list-style: none;
  padding: 0;
}

.highlight-list li {
  padding-left: 25px;
  margin-bottom: 10px;
  position: relative;
  color: var(--text-secondary);
}

.highlight-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.tech-stack {
  margin: 60px 0;
}

.tech-stack h3 {
  font-size: 1.6rem;
  margin-bottom: 30px;
  text-align: center;
}

.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.tech-category {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 25px;
}

.tech-category h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--primary);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tags span {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-base);
}

.tech-tags span:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.achievements-highlight {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 35px;
  margin-top: 40px;
}

.achievements-highlight h3 {
  font-size: 1.6rem;
  margin-bottom: 25px;
  text-align: center;
}

.achievement-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: var(--dark-surface);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.achievement-item:hover {
  transform: translateX(5px);
  background: var(--dark-bg);
}

.achievement-item i {
  font-size: 1.3rem;
  color: var(--primary);
}

.achievement-item span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== EXPERIENCE SECTION ===== */
.timeline {
  position: relative;
  padding-left: 50px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--dark-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-marker {
  position: absolute;
  left: -36px;
  top: 30px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border: 3px solid var(--dark-bg);
  border-radius: 50%;
  z-index: 2;
}

.experience-card {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 35px;
  transition: all var(--transition-base);
}

.experience-card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.experience-header {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.experience-logo {
  width: 70px;
  height: 70px;
  background: white;
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.experience-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.experience-info h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.experience-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.company {
  color: var(--primary);
  font-weight: 600;
}

.separator {
  color: var(--dark-border);
}

.experience-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 25px;
}

.achievement-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.experience-highlights h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.experience-highlights ul {
  list-style: none;
  padding: 0;
}

.experience-highlights li {
  padding-left: 25px;
  margin-bottom: 12px;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.7;
}

.experience-highlights li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.medals-showcase {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.medal-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: var(--dark-surface);
  border-radius: var(--radius-md);
}

.medal-item i {
  font-size: 1.2rem;
}

.medal-item i.gold {
  color: #ffd700;
}
.medal-item i.silver {
  color: #c0c0c0;
}
.medal-item i.bronze {
  color: #cd7f32;
}

.tech-stack-exp {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tech-stack-exp span {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===== LIBRARY SECTION ===== */
.library-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl);
  padding: 50px;
  transition: all var(--transition-base);
}

.library-showcase:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.library-badge-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.library-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.library-badge.version {
  background: var(--dark-surface);
  color: var(--text-secondary);
}

.library-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-family: "Space Grotesk", sans-serif;
}

.library-tagline {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 500;
}

.library-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 30px;
}

.library-features-grid {
  display: grid;
  gap: 15px;
  margin-bottom: 30px;
}

.feature-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.feature-item i {
  font-size: 1.3rem;
  color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 1rem;
  margin-bottom: 3px;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.library-stats {
  display: flex;
  gap: 25px;
  margin-bottom: 30px;
  padding: 20px 0;
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.stat-item i {
  color: var(--primary);
}

.library-actions {
  display: flex;
  gap: 15px;
}

.library-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-base);
}

.library-link.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.library-link.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.library-link.secondary {
  background: var(--dark-surface);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.library-link.secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.library-visual {
  position: relative;
}

.code-window {
  background: #1e1e1e;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
}

.window-header {
  background: #2d2d2d;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}

.window-title {
  margin-left: auto;
  font-size: 0.85rem;
  color: #888;
  font-family: "JetBrains Mono", monospace;
}

.code-content {
  padding: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.code-content .comment {
  color: #6a9955;
}
.code-content .command {
  color: #dcdcaa;
}
.code-content .keyword {
  color: #c586c0;
}
.code-content .string {
  color: #ce9178;
}

.library-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ===== PROJECTS SECTION ===== */
.project-category {
  margin-bottom: 70px;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.8rem;
  margin-bottom: 35px;
  color: var(--text-primary);
}

.category-title i {
  color: var(--primary);
  font-size: 1.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.project-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent);
}

.project-status {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--success);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge .pulse {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.project-content {
  padding: 30px;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.project-tech span {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: "JetBrains Mono", monospace;
}

.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition-base);
}

.project-link.primary {
  background: var(--primary);
  color: white;
}

.project-link.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.project-link.secondary {
  background: var(--dark-surface);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.project-link.secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.project-repo-card {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all var(--transition-base);
}

.project-repo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.repo-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.repo-header i {
  font-size: 2rem;
  color: var(--text-primary);
}

.repo-header h3 {
  flex: 1;
  font-size: 1.8rem;
}

.repo-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.repo-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.project-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.project-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: var(--dark-surface);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.project-item:hover {
  background: var(--dark-bg);
  transform: translateX(5px);
}

.project-item i {
  color: var(--primary);
  font-size: 1.1rem;
}

.project-item span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.repo-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.repo-tech span {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.repo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.repo-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

/* ===== CERTIFICATIONS SECTION ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.cert-card {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform var(--transition-base);
}

.cert-card:hover::before {
  transform: scaleY(1);
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.cert-card.featured-cert {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent);
}

.cert-card.in-progress {
  border-color: var(--warning);
}

.cert-badge {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.cert-badge i {
  font-size: 1.5rem;
  color: white;
}

.cert-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.cert-provider {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.cert-date {
  display: block;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 15px;
  font-family: "JetBrains Mono", monospace;
}

.cert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.cert-skills span {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.cert-status {
  margin: 15px 0;
}

.progress-bar-cert {
  width: 100%;
  height: 6px;
  background: var(--dark-surface);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, var(--warning), var(--primary));
  animation: progress 2s ease infinite;
}

@keyframes progress {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition-base);
}

.cert-link:hover {
  color: var(--primary-light);
  transform: translateX(3px);
}

/* ===== CONTACT SECTION ===== */
.contact-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  margin-bottom: 60px;
}

.contact-intro h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.contact-card {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all var(--transition-base);
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.5rem;
  color: white;
}

.contact-info h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.contact-info a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all var(--transition-base);
}

.contact-info a:hover {
  color: var(--primary);
}

.contact-cta {
  text-align: center;
  margin-top: 50px;
}

.cta-button.large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 400px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 15px;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.footer-column a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--dark-border);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-glow);
}

.back-to-top i {
  font-size: 1.2rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .section-title::after {
    max-width: 200px;
  }

  .library-showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  /* Header */
  header .container {
    position: relative;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  nav ul {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--dark-surface);
    flex-direction: column;
    padding: 30px 0;
    gap: 0;
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  nav ul.active {
    transform: translateX(0);
  }

  nav ul li {
    width: 100%;
    text-align: center;
    padding: 15px 0;
  }

  .nav-link::after {
    display: none;
  }

  /* Home Section */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .stat-content {
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
  }

  /* About Section */
  .about-grid {
    grid-template-columns: 1fr;
  }

  .tech-categories {
    grid-template-columns: 1fr;
  }

  .achievement-items {
    grid-template-columns: 1fr;
  }

  /* Experience */
  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-marker {
    left: -26px;
  }

  .experience-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .medals-showcase {
    flex-direction: column;
  }

  /* Library */
  .library-showcase {
    padding: 30px;
  }

  .library-features-grid {
    grid-template-columns: 1fr;
  }

  .library-actions {
    flex-direction: column;
  }

  .library-link {
    width: 100%;
    justify-content: center;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-list-grid {
    grid-template-columns: 1fr;
  }

  /* Certifications */
  .cert-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-methods {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  /* Section Header */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-title::after {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 50px;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.4rem;
  }

  .profile-wrapper {
    width: 180px;
    height: 180px;
  }

  .profile-photo {
    width: 160px;
    height: 160px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .library-showcase {
    padding: 20px;
  }

  .experience-card,
  .project-repo-card,
  .cert-card,
  .contact-card {
    padding: 20px;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }

  .cursor-dot,
  .cursor-outline {
    display: none;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mt-10 {
  margin-top: 10px;
}
.mt-20 {
  margin-top: 20px;
}
.mt-30 {
  margin-top: 30px;
}

.mb-10 {
  margin-bottom: 10px;
}
.mb-20 {
  margin-bottom: 20px;
}
.mb-30 {
  margin-bottom: 30px;
}

/* ===== PRINT STYLES ===== */
@media print {
  header,
  .mobile-menu-toggle,
  .theme-toggle,
  .back-to-top,
  .scroll-indicator,
  .particles,
  .cursor-dot,
  .cursor-outline,
  .cta-buttons,
  .social-preview,
  footer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    padding: 40px 0;
    page-break-inside: avoid;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  .project-card,
  .experience-card,
  .cert-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary: #0066ff;
    --dark-border: rgba(255, 255, 255, 0.3);
  }

  .light-theme {
    --dark-border: rgba(0, 0, 0, 0.3);
  }
}

/* ===== LOADING SPINNER (Optional) ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--dark-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== REVEAL ANIMATION CLASS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SKILL BARS (If needed) ===== */
.skill-bar {
  background: var(--dark-elevated);
  border-radius: var(--radius-md);
  height: 8px;
  overflow: hidden;
  margin-bottom: 15px;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0;
  transition: width 1.5s ease;
  border-radius: var(--radius-md);
}

/* ===== NOTIFICATION STYLES ===== */
.notification {
  position: fixed;
  top: 100px;
  right: 20px;
  padding: 15px 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  font-weight: 500;
  animation: slideInRight 0.3s ease;
}

.notification-success {
  background: var(--success);
  color: white;
}

.notification-error {
  background: var(--error);
  color: white;
}

.notification-info {
  background: var(--primary);
  color: white;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 6px;
  border: 2px solid var(--dark-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--dark-bg);
}

/* ===== LIGHT THEME SCROLLBAR ===== */
.light-theme::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

.light-theme::-webkit-scrollbar-thumb {
  background: var(--primary);
  border: 2px solid var(--dark-bg);
}

/* ===== ADDITIONAL HOVER EFFECTS ===== */
.hover-lift {
  transition: transform var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.hover-glow {
  transition: box-shadow var(--transition-base);
}

.hover-glow:hover {
  box-shadow: var(--shadow-glow);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== BADGE STYLES ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-primary {
  background: var(--primary);
  color: white;
}

.badge-secondary {
  background: var(--secondary);
  color: white;
}

.badge-success {
  background: var(--success);
  color: white;
}

.badge-warning {
  background: var(--warning);
  color: white;
}

/* ===== TOOLTIP (Optional) ===== */
[data-tooltip] {
  position: relative;
  cursor: pointer;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  padding: 8px 12px;
  background: var(--dark-elevated);
  color: var(--text-primary);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: 1000;
}

[data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: var(--dark-border);
  margin: 40px 0;
}

.divider-vertical {
  width: 1px;
  background: var(--dark-border);
  height: 100%;
}

/* ===== GLASS EFFECT ===== */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.light-theme .glass {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ===== TEXT SELECTION STYLES ===== */
::selection {
  background: var(--primary);
  color: white;
}

::-moz-selection {
  background: var(--primary);
  color: white;
}

/* ===== NO SELECT (for UI elements) ===== */
.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ===== SMOOTH SCROLLING FOR ALL BROWSERS ===== */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ===== CONTAINER QUERIES (Modern CSS) ===== */
@container (min-width: 768px) {
  .responsive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== ASPECT RATIO UTILITIES ===== */
.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.aspect-1-1 {
  aspect-ratio: 1 / 1;
}

/* ===== RESPONSIVE IMAGES ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== FOCUS VISIBLE (Better UX) ===== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ===== END OF STYLESHEET ===== */
