/* ==================== Main Styles ==================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==================== Container ==================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 2px;
  transition: all 200ms ease;
  text-align: center;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: inherit;
}

@media (min-width: 768px) {
  .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

.btn-primary {
  background: #000;
  color: white;
  border: 2px solid #6366f1;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: #6366f1;
}

.btn-secondary {
  background: transparent;
  color: #fafafa;
  border: 2px solid #fafafa;
}

.btn-secondary:hover {
  background: #fafafa;
  color: #000;
}

/* ==================== Navigation ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #0a0a0a;
  border-bottom: 1px solid #262626;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-container {
    padding: 1.25rem 2rem;
  }
}

@media (min-width: 1024px) {
  .nav-container {
    padding: 1.5rem 3rem;
  }
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  text-decoration: none;
  position: relative;
  z-index: 1001;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
  background: linear-gradient(135deg, #818cf8, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-subtitle {
  font-size: 0.625rem;
  font-weight: 600;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1;
}

@media (min-width: 768px) {
  .logo-text {
    font-size: 1.5rem;
  }

  .logo-subtitle {
    font-size: 0.75rem;
  }
}

/* Navigation Links */
.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  padding-top: 1%;
  gap: 0.25rem;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: "Space Grotesk", sans-serif;
  color: #a3a3a3;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  transition: all 200ms ease;
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0.25rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: linear-gradient(90deg, #818cf8, #f472b6);
  transform: scaleX(0);
  transition: transform 200ms ease;
}

.nav-link:hover {
  color: #fafafa;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: #fafafa;
  background: rgba(129, 140, 248, 0.1);
}

@media (min-width: 1024px) {
  .nav-link {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
  }
}

/* Navigation Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1001;
}

.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 1.125rem;
  border-radius: 0.625rem;
  background: rgba(23, 23, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
  position: relative;
  overflow: hidden;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #818cf8, #f472b6);
  opacity: 0;
  transition: opacity 200ms ease;
}

.theme-toggle:hover::before {
  opacity: 1;
}

.theme-toggle span {
  position: relative;
  z-index: 1;
}

.sun-icon,
.moon-icon {
  transition: all 200ms ease;
}

[data-theme="dark"] .sun-icon {
  display: none;
}

[data-theme="light"] .moon-icon {
  display: none;
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.625rem;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  background: rgba(23, 23, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.625rem;
  transition: all 200ms ease;
  justify-content: center;
  align-items: center;
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, #818cf8, #f472b6);
  border-radius: 2px;
  transition: all 300ms ease;
}

.mobile-toggle:hover {
  background: rgba(23, 23, 23, 0.9);
  border-color: rgba(129, 140, 248, 0.3);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
@media (max-width: 767px) {
  .nav-links {
    display: flex;
    position: fixed;
    top: 4.5rem;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    background: rgba(23, 23, 23, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    gap: 0.25rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 300ms ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
  }

  .nav-link::after {
    display: none;
  }
}

/* ==================== Hero ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  background: #0a0a0a;
}

@media (min-width: 768px) {
  .hero {
    padding: 9rem 0 6rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 10rem 0 6rem;
  }
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-layout {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-layout {
    gap: 4rem;
  }
}

.hero-content {
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content {
    text-align: left;
  }
}

.hero-greeting {
  font-size: 0.875rem;
  font-weight: 500;
  color: #737373;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: "Space Grotesk", sans-serif;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@media (min-width: 768px) {
  .hero-greeting {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #818cf8 0%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-family: "Space Grotesk", sans-serif;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #fafafa;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.4;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.375rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 1024px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.hero-tagline {
  font-size: 1rem;
  color: #d4d4d4;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.75;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

@media (min-width: 768px) {
  .hero-tagline {
    font-size: 1.0625rem;
    margin: 0 0 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-tagline {
    font-size: 1.125rem;
    margin-bottom: 3rem;
  }
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 1s both;
}

@media (min-width: 768px) {
  .hero-cta {
    justify-content: flex-start;
  }
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  order: -1;
}

@media (min-width: 768px) {
  .hero-image {
    order: 0;
  }
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
}

@media (min-width: 640px) {
  .hero-image-wrapper {
    max-width: 320px;
  }
}

@media (min-width: 768px) {
  .hero-image-wrapper {
    max-width: 400px;
  }
}

.hero-image-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #171717;
  border: 2px solid #262626;
  transition: border-color 200ms;
}

.hero-image-placeholder:hover {
  border-color: #6366f1;
}

.hero-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==================== Sections ==================== */
.section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 4rem 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 6rem 0;
  }
}

.section-title {
  text-align: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #818cf8, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.875rem;
  position: relative;
  padding-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
  }
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #818cf8, #f472b6);
  border-radius: 2px;
}

.section-intro {
  text-align: center;
  max-width: 768px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: #d4d4d4;
}

@media (min-width: 768px) {
  .section-intro {
    font-size: 1.125rem;
    margin: 0 auto 3rem;
  }
}

/* ==================== About ==================== */
.about {
  background-color: #0a0a0a;
}

.about-content {
  max-width: 768px;
  margin: 0 auto;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .about-content {
    font-size: 1.0625rem;
  }
}

@media (min-width: 1024px) {
  .about-content {
    font-size: 1.125rem;
  }
}

/* ==================== Skills ==================== */
.skills {
  background-color: #171717;
}

.skills-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.skill-category {
  background: #171717;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 2px solid #262626;
  transition: border-color 200ms;
}

@media (min-width: 768px) {
  .skill-category {
    padding: 2rem;
  }
}

.skill-category:hover {
  border-color: #6366f1;
}

.skill-category-title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: #fafafa;
}
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

@media (min-width: 768px) {
  .skill-category-title {
    font-size: 1.25rem;
  }
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background-color: #171717;
  color: #d4d4d4;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 200ms ease;
}

.tag:hover {
  background: #262626;
  color: #6366f1;
  border-color: #6366f1;
}

/* ==================== Projects ==================== */
.projects {
  background-color: #0a0a0a;
}

.projects-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    gap: 2rem;
  }
}

.project-card {
  background: rgba(23, 23, 23, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 300ms ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: 0 20px 40px rgba(129, 140, 248, 0.3);
  border-color: #818cf8;
}

@media (min-width: 768px) {
  .project-card:hover {
    transform: translateY(-8px);
  }
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #262626 0%, #171717 100%);
  overflow: hidden;
  position: relative;
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #818cf8 0%, #f472b6 100%);
  opacity: 0.1;
}

.project-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .project-content {
    padding: 1.5rem;
  }
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #fafafa;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

@media (min-width: 768px) {
  .project-title {
    font-size: 1.375rem;
  }
}

.project-description {
  flex: 1;
  margin-bottom: 1rem;
  line-height: 1.75;
  font-size: 0.9375rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ==================== Education ==================== */
.education-card {
  background: rgba(23, 23, 23, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: all 300ms ease;
}

@media (min-width: 768px) {
  .education-card {
    padding: 2rem;
    margin-bottom: 3rem;
  }
}

.education-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(129, 140, 248, 0.3);
  border-color: #818cf8;
}

.education-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .education-header {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }
}

.education-logo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: white;
  border-radius: 0.75rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.education-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.education-content {
  flex: 1;
}

.education-header h3 {
  font-size: 1.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, #818cf8, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .education-header h3 {
    font-size: 1.875rem;
  }
}

.education-school {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fafafa;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .education-school {
    font-size: 1.25rem;
  }
}

.education-period {
  display: block;
  font-size: 1rem;
  color: #d4d4d4;
  margin-bottom: 0.5rem;
}

.education-status {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  background: linear-gradient(135deg, #818cf8, #f472b6);
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  margin-top: 0.5rem;
}

.education-details p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .education-details p {
    font-size: 1.0625rem;
  }
}

.education-highlights {
  background: #171717;
  border-left: 4px solid #818cf8;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .education-highlights {
    padding: 1.5rem;
  }
}

.education-highlights h4 {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 1rem;
  color: #fafafa;
}

@media (min-width: 768px) {
  .education-highlights h4 {
    font-size: 1.25rem;
  }
}

.education-highlights ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .education-highlights ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1.5rem;
  }
}

.education-highlights li {
  padding-left: 1.5rem;
  position: relative;
  color: #d4d4d4;
  font-size: 0.9375rem;
}

.education-highlights li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #818cf8;
  font-weight: bold;
}

/* ==================== Learning ==================== */
.learning {
  background-color: #0a0a0a;
}

.learning-list {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .learning-list {
    gap: 1.5rem;
  }
}

.learning-list li {
  padding: 1rem;
  background-color: #171717;
  border-left: 3px solid #818cf8;
  border-radius: 0.5rem;
  transition: all 200ms ease;
  list-style: none;
}

@media (min-width: 768px) {
  .learning-list li {
    padding: 1.5rem;
    border-left-width: 4px;
  }

  .learning-list li:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}

.learning-list strong {
  display: block;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #fafafa;
  font-family: "Space Grotesk", sans-serif;
}

@media (min-width: 768px) {
  .learning-list strong {
    font-size: 1.25rem;
  }
}

/* ==================== Contact ==================== */
.contact {
  background-color: #171717;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #fafafa;
  font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  background-color: #0a0a0a;
  color: #fafafa;
  font-size: 1rem;
  font-family: inherit;
  transition: all 200ms ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* Error Messages */
.error-message {
  display: block;
  font-size: 0.875rem;
  color: #f87171;
  margin-top: 0.375rem;
  min-height: 1.25rem;
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #f87171;
}

/* Form Status */
.form-status {
  margin-top: 1rem;
  padding: 0;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  text-align: center;
  transition: all 200ms ease;
}

.form-status.success {
  padding: 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.form-status.error {
  padding: 1rem;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
}

/* Full Width Button */
.btn-full {
  width: 100%;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .social-links {
    gap: 1.5rem;
  }
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: #d4d4d4;
  transition: all 200ms ease;
}

@media (min-width: 768px) {
  .social-links a {
    width: 56px;
    height: 56px;
  }

  .social-links a:hover {
    transform: translateY(-4px) rotate(5deg);
  }
}

.social-links a:hover {
  color: #818cf8;
  border-color: #818cf8;
  box-shadow: 0 10px 20px rgba(129, 140, 248, 0.3);
}

/* Contact Links Wrapper */
.contact-links-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.contact-links-wrapper .btn {
  min-width: 200px;
}

/* ==================== Back to Top Button ==================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: #6366f1;
  border: none;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 300ms ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #4f46e5;
}

@media (min-width: 768px) {
  .back-to-top {
    width: 56px;
    height: 56px;
  }
}

/* ==================== Footer ==================== */
.footer {
  background-color: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  text-align: center;
}

@media (min-width: 768px) {
  .footer {
    padding: 3rem 0;
  }
}

.footer p {
  margin-bottom: 0.5rem;
  color: #d4d4d4;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer p {
    font-size: 0.9375rem;
  }
}

.footer-tech {
  color: #737373;
  font-size: 0.875rem;
}

/* ==================== Utilities ==================== */
.text-center {
  text-align: center;
}

.text-muted {
  color: #737373;
}

/* ==================== Page Header ==================== */
.page-header {
  padding: 8rem 0 3rem;
  text-align: center;
  background-color: #171717;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .page-header {
    padding: 10rem 0 4rem;
  }
}

.page-header h1 {
  margin-bottom: 0.75rem;
}

.page-header p {
  color: #737373;
  font-size: 1.0625rem;
}

@media (min-width: 768px) {
  .page-header p {
    font-size: 1.125rem;
  }
}

/* ==================== Back Link ==================== */
.back-link {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #818cf8;
  transition: color 200ms ease;
}

@media (min-width: 768px) {
  .back-link {
    font-size: 1.0625rem;
  }
}

.back-link:hover {
  color: #a5b4fc;
}

/* ==================== Project Header ==================== */
.project-header {
  padding: 8rem 0 3rem;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(129, 140, 248, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(244, 114, 182, 0.1) 0%,
      transparent 50%
    ),
    #0a0a0a;
  text-align: center;
}

@media (min-width: 768px) {
  .project-header {
    padding: 10rem 0 4rem;
  }
}

.project-header h1 {
  font-size: 2rem;
  margin: 1rem 0 0.75rem;
  background: linear-gradient(135deg, #818cf8 0%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  line-height: 1.1;
  font-family: "Space Grotesk", sans-serif;
}

@media (min-width: 768px) {
  .project-header h1 {
    font-size: 3rem;
    margin: 1.5rem 0 1rem;
  }
}

@media (min-width: 1024px) {
  .project-header h1 {
    font-size: 3.5rem;
  }
}

.project-header > .container > p {
  font-size: 1.125rem;
  color: #d4d4d4;
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .project-header > .container > p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .project-meta {
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
}

/* ==================== Case Study ==================== */
.case-study {
  max-width: 900px;
}

.case-study-section {
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .case-study-section {
    margin-bottom: 4rem;
  }
}

.case-study-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: #fafafa;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

@media (min-width: 768px) {
  .case-study-section h2 {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
  }
}

.case-study-section p {
  color: #d4d4d4;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.case-study-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-study-section li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: #d4d4d4;
  line-height: 1.7;
}

.case-study-section li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #818cf8;
  font-weight: bold;
}

/* ==================== Tech Details ==================== */
.tech-details {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  text-align: left;
}

@media (min-width: 640px) {
  .tech-details {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .tech-details {
    gap: 2rem;
  }
}

.tech-detail {
  background-color: #0a0a0a;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 200ms ease;
}

@media (min-width: 768px) {
  .tech-detail {
    padding: 1.5rem;
  }

  .tech-detail:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
}

.tech-detail h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .tech-detail h3 {
    font-size: 1.25rem;
  }
}

/* ==================== Light Theme ==================== */
html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="light"] body {
  background-color: #f8fafc;
  color: #1e293b;
}

/* Typography overrides for light theme */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6 {
  color: #0f172a;
}

html[data-theme="light"] p {
  color: #475569;
}

html[data-theme="light"] a {
  color: #1e293b;
}

/* Navbar Light */
html[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .logo-subtitle {
  color: #64748b;
}

html[data-theme="light"] .nav-link {
  color: #64748b;
}

html[data-theme="light"] .nav-link:hover {
  color: #0f172a;
}

html[data-theme="light"] .nav-link.active {
  color: #0f172a;
  background: rgba(129, 140, 248, 0.15);
}

html[data-theme="light"] .theme-toggle {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .theme-toggle:hover {
  border-color: #818cf8;
}

html[data-theme="light"] .mobile-toggle {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .mobile-toggle:hover {
  border-color: #818cf8;
}

html[data-theme="light"] .nav-links {
  background: #ffffff;
  padding-top: 1%;
}

/* Hero Light */
html[data-theme="light"] .hero {
  background: radial-gradient(
      circle at 20% 50%,
      rgba(129, 140, 248, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(244, 114, 182, 0.12) 0%,
      transparent 50%
    ),
    #f8fafc;
}

html[data-theme="light"] .hero-greeting {
  color: #64748b;
}

html[data-theme="light"] .hero-subtitle {
  color: #0f172a;
}

html[data-theme="light"] .hero-tagline {
  color: #475569;
}

html[data-theme="light"] .hero-image-placeholder {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .hero-image-placeholder:hover {
  border-color: #818cf8;
  box-shadow: 0 20px 60px rgba(129, 140, 248, 0.2);
}

/* Buttons Light */
html[data-theme="light"] .btn-primary {
  background: #fff;
  color: #000;
  border: 2px solid #6366f1;
}

html[data-theme="light"] .btn-primary:hover {
  background: #6366f1;
  color: #fff;
}

html[data-theme="light"] .btn-secondary {
  background: transparent;
  color: #1e293b;
  border: 2px solid #1e293b;
}

html[data-theme="light"] .btn-secondary:hover {
  background: #1e293b;
  color: #fff;
}

/* Sections Light */
html[data-theme="light"] .section,
html[data-theme="light"] section {
  background-color: #f8fafc;
}

html[data-theme="light"] .about {
  background-color: #f8fafc;
}

html[data-theme="light"] .about-content p {
  color: #475569;
}

/* Skills Light */
html[data-theme="light"] .skills {
  background-color: #ffffff;
}

html[data-theme="light"] .skill-category {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .skill-category:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: #818cf8;
}

html[data-theme="light"] .tag {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

html[data-theme="light"] .tag:hover {
  background: linear-gradient(135deg, #818cf8, #f472b6);
  color: white;
  border-color: transparent;
}

/* Projects Light */
html[data-theme="light"] .projects {
  background-color: #f8fafc;
}

html[data-theme="light"] .project-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .project-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #818cf8;
}

html[data-theme="light"] .project-title {
  color: #0f172a;
}

html[data-theme="light"] .project-description {
  color: #475569;
}

html[data-theme="light"] .project-tech span,
html[data-theme="light"] .project-tech .tag {
  background: rgba(129, 140, 248, 0.12);
  color: #4f46e5;
  border: 1px solid rgba(129, 140, 248, 0.2);
}

html[data-theme="light"] .project-image {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

html[data-theme="light"] .project-image::after {
  opacity: 0.15;
}

/* Education Light */
html[data-theme="light"] .education {
  background-color: #ffffff;
}

html[data-theme="light"] .education-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .education-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: #818cf8;
}

html[data-theme="light"] .education-school {
  color: #0f172a;
}

html[data-theme="light"] .education-period {
  color: #64748b;
}

html[data-theme="light"] .education-details p {
  color: #475569;
}

html[data-theme="light"] .education-highlights {
  background: #f8fafc;
  border-left: 4px solid #818cf8;
}

html[data-theme="light"] .education-highlights h4 {
  color: #0f172a;
}

html[data-theme="light"] .education-highlights li {
  color: #475569;
}

/* Learning Light */
html[data-theme="light"] .learning {
  background-color: #f8fafc;
}

html[data-theme="light"] .learning-list li {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #818cf8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

html[data-theme="light"] .learning-list li:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .learning-list strong {
  color: #0f172a;
}

html[data-theme="light"] .learning-list p {
  color: #475569;
}

/* Contact Light */
html[data-theme="light"] .contact {
  background-color: #ffffff;
}

html[data-theme="light"] .form-group label {
  color: #0f172a;
}

html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group select,
html[data-theme="light"] .form-group textarea {
  border: 2px solid #e2e8f0;
  background-color: #ffffff;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .form-group input::placeholder,
html[data-theme="light"] .form-group textarea::placeholder {
  color: #94a3b8;
}

html[data-theme="light"] .form-group input:focus,
html[data-theme="light"] .form-group select:focus,
html[data-theme="light"] .form-group textarea:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.1);
}

html[data-theme="light"] .form-group input[aria-invalid="true"],
html[data-theme="light"] .form-group select[aria-invalid="true"],
html[data-theme="light"] .form-group textarea[aria-invalid="true"] {
  border-color: #ef4444;
}

html[data-theme="light"] .error-message {
  color: #ef4444;
}

html[data-theme="light"] .form-status.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #16a34a;
}

html[data-theme="light"] .form-status.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

html[data-theme="light"] .social-links a {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .social-links a:hover {
  border-color: #818cf8;
  background: linear-gradient(135deg, #818cf8, #f472b6);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(129, 140, 248, 0.3);
}

/* Back to Top Light */
html[data-theme="light"] .back-to-top {
  background: linear-gradient(135deg, #818cf8, #f472b6);
  box-shadow: 0 4px 12px rgba(129, 140, 248, 0.3);
}

html[data-theme="light"] .back-to-top:hover {
  box-shadow: 0 8px 24px rgba(129, 140, 248, 0.5);
}

/* Footer Light */
html[data-theme="light"] .footer,
html[data-theme="light"] footer {
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

html[data-theme="light"] footer p {
  color: #64748b;
}

html[data-theme="light"] .footer-tech {
  color: #94a3b8;
}

/* Section Titles Light */
html[data-theme="light"] .section-intro {
  color: #64748b;
}

/* Tech Details Light */
html[data-theme="light"] .tech-detail {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

html[data-theme="light"] .tech-detail:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: #818cf8;
}

html[data-theme="light"] .tech-detail h3 {
  color: #0f172a;
}

html[data-theme="light"] .tech-detail p {
  color: #475569;
}
/* Project Header Light */
html[data-theme="light"] .project-header {
  background: radial-gradient(
      circle at 20% 50%,
      rgba(129, 140, 248, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(244, 114, 182, 0.1) 0%,
      transparent 50%
    ),
    #f8fafc;
}

html[data-theme="light"] .project-header > .container > p {
  color: #475569;
}

/* Case Study Light */
html[data-theme="light"] .case-study-section h2 {
  color: #0f172a;
}

html[data-theme="light"] .case-study-section p {
  color: #475569;
}

html[data-theme="light"] .case-study-section li {
  color: #475569;
}

/* Back Link Light */
html[data-theme="light"] .back-link {
  color: #6366f1;
}

html[data-theme="light"] .back-link:hover {
  color: #4f46e5;
}

/* ==================== Hero Animations ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== Page Transitions ==================== */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #818cf8, #f472b6);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* Smooth page entrance */
.page-content {
  animation: pageEnter 0.5s ease-out;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
