/* CSS variables for consistent design tokens */
:root {
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --bg-color: #0b0f19;
  --surface-color: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.08);
  
  --primary: #26a69a;
  --primary-glow: rgba(38, 166, 154, 0.4);
  --secondary: #ffeb3b;
  --secondary-glow: rgba(255, 235, 59, 0.4);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
}

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

html {
  scroll-behavior: smooth;
}

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

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

/* Background glows */
.glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
}

.glow-1 {
  background: var(--primary);
  width: 500px;
  height: 500px;
  top: -100px;
  right: -50px;
}

.glow-2 {
  background: #6200ea;
  width: 600px;
  height: 600px;
  bottom: -200px;
  left: -100px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(12px);
  background-color: rgba(11, 15, 25, 0.7);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.btn-contact {
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  border: 1px solid var(--primary);
  color: var(--primary);
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background-color: var(--primary);
  color: var(--bg-color);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 750px;
}

.badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background-color: rgba(38, 166, 154, 0.1);
  border: 1px solid rgba(38, 166, 154, 0.2);
  color: var(--primary);
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-color);
  box-shadow: 0 4px 20px rgba(38, 166, 154, 0.3);
}

.btn-primary:hover {
  background-color: #2bbbad;
  box-shadow: 0 6px 25px rgba(38, 166, 154, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--border-color);
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.02);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

/* Sections General */
.section-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.5px;
}

/* Projects Section */
.projects {
  padding: 6rem 0;
}

.project-card {
  position: relative;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  top: -150px;
  left: -150px;
  z-index: 1;
  pointer-events: none;
  transition: all 0.5s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(38, 166, 154, 0.3);
  box-shadow: 0 10px 30px rgba(38, 166, 154, 0.08);
}

.project-card:hover .project-glow {
  top: -50px;
  left: -50px;
}

.project-body {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 2rem;
}

.project-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background-color: rgba(38, 166, 154, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(38, 166, 154, 0.2);
}

.project-info {
  display: flex;
  flex-direction: column;
}

.project-tag {
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.project-name {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.project-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.project-tech span {
  padding: 0.3rem 0.8rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.3s ease;
  width: fit-content;
}

.project-link svg {
  transition: transform 0.3s ease;
}

.project-link:hover {
  color: #2bbbad;
}

.project-link:hover svg {
  transform: translate(2px, -2px);
}

/* Skills Section */
.skills-section {
  padding: 6rem 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.skills-category {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.8rem;
  transition: all 0.3s ease;
}

.skills-category:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.05);
}

.skills-category h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.skills-category p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
  padding: 8rem 0 10rem;
}

.contact-card {
  background: linear-gradient(135deg, rgba(38,166,154,0.05) 0%, rgba(98,0,234,0.03) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4rem 2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card h3 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-card p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
  word-break: break-all;
}

.contact-email:hover {
  color: var(--secondary);
  text-shadow: 0 0 20px var(--secondary-glow);
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
  animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .project-body {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .nav {
    display: none; /* simple burger menu / hide logic for brevity */
  }
  
  .contact-email {
    font-size: 1.6rem;
  }
}
