/* ============================
   GLOBAL STYLES & RESET
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --bg-dark: #0a0a0f;
    --bg-card: rgba(15, 15, 25, 0.6);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    
    /* Shadows & Glows */
    --glow-primary: 0 0 40px rgba(99, 102, 241, 0.6);
    --glow-secondary: 0 0 40px rgba(139, 92, 246, 0.6);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Spacing */
    --section-padding: 100px 5%;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 300;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ============================
   PRELOADER
   ============================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* transition: opacity 0.2s ease; */
    padding: 2rem;
    overflow: hidden;
}

.preloader-spline {
    position: relative;

    top:120px;
    left: 170px;
    width: 100%;
    max-width: 600px;
    height: 400%;
    z-index: 10;
    opacity: 1;
    /* animation: slideUp 0.2s ease-out; */
    pointer-events: all;

    
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.preloader-spline iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;;
}

.preloader-content {
    position: relative;
    bottom: 10px;
    right: 0px;

    z-index: 10;
    text-align: center;
    margin-bottom: 50px; /* ✅ 50px gap */
    animation: slideDown 1s ease-out;
}

.preloader-logo {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    /* filter: drop-shadow(var(--glow-primary)); */
    animation: pulse 2s ease-in-out infinite;

}

.progress-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.progress-text {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    box-shadow: var(--glow-primary);
}




.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.4;
    z-index: 1;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 20%;
    left: 10%;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: 20%;
    right: 10%;
}

/* ============================
   NAVIGATION
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(25, 25, 65, 0.8);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    pointer-events: all;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================
   MOBILE NAVIGATION MENU
   ============================ */

/* Hamburger Icon */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hamburger Active Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 80px;
  right: -100%;
  width: 200px;
  height: calc(50vh - 80px);
  background: rgba(22, 22, 57, 0.98);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-links li {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.3s ease;
}

.mobile-menu.active .mobile-nav-links li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-links li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav-links li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav-links li:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav-links li:nth-child(5) { transition-delay: 0.5s; }

.mobile-link {
  display: block;
  padding: 1.2rem 2rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
  border-left-color: var(--primary-color);
  padding-left: 2.5rem;
}

/* ============================
   HERO SECTION
   ============================ */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    z-index: 1;
}
.spline-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    pointer-events: auto; /* Allow scrolling by default */
}

.spline-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Controls fade height - adjust as needed */
  background: linear-gradient(
    to top,
    var(--bg-dark) 10%,           /* Solid dark at bottom */
    rgba(10, 10, 15, 0.8) 20%,   /* 80% opacity */
    rgba(10, 10, 15, 0.4) 50%,   /* 40% opacity */
    transparent 100%              /* Fully transparent at top */
  );

  /* backdrop-filter: blur(20px);  */
  /* -webkit-backdrop-filter: blur(250px); */
  pointer-events: none;
  z-index: 2;
}

.spline-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: auto; /* ✅ Enable cursor tracking in Spline */
}

/* Create an interactive overlay in the center */
.spline-interactive-zone {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%; /* Center 60% is interactive */
  height: 60%;
  z-index: 2;
  pointer-events: auto; /* This area captures Spline interactions */
}

.hero-content {
    position: relative;
    z-index: -1;
    text-align: left;
    max-width: 900px;
    padding: 2rem 3rem;
    padding-left: 5%;
    background: rgba(10, 10, 15, 0.3);
    /* backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px); */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    pointer-events: none;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    pointer-events: auto;
}

.gradient-text {
    color: var(--secondary-color);
}


.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    font-weight: 300;
    position: relative;
    pointer-events: auto;
}

.cta-button {
    display: inline-flex !important;
    align-items: center;
    gap: 0.9rem;
    padding: 1.2rem 2.5rem;
    background: var(--gradient-primary);
    border: 0px solid transparent;
    border-radius: 40px;
    color: var(--text-primary);
    font-size: 1.0rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    /* box-shadow: var(--glow-primary); */
    position: relative;
    z-index: 100;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    pointer-events: auto;
}


.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(47, 47, 169, 0.8);
}

.floating-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 10%;
    left: 5%;
}

.hero-orb-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    bottom: 20%;
    left: 20%;
}

.hero-orb-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-color);
    top: 50%;
    right: 10%;
}

/* ============================
   ABOUT SECTION
   ============================ */
.about-section {
    padding-bottom: 0px;
    position: relative;
    min-height: 100vh;  /* Ensure consistent height */
    perspective: 1100px;
    perspective-origin: center center;
    overflow: visible;
}
/* ============================
   FIX: SPLINE BACKGROUND - NO BLOCKING
============================ */

.about-spline-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 0.5;
    /* filter: blur(3px); */
    pointer-events: none !important;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);

}



.about-spline-background iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none !important;
    display: block;  /* Remove any inline spacing */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 100;
    
    
}

.about-right {
    position: relative;
    z-index: 100;
    align-items: right;
}


/* Smooth 3D rendering */
.about-section * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.profile-image-container {
    position: relative;
    width: 350px;
    height: 350px;
    transform-style: preserve-3d;
    will-change: transform;
}


.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(77, 80, 247, 0.56);
    transition: var(--transition-smooth);
}

.profile-image-container:hover .profile-image {
    transform: rotate(5deg) scale(1.09);
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    z-index: -1;
}

.section-title {
    padding-top: 120px;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title2 {
    padding-top: 0px;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title3 {
    padding-top: 0px;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title4 {
    padding-top: 0px;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 2;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 30px;
    position: relative;
    z-index: 100;
}

.skill-item {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 1.9rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 101;
    opacity: 1 !important;
    visibility: visible !important;
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-primary);
    border-color: var(--primary-color);
}

.skill-item i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 1 !important;
}


/* ============================
   PROJECTS SECTION
   ============================ */
.projects-section {
    padding: var(--section-padding);
    padding-bottom: 0px;
    position: relative;
    z-index: 10;
    
}

/* .projects-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2rem 0;
    margin-top: 2rem;
} */

.projects-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.projects-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.projects-scroll-container::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 400px);
    gap: 2rem;
    padding-bottom: 1rem;
}

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;  /* Faster response */
    opacity: 1;  /* Changed from 0 */
    transform: translateY(0);  /* Changed from 40px */
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;  /* CRITICAL FIX */
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--glow-primary);
    border-color: var(--primary-color);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    pointer-events: auto;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 1rem;
    pointer-events: auto;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.project-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;  /* Faster */
    text-decoration: none;
    pointer-events: auto !important;  /* CRITICAL FIX */
    position: relative;
    z-index: 100;
}

.project-cta:hover {
    background: var(--gradient-primary);
    transform: scale(1.05);
    box-shadow: var(--glow-primary);
}


/* ============================
   EXPERIENCE SECTION
   ============================ */

.experience-section {
  padding-top: 20px;
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
}

.section-title-exp {
    padding-top: 70px;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.experience-section .section-title,
.experience-section .section-subtitle {
  opacity: 1; /* Initial state for animation */
}

.section-subtitle6 {
    padding-bottom: 20px;
}

.experience-timeline {
  max-width: 900px;
  margin: 4rem auto 0;
  position: relative;
}

/* Timeline Line */
.experience-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--secondary-color),
    var(--accent-color)
  );
  opacity: 0.5;
  transform: scaleY(0); /* Initial state */
  transform-origin: top;
}

.experience-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 3rem;
}

/* Icon */
.experience-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-primary);
  z-index: 2;
  opacity: 1; /* Initial state */
  transition: all 0.3s ease;
}

.experience-item:hover .experience-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.8);
}

.experience-icon i {
  font-size: 1.8rem;
  color: white;
}

/* Content Card */
.experience-content {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s ease;
  opacity: 1; /* Initial state */
}

.experience-content:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.experience-title-wrapper {
  flex: 1;
  min-width: 200px;
}

.experience-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.experience-company {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 600;
}

.experience-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  white-space: nowrap;
}

.experience-description {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.experience-description li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
  opacity: 1; /* Initial state */
}

.experience-description li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: bold;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.experience-tags .tag {
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary-color);
  opacity: 1; /* Initial state */
  transition: all 0.3s ease;
}

.experience-tags .tag:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}






/* ============================
   CONTACT SECTION
   ============================ */
.contact-section {
    padding: var(--section-padding);
    padding-bottom: 20px;
    position: relative;
    z-index: 10;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.form-group {
    opacity: 1;
    transform: translateX(0px);
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-smooth);
    pointer-events: auto;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--glow-primary);
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--glow-primary);
    transform: scale(1.01);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;  /* Faster */
    pointer-events: auto !important;  /* CRITICAL FIX */
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;  /* Faster */
    box-shadow: var(--glow-primary);
    align-self: flex-start;
    pointer-events: auto !important;  /* CRITICAL FIX */
    position: relative;
    z-index: 100;
}

.submit-button:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.8);
}

.submit-button:active {
    transform: scale(0.98) translateY(-1px);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-10px) rotate(360deg);
    box-shadow: var(--glow-primary);
    border-color: var(--primary-color);
}




/* ============================
   FORM VALIDATION STYLES
============================ */

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.error-message {
    display: none;
    color: #ff4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    font-weight: 500;
}

.error-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-input.error,
.form-textarea.error {
    border-color: #ff4444 !important;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3) !important;
}

.form-input.success,
.form-textarea.success {
    border-color: #00ff88 !important;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3) !important;
}

/* Form Status Messages */
.form-status {
    margin-top: 1.5rem;
    padding: 1.2rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-status.show {
    display: block;
}

.form-status.success {
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.form-status.error {
    background: rgba(255, 68, 68, 0.1);
    border: 2px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

/* Submit Button Loading State */
.submit-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-button.loading .button-text::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}



/* ============================
   FOOTER
   ============================ */
.footer {
    position: relative;
    padding-top: 5rem 5%;
    padding-bottom: 5rem 5%;
    background: rgba(10, 10, 15, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: var(--glow-primary);
    opacity: 0;
}

.particle:nth-child(1) { top: 20%; left: 10%; }
.particle:nth-child(2) { top: 60%; left: 30%; }
.particle:nth-child(3) { top: 40%; right: 20%; }
.particle:nth-child(4) { top: 80%; right: 40%; }

.footer-content {
    position: relative;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    opacity: 1;
    transform: translateY(60px);
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-nav a:hover {
    color: var(--primary-color);
}

/* .footer-social {
    display: flex;
    gap: 1.5rem;
} */

/* .footer-social a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
} */

.footer-social a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    color: whitesmoke;
    color: var(--text-muted);
    align-items: center;
    font-size: 15px}

.role-container {
    display: inline-block;
    position: relative;
    height: 1.3em;
    line-height: 1.3em;
    vertical-align: bottom;
    overflow: hidden;
    min-width: 800px;
    max-width: 100%;
    pointer-events: auto;
}



.role-text {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    font-weight: 700;
    width: 100%;
    line-height: 1.3em;
}

/* Gradient 1 - Purple to Blue */
.role-text[data-gradient="1"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Gradient 2 - Cyan to Blue */
.role-text[data-gradient="2"] {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Gradient 3 - Pink to Red */
.role-text[data-gradient="3"] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* ============================
   CTA BUTTON - SCROLL DOWN
   ============================ */

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--glow-primary);
  text-decoration: none; /* Remove underline for <a> tag */
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.8);
}

.cta-button i {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
  animation: bounce-arrow 2s ease-in-out infinite;
}

.cta-button:hover i {
  transform: translateY(3px);
  animation: bounce-fast 0.6s ease-in-out infinite;
}

/* Bouncing arrow animation */
@keyframes bounce-arrow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@keyframes bounce-fast {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .cta-button {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

/* ============================
   FADE-IN ANIMATION SETUP
   ============================ */

/* .hero-content,
.about-section,
.projects-section,
.experience-section,
.contact-section,
.section-title,
.project-card,
.experience-item,
.about-grid,
.contact-form { */
  /* opacity: 0; Initial state - will be animated by GSAP */
/* } */

/* Hero content visible by default on load */
/* .hero-content {
  opacity: 1;
} */

/* ============================
   DISABLE SCROLL DURING PRELOAD
   ============================ */

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 300;
  overflow: hidden; /* ✅ ADD THIS - Disable scroll initially */
}

/* After preloader is done, enable scrolling */
body.loaded {
  overflow: visible !important;
  overflow-x: hidden;
}




