:root {
  /* Sakura-inspired color palette */
  --primary: #f99d92da;
  --primary-dark: #c9918c;
  --secondary: #9e7682;
  --accent: #f1a3a3;
  --dark: #2d232e;
  --dark-medium: #534954;
  --light: #f9f5f6;
  --light-gray: #e8e1e2;
  --success: #a0c9a4;
  --warning: #f2d0a4;
  --danger: #e88c7d;
  --code-bg: #2d232e;

  /* Typography */
  --font-main: "Poppins", "Segoe UI", Roboto, sans-serif;
  --font-heading: "Poppins", "Segoe UI", Roboto, sans-serif;
  --font-code: "Fira Code", "Courier New", monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Borders */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
}

/* Dark theme (default) */
.dark-theme {
  --bg-primary: var(--dark);
  --bg-secondary: var(--dark-medium);
  --text-primary: var(--light);
  --text-secondary: var(--light-gray);
  --border-color: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(83, 73, 84, 0.8);
  --nav-bg: rgba(45, 35, 46, 0.9);
}

/* Light theme - now darker with more pink tint */
.light-theme {
  --bg-primary: #e8dade;
  --bg-secondary: #dac9cf;
  --text-primary: #2d232e;
  --text-secondary: #534954;
  --border-color: rgba(0, 0, 0, 0.2);
  --card-bg: rgba(245, 235, 240, 0.9);
  --nav-bg: rgba(232, 218, 222, 0.95);
  --hover-color: #b37b76;
  --hover-bg: rgba(201, 145, 140, 0.2);
}

/* Colorful theme - more pinkish backgrounds */
.colorful-theme {
  --bg-primary: #f8e1e5;
  --bg-secondary: #f2c1cc;
  --text-primary: #33272a;
  --text-secondary: #594a4e;
  --border-color: rgba(228, 177, 171, 0.3);
  --card-bg: rgba(248, 225, 229, 0.9);
  --nav-bg: rgba(248, 225, 229, 0.95);
  --primary: #e4b1ab;
  --accent: #f2d0d9;
  --hover-color: #c9918c;
  --hover-bg: rgba(228, 177, 171, 0.2);
}

/* Apply default theme */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  transition: background-color var(--transition-normal);
  overflow-x: hidden;

  /* New flowing sakura-inspired background */
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-primary) 100%);
  position: relative;
}

/* Add a subtle flowing gradient overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(228, 177, 171, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(242, 208, 217, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(158, 118, 130, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Add subtle floating sakura petals to the background */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400' opacity='0.03'%3E%3Cpath d='M179.5,104.5c-14.4,14.4-14.4,37.6,0,52c14.4,14.4,37.6,14.4,52,0c14.4-14.4,14.4-37.6,0-52 C217.1,90.1,193.9,90.1,179.5,104.5z M206.6,131.6c-4.1,4.1-10.8,4.1-14.9,0c-4.1-4.1-4.1-10.8,0-14.9c4.1-4.1,10.8-4.1,14.9,0 C210.7,120.8,210.7,127.5,206.6,131.6z' fill='%23e4b1ab'/%3E%3Cpath d='M112.2,248.8c-14.4,14.4-14.4,37.6,0,52c14.4,14.4,37.6,14.4,52,0c14.4-14.4,14.4-37.6,0-52 C149.8,234.4,126.5,234.4,112.2,248.8z M139.2,275.9c-4.1,4.1-10.8,4.1-14.9,0c-4.1-4.1-4.1-10.8,0-14.9c4.1-4.1,10.8-4.1,14.9,0 C143.3,265,143.3,271.7,139.2,275.9z' fill='%23f2d0d9'/%3E%3Cpath d='M263.9,207.2c-14.4,14.4-14.4,37.6,0,52c14.4,14.4,37.6,14.4,52,0c14.4-14.4,14.4-37.6,0-52 C301.5,192.8,278.3,192.8,263.9,207.2z M290.9,234.3c-4.1,4.1-10.8,4.1-14.9,0c-4.1-4.1-4.1-10.8,0-14.9c4.1-4.1,10.8-4.1,14.9,0 C295,223.5,295,230.2,290.9,234.3z' fill='%239e7682'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: -2;
  animation: floatBackground 120s linear infinite;
}

/* Add animation for the floating background */
@keyframes floatBackground {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

/* Apply dark theme by default */
body {
  --bg-primary: var(--dark);
  --bg-secondary: var(--dark-medium);
  --text-primary: var(--light);
  --text-secondary: var(--light-gray);
  --border-color: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(83, 73, 84, 0.8);
  --nav-bg: rgba(45, 35, 46, 0.9);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  line-height: 1.2;
  font-weight: 700;
  font-family: var(--font-heading);
}

h1 {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--border-radius-sm);
  transition: width var(--transition-normal);
}

/* Hover animation for h2 */
h2:hover::after {
  width: 100%;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
  color: var(--primary);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

/* Hover animation for h3 */
h3:hover {
  transform: translateX(5px);
  color: var(--accent);
}

h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
  font-weight: 400;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

/* Hover animation for h4 */
h4:hover {
  opacity: 1;
}

p {
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

a:hover {
  color: var(--accent);
}

/* Underline animation for links */
a:not(.btn):not(.logo):not(nav a):not(.social-links a)::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent);
  transition: width var(--transition-normal);
}

a:not(.btn):not(.logo):not(nav a):not(.social-links a):hover::after {
  width: 100%;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--nav-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform var(--transition-fast);
}

/* Hover animation for logo */
.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  margin-right: var(--space-sm);
  color: var(--accent);
  transition: transform var(--transition-normal);
}

/* Hover animation for logo icon */
.logo:hover .logo-icon {
  transform: rotate(20deg);
}

.logo-text {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* Mobile menu animation styles */
nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Hide timeline on smaller screens */
@media (max-width: 768px) {
  .timeline {
    display: none;
  }

  /* Show a message instead of the timeline */
  .experience .container::after {
    content: "Please view on a larger screen to see the detailed timeline.";
    display: block;
    text-align: center;
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--primary);
    font-style: italic;
    color: var(--text-secondary);
  }

  /* Show the original timeline content that was hidden */
  .experience .timeline-content {
    display: block !important;
    margin-bottom: var(--space-lg);
    opacity: 1;
    transform: none;
  }
}

/* For very small screens, adjust the message */
@media (max-width: 480px) {
  .experience .container::after {
    font-size: 0.9rem;
    padding: var(--space-sm);
  }
}

@media (max-width: 768px) {
  nav ul {
    display: flex;
    width: 100%;
    flex-direction: column;
    margin-top: var(--space-md);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease, margin-top 0.3s ease;
  }

  nav ul.active {
    display: flex;
    max-height: 300px; /* Adjust based on your menu height */
    opacity: 1;
    margin-top: var(--space-md);
  }

  nav li {
    margin: var(--space-xs) 0;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  nav ul.active li {
    transform: translateY(0);
    opacity: 1;
  }

  /* Staggered animation for menu items */
  nav ul.active li:nth-child(1) {
    transition-delay: 0.05s;
  }
  nav ul.active li:nth-child(2) {
    transition-delay: 0.1s;
  }
  nav ul.active li:nth-child(3) {
    transition-delay: 0.15s;
  }
  nav ul.active li:nth-child(4) {
    transition-delay: 0.2s;
  }
  nav ul.active li:nth-child(5) {
    transition-delay: 0.25s;
  }

  /* Hamburger menu icon animation */
  .menu-toggle {
    transition: transform 0.3s ease;
  }

  .menu-toggle.active {
    transform: rotate(90deg);
  }
}

nav li {
  margin-left: var(--space-lg);
}

nav a {
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transition: width var(--transition-normal), height var(--transition-normal);
}

/* Enhanced hover animation for nav links */
nav a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

nav a:hover::after {
  width: 100%;
  height: 3px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.5rem;
  transition: transform var(--transition-fast);
}

/* Hover animation for menu toggle */
.menu-toggle:hover {
  transform: rotate(90deg);
}

.theme-buttons {
  display: flex;
  gap: var(--space-sm);
}

.theme-button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.theme-button:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.1);
  transform: rotate(30deg) scale(1.2);
}

.theme-button[aria-pressed="true"] {
  color: var(--primary);
  background-color: rgba(228, 177, 171, 0.1);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

#sakura-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(228, 177, 171, 0.1) 0%, transparent 50%),
    linear-gradient(45deg, rgba(158, 118, 130, 0.1) 0%, transparent 50%);
  z-index: -2;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: var(--space-sm);
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.hero h2::after {
  display: none;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: var(--space-lg);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--border-radius-md);
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  gap: var(--space-sm);
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-normal);
}

/* Enhanced hover animation for button icons */
.btn:hover svg {
  transform: translateX(3px) rotate(5deg);
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(228, 177, 171, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--primary);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-outline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transition: width var(--transition-normal);
  z-index: -1;
}

/* Enhanced hover animation for outline buttons */
.btn-outline:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover::before {
  width: 100%;
}

/* Ripple effect for buttons */
.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.btn:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

/* About Section */
.about {
  padding: var(--space-xl) 0;
  position: relative;
}

.about-content {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  margin-top: var(--space-lg);
}

.about-image {
  flex: 1;
  max-width: 400px;
}

.about-image img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-normal);
  border: 3px solid var(--primary);
  filter: brightness(1);
}

/* Enhanced hover animation for profile image */
.about-image img:hover {
  transform: scale(1.05) translateY(-8px) rotate(2deg);
  box-shadow: 0 20px 40px rgba(228, 177, 171, 0.4);
  filter: brightness(1.1);
  border-color: var(--accent);
}

.about-text {
  flex: 2;
}

.about-text p {
  font-size: 1.1rem;
  transition: transform var(--transition-normal);
}

/* Hover animation for about text */
.about-text p:hover {
  transform: translateX(5px);
}

/* Experience Section */
.experience {
  padding: var(--space-xl) 0;
  position: relative;
}

/* Timeline styles */
.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.timeline-year {
  position: relative;
  margin: 2rem 0 1rem;
  font-weight: bold;
  color: var(--primary);
  font-size: 1.5rem;
  padding-left: 1.5rem;
}

.timeline-year::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-color: var(--primary);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(228, 177, 171, 0.3);
}

.timeline-entry {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--index, 0) * 0.1s);
}

.timeline-entry.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-entry .timeline-content {
  display: block;
  margin-left: 0;
  position: relative;
}

.timeline-entries {
  position: relative;
  width: 100%;
}

.timeline-content {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--primary);
  margin-bottom: var(--space-lg);
  position: relative;
  transition: all var(--transition-normal);
}

/* Enhanced hover animation for timeline cards */
.timeline-content:hover {
  transform: translateY(-8px) translateX(5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-left-width: 8px;
  border-left-color: var(--accent);
  background: linear-gradient(to right, var(--card-bg), rgba(228, 177, 171, 0.05));
}

/* Add sakura-themed hover effect to timeline cards */
.timeline-content {
  position: relative;
  overflow: hidden;
}

.timeline-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 50%, rgba(228, 177, 171, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 80% 30%, rgba(158, 118, 130, 0.1) 0%, transparent 20%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
  z-index: 1;
}

.timeline-content:hover::after {
  opacity: 1;
}

/* Add sakura pattern on hover */
.timeline-content::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 20px;
  width: 20px;
  height: 20px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(228, 177, 171, 0.3);
  transition: all var(--transition-normal);
  z-index: 2;
}

.timeline-content:hover::before {
  background-color: var(--accent);
  transform: scale(1.2);
  box-shadow: 0 0 0 6px rgba(228, 177, 171, 0.4), 0 0 20px rgba(228, 177, 171, 0.6);
}

.timeline-content h3 {
  margin-top: 0;
  color: var(--primary);
}

.timeline-content h4 {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
  font-weight: 500;
}

.entry-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  display: block;
  transition: color var(--transition-fast);
}

/* Add elegant effect to dates on hover */
.timeline-content:hover .entry-date {
  font-family: var(--font-heading);
  letter-spacing: 1px;
  color: var(--accent);
}

.timeline-content ul {
  padding-left: var(--space-lg);
  margin-bottom: 0;
}

.timeline-content li {
  margin-bottom: var(--space-sm);
  transition: transform var(--transition-fast);
  position: relative;
}

/* Add sakura-themed hover effect to list items */
.timeline-content li:hover {
  transform: translateX(10px);
  color: var(--primary);
}

.timeline-content li:hover::before {
  background-color: var(--accent);
  transform: scale(1.5);
  box-shadow: 0 0 10px var(--accent);
}

.timeline-content li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.timeline-content li:hover::before {
  background-color: var(--accent);
  transform: scale(1.5);
}

/* Projects Section */
.projects {
  padding: var(--space-xl) 0;
  position: relative;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.project-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transition: height var(--transition-normal);
}

/* Enhanced hover animation for project cards */
.project-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.project-card:hover::before {
  height: 10px;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

/* Hover animation for project images */
.project-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.project-card h3 {
  padding: var(--space-md) var(--space-md) var(--space-xs);
  margin: 0;
  transition: color var(--transition-fast);
}

.project-card:hover h3 {
  color: var(--accent);
}

.project-card p {
  padding: 0 var(--space-md);
  margin-bottom: var(--space-md);
  flex-grow: 1;
  font-size: 0.95rem;
  transition: transform var(--transition-fast);
}

.project-card:hover p {
  transform: translateY(-3px);
}

.project-card .btn {
  margin: var(--space-md);
  align-self: flex-start;
}

/* Custom backgrounds for project cards */
.dark-bg {
  background-color: rgba(158, 118, 130, 0.2);
}

.pink-bg {
  background-color: rgba(242, 208, 217, 0.2);
}

.navy-bg {
  background-color: rgba(201, 145, 140, 0.2);
}

.grey-bg {
  background-color: rgba(83, 73, 84, 0.2);
}

.orange-bg {
  background-color: rgba(242, 208, 164, 0.2);
}

.green-bg {
  background-color: rgba(160, 201, 164, 0.2);
}

/* Skills Section */
.skills {
  padding: var(--space-xl) 0;
  position: relative;
}

.skills-grid,
.skills-grid-concepts {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.skills-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.skills-grid-concepts {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.skill-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  padding: var(--space-md);
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

/* Enhanced hover animation for skill cards */
.skill-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  border-color: var(--primary);
  z-index: 1;
}

.skill-card:hover::before {
  transform: scaleX(1);
}

/* Glow effect for skill cards */
.skill-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, var(--primary) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.skill-card:hover::after {
  opacity: 0.1;
}

.skills-grid-concepts .skill-card {
  text-align: left;
  padding: var(--space-lg);
}

.skills-grid-concepts .skill-card h3 {
  margin-top: 0;
  position: relative;
  display: inline-block;
}

.skills-grid-concepts .skill-card h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transition: width var(--transition-normal);
}

.skills-grid-concepts .skill-card:hover h3::after {
  width: 100%;
}

/* Hover animation for concept card paragraphs */
.skills-grid-concepts .skill-card p {
  transition: transform var(--transition-fast);
  position: relative;
}

.skills-grid-concepts .skill-card p:hover {
  transform: translateX(8px);
}

.skills-grid-concepts .skill-card p:hover::before {
  content: ">";
  position: absolute;
  left: -15px;
  color: var(--primary);
  opacity: 0.7;
}

/* Contact Section */
.contact {
  padding: var(--space-xl) 0;
  position: relative;
}

.contact .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.contact-form {
  width: 100%;
  max-width: 100%;
  margin-top: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-md);
  width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(228, 177, 171, 0.2);
  transform: translateY(-2px);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group button {
  align-self: flex-start;
}

/* Add sakura-themed glow effect on hover */
.form-group input:hover,
.form-group textarea:hover {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(228, 177, 171, 0.2);
}

/* Add responsive styles for the contact form */
@media (min-width: 768px) {
  .contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .form-group:nth-child(3),
  .form-group:nth-child(4) {
    grid-column: span 2;
  }

  /* Add specific padding to ensure no overlap */
  .form-group:nth-child(1) {
    padding-right: var(--space-sm);
  }

  .form-group:nth-child(2) {
    padding-left: var(--space-sm);
  }
}

@media (max-width: 767px) {
  .contact-form {
    width: 100%;
    display: block;
  }

  .form-group {
    padding: 0;
  }
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-color);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

/* Enhanced hover animation for social links */
.social-links a:hover {
  color: var(--primary);
  transform: translateY(-5px) scale(1.2);
}

/* Glow effect for social icons */
.social-links a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.social-links a:hover::after {
  opacity: 0.3;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-top {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-top.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sakura falling animation */
@keyframes fall {
  0% {
    opacity: 0;
    top: -10%;
    transform: translateX(0) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  20% {
    transform: translateX(20px) rotate(45deg);
  }
  40% {
    transform: translateX(-20px) rotate(-45deg);
  }
  60% {
    transform: translateX(20px) rotate(45deg);
  }
  80% {
    transform: translateX(-20px) rotate(-45deg);
  }
  100% {
    top: 110%;
    transform: translateX(0) rotate(90deg);
    opacity: 0;
  }
}

/* Floating animation for elements */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Pulse animation for elements */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(228, 177, 171, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(228, 177, 171, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(228, 177, 171, 0);
  }
}

/* Media Queries */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero h2 {
    font-size: 1.75rem;
  }

  .about-content {
    flex-direction: column;
  }

  .about-image {
    max-width: 300px;
    margin: 0 auto var(--space-lg);
  }
}

@media (max-width: 768px) {
  header .container {
    flex-wrap: wrap;
  }

  nav ul {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: var(--space-md);
  }

  nav ul.active {
    display: flex;
  }

  nav ul.active {
    justify-content: center;
    align-items: center;
  }

  nav li {
    margin: var(--space-xs) 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  footer .container {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  /* Experience section mobile fixes */
  .timeline-content {
    padding: var(--space-md);
    margin-bottom: var(--space-md);
  }

  .timeline-content:hover {
    transform: translateY(-5px) translateX(3px);
  }

  .timeline-content h3 {
    font-size: 1.5rem;
  }

  .timeline-content h4 {
    font-size: 1.1rem;
  }

  .timeline-content ul {
    padding-left: var(--space-md);
  }

  .timeline-content li:hover {
    transform: translateX(5px);
  }

  /* Ensure the timeline dot is visible on mobile */
  .timeline-content::before {
    left: -10px;
    width: 16px;
    height: 16px;
  }

  /* Ensure the experience section has proper padding on mobile */
  .experience {
    padding: var(--space-lg) 0;
  }

  /* Fix for any potential overflow issues */
  .timeline-content {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 576px) {
  /* Further adjustments for very small screens */
  .timeline-content {
    padding: var(--space-sm);
  }

  .timeline-content h3 {
    font-size: 1.3rem;
  }

  .timeline-content h4 {
    font-size: 1rem;
  }

  .timeline-content::before {
    left: -8px;
    width: 12px;
    height: 12px;
  }

  /* Ensure text is readable on small screens */
  .timeline-content li {
    font-size: 0.95rem;
  }

  /* Adjust entry date for better visibility */
  .entry-date {
    font-size: 0.85rem;
  }

  /* Fix for potential touch issues on mobile */
  .timeline-content:active {
    transform: translateY(-5px) translateX(3px);
    border-left-width: 6px;
    border-left-color: var(--accent);
  }

  /* Add touch-friendly active states for mobile */
  .timeline-content li:active {
    transform: translateX(5px);
    color: var(--primary);
  }
}

/* Add touch-friendly active states for all interactive elements */
@media (hover: none) {
  /* For devices that don't support hover */
  .timeline-content:active {
    transform: translateY(-5px) translateX(3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-left-width: 6px;
    border-left-color: var(--accent);
  }

  .timeline-content li:active {
    transform: translateX(5px);
    color: var(--primary);
  }

  .timeline-content li:active::before {
    background-color: var(--accent);
    transform: scale(1.5);
  }

  /* Ensure date effect works on touch */
  .timeline-content:active .entry-date {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    color: var(--accent);
  }
}

/* Fix for potential layout issues in the experience section */
.experience .container {
  width: 100%;
  max-width: 1200px;
  padding: 0 var(--space-md);
  box-sizing: border-box;
  margin: 0 auto;
}

/* Ensure the timeline structure is responsive */
.timeline {
  width: 100%;
  position: relative;
}

.timeline-entries {
  position: relative;
  width: 100%;
}

/* Fix for potential overflow issues in the entire page */
body {
  overflow-x: hidden;
  width: 100%;
}

/* Ensure all sections have proper padding on mobile */
@media (max-width: 768px) {
  section {
    padding: var(--space-lg) 0;
  }

  .container {
    padding: 0 var(--space-md);
  }
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: var(--space-sm);
}

.mb-2 {
  margin-bottom: var(--space-md);
}

.mb-3 {
  margin-bottom: var(--space-lg);
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: var(--space-sm);
}

.mt-2 {
  margin-top: var(--space-md);
}

.mt-3 {
  margin-top: var(--space-lg);
}

/* Sakura-themed animations */
.sakura-float {
  animation: float 6s ease-in-out infinite;
}

.sakura-pulse {
  animation: pulse 2s infinite;
}

/* Hover effect for section headings */
section h2:hover {
  text-shadow: 0 0 10px rgba(228, 177, 171, 0.5);
}

/* Hero Section - Mobile Fixes */
@media (max-width: 768px) {
  .hero {
    padding: var(--space-xl) var(--space-md);
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
  }

  .hero .container {
    width: 100%;
    padding: 0;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.2rem;
    word-wrap: break-word;
    max-width: 100%;
  }

  .hero h2 {
    font-size: 1.5rem;
    word-wrap: break-word;
    max-width: 100%;
  }

  .hero p {
    font-size: 1rem;
    max-width: 100%;
    word-wrap: break-word;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: var(--space-sm);
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: var(--space-sm) var(--space-md);
    justify-content: center;
  }
}

/* Global Mobile Fixes */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    box-sizing: border-box;
  }

  section {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Fix for all buttons on mobile */
  .btn {
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Fix for all text elements to prevent overflow */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* Extra small screens */
@media (max-width: 375px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero h2 {
    font-size: 1.3rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .hero-buttons .btn {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.9rem;
  }
}

/* Sakura petal styles */
.sakura {
  position: absolute;
  background-color: var(--primary);
  border-radius: 150% 0 150% 0;
  animation: fall linear forwards;
  z-index: 0;
}

.sakura::after {
  content: "";
  position: absolute;
  top: -14%;
  left: -10%;
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  border-radius: 150% 0 150% 0;
  transform: rotate(15deg);
}

.sakura.flipped {
  background-color: var(--accent);
}

.sakura.flipped::after {
  background-color: var(--accent);
}

/* Adjust the dark theme background */
.dark-theme {
  --bg-primary: var(--dark);
  --bg-secondary: var(--dark-medium);
  --text-primary: var(--light);
  --text-secondary: var(--light-gray);
  --border-color: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(83, 73, 84, 0.8);
  --nav-bg: rgba(45, 35, 46, 0.9);
}

/* Adjust the light theme background */
.light-theme {
  --bg-primary: #e8dade;
  --bg-secondary: #dac9cf;
  --text-primary: #2d232e;
  --text-secondary: #534954;
  --border-color: rgba(0, 0, 0, 0.2);
  --card-bg: rgba(245, 235, 240, 0.9);
  --nav-bg: rgba(232, 218, 222, 0.95);
  --hover-color: #b37b76;
  --hover-bg: rgba(201, 145, 140, 0.2);
}

/* Update hover effects for light theme */
.light-theme .btn-outline:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(201, 145, 140, 0.3);
}

.light-theme a:hover {
  color: var(--hover-color);
}

.light-theme .skill-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-dark);
  background-color: var(--hover-bg);
  z-index: 1;
}

.light-theme .timeline-content:hover {
  transform: translateY(-8px) translateX(5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-left-width: 8px;
  border-left-color: var(--primary-dark);
  background: linear-gradient(to right, var(--card-bg), rgba(201, 145, 140, 0.1));
}

.light-theme .project-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Add a subtle pinkish texture to light theme background */
.light-theme body::before {
  background: radial-gradient(circle at 20% 30%, rgba(228, 177, 171, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(242, 208, 217, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(158, 118, 130, 0.1) 0%, transparent 70%);
}

/* Adjust the colorful theme background */
.colorful-theme {
  --bg-primary: #f8ccd4e6;
  --bg-secondary: #e5b7c1e2;
  --text-primary: #33272a;
  --text-secondary: #594a4e;
  --border-color: rgba(228, 177, 171, 0.3);
  --card-bg: rgba(248, 225, 229, 0.9);
  --nav-bg: rgba(248, 225, 229, 0.95);
  --primary: #e4b1ab;
  --accent: #f29c96;
  --hover-color: #c9918c;
  --hover-bg: rgba(228, 177, 171, 0.2);
}

/* Enhanced colorful theme with more pink */
.colorful-theme body::before {
  background: radial-gradient(circle at 20% 30%, rgba(242, 208, 217, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(228, 177, 171, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(158, 118, 130, 0.15) 0%, transparent 70%);
}

/* Sakura petal background */
.sakura {
  position: absolute;
  background-color: var(--primary);
  border-radius: 150% 0 150% 0;
  animation: fall linear forwards;
  z-index: 0;
}

.sakura::after {
  content: "";
  position: absolute;
  top: -14%;
  left: -10%;
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  border-radius: 150% 0 150% 0;
  transform: rotate(15deg);
}

.sakura.flipped {
  background-color: var(--accent);
}

.sakura.flipped::after {
  background-color: var(--accent);
}

