/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
  line-height: 1.6;
  color: hsl(210, 40%, 98%);
  background-color: hsl(220, 26%, 5%);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: hsl(220, 26%, 5%);
}

::-webkit-scrollbar-thumb {
  background: hsl(263, 70%, 50%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(263, 70%, 65%);
}

/* Design System Variables */
:root {
  --background: hsl(220, 26%, 5%);
  --foreground: hsl(210, 40%, 98%);
  --card: hsl(220, 26%, 7%);
  --card-foreground: hsl(210, 40%, 98%);
  --primary: hsl(263, 70%, 50%);
  --primary-foreground: hsl(210, 40%, 98%);
  --primary-glow: hsl(263, 70%, 65%);
  --secondary: hsl(220, 26%, 12%);
  --muted-foreground: hsl(215, 20.2%, 65.1%);
  --border: hsl(220, 26%, 15%);
  --input: hsl(220, 26%, 15%);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(263, 70%, 50%), hsl(280, 70%, 60%));
  --gradient-hero: linear-gradient(135deg, hsl(263, 70%, 50%, 0.1), hsl(280, 70%, 60%, 0.1));

  /* Shadows */
  --glow-primary: 0 0 40px hsl(263, 70%, 50%, 0.3);
  --glow-secondary: 0 0 20px hsl(263, 70%, 50%, 0.2);
  --shadow-elegant: 0 10px 30px -10px hsl(263, 70%, 50%, 0.2);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-foreground {
  color: var(--foreground);
}

.transition-smooth {
  transition: var(--transition-smooth);
}

.transition-spring {
  transition: var(--transition-spring);
}

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Icons */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 2;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.heart-icon {
  width: 1rem;
  height: 1rem;
  stroke: #ef4444;
  fill: #ef4444;
  margin: 0 0.25rem;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  text-decoration: none;
  padding: 0.625rem 1rem;
  height: 2.5rem;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-sm {
  height: 2.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

.btn-lg {
  height: 2.75rem;
  padding: 0.5rem 2rem;
  border-radius: 0.75rem;
}

.btn-full {
  width: 100%;
}

.btn-flex {
  flex: 1;
}

.btn-default {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-default:hover {
  background: hsl(263, 70%, 45%);
}

.btn-outline {
  border: 1px solid var(--input);
  background: var(--background);
  color: var(--foreground);
}

.btn-outline:hover {
  background: var(--secondary);
}

.btn-hero {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--glow-secondary);
  transition: var(--transition-spring);
  transform: scale(1);
}

.btn-hero:hover {
  box-shadow: var(--glow-primary);
  transform: scale(1.05);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Navigation */
.navbar {
  /* position: fixed; */
  top: 0;
  width: 100%;
  z-index: 50;
  /* transition: var(--transition-smooth); */
  /* background: transparent; */
  /* background-color: #181523; */
}

.navbar.scrolled {
  background: rgba(34, 34, 34, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-mobile-btn {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .nav-mobile-btn {
    display: none;
  }
}

.hamburger {
  width: 1.5rem;
  height: 2px;
  background: var(--foreground);
  transition: var(--transition-smooth);
}

.nav-mobile {
  display: none;
  background: rgba(34, 34, 34, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  padding: 1rem;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.nav-mobile-link:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url("src/assets/hero-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: rgba(34, 34, 34, 0.3);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
  max-width: 64rem;
  margin: 0 auto;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  padding-top: 1.5rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 2rem;
}

.social-link {
  color: var(--muted-foreground);
  transition: var(--transition-smooth);
}

.social-link:hover {
  color: var(--primary);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  animation: bounce 2s infinite;
}

.scroll-indicator:hover {
  color: var(--primary);
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40%,
  43% {
    transform: translateX(-50%) translateY(-10px);
  }
  70% {
    transform: translateX(-50%) translateY(-5px);
  }
  90% {
    transform: translateX(-50%) translateY(-2px);
  }
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
}

/* About Section */
.about {
  padding: 5rem 0;
}

.about-content {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
  }
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-heading {
  font-size: 1.5rem;
  font-weight: 600;
}

.about-paragraph {
  color: var(--muted-foreground);
  line-height: 1.75;
}

.skills-grid {
  display: grid;
  gap: 1.5rem;
}

.skill-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.skill-card:hover {
  box-shadow: var(--shadow-elegant);
}

.skill-icon {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: var(--gradient-primary);
  color: white;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-content {
  flex: 1;
}

.skill-title {
  font-weight: 600;
  /* margin-bottom: 0.5rem; */
}

.skill-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Projects Section */
.projects {
  padding: 5rem 0;
}

.projects-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  position: relative;
  background: var(--card);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
  /* group: project; */
}

.project-card:hover {
  box-shadow: var(--shadow-elegant);
}

.project-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.project-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.75;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 9999px;
  background: rgba(147, 51, 234, 0.1);
  color: var(--primary);
}

.project-buttons {
  display: flex;
  gap: 0.75rem;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
}

.contact-content {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-text {
  display: flex;
  flex-direction: column;
  /* gap: 1.5rem; */
}

.contact-heading {
  font-size: 1.5rem;
  font-weight: 600;
}

.contact-paragraph {
  color: var(--muted-foreground);
  line-height: 1.75;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: var(--gradient-primary);
  color: white;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-label {
  font-weight: 500;
}

.contact-value {
  color: var(--muted-foreground);
}
.contact-value a {
  text-decoration: none;
}

.contact-form-container {
  background: var(--card);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-elegant);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.form-input,
.form-textarea {
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--input);
  background: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  transition: var(--transition-smooth);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.2);
}

.form-textarea {
  min-height: 8rem;
  resize: vertical;
}

/* Footer */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-heading {
  font-weight: 600;
}

.footer-text {
  color: var(--muted-foreground);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  color: var(--muted-foreground);
  transition: var(--transition-smooth);
}

.footer-social-link:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
}

.footer-copyright {
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
