:root {
  --color-bg: #fff;
  --color-text: #23232b;
  --color-primary: #FF1744; /* Candy Red */
  --color-accent: #23232b;  /* Deep Charcoal */
  --color-hero-left: #FF1744;
  --color-hero-right: #fff;
  --color-nav: #23232b;
  --color-card: #fff;
  --color-skill-bg: #fff0f3;
  --color-skill-hover: #FF1744;
  --color-highlight: rgba(255,23,68,0.07);
  --color-footer: #23232b;
  --color-footer-text: #fff;
}
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  transition: background 0.4s, color 0.4s;
}
.hero-split {
  display: flex;
  min-height: 100vh;
}
.hero-left {
  background: var(--color-hero-left);
  color: #fff;
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 3rem 2.5rem 3rem 3.5rem;
  transition: background 0.4s, color 0.4s;
}
.hero-right {
  background: var(--color-hero-right);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.4s;
}
.nav-toggle {
  position: absolute;
  top: 2rem;
  left: 2rem;
  background: transparent !important;
  border: none;
  cursor: pointer;
  z-index: 10;
  color: #fff;
  transition: transform 0.22s cubic-bezier(.4,0,.2,1);
}
.nav-toggle:hover {
  transform: scale(1.12) rotate(-8deg);
}
.nav-toggle.active {
  transform: scale(1.22) rotate(12deg);
}
.nav-icon {
  width: 28px;
  height: 4px;
  background: #fff !important;
  display: block;
  border-radius: 2px;
  position: relative;
}
.nav-icon::before,
.nav-icon::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 4px;
  background: #fff !important;
  border-radius: 2px;
  left: 0;
}
.nav-icon::before {
  top: -9px;
}
.nav-icon::after {
  top: 9px;
}
.nav-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,35,43,0.55);
  opacity: 0;
  pointer-events: none;
  z-index: 15;
  transition: opacity 0.36s cubic-bezier(.4,0,.2,1);
}
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  max-width: 95vw;
  height: 100vh;
  background: #23232b;
  color: #fff;
  box-shadow: 4px 0 32px 0 rgba(0,0,0,0.18);
  padding: 4rem 2rem 2rem 2rem;
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
  transform: translateX(-40px) scale(0.98);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(.4,0,.2,1), opacity 0.38s cubic-bezier(.4,0,.2,1);
  z-index: 20;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  animation: none;
}
.side-nav.open {
  animation: navBounceIn 0.55s cubic-bezier(.68,-0.55,.27,1.55) 0s 1 both;
  transform: translateX(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@keyframes navBounceIn {
  0% {
    opacity: 0;
    transform: translateX(-60px) scale(0.96);
  }
  60% {
    opacity: 1;
    transform: translateX(8px) scale(1.04);
  }
  80% {
    transform: translateX(-2px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
.side-nav ul {
  margin-top: 2rem;
}
.side-nav li {
  margin: 2rem 0;
}
.side-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  transition: color 0.2s;
}
.side-nav a:hover {
  color: var(--color-primary);
}
.hero-content {
  margin-top: 5rem;
  max-width: 500px;
}
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}
.hero-intro {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}
.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.highlight {
  background: var(--color-highlight);
  color: #fff;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.hero-photo-frame {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 1;
  transform: scale(1);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}
.hero-photo-frame.pop-in {
  animation: popInPhoto 0.8s cubic-bezier(.4,0,.2,1) 0.2s forwards;
}
@keyframes popInPhoto {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  80% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.hero-photo-frame:hover {
  transform: scale(1.06);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}
.hero-photo {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(35,35,43,0.10);
  border: 4px solid #fff;
  z-index: 4;
  position: relative;
}
.geo-shapes {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}
.geo-shapes::before {
  content: '';
  position: absolute;
  top: 18px; left: 18px;
  width: 220px; height: 220px;
  border: 2px dashed #3a2fd6;
  border-radius: 18px;
  z-index: 1;
}
.geo-shapes::after {
  content: '';
  position: absolute;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  border: 2px solid #3a2fd6;
  border-radius: 12px;
  z-index: 1;
}
main {
  background: #f7f9fb;
}
.section {
  padding: 4.5rem 0 3.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
}
.section-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(35,35,43,0.06);
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  max-width: 700px;
  width: 100%;
  margin-bottom: 2.5rem;
}
.section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #FF1744;
  margin-bottom: 1.2rem;
  text-align: center;
}
.section .container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 0;
  list-style: none;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.skills-list li {
  background: #ffe3e8;
  color: #FF1744;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-size: 1.08rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5em;
  box-shadow: 0 2px 8px rgba(255,23,68,0.04);
  transition: background 0.3s, color 0.3s;
}
.skills-list li:hover {
  background: #FF1744;
  color: #fff;
}
.skill-icon {
  width: 22px;
  height: 22px;
  margin: 0;
}
.currently-learning {
  margin-top: 0.5rem;
  color: #23232b;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  text-align: center;
}
.projects-grid {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}
.project-card {
  background: #fff;
  border: 1px solid #ffe3e8;
  border-radius: 16px;
  padding: 2rem 2.2rem;
  width: 260px;
  box-shadow: 0 4px 24px rgba(35,35,43,0.07);
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #23232b;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
}
.project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(255,23,68,0.13), 0 2px 8px rgba(0,0,0,0.04);
  border-color: #FF1744;
  color: #FF1744;
}
.project-card.coming-soon {
  opacity: 0.7;
  color: #888;
}
footer {
  background: var(--color-footer);
  color: var(--color-footer-text);
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 0.95rem;
}
@media (max-width: 900px) {
  .hero-split {
    flex-direction: column;
  }
  .hero-left, .hero-right {
    min-height: 320px;
    padding: 2rem 1rem;
    width: 100%;
  }
  .hero-content {
    margin-top: 2rem;
    align-items: center;
    text-align: center;
  }
  .hero-photo-frame {
    width: 180px;
    height: 180px;
  }
  .hero-photo {
    width: 160px;
    height: 160px;
  }
  .section-card, .section .container {
    max-width: 98vw;
    padding: 1.2rem;
  }
  .projects-grid {
    gap: 1.2rem;
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 600px) {
  .hero-left, .hero-right {
    padding: 1rem 0.5rem;
    width: 100%;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .hero-name {
    font-size: 1.1rem;
  }
  .hero-photo-frame {
    width: 110px;
    height: 110px;
  }
  .hero-photo {
    width: 90px;
    height: 90px;
  }
  .section-card {
    padding: 0.7rem;
    border-radius: 12px;
  }
  .skills-list li {
    font-size: 0.98rem;
    padding: 0.5rem 1rem;
  }
  .project-card {
    width: 90vw;
    min-width: 0;
    padding: 1.2rem 0.5rem;
    font-size: 1rem;
  }
  .side-nav {
    width: 90vw;
    max-width: 98vw;
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
    padding: 3rem 1rem 1rem 1.2rem;
  }
}
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.1rem;
  }
  .hero-photo-frame {
    width: 70px;
    height: 70px;
  }
  .hero-photo {
    width: 60px;
    height: 60px;
  }
  .section-card {
    padding: 0.3rem;
    border-radius: 8px;
  }
}
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: none;
}
.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.slide-in-left.visible {
  opacity: 1;
  transform: none;
}
.zoom-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.zoom-in.visible {
  opacity: 1;
  transform: none;
}
.fade-in {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1);
}
.fade-in.visible {
  opacity: 1;
}
.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.3s, color 0.3s;
}
.theme-toggle.sun::before {
  content: '\2600'; /* sun */
  color: #fff;
}
.theme-toggle.moon::before {
  content: '\1F319'; /* moon */
  color: #fff;
}
/* Dark mode styles */
body.dark {
  --color-bg: #23232b;
  --color-text: #fff;
  --color-primary: #FF1744;
  --color-accent: #fff;
  --color-hero-left: #23232b;
  --color-hero-right: #23232b;
  --color-nav: #23232b;
  --color-card: #23232b;
  --color-skill-bg: #2d2d36;
  --color-skill-hover: #FF1744;
  --color-highlight: rgba(255,23,68,0.10);
  --color-footer: #23232b;
  --color-footer-text: #FF1744;
}
.hero-left, .hero-right, .side-nav, .project-card, .skills-list li, .highlight, footer {
  transition: background 0.4s, color 0.4s;
}
.hero-left {
  background: var(--color-hero-left);
  color: var(--color-footer-text);
}
.hero-right {
  background: var(--color-hero-right);
}
.side-nav {
  background: var(--color-nav);
  color: var(--color-footer-text);
}
.skills-list li {
  background: var(--color-skill-bg);
  color: var(--color-primary);
}
.skills-list li:hover {
  background: var(--color-skill-hover);
}
.highlight {
  background: var(--color-highlight);
  color: var(--color-footer-text);
}
.project-card {
  background: var(--color-card);
  border-color: var(--color-skill-bg);
}
.project-card:hover {
  border-color: var(--color-primary);
}
footer {
  background: var(--color-footer);
  color: var(--color-footer-text);
}
.hero-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}
.nav-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,35,43,0.55);
  opacity: 0;
  pointer-events: none;
  z-index: 15;
  transition: opacity 0.36s cubic-bezier(.4,0,.2,1);
}
.side-nav.open ~ .nav-overlay,
.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
