@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&display=swap");

:root {
  --bg-dark: #000000;
  --bg-light: #ffffff;
  --text-dark: #ffffff;
  --text-light: #000000;
  --primary-dark: #ef4444;
  --primary-light: #000000;
  --border-dark: #333333;
  --border-light: #e5e5e5;
  --card-dark: #0a0a0a;
  --card-light: #f9f9f9;
}

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

body {
  font-family: "Fira Code", monospace;
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

body.dark-theme {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

body.light-theme {
  background-color: var(--bg-light);
  color: var(--text-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.dark-theme .theme-toggle {
  border-color: var(--border-dark);
  color: var(--text-dark);
}

.light-theme .theme-toggle {
  border-color: var(--border-light);
  color: var(--text-light);
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.dark-theme .theme-toggle:hover {
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

.light-theme .theme-toggle:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

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

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

.light-theme .sun-icon {
  display: none;
}

.light-theme .moon-icon {
  display: block;
}

/* Navigation */
.navigation {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid;
  border-radius: 50px;
  padding: 0.5rem;
}

.dark-theme .navigation {
  background: rgba(10, 10, 10, 0.8);
  border-color: var(--border-dark);
}

.light-theme .navigation {
  background: rgba(249, 249, 249, 0.8);
  border-color: var(--border-light);
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s;
}

.dark-theme .nav-link {
  color: var(--text-dark);
}

.light-theme .nav-link {
  color: var(--text-light);
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary-dark);
  color: white;
}

.light-theme .nav-link:hover,
.light-theme .nav-link.active {
  background: var(--primary-light);
  color: white;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem;
}

.floating-circles {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: var(--primary-dark);
}

.light-theme .circle {
  background: var(--primary-light);
}

.circle-1 {
  width: 16rem;
  height: 16rem;
  top: 25%;
  left: 25%;
  animation: float-slow 8s ease-in-out infinite;
}

.circle-2 {
  width: 12rem;
  height: 12rem;
  bottom: 25%;
  right: 25%;
  animation: float-medium 6s ease-in-out infinite;
}

.circle-3 {
  width: 8rem;
  height: 8rem;
  top: 50%;
  right: 33%;
  animation: float-fast 4s ease-in-out infinite;
}

@keyframes float-slow {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, 20px);
  }
}

@keyframes float-medium {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-15px, 15px);
  }
}

@keyframes float-fast {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10px, -10px);
  }
}

.hero-title {
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 700;
  text-align: center;
}

.dark-theme .hero-subtitle {
  color: var(--primary-dark);
}

.light-theme .hero-subtitle {
  color: var(--primary-light);
}

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

.section-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
}

.dark-theme .section-title {
  color: var(--primary-dark);
}

.light-theme .section-title {
  color: var(--primary-light);
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 3rem;
}

.dark-theme .page-title {
  color: var(--primary-dark);
}

.light-theme .page-title {
  color: var(--primary-light);
}

/* About */
.about-content,
.about-page-content {
  max-width: 800px;
  margin: 0 auto;
}

.terminal-text {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.prompt {
  color: var(--primary-dark);
  margin-right: 0.5rem;
}

.light-theme .prompt {
  color: var(--primary-light);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.skill-card {
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}

.light-theme .skill-card {
  background: var(--card-light);
  border-color: var(--border-light);
}

.skill-card:hover {
  transform: scale(1.05);
  border-color: var(--primary-dark);
}

.light-theme .skill-card:hover {
  border-color: var(--primary-light);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s;
}

.light-theme .project-card {
  background: var(--card-light);
  border-color: var(--border-light);
}

.project-card:hover {
  transform: scale(1.05);
  border-color: var(--primary-dark);
}

.light-theme .project-card:hover {
  border-color: var(--primary-light);
}

.project-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.project-card:hover h3 {
  color: var(--primary-dark);
}

.light-theme .project-card:hover h3 {
  color: var(--primary-light);
}

.project-card p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

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

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: rgba(239, 68, 68, 0.2);
  color: var(--primary-dark);
}

.light-theme .tag {
  background: rgba(0, 0, 0, 0.1);
  color: var(--primary-light);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  gap: 1rem;
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.light-theme .blog-card {
  background: var(--card-light);
  border-color: var(--border-light);
}

.blog-card:hover {
  transform: scale(1.05);
  border-color: var(--primary-dark);
}

.light-theme .blog-card:hover {
  border-color: var(--primary-light);
}

.blog-icon {
  flex-shrink: 0;
  color: var(--primary-dark);
}

.light-theme .blog-icon {
  color: var(--primary-light);
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.blog-card:hover h3 {
  color: var(--primary-dark);
}

.light-theme .blog-card:hover h3 {
  color: var(--primary-light);
}

.blog-card p {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.blog-date {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Blog Single */
.blog-single {
  max-width: 800px;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--primary-dark);
  text-decoration: none;
  transition: transform 0.3s;
}

.light-theme .back-link {
  color: var(--primary-light);
}

.back-link:hover {
  transform: translateX(-5px);
}

.blog-single-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.blog-single-date {
  font-size: 0.875rem;
  opacity: 0.6;
  margin-bottom: 2rem;
}

.blog-single-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

/* Contact Form */
.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
  border-radius: 0.5rem;
  padding: 2rem;
}

.light-theme .contact-form {
  background: var(--card-light);
  border-color: var(--border-light);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-dark);
  border-radius: 0.375rem;
  background: var(--bg-dark);
  color: var(--text-dark);
  font-family: "Fira Code", monospace;
  font-size: 0.875rem;
}

.light-theme .form-group input,
.light-theme .form-group textarea {
  border-color: var(--border-light);
  background: var(--bg-light);
  color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-dark);
}

.light-theme .form-group input:focus,
.light-theme .form-group textarea:focus {
  border-color: var(--primary-light);
}

.contact-email {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

.contact-email a {
  color: var(--primary-dark);
  text-decoration: none;
}

.light-theme .contact-email a {
  color: var(--primary-light);
}

.contact-email a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  font-family: "Fira Code", monospace;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--primary-dark);
  color: white;
}

.light-theme .btn-primary {
  background: var(--primary-light);
  color: white;
}

.btn-primary:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-dark);
  color: var(--text-dark);
}

.light-theme .btn-secondary {
  border-color: var(--border-light);
  color: var(--text-light);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-dark);
  padding: 2rem 0;
}

.light-theme .footer {
  border-color: var(--border-light);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer p {
  font-size: 0.875rem;
  opacity: 0.8;
}

.game-dev-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--primary-dark);
}

.light-theme .game-dev-badge {
  color: var(--primary-light);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: inherit;
  opacity: 0.8;
  transition: all 0.3s;
}

.social-links a:hover {
  opacity: 1;
  color: var(--primary-dark);
  transform: scale(1.1);
}

.light-theme .social-links a:hover {
  color: var(--primary-light);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
  border-radius: 0.5rem;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
}

.light-theme .modal-content {
  background: var(--card-light);
  border-color: var(--border-light);
}

.modal-content h2 {
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.light-theme .modal-content h2 {
  color: var(--primary-light);
}

.form-actions {
  display: flex;
  gap: 0.5rem;
}

.form-actions .btn {
  flex: 1;
}

.modal-hint {
  text-align: center;
  font-size: 0.75rem;
  margin-top: 1rem;
  opacity: 0.6;
}

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

.fade-in {
  animation: fade-in 0.6s ease-out forwards;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-400 {
  animation-delay: 400ms;
}

/* Responsive */
@media (max-width: 768px) {
  .navigation {
    width: 95%;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-link {
    padding: 0.5rem;
    font-size: 0.75rem;
  }

  .nav-link svg {
    width: 14px;
    height: 14px;
  }

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

  .projects-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

.text-center {
  text-align: center;
}

.alert {
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgb(34, 197, 94);
  color: rgb(34, 197, 94);
}
