/* Custom CSS Design System */

:root {
  --bg-color: #0f172a;
  --bg-color-alt: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  
  /* Gradients & Accents */
  --accent-cyan: #22d3ee;
  --accent-violet: #a855f7;
  --accent-pink: #ec4899;
  --gradient-glow: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-cyan) 100%);
  --gradient-text: linear-gradient(to right, var(--accent-violet), #38bdf8);

  /* Glassmorphism Cards */
  --glass-bg: rgba(30, 41, 59, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --blur-amount: blur(12px);

  /* Typography */
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body.theme-dark {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 1s var(--transition-smooth) forwards;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 100px 0;
  position: relative;
}

/* Typography Utilities */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* UI Elements */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-amount);
  -webkit-backdrop-filter: var(--blur-amount);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  padding: 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  font-family: var(--font-display);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-glow);
  color: #fff;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--blur-amount);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.25rem 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

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

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; 
}
.hero-content {
  max-width: 800px;
}
.hero-subtitle {
  color: var(--accent-cyan);
  font-family: var(--font-display);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
}
.hero-title {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Background Effects */
.bg-mesh {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, rgba(15,23,42,0) 70%);
  z-index: -1;
  pointer-events: none;
}
.bg-mesh-2 {
  position: absolute;
  bottom: 0;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(34,211,238,0.1) 0%, rgba(15,23,42,0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* Standard Section Header */
.section-header {
  margin-bottom: 4rem;
  text-align: center;
}
.section-subtitle {
  color: var(--accent-cyan);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
  display: block;
}
.section-title {
  font-size: 2.5rem;
  color: var(--text-primary);
}

/* Grids */
.grid {
  display: grid;
  gap: 2rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Custom Components */

/* Pill variants */
.pill {
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: inline-block;
  margin: 0.25rem;
  transition: var(--transition-smooth);
}
.pill:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

/* Skills */
.skill-category {
  margin-bottom: 2rem;
}
.skill-category h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* Project Card specifics */
.project-card .img-placeholder {
  width: 100%;
  height: 200px;
  background: var(--bg-color-alt);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  overflow: hidden;
  position: relative;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover img {
  transform: scale(1.05);
}
.project-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.project-links a {
  margin-right: 1rem;
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: color 0.3s ease;
}
.project-links a:hover {
  color: var(--accent-cyan);
}

/* Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.form-control {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--glass-border);
  padding: 1rem;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.3s;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-violet);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Social icons */
.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.social-links a {
  font-size: 1.25rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}
.social-links a:hover {
  color: var(--accent-cyan);
  transform: translateY(-3px);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .hero-title { font-size: 3rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; } /* Implement a hamburger menu for prod */
  .section { padding: 60px 0; }
  .hero-section { padding-top: 100px; }
}
