/* ===== CSS VARIABLES ===== */
:root {
  --primary: #121212;
  --accent: #ff4040;
  --text: #ffffff;
  --bg-dark: #181818;
  --bg-light: #1e1e1e;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

.light-theme {
  --primary: #f7f7f7;
  --accent: #d72638;
  --text: #121212;
  --bg-dark: #ffffff;
  --bg-light: #f0f0f0;
  --glass-bg: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.1);
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Custom Scrollbar Styling */
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-dark);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Enhanced smooth scrolling */
  scroll-padding-top: 20px;
}

h1, h2, h3 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== UTILITY CLASSES ===== */
.fade {
  animation: fadeIn 1.2s ease-out;
}

/* ===== HERO SECTION ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 100px;
  background: linear-gradient(135deg, var(--primary), var(--bg-light));
  min-height: 100vh;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 1000px;
  flex-wrap: wrap;
  text-align: center;
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 100%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 0 50px rgba(255, 64, 64, 0.4);
  transition: all 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 0 70px rgba(255, 64, 64, 0.6);
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.3rem;
  opacity: 0.9;
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.hero .tagline {
  font-size: 1.4rem;
  color: var(--text);
  font-weight: 600;
  margin: 0;
  opacity: 0.9;
}

.hero .description {
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.8;
  font-weight: 400;
  margin: 0;
  max-width: 500px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-btn {
  padding: 12px 28px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 64, 64, 0.4);
  color: white;
  text-decoration: none;
}

.hero-btn.secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.hero-btn.secondary:hover {
  background: var(--accent);
  color: white;
}

/* ===== PROJECTS SECTION ===== */
.projects {
  padding: 80px 20px;
  scroll-margin-top: 20px;
}

.projects h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5em;
  color: var(--accent);
}

/* Project Filters */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9em;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-2px);
}

/* Project Grid */
.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

/* Project Cards */
.project-card {
  background: var(--glass-bg);
  backdrop-filter: blur(2px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0;
  width: 360px;
  min-height: 260px;
  box-shadow: 0 0 20px rgba(255, 64, 64, 0.2);
  transition: all 0.3s cubic-bezier(.4,2,.6,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  position: relative;
  animation: fadeInUp 0.6s ease-out;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 10px 25px rgba(255, 64, 64, 0.2);
  border: 1px solid var(--accent);
}

/* Project Card Content */
.project-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.project-card h3 {
  font-size: 1.35em;
  margin-bottom: 1.2em;
  padding-right: 80px; /* Space for status badge */
  word-wrap: break-word;
  line-height: 1.3;
}

.project-card p {
  color: var(--text);
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 1.5em;
  flex: 1;
}

/* Project Tags */
.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0.8em 0 1.3em 0;
}

.project-tag {
  background: rgba(255, 64, 64, 0.08);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  font-size: 0.85em;
  padding: 1.5px 8px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: inline-block;
  user-select: none;
  transition: background 0.18s, color 0.18s, border 0.18s;
}

.project-tag:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Project Status Badges */
.project-status {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.status-complete {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid #28a745;
}

.status-wip {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid #ffc107;
}

.status-concept {
  background: rgba(138, 43, 226, 0.2);
  color: #8a2be2;
  border: 1px solid #8a2be2;
}

/* WIP Project Styling */
.project-card.wip {
  opacity: 0.8;
  position: relative;
}

.project-card.wip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 193, 7, 0.1) 50%, transparent 70%);
  animation: shimmer 2s infinite;
  z-index: 1;
  pointer-events: none;
}

.project-card.wip .project-content {
  position: relative;
  z-index: 2;
}

/* Concept Project Styling */
.project-card.concept {
  opacity: 0.85;
  position: relative;
}

.project-card.concept::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(138, 43, 226, 0.3) 0%, transparent 60%);
  animation: conceptPulse 2s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
  border-radius: 12px;
}

.project-card.concept .project-content {
  position: relative;
  z-index: 2;
}

@keyframes conceptPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Project Links */
.project-fact {
  display: block;
  color: var(--text);
  font-size: 1em;
  margin-top: 0.7em;
}

.project-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s, color 0.2s;
  margin-top: auto;
}

.project-link:hover {
  color: var(--text);
  border-bottom: 1.5px solid var(--accent);
  text-decoration: none;
}

/* Non-clickable project links (Concept Phase, Coming Soon) */
.project-link[style*="color:"] {
  pointer-events: none;
  border-bottom: none;
}

.project-link[style*="color:"]:hover {
  border-bottom: none;
}

/* Project Grid Animation Delays */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(7) { animation-delay: 0.7s; }
.project-card:nth-child(8) { animation-delay: 0.8s; }
.project-card:nth-child(9) { animation-delay: 0.9s; }
.project-card:nth-child(10) { animation-delay: 1.0s; }

/* ===== CONTACT SECTION ===== */
.contact {
  padding: 60px 20px;
  background: var(--bg-light);
  text-align: center;
  scroll-margin-top: 20px;
}

.contact h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: var(--accent);
}

.contact p {
  margin: 10px 0;
}

/* ===== PARTICLES BACKGROUND ===== */
#particles-js {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: var(--primary)
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), rgba(255, 64, 64, 0.7));
  border-radius: 6px;
  border: 2px solid var(--bg-dark);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent), var(--accent));
  transform: scaleX(1.1);
}

::-webkit-scrollbar-corner {
  background: var(--bg-dark);
}

/* Smooth scroll for all elements */
html {
  scroll-behavior: smooth;
}

/* Enhanced scroll animations for sections */
.hero, .projects, .contact {
  scroll-margin-top: 20px;
}