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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  overflow-x: hidden;
  background: #000;
}

/* Canvas Background */
canvas {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0;
  margin: 0;
  z-index: -1;
  opacity: 0.8;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  border-radius: 0 0 20px 20px;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.95);
  padding: 0.5rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff6b9d;
}

.nav-profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff6b9d;
  transition: transform 0.3s ease;
}

.nav-profile-img:hover {
  transform: scale(1.1);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #ff6b9d;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff6b9d, #ffd93d);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  margin: 3px 0;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Sakura Toggle Button */
.sakura-toggle {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.sakura-btn {
  background: rgba(255, 107, 157, 0.1);
  border: 2px solid rgba(255, 107, 157, 0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ff6b9d;
  font-size: 1.2rem;
}

.sakura-btn:hover {
  background: rgba(255, 107, 157, 0.2);
  border-color: rgba(255, 107, 157, 0.6);
  transform: scale(1.1);
}

.sakura-btn.active {
  background: rgba(255, 107, 157, 0.3);
  border-color: #ff6b9d;
  color: #ffffff;
}

.sakura-btn.inactive {
  background: rgba(128, 128, 128, 0.1);
  border-color: rgba(128, 128, 128, 0.3);
  color: #888;
}

.sakura-btn.inactive:hover {
  background: rgba(128, 128, 128, 0.2);
  border-color: rgba(128, 128, 128, 0.6);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s both;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.highlight {
  background: linear-gradient(135deg, #ff6b9d, #ffd93d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  text-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.hero-subtitle {
  font-size: clamp(1.3rem, 2.5vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #f5f5f5;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.6s both;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #e8e8e8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.9s both;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

/* Typing cursor animation */
.typing-cursor::after {
  content: '|';
  color: #ffffff;
  animation: blink 1s infinite;
  font-weight: bold;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.btn {
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b9d, #ffd93d);
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 107, 157, 0.3);
}

.btn-secondary {
  border: 3px solid #ff6b9d;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  font-weight: 600;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #ff6b9d, #ffd93d);
  color: #000;
  transform: translateY(-2px);
  border-color: transparent;
  text-shadow: none;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: #ff6b9d;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

@media (max-width: 768px) {
  .hero .scroll-indicator {
    bottom: 6rem;
    left: 48%;
  }
  
  .hero-description {
    padding: 0 2.5rem;
  }
}

.scroll-indicator:hover {
  color: #ffd93d;
  transform: translateX(-50%) scale(1.2);
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.bg-dark {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #ff6b9d, #ffd93d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.skill-category {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category h3 {
  color: #ff6b9d;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

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

.skill-item {
  background: rgba(255, 107, 157, 0.2);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 107, 157, 0.3);
}

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

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.project-link {
  width: 50px;
  height: 50px;
  background: #ff6b9d;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.project-link:hover {
  transform: scale(1.1);
}

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

.project-content h3 {
  color: #ff6b9d;
  margin-bottom: 1rem;
}

.project-content p {
  color: #e0e0e0;
  margin-bottom: 1rem;
  line-height: 1.6;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.project-tech span {
  background: rgba(255, 211, 61, 0.2);
  color: #ffd93d;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 211, 61, 0.3);
}

/* Contact Section */
.contact-content {
  display: flex;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  text-align: center;
  width: 100%;
}

.contact-info h3 {
  color: #ff6b9d;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.contact-info p {
  color: #e0e0e0;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  justify-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-method:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.contact-method > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.contact-method:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  border-color: #ff6b9d;
  box-shadow: 0 10px 25px rgba(255, 107, 157, 0.2);
}

.contact-method i {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff6b9d, #ffd93d);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-method h4 {
  color: #ff6b9d;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.contact-method p {
  color: #b0b0b0;
  margin: 0;
  font-size: 0.9rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #ffffff;
  font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #b0b0b0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ff6b9d;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.9);
  padding: 2rem 0;
  text-align: center;
}

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

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

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #ff6b9d;
  color: #000;
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 107, 157, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 157, 0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    padding-right: 1rem;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 100%;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu a {
    padding: 1rem;
    display: block;
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .nav-container {
    position: relative;
  }

  .sakura-toggle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
  }

  .sakura-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
  }

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

  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* Timeline responsive styles */
  .journey-timeline::before {
    left: 30px !important;
    transform: none !important;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 30px !important;
    margin-right: 0 !important;
    text-align: left !important;
    padding-left: 2rem !important;
    padding-right: 1rem !important;
  }
  
  .timeline-marker {
    left: 30px !important;
    transform: translateX(-50%) !important;
    width: 40px;
    height: 40px;
  }
  
  .timeline-tech {
    justify-content: flex-start;
  }
  
  .company-logo {
    width: 60px;
    height: 60px;
  }
  
  .timeline-header {
    gap: 1rem;
    align-items: flex-start;
  }
  
  .timeline-title {
    padding-top: 0.25rem;
  }
  
  .timeline-item:nth-child(odd) .timeline-header,
  .timeline-item:nth-child(even) .timeline-header {
    flex-direction: row;
  }

  .contact-methods {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    align-items: center !important;
    grid-template-columns: none !important;
    margin-bottom: 3rem !important;
  }

  .contact-method {
    min-width: 280px;
    width: 100%;
    max-width: 350px;
  }

  .contact-method:nth-child(3) {
    grid-column: unset !important;
    justify-self: unset !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .section {
    padding: 4rem 0;
  }

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

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

  .hero-description {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  .project-card {
    margin-bottom: 1rem;
  }

  #projects .projects-grid {
    margin-bottom: 3rem;
  }

  .skill-category {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
  
  .company-logo {
    width: 40px;
    height: 40px;
  }
  
  .timeline-header {
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .timeline-title {
    padding-top: 0.25rem;
  }
  
  .timeline-item:nth-child(odd) .timeline-header,
  .timeline-item:nth-child(even) .timeline-header {
    flex-direction: row;
  }
  
  /* Ensure timeline line position for smaller screens */
  .timeline-marker {
    left: 30px !important;
    transform: translateX(-50%) !important;
    width: 30px;
    height: 30px;
  }
  
  .timeline-marker i {
    font-size: 1rem;
  }
}

/* Professional Journey Timeline */
.journey-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0 0 0;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: calc(100% - 2.5rem);
  background: linear-gradient(to bottom, #ff6b9d, #ffd93d);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 100%;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: 50%;
  text-align: right;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 50%;
  margin-right: 0;
  text-align: left;
  padding-left: 3rem;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff6b9d, #ffd93d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border: 4px solid rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

.timeline-marker i {
  color: #000;
  font-size: 1.5rem;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.timeline-item.education .timeline-content {
  border-color: rgba(255, 107, 157, 0.3);
  background: rgba(255, 107, 157, 0.05);
  padding-bottom: 0rem;
}

.timeline-item.internship .timeline-content {
  border-color: rgba(255, 211, 61, 0.3);
  background: rgba(255, 211, 61, 0.05);
}

.timeline-item.current .timeline-content {
  border-color: rgba(255, 107, 157, 0.5);
  background: rgba(255, 107, 157, 0.1);
  box-shadow: 0 0 30px rgba(255, 107, 157, 0.2);
}

.timeline-date {
  color: #ff6b9d;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-content h3 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.timeline-content h4 {
  color: #ffd93d;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.timeline-content p {
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: inherit;
}

.timeline-tech span {
  background: rgba(255, 211, 61, 0.2);
  color: #ffd93d;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 211, 61, 0.3);
  font-weight: 500;
}

.timeline-item.current .timeline-tech span:last-child {
  background: linear-gradient(135deg, #ff6b9d, #ffd93d);
  color: #000;
  font-weight: 700;
  animation: pulse 2s infinite;
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.timeline-item:nth-child(odd) .timeline-header {
  flex-direction: row;
}

.timeline-item:nth-child(even) .timeline-header {
  flex-direction: row-reverse;
}

.timeline-title {
  flex: 1;
  padding-top: 0.5rem;
}

.company-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}
