/* Base Styles & Variables */
:root {
    --bg-color: #0F0A1E;
    --primary-color: #8B5CF6;
    --primary-dark: #6D28D9;
    --primary-light: #A78BFA;
    --secondary-color: #F472B6;
    --text-color: #E2E8F0;
    --text-muted: #94A3B8;
    --glass-bg: rgba(15, 10, 30, 0.7);
    --glass-border: rgba(139, 92, 246, 0.2);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  }
  
  /* Reset & Global Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 16px;
  }
  
  body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
  }
  
  section {
    padding: 100px 10%;
    position: relative;
  }
  
  h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
  }
  
  h1 {
    font-size: 4rem;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, var(--text-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
  }
  
  h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
  }
  
  a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
  }
  
  a:hover {
    color: var(--primary-light);
  }
  
  ul {
    list-style: none;
  }
  
  /* Background Particles */
  #particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(113, 63, 201, 0.1) 0%, rgba(15, 10, 30, 0.8) 70%);
    overflow: hidden;
  }
  
  /* Header & Navigation */
  #header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-medium);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(15, 10, 30, 0.8);
    transform: translateY(0);
  }
  
  #header.hidden {
    transform: translateY(-100%);
  }
  
  #header.scrolled {
    padding: 1rem 10%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background: rgba(15, 10, 30, 0.9);
  }
  
  .logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: -0.05em;
  }
  
  nav ul {
    display: flex;
    gap: 2rem;
  }
  
  nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
  }
  
  nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition-medium);
  }
  
  nav ul li a:hover::after,
  nav ul li a.active::after {
    width: 100%;
  }
  
  .header-social {
    display: flex;
    gap: 1rem;
  }
  
  .header-social a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition-fast);
  }
  
  .header-social a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
  }
  
  /* Glass Card Component */
  .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    transition: var(--transition-medium);
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
  
  .glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1), transparent 70%);
    opacity: 0;
    z-index: -1;
    transform: rotate(30deg);
    transition: var(--transition-slow);
  }
  
  .glass-card:hover::before {
    opacity: 1;
    transform: rotate(0deg);
  }
  
  /* Button Styles */
  .button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
    z-index: -1;
  }
  
  .button:hover::before {
    left: 0;
  }
  
  .button.primary {
    background: var(--primary-color);
    color: white;
    border: none;
  }
  
  .button.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  
  .button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
  }
  
  .button.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  
  .button.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Section Header */
  .section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
  }
  
  .section-line {
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto;
    border-radius: 4px;
    position: relative;
  }
  
  .section-line::before,
  .section-line::after {
    content: '';
    position: absolute;
    height: 4px;
    background: var(--primary-color);
    border-radius: 4px;
    opacity: 0.5;
  }
  
  .section-line::before {
    width: 30px;
    left: -40px;
  }
  
  .section-line::after {
    width: 30px;
    right: -40px;
  }
  
  /* Hero Section */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    padding: 80px 5%;
  }
  
  .hero-content {
    max-width: 1000px;
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
  
  .hero-text {
    flex: 1;
  }
  
  .intro-text {
    font-size: 1.2rem;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  
  .accent {
    color: var(--primary-color);
  }
  
  .typewriter {
    font-size: 1.8rem;
    overflow: hidden;
    border-right: 0.15em solid var(--primary-color);
    white-space: nowrap;
    margin: 0 auto 2rem 0;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    max-width: fit-content;
  }
  
  @keyframes typing {
    from { width: 0 }
    to { width: 100% }
  }
  
  @keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
  }
  
  .hero-description {
    max-width: 600px;
    margin-bottom: 2rem;
  }
  
  .hero-buttons {
    display: flex;
    gap: 1rem;
  }
  
  .hero-image {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .blob {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blob-animation 8s ease-in-out infinite;
    opacity: 0.7;
    position: relative;
    box-shadow: 0 0 100px rgba(139, 92, 246, 0.5);
  }
  
  @keyframes blob-animation {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  }
  
  .tech-stack {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  
  .tech-item {
    position: absolute;
    background: rgba(15, 10, 30, 0.8);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
    border: 1px solid var(--glass-border);
  }
  
  .tech-item:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
  }
  
  .tech-item:nth-child(2) {
    top: 60%;
    left: 15%;
    animation-delay: 1s;
  }
  
  .tech-item:nth-child(3) {
    top: 30%;
    right: 10%;
    animation-delay: 2s;
  }
  
  .tech-item:nth-child(4) {
    bottom: 30%;
    right: 15%;
    animation-delay: 1.5s;
  }
  
  .tech-item:nth-child(5) {
    bottom: 10%;
    left: 40%;
    animation-delay: 0.5s;
  }
  
  @keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
  }
  
  /* About Section */
  .about-content {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
  }
  
  .about-text {
    margin-bottom: 2rem;
  }
  
  .personal-info {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .info-item {
    flex: 1;
  }
  
  .info-item h3 {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .info-item h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background: var(--primary-color);
  }
  
  .info-item ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .info-item ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
  }
  
  /* Skills Section */
  .skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .skill-category {
    height: 100%;
  }
  
  .category-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }
  
  .category-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
  }
  
  .skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }
  
  .skill-item span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  
  .skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
  }
  
  .skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    animation: skill-fill 2s ease-out forwards;
    transform-origin: left;
    transform: scaleX(0);
  }
  
  @keyframes skill-fill {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
  }
  
  /* Projects Section */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }
  
  .project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .project-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
  }
  
  .project-content p {
    margin-bottom: 1.5rem;
    flex: 1;
  }
  
  .project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  .project-tech span {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-light);
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
  }
  
  .project-links {
    margin-top: auto;
  }
  
  /* Contact Section */
  .contact-container {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
  }
  
  .contact-form-container,
  .contact-info {
    height: 100%;
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .form-group label {
    font-weight: 500;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    color: var(--text-color);
    font-family: var(--font-sans);
    transition: var(--transition-fast);
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
  }
  
  .contact-info {
    display: flex;
    flex-direction: column;
  }
  
  .contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
  }
  
  .social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    justify-content: center;
  }
  
  .social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: var(--transition-fast);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
  }
  
  .social-link i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
  }
  
  .social-link:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateX(5px);
  }
  
  /* Footer */
  footer {
    background: rgba(15, 10, 30, 0.8);
    padding: 3rem 10% 1rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-light);
  }
  
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.5rem 0;
  }
  
  .footer-links a {
    color: var(--text-color);
  }
  
  .footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .footer-social a {
    font-size: 1.5rem;
    padding: 0.5rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
  }
  
  /* Responsive Design */
  @media (max-width: 992px) {
    section {
      padding: 80px 5%;
    }
    
    #header {
      padding: 1.5rem 5%;
    }
    
    .hero-content,
    .about-content {
      width: 95%;
    }
    
    .hero-text {
      text-align: center;
    }

    .hero-buttons {
      justify-content: center;
    }
    
    h1 {
      font-size: 3rem;
    }
    
    h2 {
      font-size: 2rem;
    }

    .typewriter {
      margin: 0 auto 2rem auto;
    }

    .contact-container {
      width: 95%;
    }
  }
  
  @media (max-width: 768px) {
    nav ul {
      gap: 1rem;
    }
    
    .personal-info {
      flex-direction: column;
    }
    
    .footer-content {
      flex-direction: column;
      gap: 2rem;
      text-align: center;
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 1.5rem;
      padding: 0.5rem 0;
    }

    .footer-social {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
    }

    .footer-social a {
      font-size: 1.5rem;
      padding: 0.5rem;
      background: rgba(139, 92, 246, 0.1);
      border-radius: 50%;
      width: 45px;
      height: 45px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

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

    .contact-info {
      order: -1;
    }

    .contact-form-container {
      margin-top: 2rem;
    }

    .social-links {
      padding: 1rem 0;
    }
  }
  
  @media (max-width: 576px) {
    #header {
      display: none;
    }

    nav {
      display: none;
    }
    
    .hero {
      padding: 60px 4%;
      padding-top: 20px;
    }

    .hero-content,
    .about-content {
      width: 100%;
      padding: 1.5rem;
    }

    .about-content {
      margin-top: -40px;
    }

    .personal-info {
      flex-direction: column;
      gap: 2rem;
    }

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

    .info-item h3::after {
      left: 50%;
      transform: translateX(-50%);
    }

    .info-item ul li {
      text-align: left;
    }

    .hero-text {
      order: 1;
    }

    .hero-image {
      display: none;
    }

    .hero-buttons {
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      width: 100%;
    }

    .hero-buttons .button {
      width: 100%;
      max-width: 280px;
    }

    h1 {
      font-size: 2.5rem;
    }

    .typewriter {
      font-size: 1.5rem;
      white-space: normal;
      border-right: none;
      animation: none;
    }

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

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

    .contact-container {
      width: 100%;
      padding: 0 1rem;
    }

    .contact-form button {
      width: 100%;
    }

    .social-link {
      padding: 0.8rem;
    }
  }
  
  /* Animation Classes */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Particle Animation */
  .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: rgba(139, 92, 246, 0.5);
    border-radius: 50%;
    animation: particle-fall 6s linear infinite;
  }
  
  @keyframes particle-fall {
    0% {
      transform: translateY(-100vh) scale(0);
      opacity: 0;
    }
    10% {
      transform: translateY(-80vh) scale(1);
      opacity: 1;
    }
    90% {
      transform: translateY(80vh) scale(1);
      opacity: 1;
    }
    100% {
      transform: translateY(100vh) scale(0);
      opacity: 0;
    }
  }
  