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

  :root {
    --primary-color: #a855f7;
    --primary-hover: #9333ea;
    --secondary-color: #c084fc;
    --background-dark: #0a0a0a;
    --background-light: #18181b;
    --text-light: #f4f4f5;
    --text-dark: #a1a1aa;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
  }
  
  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: var(--font-body);
    background-color: var(--background-dark);
    color: var(--text-light);
    overflow-x: hidden;
  }

  /* Ambient Background Orbs */
  .bg-orb {
    position: fixed;
    width: 45vw;
    height: 45vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.1;
    pointer-events: none;
    mix-blend-mode: screen;
  }

  .orb-purple {
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation: floatOrb1 25s infinite ease-in-out alternate;
  }

  .orb-violet {
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation: floatOrb2 30s infinite ease-in-out alternate;
  }

  @keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8vw, 15vh) scale(1.15); }
    100% { transform: translate(-3vw, 25vh) scale(0.9); }
  }

  @keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10vw, -15vh) scale(1.2); }
    100% { transform: translate(5vw, -5vh) scale(0.85); }
  }

  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* Navbar */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
  }
  
  .nav-links {
    display: flex;
    gap: 25px;
  }
  
  .nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  .nav-links a:hover {
    color: var(--primary-color);
  }

  .nav-links a:hover::after {
    width: 100%;
  }
  
  .menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
  }
  
  /* Hero Section */
  .hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 73px; /* Offset for fixed navbar */
    background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.15), transparent 70%);
  }
  
  .hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
  }

  .hero-text {
    flex: 1;
    text-align: left;
  }
  
  .hero-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 10px 0;
    font-weight: 700;
  }

  .hero-text h2 {
    font-family: var(--font-heading);
    font-weight: 400;
  }
  
  .highlight {
    background: linear-gradient(to right, #a855f7, #c084fc, #ec4899, #a855f7);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 6s linear infinite;
    display: inline-block;
  }

  @keyframes shine {
    to { background-position: 300% center; }
  }
  
  .hero-text p {
    font-size: 1.5rem;
    margin-top: 10px;
    color: var(--secondary-color);
  }

  .hero-socials {
    display: flex;
    gap: 25px;
    margin-top: 25px;
  }
  
  .hero-socials a {
    color: var(--secondary-color);
    font-size: 2rem;
    transition: color 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
  }
  
  .hero-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-8px) scale(1.15) rotate(4deg);
  }
  
  .hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-image img {
    width: 350px;
    max-width: 90%;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    animation: pulseGlow 4s infinite ease-in-out;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
  }

  .hero-image img:hover {
    transform: scale(1.04) rotate(1.5deg);
    box-shadow: 0 0 45px rgba(168, 85, 247, 0.85);
  }

  @keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 25px rgba(168, 85, 247, 0.4); }
    50% { box-shadow: 0 0 40px rgba(192, 132, 252, 0.7); }
  }
  
  /* Typing Animation */
  .cursor {
    display: inline-block;
    background-color: var(--secondary-color);
    width: 3px;
    animation: blink 0.7s infinite;
    margin-left: 5px;
  }
  
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }
  
  /* Sections */
  section {
    padding: 100px 20px;
    text-align: center;
  }
  
  .section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
  }

  .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
  }
  
  .about p {
    max-width: 700px;
    margin: auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
  }

  /* Skills Section */
  .skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Stagger Reveal Initial States */
  .skill-card, .service-card, .project-card, .achievement-item {
    opacity: 0;
    transform: translateY(25px);
    transition: 
      opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
      transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
      border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
      box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .skill-card.visible, .service-card.visible, .project-card.visible, .achievement-item.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .skill-card {
    background-color: var(--background-light);
    padding: 25px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 1px solid transparent;
    width: 130px;
  }

  .skill-card:hover {
    transform: translateY(-8px) scale(1.03) !important;
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(168, 85, 247, 0.2);
  }

  .skill-card i {
    font-size: 3rem;
    color: var(--primary-color);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  /* Services Section */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
  }

  .service-card {
    background-color: var(--background-light);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #27272a;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
  }

  .service-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.22);
    border-color: var(--primary-color);
  }

  .service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .service-card:hover i {
    transform: scale(1.12);
  }

  .service-card h3 {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 1.3rem;
  }

  .service-card p {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
  }

  /* Carousel Dots */
  .carousel-dots {
    display: none;
  }

  /* Experience Section */
  .experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
  }

  .experience-card {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #27272a;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .experience-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.22);
    border-color: var(--primary-color);
  }

  .exp-top {
    display: flex;
    gap: 15px;
    align-items: flex-start;
  }

  .exp-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background-color: #fff;
    flex-shrink: 0;
  }

  .exp-header-content {
    flex-grow: 1;
    min-width: 0;
  }

  .exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 5px;
  }

  .exp-header h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
  }

  .exp-date {
    background: rgba(168, 85, 247, 0.1);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
  }

  .exp-company {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
  }
  
  .exp-company span {
    color: var(--text-dark);
    font-weight: 400;
  }

  .exp-location {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 20px;
  }
  
  .exp-location i {
    color: var(--secondary-color);
    margin-right: 5px;
  }

  .exp-desc {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
  }

  .exp-desc li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
  }

  .exp-desc li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    top: -2px;
  }

  /* Projects */
  .project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
  }
  
  .filter-btn {
    background: none;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .filter-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
  }
  
  .filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
  }

  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
  }
  
  .project-card {
    background-color: var(--background-light);
    padding: 25px;
    border-radius: 12px;
    text-align: left;
    display: flex;
    flex-direction: column;
    border: 1px solid #27272a;
  }
  
  .project-card.hidden {
    display: none;
  }
  
  .project-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.22);
    border-color: var(--primary-color);
  }
  
  .project-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
  }
  
  .project-card p {
    font-size: 1rem;
    color: var(--text-dark);
    flex-grow: 1;
    margin-bottom: 20px;
  }

  .project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .project-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
  }

  .project-links a:hover {
    color: var(--primary-color);
  }

  /* Achievements Section */
  .achievements-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
  }

  .achievement-item {
    background-color: var(--background-light);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #27272a;
    text-align: left;
  }

  .achievement-item:hover {
    transform: translateY(-5px) scale(1.01) !important;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
    border-color: var(--primary-color);
  }

  .achievement-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
  }

  .achievement-item p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
  }

  /* Buttons */
  .btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    background-image: linear-gradient(to right, var(--primary-hover) 0%, var(--primary-color) 50%, var(--primary-hover) 100%);
    background-size: 200%;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-position 0.4s;
    cursor: pointer;
  }
  
  .btn:hover {
    background-position: right;
  }

  /* Resume Section */
  .resume .btn {
    margin-top: 20px;
  }

  /* Contact Section */
  .contact-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
  }
  
  .contact-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 2.5rem;
    transition: color 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  .contact-links a:hover {
    color: var(--primary-color);
    transform: translateY(-8px) scale(1.15) rotate(4deg) !important;
  }

  /* Footer */
  footer {
    padding: 20px;
    text-align: center;
    background-color: var(--background-light);
    color: var(--text-dark);
    font-size: 0.9rem;
  }

  /* Animations */
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .hero {
      text-align: center;
    }
  
    .hero .container {
      flex-direction: column-reverse;
    }

    .hero-text {
        text-align: center;
    }

    .hero-image img {
      width: 240px;
    }
  
    .nav-links {
      display: none;
      flex-direction: column;
      background: #111;
      position: absolute;
      right: 0;
      top: 73px;
      width: 100%;
      padding: 20px;
      text-align: center;
    }
  
    .nav-links.show {
      display: flex;
    }
  
    .menu-toggle {
      display: block;
    }

    .project-filters {
      flex-wrap: wrap;
    }

    /* Services Carousel for Mobile */
    .services-grid {
      display: flex !important;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
      gap: 20px;
      padding: 20px 10px;
      margin-top: 20px;
      scrollbar-width: none; /* Hide scrollbar for Firefox */
    }

    /* Hide scrollbar for Chrome, Safari and Opera */
    .services-grid::-webkit-scrollbar {
      display: none;
    }

    .services-grid .service-card {
      min-width: 85vw; /* Take up most of viewport width */
      max-width: 320px;
      margin: 0 auto;
      scroll-snap-align: center;
      flex-shrink: 0;
    }

    /* Projects Carousel for Mobile */
    .project-grid {
      display: flex !important;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
      gap: 20px;
      padding: 20px 10px;
      margin-top: 20px;
      scrollbar-width: none; /* Hide scrollbar for Firefox */
    }

    /* Hide scrollbar for Chrome, Safari and Opera */
    .project-grid::-webkit-scrollbar {
      display: none;
    }

    .project-grid .project-card {
      min-width: 85vw; /* Take up most of viewport width */
      max-width: 320px;
      margin: 0 auto;
      scroll-snap-align: center;
      flex-shrink: 0;
    }

    /* Carousel Dots styles on mobile */
    .carousel-dots {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin-top: 20px;
    }

    .carousel-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: var(--text-dark);
      opacity: 0.4;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .carousel-dot.active {
      width: 24px;
      border-radius: 4px;
      background-color: var(--primary-color);
      opacity: 1;
    }
  }

/* Dynamic Card Expansion Animation */
.project-card.fade-in-card {
  animation: fadeInCard 0.4s ease forwards;
}

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