* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: color 0.18s cubic-bezier(0.4, 0.2, 0.2, 1), 
              background 0.25s cubic-bezier(0.4, 0.2, 0.2, 1), 
              border 0.18s cubic-bezier(0.4, 0.2, 0.2, 1), 
              box-shadow 0.12s cubic-bezier(0.4, 0.2, 0.2, 1), 
              transform 0.12s cubic-bezier(0.4, 0.2, 0.2, 1);
}

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

body, .hero-text, .section, .container, .project-card, .skill-card, .section-title, .section-subtitle {
    user-select: text;
}

/* Ensure overlays do not block selection */
#canvas-container, .wave-animation, .floating-elements {
    pointer-events: none;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(147, 51, 234, 0.2);
    padding: 20px 0;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #9333ea, #c084fc);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: #a1a1aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s, background 0.18s, box-shadow 0.12s, transform 0.12s;
    position: relative;
}

.nav-links a:hover {
    color: #c084fc;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(10, 10, 10, 0.9) 50%, rgba(10, 10, 10, 1) 100%);
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text .name {
    background: linear-gradient(45deg, #9333ea, #c084fc, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.25rem;
    color: #a1a1aa;
    margin-bottom: 40px;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(45deg, #9333ea, #c084fc);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.10s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #c084fc;
    border: 2px solid #9333ea;
    padding: 13px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.10s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-secondary:hover {
    background: rgba(147, 51, 234, 0.1);
    transform: translateY(-2px);
}

.hero-3d {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-laptop {
    position: absolute;
    width: 400px;
    height: 300px;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 15px;
    transform: perspective(1000px) rotateX(-10deg) rotateY(15deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

.laptop-screen {
    width: 90%;
    height: 80%;
    background: #000;
    border-radius: 8px;
    margin: 5% auto;
    position: relative;
    overflow: hidden;
}

.code-lines {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    font-family: 'Consolas', monospace;
    font-size: 12px;
    color: #10b981;
}

.code-line {
    margin-bottom: 8px;
    opacity: 0;
    animation: typewriter 3s ease-in-out infinite;
}

.code-line:nth-child(1) { animation-delay: 0s; }
.code-line:nth-child(2) { animation-delay: 0.5s; }
.code-line:nth-child(3) { animation-delay: 1s; }
.code-line:nth-child(4) { animation-delay: 1.5s; }

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #9333ea, #c084fc);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    animation: floatIcon 8s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

.floating-icon:nth-child(1) {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 60%;
    right: 5%;
    animation-delay: -2s;
}

.floating-icon:nth-child(3) {
    top: 30%;
    right: 25%;
    animation-delay: -4s;
}

.section {
    padding: 100px 0;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #9333ea, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #a1a1aa;
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.5), rgba(42, 42, 42, 0.5));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.10s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: scale(1.12) !important;
    border-color: rgba(147, 51, 234, 0.7);
    box-shadow: 0 0 32px 8px #c084fc66, 0 20px 40px rgba(147, 51, 234, 0.3);
    z-index: 2;
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.skill-card p {
    color: #a1a1aa;
    line-height: 1.6;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.project-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.5), rgba(42, 42, 42, 0.5));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9333ea, #c084fc);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::after {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(147, 51, 234, 0.5);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.2);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.project-card p {
    color: #a1a1aa;
    margin-bottom: 25px;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: rgba(147, 51, 234, 0.2);
    color: #c084fc;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-section {
    background: linear-gradient(135deg, rgba(146, 51, 234, 0) 0%, rgba(10, 10, 10, 0.9) 100%);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #71717a;
}

.wave-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><path d="M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,154.7C672,160,768,224,864,234.7C960,245,1056,203,1152,181.3C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z" fill="%23" fill-opacity="0.1"/></svg>') repeat-x;
    animation: wave 20s linear infinite;
    opacity: 0.1;
}

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

@keyframes float {
    0%, 100% { transform: perspective(1000px) rotateX(-10deg) rotateY(15deg) translateY(0px); }
    50% { transform: perspective(1000px) rotateX(-10deg) rotateY(15deg) translateY(-20px); }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px) rotateZ(0deg); }
    33% { transform: translateY(-20px) rotateZ(5deg); }
    66% { transform: translateY(-10px) rotateZ(-5deg); }
}

@keyframes typewriter {
    0%, 10% { opacity: 0; }
    20%, 80% { opacity: 1; }
    90%, 100% { opacity: 0; }
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Button Animation */
.btn-animate-hover {
    transform: scale(1.08) !important;
    box-shadow: 0 0 24px 4px #c084fc66, 0 10px 30px rgba(147, 51, 234, 0.4);
    transition: transform 0.18s cubic-bezier(0.4, 0.2, 0.2, 1), box-shadow 0.18s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.btn-animate-active {
    transform: scale(0.96) !important;
    box-shadow: 0 0 12px 2px #9333ea44;
    transition: transform 0.08s cubic-bezier(0.4, 0.2, 0.2, 1), box-shadow 0.08s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.social-links {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin: 29px 0;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s;
}

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

.tech-stack-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}

.tech-stack-logos img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(147, 51, 234, 0.10));
  transition: transform 0.18s, filter 0.18s;
  background: none;
  border-radius: 12px;
}

.tech-stack-logos img[alt="GitHub"] {
  background: #fff;
  border: 2px solid #c084fc;
  padding: 8px;
}

.tech-stack-logos img:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 16px rgba(147, 51, 234, 0.25));
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-3d {
        height: 400px;
    }
    
    .floating-laptop {
        width: 300px;
        height: 200px;
    }
    /* Fix for header overlap on mobile */
    .navbar {
        height: 70px;
        padding: 0 0;
    }
    .hero {
        padding-top: 70px;
    }
}

@media (max-width: 768px) {
  .hero-content {
    padding: 0 10px;
    gap: 20px;
  }

  .hero-text h1 {
    font-size: 2rem;
    margin-bottom: 12px;
  }

  .hero-text p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary, .btn-secondary {
    padding: 12px 0;
    font-size: 1rem;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }

  .hero-3d {
    height: 220px;
  }

  .floating-laptop {
    width: 180px;
    height: 120px;
  }

  .floating-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 18px 0 10px 0;
    height: 64px;
  }
  .nav-container {
    padding: 0 16px;
  }
  .logo {
    font-size: 1rem;
    gap: 6px;
    align-items: flex-start;
  }
  .logo-icon {
    width: 24px;
    height: 24px;
    font-size: 1rem;
    margin-top: 2px;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 10px;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    display: block;
    text-align: center;
  }
  .btn-primary {
    box-shadow: 0 4px 16px rgba(147, 51, 234, 0.18);
  }
  .btn-secondary {
    border-width: 2px;
  }
}