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

:root {
  /* Light Mode Colors */
  --background: #fafafa;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --accent: #14b8a6;
  --accent-foreground: #fafafa;
  --border: #e5e5e5;
  --ring: #14b8a6;

  /* Spacing */
  --radius: 12px;
  --container-padding: 1rem;
}

.dark {
  /* Dark Mode Colors */
  --background: #0f172a;
  --foreground: #e2e8f0;
  --card: #1e293b;
  --card-foreground: #e2e8f0;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
  --accent: #14b8a6;
  --accent-foreground: #0f172a;
  --border: #334155;
  --ring: #14b8a6;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.dark header.scrolled {
  background-color: rgba(15, 23, 42, 0.8);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--accent);
}

.nav-desktop {
  display: none;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--foreground);
  background-color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.3s ease;
}

.icon-button:hover {
  background-color: var(--muted);
}

.icon-sun {
  display: none;
}

.dark .icon-sun {
  display: block;
}

.icon-moon {
  display: block;
}

.dark .icon-moon {
  display: none;
}

.menu-toggle {
  display: flex;
}

.icon-close {
  display: none;
}

.menu-toggle.active .icon-menu {
  display: none;
}

.menu-toggle.active .icon-close {
  display: block;
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.nav-mobile.active {
  display: flex;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  padding: 5rem 0;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--muted);
  border-color: var(--accent);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.tech-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tech-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: var(--muted);
  color: var(--foreground);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.badge:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

/* Hero Image */
.hero-image {
  display: flex;
  justify-content: center;
  position: relative;
}

.image-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
}

.image-wrapper {
  position: relative;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(20, 184, 166, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: rgba(30, 41, 59, 0.3);
}

.section-header {
  margin-bottom: 3rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  line-height: 1.5;
}

/* Card Styles */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(20, 184, 166, 0.5);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Experience Section */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.experience-card {
  padding: 2rem;
}

.experience-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.experience-title {
  font-size: 1.5rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.experience-card:hover .experience-title {
  color: var(--accent);
}

.experience-company {
  font-size: 1.125rem;
  color: var(--accent);
  font-weight: 500;
}

.experience-period {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  background-color: var(--muted);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  width: fit-content;
}

.experience-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Projects Section */
.projects-grid {
  display: grid;
  gap: 2rem;
}

.project-card {
  overflow: hidden;
}

.project-image {
  position: relative;
  height: 12rem;
  overflow: hidden;
  background-color: var(--muted);
}

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

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  transition: color 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card:hover .project-title {
  color: var(--accent);
}

.project-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-buttons {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.project-buttons .btn {
  flex: 1;
}

/* About Section */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.about-image {
  display: flex;
  justify-content: center;
  position: relative;
}

.about-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 28rem;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid rgba(20, 184, 166, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.about-image-wrapper img {

  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Footer Styles */
.footer {
  border-top: 1px solid var(--border);
  background-color: rgba(30, 41, 59, 0.3);
}

.footer .container {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-content {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-title {
  font-size: 2rem;
  font-weight: 700;
}

.footer-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-button {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--foreground);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-button:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--accent-foreground);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* Responsive Design */
@media (min-width: 768px) {
  :root {
    --container-padding: 1.5rem;
  }

  .header-content {
    height: 80px;
  }

  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .experience-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  :root {
    --container-padding: 2rem;
  }

  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }

  .hero-image {
    justify-content: flex-end;
  }

  .image-wrapper {
    width: 24rem;
    height: 24rem;
  }

  .hero-title {
    font-size: 4rem;
  }

  .section-title {
    font-size: 3.5rem;
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
