/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #050510;                /* Deep dark background */
    --bg-secondary: #0d0d1a;              /* Slightly lighter dark */

    --text-primary: #ffffff;
    --text-secondary: #8f9bb3;            /* Soft neon grey */

    /* 🔥 Neon Colors */
    --accent-orange: #00f5ff;             /* Neon Cyan */
    --accent-purple: #ff00ff;             /* Neon Pink */

    /* 🌈 Neon Gradient */
    --accent-gradient: linear-gradient(135deg, #00f5ff, #ff00ff);
    --accent-gradient-reverse: linear-gradient(135deg, #ff00ff, #00f5ff);

    /* 🟣 Cards */
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(0, 255, 255, 0.25);

    /* ✨ Glow Effects */
    --glow-orange: rgba(0, 245, 255, 0.6);
    --glow-purple: rgba(255, 0, 255, 0.6);
}


html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-orange) var(--bg-primary);
}

html::-webkit-scrollbar {
    width: 6px;
}

html::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

html::-webkit-scrollbar-thumb {
    background: var(--accent-gradient);
    border-radius: 3px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ============================================
   ANIMATED STARFIELD BACKGROUND
   ============================================ */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.floating-square {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--accent-purple);
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
    animation: floatSquare 8s ease-in-out infinite;
}

.floating-square:nth-child(1) {
    top: 30%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.floating-square:nth-child(2) {
    top: 60%;
    left: 8%;
    width: 8px;
    height: 8px;
    animation-delay: 2s;
    animation-duration: 9s;
}

.floating-square:nth-child(3) {
    top: 45%;
    right: 10%;
    width: 6px;
    height: 6px;
    animation-delay: 4s;
    animation-duration: 6s;
}

.floating-square:nth-child(4) {
    top: 75%;
    right: 5%;
    width: 10px;
    height: 10px;
    animation-delay: 1s;
    animation-duration: 10s;
}

.floating-square:nth-child(5) {
    top: 20%;
    left: 50%;
    width: 7px;
    height: 7px;
    animation-delay: 3s;
    animation-duration: 8s;
}

@keyframes floatSquare {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-30px) rotate(45deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-15px) rotate(90deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-40px) rotate(135deg);
        opacity: 0.8;
    }
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-gradient);
    z-index: 10000;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--glow-orange), 0 0 20px var(--glow-purple);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 18px 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 12px 60px;
    background: rgba(10, 10, 15, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-orange);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 10001;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
section {
    position: relative;
    z-index: 2;
    padding: 80px 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   HERO SECTION
   ============================================ */
#home {
    padding-top: 120px;
    text-align: center;
    min-height: 100vh;
}

.profile-image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
    border-radius: 50%;
    animation: fadeInDown 1s ease forwards;
}

.profile-image-wrapper::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent-orange), var(--accent-purple), var(--accent-orange));
    animation: rotateGradient 4s linear infinite;
    z-index: -1;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-primary);
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-title .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typewriter-container {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.typewriter-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 3.2rem;
    background: var(--accent-orange);
    margin-left: 2px;
    animation: blink 0.8s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    max-width: 700px;
    margin: 25px auto 40px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.btn {
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.btn-outline {
    border: 1.5px solid var(--text-secondary);
    background: transparent;
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    box-shadow: 0 0 25px rgba(232, 115, 74, 0.2);
    transform: translateY(-2px);
}

.btn-filled {
    border: 1.5px solid var(--text-primary);
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-filled:hover {
    background: transparent;
    color: var(--text-primary);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ============================================
   SKILLS SECTION
   ============================================ */
#skills {
    padding: 100px 60px;
}

.skills-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.skill-card {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    position: relative;
}

.skill-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.skill-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 40px rgba(155, 89, 182, 0.3);
    background: var(--bg-secondary);
}

.skill-card img,
.skill-card svg {
    width: 50px;
    height: 50px;
    filter: grayscale(0.3) brightness(0.8);
    transition: all 0.5s ease;
}

.skill-card:hover img,
.skill-card:hover svg {
    filter: grayscale(0) brightness(1) drop-shadow(0 0 15px var(--glow-purple));
    transform: scale(1.1);
}

.skill-label {
    position: absolute;
    bottom: -30px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.skill-card:hover .skill-label {
    opacity: 1;
    bottom: -35px;
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
#experience {
    padding: 100px 60px;
}

.experience-card {
    max-width: 700px;
    width: 100%;
    padding: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15), rgba(232, 115, 74, 0.1));
    border: 1px solid rgba(232, 115, 74, 0.2);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.experience-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.experience-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(232, 115, 74, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.experience-card h3 {
    font-size: 1.6rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
    font-weight: 600;
}

.experience-detail {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    align-items: center;
}

.experience-detail .label {
    color: var(--accent-purple);
    font-weight: 600;
    min-width: 120px;
}

.experience-detail .value {
    color: var(--text-secondary);
}

.tech-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.tech-tag {
    padding: 8px 20px;
    border-radius: 25px;
    border: 1px solid rgba(232, 115, 74, 0.3);
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-tag:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    background: rgba(232, 115, 74, 0.1);
    transform: translateY(-2px);
}

.experience-link {
    display: inline-block;
    margin-top: 25px;
    color: var(--text-secondary);
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.experience-link:hover {
    color: var(--accent-orange);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
#about {
    padding: 100px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-list {
    max-width: 800px;
    width: 100%;
}

.about-card {
    padding: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.12), rgba(232, 115, 74, 0.08));
    border: 1px solid rgba(232, 115, 74, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(232, 115, 74, 0.4);
    box-shadow: 0 10px 35px rgba(155, 89, 182, 0.15);
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--accent-orange);
    margin-bottom: 15px;
    font-weight: 600;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

/* ✅ Responsive */
@media (max-width: 768px) {
    #about {
        padding: 60px 20px;
    }

    .about-card {
        padding: 25px;
    }

    .about-card h3 {
        font-size: 1.3rem;
    }

    .about-card p {
        font-size: 0.95rem;
    }
}


/* ============================================
   PROJECTS CAROUSEL
   ============================================ */
#projects {
    padding: 100px 0;
    overflow: hidden;
}

#projects .section-title {
    padding: 0 60px;
}

.projects-subtitle {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.2s;
    text-align: center;
}

.projects-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
    display: flex;
    gap: 30px;
    animation: scrollCarousel 25s linear infinite;
    width: max-content;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scrollCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.project-card {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-icon {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--card-border);
    transition: all 0.4s ease;
    overflow: hidden;
}

.project-icon img {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    object-fit: cover;
}

.project-card:hover .project-icon {
    box-shadow: 0 8px 30px rgba(155, 89, 182, 0.25);
    border-color: rgba(155, 89, 182, 0.3);
}

.project-card span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ============================================
   PERSONAL PROJECTS SECTION
   ============================================ */
#personal-projects {
    padding: 80px 60px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.personal-project-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(40px);
    position: relative;
    cursor: pointer;
}

.personal-project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.personal-project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(232, 115, 74, 0.3);
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.personal-project-card:hover .project-image-wrapper img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.personal-project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay span {
    color: var(--accent-orange);
    font-size: 0.85rem;
    font-weight: 500;
}

.project-info {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.project-info .redirect-icon {
    width: 24px;
    height: 24px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.personal-project-card:hover .project-info .redirect-icon {
    opacity: 1;
    transform: translate(3px, -3px);
}

/* ============================================
   INSPIRATION SECTION
   ============================================ */
#inspiration {
    padding: 100px 60px;
    text-align: center;
}

.quote-text {
    font-size: 2rem;
    font-style: italic;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    max-width: 800px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.quote-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.quote-author {
    margin-top: 25px;
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease 0.3s;
}

.quote-author.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact {
    padding: 100px 60px;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.contact-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 700px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.2s;
}

.contact-description.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.4s;
}

.contact-email.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-email svg {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
}

.contact-email a {
    color: var(--text-primary);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-email a:hover {
    color: var(--accent-orange);
}

.social-links {
    display: flex;
    gap: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.6s;
}

.social-links.visible {
    opacity: 1;
    transform: translateY(0);
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--card-border);
    transition: all 0.4s ease;
    background: var(--card-bg);
}

.social-link:hover {
    border-color: var(--accent-orange);
    background: rgba(232, 115, 74, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(232, 115, 74, 0.2);
}

.social-link svg {
    width: 22px;
    height: 22px;
    fill: var(--text-secondary);
    transition: fill 0.3s ease;
}

.social-link:hover svg {
    fill: var(--accent-orange);
}

/* ================= CONTACT FORM ================= */

/* Keep section centered for heading */
#contact {
    display: flex;
    flex-direction: column;
    align-items: center; /* keeps heading centered */
}

/* Left align ONLY the form */
.contact-form-container {
    width: 100%;
    max-width: 900px;          /* 👈 Bigger width */
    margin-top: 40px;
    align-self: flex-start;    /* 👈 Moves form to left */
}

.contact-form {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    padding: 50px;             /* 👈 More inner space */
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease forwards;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    top: 14px;
    left: 0;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    pointer-events: none;
    transition: 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom: 1px solid var(--accent-orange);
}

.input-group input:focus + label,
.input-group textarea:focus + label,
.input-group input:valid + label,
.input-group textarea:valid + label {
    top: -10px;
    font-size: 0.75rem;
    color: var(--accent-orange);
}

/* Button */

.contact-btn {
    width: 100%;
    padding: 16px;
    border-radius: 40px;
    border: none;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(232,115,74,0.3);
}

/* Success Message */

.form-success {
    margin-top: 20px;
    text-align: left;  /* 👈 Matches left form */
    color: #4CAF50;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.4s ease;
}

.form-success.active {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(232, 115, 74, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(232, 115, 74, 0);
    }
}

/* Particle dots animation */
@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    section {
        padding: 80px 40px;
    }

    .navbar {
        padding: 15px 30px;
    }

    .nav-links {
        gap: 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .cursor {
        height: 2.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        justify-content: flex-end;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transition: right 0.4s ease;
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.open {
        right: 0;
    }

    section {
        padding: 80px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .cursor {
        height: 2rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .profile-image-wrapper {
        width: 160px;
        height: 160px;
    }

    .section-title {
        font-size: 2rem;
    }

    .skills-grid {
        gap: 25px;
    }

    .skill-card {
        width: 80px;
        height: 80px;
    }

    .skill-card img,
    .skill-card svg {
        width: 40px;
        height: 40px;
    }

    .experience-card {
        padding: 25px;
    }

    .experience-detail {
        flex-direction: column;
        gap: 5px;
    }

    .experience-detail .label {
        min-width: auto;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .quote-text {
        font-size: 1.4rem;
    }

    #contact {
        padding: 80px 20px;
    }

    .footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .cursor {
        height: 1.6rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .nav-links {
        width: 85%;
    }
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-size: 1.2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    letter-spacing: 2px;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;

    /* 🔥 Gradient applied to ALL section headings */
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* ================= HERO TOGGLE FIX ================= */

#home {
    position: relative;
}

/* Toggle Container */
.hero-toggle {
    position: absolute;
    top: 80px;
    right: 40px;  /* move more right */
    z-index: 99999;
}

/* Button Style */
.toggle-btn {
    padding: 8px 18px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 30px;
    border: 1px solid var(--card-border);
    background: rgba(255,255,255,0.05);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: var(--accent-gradient);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--glow-purple);
}
