/* Design System & Variables */
:root {
  /* Colors */
  --bg-dark: #050505;
  --bg-card: #0a0a0c;
  --bg-card-hover: #111115;
  
  --text-main: #e0e0e0;
  --text-muted: #9ca3af;
  --text-highlight: #ffffff;
  
  --accent-primary: #00d4ff;
  --accent-secondary: #ff6b6b;
  --accent-tertiary: #ffd93d;
  
  --border-color: #1a3a5a;
  --border-glow: rgba(0, 212, 255, 0.3);
  
  /* Gradients */
  --gradient-main: linear-gradient(135deg, var(--bg-card) 0%, #151520 100%);
  --gradient-text: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  --gradient-glow: radial-gradient(circle at center, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  
  /* Typography */
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 18px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-highlight);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 2px;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--accent-secondary);
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Nav */
header {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1.5rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 3px;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 1px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: var(--transition-normal);
  box-shadow: 0 0 8px var(--accent-primary);
}

.nav-links a:hover {
  color: var(--text-highlight);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at 50% 30%, #1a1a2e 0%, var(--bg-dark) 70%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

.hero p.tagline {
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero p.description {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 4px;
  transition: var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  text-shadow: 0 0 8px var(--accent-primary);
  transform: translateY(-2px);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--bg-dark);
  border: none;
}

.btn-primary:hover {
  background: #00b8dd;
  color: var(--bg-dark);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-normal);
  position: relative;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 40px -10px rgba(0, 212, 255, 0.2);
}

.card-image {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 2rem;
}

.card h3, .card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-highlight);
}

.card .meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-featured {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-dark);
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.badge-outline {
  border: 1px solid var(--border-color);
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.05);
}

/* Project Specifics */
.project-detail-hero {
  padding: 8rem 0 6rem;
  background: radial-gradient(circle at 50% 0%, #1a1a2e 0%, var(--bg-dark) 80%);
  text-align: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.stat-item h4 {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-highlight);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1rem;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-text);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--accent-primary);
}

/* Section Styling */
section {
  padding: var(--spacing-lg) 0;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-highlight);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background: #020202;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem;
}

.footer-section h3 {
  color: var(--accent-primary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .nav-links {
    display: none; /* Add mobile menu later if needed */
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
}
