/* Base Styles */
:root {
    --purple: #8B5CF6;
    --purple-light: #9b87f5;
    --purple-dark: #6E59A5;
    --neon-pink: #D946EF;
    --neon-blue: #33C3F0;
    --background: rgb(249, 248, 253);
    --background-dark: rgb(20, 17, 33);
    --foreground: rgb(26, 15, 59);
    --foreground-dark: rgb(249, 248, 253);
    --muted: rgb(245, 242, 255);
    --muted-dark: rgb(38, 30, 58);
    --muted-foreground: rgb(102, 96, 128);
    --muted-foreground-dark: rgb(179, 176, 192);
    --border: rgb(235, 229, 255);
    --border-dark: rgb(51, 40, 77);
  }
  
  /* Global Resets & Base Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }
  
  .dark-mode {
    --background: var(--background-dark);
    --foreground: var(--foreground-dark);
    --muted: var(--muted-dark);
    --muted-foreground: var(--muted-foreground-dark);
    --border: var(--border-dark);
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  ul, ol {
    list-style-type: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Layout */
  .container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Fixed Background */
  .fixed-bg {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    overflow: hidden;
    z-index: -1;
  }
  
  .bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, var(--background));
    z-index: 2;
  }
  
  .bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
  }
  
  .dark-mode .bg-image {
    opacity: 0.6;
  }
  
  .bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--background), rgba(var(--background), 0.7), transparent);
    z-index: 1;
  }
  
  /* Navbar */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 0;
    transition: all 0.3s ease;
    z-index: 50;
  }
  
  .navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(249, 248, 253, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  }
  
  .dark-mode .navbar.scrolled {
    background: rgba(20, 17, 33, 0.8);
  }
  
  .navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .logo {
    font-size: 1.25rem;
    font-weight: 700;
  }
  
  .gradient-text {
    background: linear-gradient(to right, var(--purple), var(--neon-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  .desktop-nav {
    display: none;
  }
  
  @media (min-width: 768px) {
    .desktop-nav {
      display: flex;
      align-items: center;
      gap: 0.25rem;
    }
  }
  
  .nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.3s;
  }
  
  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .theme-toggle {
    margin-left: 0.5rem;
  }
  
  .theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: var(--foreground);
    transition: background-color 0.3s;
  }
  
  .theme-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .light-icon {
    display: none;
  }
  
  .dark-icon {
    display: block;
  }
  
  .dark-mode .light-icon {
    display: block;
  }
  
  .dark-mode .dark-icon {
    display: none;
  }
  
  .primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-image: linear-gradient(to right, var(--purple), var(--neon-pink));
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: opacity 0.3s;
  }
  
  .primary-btn:hover {
    opacity: 0.9;
  }
  
  .outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .outline-btn:hover {
    background-color: var(--muted);
  }
  
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  @media (min-width: 768px) {
    .mobile-menu-toggle {
      display: none;
    }
  }
  
  .menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: var(--foreground);
    transition: background-color 0.3s;
  }
  
  .menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .close-icon {
    display: none;
  }
  
  .menu-open .menu-icon {
    display: none;
  }
  
  .menu-open .close-icon {
    display: block;
  }
  
  .mobile-menu {
    display: none;
    margin-top: 0.75rem;
    padding: 1.25rem 1rem;
    background: rgba(249, 248, 253, 0.8);
    backdrop-filter: blur(12px);
    margin: 0.75rem 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.1);
  }
  
  .dark-mode .mobile-menu {
    background: rgba(20, 17, 33, 0.8);
  }
  
  .mobile-menu.visible {
    display: block;
  }
  
  .mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .mobile-nav-link {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background-color 0.3s;
    text-align: left;
  }
  
  .mobile-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .mobile-cta {
    margin-top: 0.75rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5rem 0;
    position: relative;
  }
  
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 3rem;
  }
  
  @media (min-width: 1024px) {
    .hero-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
  }
  
  .hero-title {
    font-size: 2.25rem;
    line-height: 1.25;
    font-weight: 700;
    background: linear-gradient(to right, var(--purple), var(--neon-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  @media (min-width: 768px) {
    .hero-title {
      font-size: 3.75rem;
    }
  }
  
  .hero-text {
    font-size: 1.125rem;
    color: var(--muted-foreground);
  }
  
  @media (min-width: 768px) {
    .hero-text {
      font-size: 1.25rem;
    }
  }
  
  .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .hero-image {
    position: relative;
    opacity: 0;
  }
  
  .profile-container {
    position: relative;
  }
  
  .profile-border {
    width: 18rem;
    height: 18rem;
    margin: 0 auto;
    background-image: linear-gradient(to right, var(--purple), var(--neon-pink));
    border-radius: 50%;
    padding: 0.25rem;
  }
  
  @media (min-width: 768px) {
    .profile-border {
      width: 24rem;
      height: 24rem;
    }
  }
  
  .profile-img-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--background);
  }
  
  .profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }
  
  /* About Section */
  .about-section {
    padding: 5rem 0;
    position: relative;
  }
  
  .about-bg-decoration {
    position: absolute;
    top: 50%;
    left: 0;
    width: 25%;
    height: 25%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(64px);
  }
  
  .about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: center;
  }
  
  @media (min-width: 1024px) {
    .about-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  .about-image {
    opacity: 0;
  }
  
  .about-img-container {
    width: 100%;
    height: 20rem;
    border-radius: 1rem;
    overflow: hidden;
  }
  
  .about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
  }
  
  .about-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
  }
  
  .about-text {
    color: var(--muted-foreground);
  }
  
  /* Skills Section */
  .skills-section {
    padding: 5rem 0;
    background-color: rgba(var(--muted), 0.5);
    position: relative;
  }
  
  .skills-bg-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 25%;
    height: 25%;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(64px);
  }
  
  .skills-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0 3rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
  }
  
  .filter-btn.active {
    background-image: linear-gradient(to right, var(--purple), var(--neon-pink));
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
  
  .skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  @media (min-width: 768px) {
    .skills-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  .skill-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 8px 32px -8px rgba(31, 38, 135, 0.1);
  }
  
  .dark-mode .skill-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
  }
  
  .skill-name {
    font-size: 1.125rem;
    font-weight: 600;
  }
  
  .skill-level {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--purple);
  }
  
  .skill-bar {
    position: relative;
    height: 8px;
    background-color: var(--muted);
    border-radius: 9999px;
    overflow: hidden;
  }
  
  .skill-progress {
    position: absolute;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--purple), var(--neon-pink));
    animation: skill-progress 1.5s ease-out forwards;
  }
  
  .skill-ping {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: var(--neon-pink);
  }
  
  .skill-ping::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--neon-pink);
    opacity: 0.75;
    animation: skill-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  }
  
  .skill-category {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
  }
  
  /* Snake Game Section */
  .game-section {
    padding: 5rem 0;
  }
  
  .game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
  }
  
  #snakeCanvas {
    border: 2px solid var(--purple);
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .game-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .score-display {
    font-size: 1.25rem;
    font-weight: 700;
  }
  
  /* Contact Section */
  .contact-section {
    padding: 5rem 0;
    background-color: rgba(var(--muted), 0.5);
    position: relative;
  }
  
  .contact-bg-decoration-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 25%;
    height: 25%;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(64px);
  }
  
  .contact-bg-decoration-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 33%;
    height: 33%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(64px);
  }
  
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
  }
  
  @media (min-width: 1024px) {
    .contact-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  .contact-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
  }
  
  .contact-text {
    color: var(--muted-foreground);
  }
  
  .contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  
  .contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(to right, var(--purple), var(--neon-pink));
    color: white;
  }
  
  .contact-details h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
  }
  
  .contact-details p {
    font-weight: 500;
  }
  
  .contact-form-container {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 8px 32px -8px rgba(31, 38, 135, 0.1);
  }
  
  .dark-mode .contact-form-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  @media (min-width: 640px) {
    .form-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border);
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--foreground);
  }
  
  .dark-mode .form-group input,
  .dark-mode .form-group textarea {
    background-color: rgba(0, 0, 0, 0.7);
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--purple);
  }
  
  .full-width {
    width: 100%;
  }
  
  /* Footer */
  .footer-section {
    padding-top: 4rem;
    padding-bottom: 2rem;
    background-color: rgba(var(--muted), 0.7);
    position: relative;
  }
  
  .footer-top {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(var(--muted-foreground), 0.2);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  @media (min-width: 768px) {
    .footer-top {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  .footer-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
  }
  
  .footer-description {
    color: var(--muted-foreground);
  }
  
  .social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  @media (min-width: 768px) {
    .social-links {
      justify-content: flex-start;
    }
  }
  
  .social-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0.75rem;
    background-image: linear-gradient(to right, var(--purple-light), var(--purple));
    transition: all 0.3s;
    color: white;
  }
  
  .social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.5);
  }
  
  .footer-links-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  @media (min-width: 768px) {
    .footer-links-section {
      flex-direction: row;
    }
  
    .footer-quick-links,
    .footer-newsletter {
      width: 50%;
    }
  }
  
  .footer-heading {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-links a {
    color: var(--muted-foreground);
    transition: color 0.3s;
  }
  
  .footer-links a:hover {
    color: var(--foreground);
  }
  
  .footer-text {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
  }
  
  .newsletter-form {
    display: flex;
    flex-direction: column;
  }
  
  @media (min-width: 640px) {
    .newsletter-form {
      flex-direction: row;
    }
  }
  
  .newsletter-input {
    flex-grow: 1;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(var(--muted-foreground), 0.2);
    background-color: var(--background);
  }
  
  @media (min-width: 640px) {
    .newsletter-input {
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
    }
  }
  
  @media (max-width: 639px) {
    .newsletter-input {
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
    }
  }
  
  .newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--purple);
  }
  
  .newsletter-btn {
    background-image: linear-gradient(to right, var(--purple), var(--neon-pink));
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
  }
  
  @media (min-width: 640px) {
    .newsletter-btn {
      border-top-right-radius: 0.375rem;
      border-bottom-right-radius: 0.375rem;
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
    }
  }
  
  @media (max-width: 639px) {
    .newsletter-btn {
      border-top-left-radius: 0;
      border-top-right-radius: 0;
      border-bottom-left-radius: 0.375rem;
      border-bottom-right-radius: 0.375rem;
    }
  }
  
  .newsletter-btn:hover {
    opacity: 0.9;
  }
  
  .footer-bottom {
    padding-top: 2rem;
    text-align: center;
    color: var(--muted-foreground);
  }
  
  /* Section Heading */
  .section-heading {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
  }
  
  @media (min-width: 768px) {
    .section-heading {
      font-size: 2.25rem;
    }
  }
  
  .section-heading::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 50%;
    height: 0.25rem;
    background-image: linear-gradient(to right, var(--purple), var(--neon-pink));
    border-radius: 9999px;
  }
  
  /* Animations */
  @keyframes skill-progress {
    0% { width: 0; }
    100% { width: var(--progress-width); }
  }
  
  @keyframes skill-ping {
    75%, 100% { transform: scale(1.5); opacity: 0; }
  }
  
  .animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
  }
  
  .animate-fade-in-delay {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.3s forwards;
  }
  
  .animate-slide-in {
    opacity: 0;
    transform: translateX(-2.5rem);
    animation: slideIn 0.5s ease-out forwards;
  }
  
  .animate-slide-in-delay {
    opacity: 0;
    transform: translateX(2.5rem);
    animation: slideIn 0.5s ease-out 0.3s forwards;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideIn {
    from { 
      opacity: 0;
      transform: translateX(-2.5rem);
    }
    to { 
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes slideInRight {
    from { 
      opacity: 0;
      transform: translateX(2.5rem);
    }
    to { 
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  