/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

/* Prevent image dragging */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

/* Section Spacing */
section {
  position: relative;
  z-index: 10;
  scroll-margin-top: 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
}

.section-title {
  font-size: 3.75rem;
  font-weight: 700;
  margin-bottom: 3rem;
  padding-top: 2rem;
}

/* Background Elements */
.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(147, 51, 234, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 51, 234, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
  opacity: 0.3;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.particles::before,
.particles::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(147, 51, 234, 0.4);
  border-radius: 50%;
  box-shadow: 
    100px 200px 0 0 rgba(147, 51, 234, 0.3),
    300px 400px 0 0 rgba(59, 130, 246, 0.3),
    500px 100px 0 0 rgba(147, 51, 234, 0.2),
    700px 300px 0 0 rgba(59, 130, 246, 0.2),
    900px 500px 0 0 rgba(147, 51, 234, 0.3),
    1100px 150px 0 0 rgba(59, 130, 246, 0.2),
    1300px 350px 0 0 rgba(147, 51, 234, 0.3),
    1500px 250px 0 0 rgba(59, 130, 246, 0.2);
  animation: float 15s ease-in-out infinite;
}

.particles::after {
  animation-delay: -7.5s;
  box-shadow: 
    200px 300px 0 0 rgba(59, 130, 246, 0.3),
    400px 500px 0 0 rgba(147, 51, 234, 0.2),
    600px 200px 0 0 rgba(59, 130, 246, 0.3),
    800px 400px 0 0 rgba(147, 51, 234, 0.2),
    1000px 600px 0 0 rgba(59, 130, 246, 0.3),
    1200px 250px 0 0 rgba(147, 51, 234, 0.2),
    1400px 450px 0 0 rgba(59, 130, 246, 0.3),
    1600px 350px 0 0 rgba(147, 51, 234, 0.2);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-20px) translateX(10px);
    opacity: 1;
  }
}

.falling-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.falling-stars::before,
.falling-stars::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(147, 51, 234, 0.6), transparent);
  animation: fallStar 8s linear infinite;
  left: 20%;
}

.falling-stars::after {
  left: 80%;
  animation-delay: -4s;
  height: 60px;
}

@keyframes fallStar {
  0% {
    transform: translateY(-100px) rotate(45deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(calc(100vh + 100px)) rotate(45deg);
    opacity: 0;
  }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #a855f7, #ec4899, #3b82f6);
  z-index: 100;
  transition: width 0.1s ease;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 3rem;
  height: 3rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger:hover {
  border-color: rgba(168, 85, 247, 0.5);
}

.hamburger-line {
  width: 1.5rem;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
  transform-origin: center;
}

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

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

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

.mobile-menu {
  display: none;
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  width: 10rem;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 0.75rem;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(168, 85, 247, 0.2);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
}

.menu-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: #d1d5db;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.menu-link:hover {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.1);
}

/* Desktop Navigation */
.desktop-navbar {
  display: none;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
  transition: transform 0.3s ease;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
}

.desktop-navbar ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0.5rem 1.5rem;
}

/* Standalone Logo - Fixed in top-left corner */
.standalone-logo {
  position: fixed;
  left: 1.5rem;
  top: 1.5rem;
  z-index: 60;
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.standalone-logo:hover {
  opacity: 0.8;
}

.standalone-logo img {
  height: 50px;
  width: auto;
}

@media (max-width: 768px) {
  .standalone-logo {
    display: none;
  }
}

.nav-link {
  position: relative;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 400;
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

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

/* Hero Section */
.hero-section {
  min-height: 100vh;
  padding-top: 5rem;
}

.hero-name {
  font-size: 6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(147, 51, 234, 0.3));
  line-height: 1.1;
}

.hero-accent-line {
  width: 6rem;
  height: 2px;
  background: linear-gradient(to right, transparent, #a855f7, transparent);
  margin: 0 auto 2rem;
  box-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
}

.hero-title {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: #d1d5db;
}

/* Title with underline wrapper */
.title-with-underline {
  display: inline-block;
  margin-bottom: 2rem;
}

.title-underline {
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #a855f7, #3b82f6, transparent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  animation: underline-glow 2s ease-in-out infinite;
}

@keyframes underline-glow {
  0%, 100% {
    opacity: 0.6;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.8);
  }
}

/* About section underline */
.about-text .title-with-underline {
  display: block;
  margin-bottom: 1.5rem;
}

.about-text .title-underline {
  width: 50%;
  margin: 0.5rem 0 0 0;
}

/* Contact section underline */
.contact-info .title-with-underline {
  display: block;
  margin-bottom: 1rem;
}

.contact-info .title-underline {
  width: 40%;
  margin: 0.5rem 0 0 0;
}

.hero-intro {
  font-size: 1.25rem;
  font-weight: 300;
  max-width: 42rem;
  margin: 0 auto 3rem;
  color: #9ca3af;
  line-height: 1.75;
}

.contact-cta {
  display: inline-block;
  padding: 1rem 2rem;
  border: 2px solid rgba(168, 85, 247, 0.4);
  border-radius: 9999px;
  font-weight: 500;
  color: white;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  z-index: 20;
}

.contact-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(147, 51, 234, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.contact-cta:hover {
  border-color: rgba(168, 85, 247, 0.7);
  background: rgba(168, 85, 247, 0.1);
}

.contact-cta:hover::before {
  width: 300px;
  height: 300px;
}

/* Move Contact Me button higher on mobile */
@media (max-width: 768px) {
  .contact-cta {
    margin-top: -2rem;
  }
}

.scroll-down-indicator {
  display: flex;
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: #c084fc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.scroll-down-indicator:hover {
  color: #d8b4fe;
}

.mouse-icon {
  width: 1.5rem;
  height: 2.5rem;
  margin-bottom: 0.5rem;
}

.mouse-wheel {
  animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(6px);
    opacity: 0.3;
  }
}

.scroll-down-indicator span {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.arrow-icon {
  width: 1rem;
  height: 1rem;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(25%);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* Desktop: Show only mouse icon and "Scroll Down", hide arrow and mobile text */
@media (min-width: 769px) {
  .scroll-down-indicator .arrow-icon {
    display: none;
  }
  
  .scroll-down-indicator .scroll-text-mobile {
    display: none;
  }
  
  .scroll-down-indicator .scroll-text-desktop {
    display: block;
  }
}

/* Mobile: Hide scroll indicator completely */
@media (max-width: 768px) {
  .scroll-down-indicator {
    display: none !important;
  }
  
  .mouse-icon {
    display: none !important;
  }
}

/* Mobile Press Me Button */
.mobile-press-button {
  display: none;
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #c084fc;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 20;
}

.mobile-button-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.2));
  border: 2px solid rgba(168, 85, 247, 0.5);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
  animation: pulse-button-icon 2s ease-in-out infinite;
}

@keyframes pulse-button-icon {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 4px 30px rgba(168, 85, 247, 0.6);
    transform: scale(1.1);
  }
}

.mobile-press-button span {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.mobile-press-button:active .mobile-button-icon {
  transform: scale(0.9);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(59, 130, 246, 0.3));
}

/* Show Press Me button only on mobile */
@media (max-width: 768px) {
  .mobile-press-button {
    display: flex;
  }
}

/* Extra responsive sizing for smaller phones (iPhone SE, etc.) */
@media (max-width: 480px) {
  /* Hero section adjustments */
  .hero-section {
    padding-top: 2rem;
    min-height: 100vh;
  }
  
  .hero-name {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-accent-line {
    width: 4rem;
    margin: 0 auto 1.25rem;
  }
  
  .hero-title {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
  }
  
  .hero-intro {
    font-size: 0.9375rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    padding: 0 1rem;
  }
  
  .contact-cta {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
    margin-top: 0;
  }
  
  /* Mobile button */
  .mobile-press-button {
    bottom: 1.25rem;
    gap: 0.375rem;
  }
  
  .mobile-button-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
  }
  
  .mobile-press-button span {
    font-size: 0.6875rem;
  }
  
  /* Section spacing */
  section {
    padding: 3rem 1rem;
  }
  
  /* Section titles */
  .section-title {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
  }
  
  /* Title underlines - make more visible on mobile */
  .title-underline {
    width: 80%;
    height: 2px;
  }
  
  .about-text .title-underline {
    width: 70%;
    margin: 0.5rem auto 0;
  }
  
  .contact-info .title-underline {
    width: 60%;
  }
  
  /* About section */
  .about-heading {
    font-size: 2rem;
  }
  
  .about-paragraph {
    font-size: 1rem;
  }
  
  /* Tech stack */
  .tech-grid {
    gap: 1.75rem;
  }
  
  .tech-icon {
    width: 5rem;
    height: 5rem;
  }
  
  .tech-icon span {
    font-size: 2rem;
  }
  
  .tech-item p {
    font-size: 0.8125rem;
  }
  
  /* Contact section */
  .contact-section {
    padding-top: 4rem;
    padding-bottom: 5rem;
  }
  
  .contact-section .section-title {
    font-size: 2rem;
    margin-bottom: 1.25rem;
  }
  
  .contact-info h3 {
    font-size: 1.375rem;
  }
  
  .contact-info > p {
    font-size: 0.9375rem;
  }
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
}

.about-heading {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #d8b4fe;
}

.about-heading .highlight {
  color: #c084fc;
}

.about-paragraph {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.75;
  color: #d1d5db;
  margin-bottom: 1rem;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(to bottom right, rgba(88, 28, 135, 0.2), rgba(30, 58, 138, 0.2), transparent);
  border: 2px solid rgba(168, 85, 247, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 20px rgba(168, 85, 247, 0.4),
    0 0 40px rgba(168, 85, 247, 0.2),
    0 0 60px rgba(168, 85, 247, 0.1),
    inset 0 0 20px rgba(168, 85, 247, 0.1);
  animation: starGlow 3s ease-in-out infinite;
}

@keyframes starGlow {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(168, 85, 247, 0.4),
      0 0 40px rgba(168, 85, 247, 0.2),
      0 0 60px rgba(168, 85, 247, 0.1),
      inset 0 0 20px rgba(168, 85, 247, 0.1);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(168, 85, 247, 0.6),
      0 0 60px rgba(168, 85, 247, 0.4),
      0 0 90px rgba(168, 85, 247, 0.2),
      inset 0 0 30px rgba(168, 85, 247, 0.2);
  }
}

.image-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(168, 85, 247, 0.05), rgba(59, 130, 246, 0.05));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.placeholder-icon {
  width: 8rem;
  height: 8rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(to bottom right, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
  position: relative;
  z-index: 10;
}

.placeholder-icon:hover {
  transform: scale(1.1);
}

.placeholder-icon svg {
  width: 4rem;
  height: 4rem;
  color: rgba(192, 132, 252, 0.5);
}

.image-placeholder p {
  color: #6b7280;
  font-size: 0.875rem;
  position: relative;
  z-index: 10;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
}


/* Tech Stack Section */
.tech-subtitle {
  font-size: 0.875rem;
  font-style: italic;
  color: #c084fc;
  text-align: center;
  margin: 2rem 0 0 0;
  opacity: 0.8;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
  animation: subtle-glow 3s ease-in-out infinite;
  order: 2;
}

@keyframes subtle-glow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
    opacity: 0.8;
  }
  50% {
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.9);
    opacity: 1;
  }
}

/* Apply flex to tech section container on all devices */
.tech-section .container {
  display: flex;
  flex-direction: column;
}

.tech-grid {
  order: 1;
}

/* Mobile: Adjust subtitle spacing and disable wiggly animation */
@media (max-width: 768px) {
  .tech-subtitle {
    margin: 1.5rem 0 0 0;
    animation: subtle-glow 3s ease-in-out infinite;
  }
}

/* Desktop: Add wave animation to individual characters */
@media (min-width: 769px) {
  .tech-subtitle span {
    display: inline-block;
    animation: char-wave 2s ease-in-out infinite;
    white-space: pre;
  }
  
  /* Stagger the animation for each character */
  .tech-subtitle span:nth-child(1) { animation-delay: 0s; }
  .tech-subtitle span:nth-child(2) { animation-delay: 0.05s; }
  .tech-subtitle span:nth-child(3) { animation-delay: 0.1s; }
  .tech-subtitle span:nth-child(4) { animation-delay: 0.15s; }
  .tech-subtitle span:nth-child(5) { animation-delay: 0.2s; }
  .tech-subtitle span:nth-child(6) { animation-delay: 0.25s; }
  .tech-subtitle span:nth-child(7) { animation-delay: 0.3s; }
  .tech-subtitle span:nth-child(8) { animation-delay: 0.35s; }
  .tech-subtitle span:nth-child(9) { animation-delay: 0.4s; }
  .tech-subtitle span:nth-child(10) { animation-delay: 0.45s; }
  .tech-subtitle span:nth-child(11) { animation-delay: 0.5s; }
  .tech-subtitle span:nth-child(12) { animation-delay: 0.55s; }
  .tech-subtitle span:nth-child(13) { animation-delay: 0.6s; }
  .tech-subtitle span:nth-child(14) { animation-delay: 0.65s; }
  .tech-subtitle span:nth-child(15) { animation-delay: 0.7s; }
  .tech-subtitle span:nth-child(16) { animation-delay: 0.75s; }
  .tech-subtitle span:nth-child(17) { animation-delay: 0.8s; }
  .tech-subtitle span:nth-child(18) { animation-delay: 0.85s; }
  .tech-subtitle span:nth-child(19) { animation-delay: 0.9s; }
  .tech-subtitle span:nth-child(20) { animation-delay: 0.95s; }
  .tech-subtitle span:nth-child(21) { animation-delay: 1s; }
  .tech-subtitle span:nth-child(22) { animation-delay: 1.05s; }
  .tech-subtitle span:nth-child(23) { animation-delay: 1.1s; }
  .tech-subtitle span:nth-child(24) { animation-delay: 1.15s; }
  .tech-subtitle span:nth-child(25) { animation-delay: 1.2s; }
  .tech-subtitle span:nth-child(26) { animation-delay: 1.25s; }
  .tech-subtitle span:nth-child(27) { animation-delay: 1.3s; }
  .tech-subtitle span:nth-child(28) { animation-delay: 1.35s; }
  .tech-subtitle span:nth-child(29) { animation-delay: 1.4s; }
  .tech-subtitle span:nth-child(30) { animation-delay: 1.45s; }
  .tech-subtitle span:nth-child(31) { animation-delay: 1.5s; }
  .tech-subtitle span:nth-child(32) { animation-delay: 1.55s; }
  .tech-subtitle span:nth-child(33) { animation-delay: 1.6s; }
  .tech-subtitle span:nth-child(34) { animation-delay: 1.65s; }
  .tech-subtitle span:nth-child(35) { animation-delay: 1.7s; }
  .tech-subtitle span:nth-child(36) { animation-delay: 1.75s; }
  .tech-subtitle span:nth-child(37) { animation-delay: 1.8s; }
  .tech-subtitle span:nth-child(38) { animation-delay: 1.85s; }
}

@keyframes char-wave {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Increase spacing on mobile */
@media (max-width: 768px) {
  .tech-grid {
    gap: 3rem;
  }
  
  .tech-icon {
    width: 7rem;
    height: 7rem;
  }
  
  .tech-icon span {
    font-size: 3rem;
  }
}

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

.tech-icon {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1rem;
  border-radius: 0.75rem;
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-icon span {
  font-size: 2.5rem;
}

.tech-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}

.tech-icon .tailwind-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: #22d3ee;
}

.tech-item:hover .tech-icon {
  transform: translateY(-8px);
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.2);
}

.tech-item p {
  font-size: 0.875rem;
  font-weight: 500;
  color: #9ca3af;
}

/* Contact Section */
.contact-section {
  padding-top: 8rem;
  padding-bottom: 10rem;
}

.contact-section .section-title {
  margin-top: 2rem;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  text-align: left;
}

.contact-info h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #d8b4fe;
}

.contact-info > p {
  font-size: 1.125rem;
  color: #d1d5db;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.1);
  backdrop-filter: blur(4px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-detail-item:hover {
  transform: translateX(5px);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 5px 20px rgba(147, 51, 234, 0.15);
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #c084fc;
}

.contact-icon.location {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.2);
}

.contact-icon.location svg {
  color: #c084fc;
}

.location-link {
  color: #c084fc;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.location-link:hover {
  color: #d8b4fe;
}

.contact-detail-item .label {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.contact-detail-item a {
  color: #c084fc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-detail-item a:hover {
  color: #d8b4fe;
}

.social-label {
  font-size: 0.875rem;
  color: transparent;
  background: linear-gradient(135deg, #a855f7, #3b82f6, #a855f7);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  font-weight: 600;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
  animation: glow-text 3s ease-in-out infinite;
}

@keyframes glow-text {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
    background-position: 0% center;
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 1));
    background-position: 100% center;
  }
}

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

.social-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #c084fc;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.3);
}

.social-icon:hover svg {
  transform: scale(1.1);
}

/* Contact Form */
.contact-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: 1rem;
  padding: 2.5rem;
  backdrop-filter: blur(4px);
}

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

.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(168, 85, 247, 0.2);
  border-radius: 0.75rem;
  color: white;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #6b7280;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
  transform: translateY(-2px);
}

.form-field textarea {
  resize: none;
  min-height: 120px;
}

#contact-form button {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(to right, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 0.75rem;
  color: white;
  font-weight: 500;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

#contact-form button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(147, 51, 234, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

#contact-form button:hover {
  border-color: rgba(168, 85, 247, 0.6);
  background: linear-gradient(to right, rgba(168, 85, 247, 0.3), rgba(59, 130, 246, 0.3));
}

#contact-form button:hover::before {
  width: 300px;
  height: 300px;
}

#contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border-color: rgba(168, 85, 247, 0.2);
}

#contact-form button:disabled:hover {
  background: linear-gradient(to right, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.2));
  border-color: rgba(168, 85, 247, 0.2);
}

/* Footer */
footer {
  position: relative;
  z-index: 10;
  padding: 0.5rem 1.5rem;
  border-top: 1px solid rgba(168, 85, 247, 0.1);
  text-align: center;
}

footer p {
  font-size: 0.75rem;
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: rgba(147, 51, 234, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(147, 51, 234, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .desktop-navbar {
    display: none !important;
  }
  
  .scroll-down-indicator {
    display: flex;
  }
  
  section {
    min-height: auto;
    padding: 2rem 1rem;
  }
  
  .hero-section {
    min-height: 100vh;
    padding-top: 5rem;
    padding-bottom: 1.5rem;
  }
  
  .hero-name {
    font-size: 3.5rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-intro {
    font-size: 1.125rem;
  }
  
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .about-image {
    order: -1;
  }
  
  .about-heading {
    font-size: 2rem;
  }
  
  .about-paragraph {
    font-size: 1rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 1rem;
    row-gap: 1.5rem;
  }
  
  .tech-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 0.75rem;
  }
  
  .tech-icon span {
    font-size: 2rem;
  }
  
  .tech-icon .tailwind-text {
    font-size: 0.625rem;
  }
  
  .tech-item p {
    font-size: 0.75rem;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }
  
  .contact-section {
    padding-top: 2rem !important;
    padding-bottom: 3rem !important;
  }
  
  .contact-section .section-title {
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 2.75rem;
  }
  
  .contact-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }
  
  .contact-info > p {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }
  
  .contact-details {
    margin-bottom: 1.5rem;
  }
  
  .contact-detail-item {
    padding: 0.625rem !important;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
  }
  
  .contact-detail-item .label {
    font-size: 0.7rem;
  }
  
  .contact-detail-item a,
  .contact-detail-item p {
    font-size: 0.75rem;
    word-break: break-all;
  }
  
  .contact-icon {
    width: 2rem !important;
    height: 2rem !important;
    min-width: 2rem !important;
  }
  
  .contact-icon svg {
    width: 1rem !important;
    height: 1rem !important;
  }
  
  .social-label {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .social-icon {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }
  
  .social-icon svg {
    width: 1.125rem !important;
    height: 1.125rem !important;
  }
  
  .contact-card {
    padding: 1.25rem;
  }
  
  .form-field {
    margin-bottom: 1rem;
  }
  
  .form-field label {
    font-size: 0.75rem;
    margin-bottom: 0.375rem;
  }
  
  .form-field input,
  .form-field textarea {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  #contact-form button {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .tech-icon {
    width: 5rem;
    height: 5rem;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-info h3 {
    font-size: 1.5rem;
  }
  
  .contact-info > p {
    font-size: 0.875rem;
  }
  
  .contact-card {
    padding: 1.5rem;
  }
  
  .grid-background {
    background-size: 30px 30px;
  }
}

/* Desktop Only */
@media (min-width: 769px) {
  .desktop-navbar {
    display: block;
  }
  
  .nav-link {
    font-size: 0.875rem;
  }
  
  section {
    height: 100vh;
    min-height: 100vh;
  }
  
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
  
  footer {
    min-height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Large Desktop */
@media (min-width: 1024px) {
  .desktop-navbar ul {
    gap: 2.5rem;
  }
  
  .nav-link {
    font-size: 0.875rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Custom Cursor */
* {
  cursor: none !important;
}

body {
  cursor: none;
}

a, button, input, textarea, .tech-item, .social-icon, .contact-detail-item {
  cursor: none;
}

.cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(168, 85, 247, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.15s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: all 0.1s ease;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}

.cursor-glow {
  position: fixed;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.2s ease;
  transform: translate(-50%, -50%);
  opacity: 0;
}

/* Cursor hover states */
.cursor.hover {
  width: 60px;
  height: 60px;
  border-color: rgba(59, 130, 246, 0.8);
  background: rgba(168, 85, 247, 0.1);
}

.cursor-dot.hover {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #3b82f6, #a855f7);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.9);
}

.cursor-glow.hover {
  opacity: 1;
  width: 80px;
  height: 80px;
}

/* Cursor click state */
.cursor.click {
  width: 30px;
  height: 30px;
  border-color: rgba(236, 72, 153, 0.9);
}

.cursor-dot.click {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  box-shadow: 0 0 20px rgba(236, 72, 153, 1);
}

/* Hide custom cursor on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
  body {
    cursor: auto;
  }
  
  .cursor,
  .cursor-dot,
  .cursor-glow {
    display: none;
  }
}
