/*
Author: Gagan Soti
Email: gagansoti@gmail.com
Contact Number: +977-9747435736
All Rights Reserved.
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: #f9fafc;
    color: #0b1a33;
    line-height: 1.6;
    scroll-behavior: smooth;
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background: #0f172a;
    color: #e2e8f0;
}

body.dark-mode .navbar {
    background: rgba(15, 23, 42, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .nav-links a {
    color: #e2e8f0;
}

body.dark-mode .btn-secondary {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}

body.dark-mode .btn-secondary:hover {
    background: #334155;
}

body.dark-mode .project-card,
body.dark-mode .view-more-card,
body.dark-mode .education-card,
body.dark-mode .testimonial-card,
body.dark-mode .wrapper,
body.dark-mode .main-wrapper,
body.dark-mode .stats-section,
body.dark-mode .contact-form,
body.dark-mode .newsletter-wrapper,
body.dark-mode .about-extra {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .project-card p,
body.dark-mode .view-more-card .vm-info p,
body.dark-mode .education-card p,
body.dark-mode .testimonial-card p {
    color: #94a3b8;
}

body.dark-mode .project-svg {
    background: #0f172a;
}

body.dark-mode .project-card .tech span {
    background: #334155;
    color: #e2e8f0;
}

body.dark-mode .stat-item .label {
    color: #94a3b8;
}

body.dark-mode .contact-info p,
body.dark-mode .about-text p {
    color: #94a3b8;
}

body.dark-mode .visitor-counter {
    background: #1e293b;
    color: #e2e8f0;
}

body.dark-mode .skill-tags span {
    background: #334155;
    color: #e2e8f0;
}

body.dark-mode .skill-tags span:hover {
    background: #2563eb;
    color: #fff;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .footer {
    background: #0f172a;
    border-top-color: #1e293b;
}

body.dark-mode .contact-section {
    background: #0f172a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- ANIMATIONS ----- */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.2);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.animate-on-view {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-view.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----- LOADING ANIMATION ----- */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f9fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

body.dark-mode .loader-wrapper {
    background: #0f172a;
}

.loader-wrapper.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

body.dark-mode .loader {
    border-color: #334155;
    border-top-color: #2563eb;
}

/* ----- SCROLL PROGRESS BAR ----- */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    z-index: 1000;
}

body.dark-mode .progress-bar-container {
    background: #1e293b;
}

.progress-bar-scroll {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    width: 0%;
    transition: width 0.1s;
}

/* ----- DARK MODE TOGGLE ----- */
.dark-mode-toggle {
  position: fixed;
  top: 82px;
  right: 10px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  color: #1e293b;
  border: 2px solid #e2e8f0;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.dark-mode-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

body.dark-mode .dark-mode-toggle {
    background: #f59e0b;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

/* ----- HEADER / NAV ----- */
.navbar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
    transition: background 0.3s ease;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.navbar a {
    text-decoration: none;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #2563eb, #7c3aed, #2563eb);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #1e293b;
    transition: 0.2s;
    font-size: 1rem;
    position: relative;
    font-weight: bold;
    text-align: center;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: #2563eb;
    transition: 0.25s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .btn-outline {
    border: 1.5px solid #2563eb;
    padding: 8px 22px;
    border-radius: 40px;
    color: #2563eb;
    font-weight: 600;
    transition: 0.25s;
}

.nav-links .btn-outline:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.nav-links .btn-outline::after {
    display: none;
}

/* ----- HERO ----- */
.hero {
    padding: 50px 0 40px;
    animation: fadeUp 0.8s ease forwards;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1 1 400px;
}

.hero-content .badge {
    display: inline-block;
    background: #dbeafe;
    color: #1e4ed8;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 20px;
    border-radius: 40px;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

body.dark-mode .hero-content .badge {
    background: #1e293b;
    color: #60a5fa;
}

.hero-content h1 {
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #475569;
    max-width: 500px;
    margin-bottom: 28px;
}

body.dark-mode .hero-content p {
    color: #94a3b8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 14px 38px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.25s;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    padding: 14px 38px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.25s;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #e9eef3;
    transform: translateY(-4px);
}

.hero-avatar {
    flex: 0 0 220px;
    text-align: center;
    animation: float 4s ease-in-out infinite;
    margin-top: 20px;
}

.hero-avatar img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.12);
    border: 4px solid #fff;
    background: #eef2f6;
    transition: 0.3s;
    object-fit: cover;
    object-position: top;
    transform: scale(1.2);
}

.hero-avatar img:hover {
    transform: scale(1.25);
    box-shadow: 0 28px 48px -12px rgba(37, 99, 235, 0.25);
}

/* ----- SECTION TITLE ----- */
.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.section-sub {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

body.dark-mode .section-sub {
    color: #94a3b8;
}

/* ----- PROJECT FILTER TABS ----- */
.filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 24px;
    border: 1.5px solid #e2e8f0;
    border-radius: 40px;
    background: transparent;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.25s;
    color: #475569;
}

body.dark-mode .filter-btn {
    border-color: #334155;
    color: #94a3b8;
}

.filter-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.filter-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

body.dark-mode .filter-btn.active {
    background: #2563eb;
    color: #fff;
}

/* ----- PROJECTS GRID ----- */
.projects {
    padding: 50px 0 30px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 0 0 24px 0;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.02);
    border: 1px solid #edf2f7;
    transition: 0.35s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #f59e0b);
    opacity: 0;
    transition: 0.3s;
    z-index: 2;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 48px -16px rgba(37, 99, 235, 0.15);
    border-color: #dbeafe;
}

.project-card.hidden {
    display: none;
}

.project-svg {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #f0f4ff, #e0e7f5);
    border-radius: 32px 32px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
    padding: 20px;
    position: relative;
}

.project-card:hover .project-svg {
    background: linear-gradient(135deg, #e8edfe, #d6def5);
}

.project-svg svg {
    width: 90px;
    height: 90px;
    transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.04));
}

.project-card:hover .project-svg svg {
    transform: scale(1.12) rotate(-3deg);
}

.project-body {
    padding: 18px 24px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-card .icon {
    font-size: 1.6rem;
    margin-bottom: 2px;
    color: #2563eb;
}

.project-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.project-card p {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 14px;
    flex: 1;
}

.project-card .tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-card .tech span {
    background: #f1f5f9;
    padding: 4px 16px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1e293b;
    transition: 0.2s;
}

.project-card:hover .tech span {
    background: #e8edf5;
}

.project-card .card-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.25s;
    margin-bottom: 4px;
}

.project-card .card-link:hover {
    gap: 14px;
    color: #1d4ed8;
}

/* ----- VIEW MORE PROJECTS ----- */
.view-more-section {
    padding: 20px 0 50px;
}

.view-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.view-more-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 18px;
    border: 1px solid #edf2f7;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.view-more-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    border-color: #dbeafe;
}

.view-more-card .vm-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eef2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #2563eb;
    flex-shrink: 0;
    transition: 0.3s;
}

.view-more-card:hover .vm-icon {
    background: #2563eb;
    color: #fff;
}

.view-more-card .vm-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.view-more-card .vm-info p {
    font-size: 0.8rem;
    color: #64748b;
}

.view-more-card .vm-link {
    margin-left: auto;
    color: #94a3b8;
    transition: 0.2s;
}

.view-more-card:hover .vm-link {
    color: #2563eb;
    transform: translateX(4px);
}

/* ----- EDUCATION SECTION ----- */
.education-section {
    padding: 50px 0 60px;
    border-top: 1px solid #eef2f6;
}

body.dark-mode .education-section {
    border-top-color: #1e293b;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.education-card {
    background: #fff;
    padding: 28px;
    border-radius: 24px;
    border: 1px solid #edf2f7;
    transition: 0.3s;
}

.education-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    border-color: #dbeafe;
}

.education-card .edu-year {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.education-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.education-card p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

body.dark-mode .education-card p {
    color: #94a3b8;
}

.education-card .edu-badge {
    display: inline-block;
    background: #eef2f6;
    color: #1e293b;
    padding: 4px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    margin: 4px 4px 0 0;
}

body.dark-mode .education-card .edu-badge {
    background: #334155;
    color: #e2e8f0;
}

/* ----- SKILLS SECTION ----- */
.skills-section {
    padding: 50px 0 60px;
    border-top: 1px solid #eef2f6;
}

body.dark-mode .skills-section {
    border-top-color: #1e293b;
}

.skills-progress {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.skill-item span {
    min-width: 100px;
    font-weight: 500;
}

.skill-item .skill-percent {
    min-width: 45px;
    text-align: right;
    font-weight: 600;
    color: #2563eb;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #edf2f7;
    border-radius: 10px;
    overflow: hidden;
}

body.dark-mode .progress-bar {
    background: #1e293b;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 10px;
    transition: width 1s ease;
}

/* ----- STATS / NUM SCROLLER ----- */
.stats-section {
    padding: 30px 0 50px;
    border-top: 1px solid #eef2f6;
    margin-top: 10px;
    background: #fff;
}

body.dark-mode .stats-section {
    background: #0f172a;
    border-top-color: #1e293b;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 60px;
}

.stat-item {
    text-align: center;
    animation: countUp 0.6s ease;
    padding: 12px 20px;
    min-width: 120px;
    transition: 0.3s;
}

.stat-item:hover {
    transform: translateY(-4px) scale(1.02);
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: -0.02em;
}

.stat-item .number .plus-sign {
    font-size: 2.2rem;
    font-weight: 600;
    color: #2563eb;
    margin-left: 2px;
}

.stat-item .label {
    font-size: 1rem;
    color: #475569;
    font-weight: 500;
    margin-top: 2px;
}

body.dark-mode .stat-item .label {
    color: #94a3b8;
}

/* ----- ABOUT ----- */
.about-mini {
    padding: 50px 0 60px;
    border-top: 1px solid #eef2f6;
}

body.dark-mode .about-mini {
    border-top-color: #1e293b;
}

.about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 2 1 300px;
}

.about-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-text p {
    color: #475569;
    max-width: 520px;
}

body.dark-mode .about-text p {
    color: #94a3b8;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.skill-tags span {
    background: #eef2f6;
    padding: 8px 24px;
    border-radius: 60px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #1e293b;
    transition: 0.25s;
    cursor: pointer;
}

body.dark-mode .skill-tags span {
    background: #1e293b;
    color: #e2e8f0;
}

.skill-tags span:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.about-extra {
    flex: 1 1 200px;
    background: #f8fafc;
    padding: 32px 24px;
    border-radius: 32px;
    border: 1px solid #eef2f6;
    text-align: center;
    transition: 0.3s;
}

body.dark-mode .about-extra {
    background: #1e293b;
    border-color: #334155;
}

.about-extra:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

.about-extra .num {
    font-size: 3rem;
    font-weight: 700;
    color: #2563eb;
}

.about-extra p {
    color: #475569;
    font-weight: 500;
}

body.dark-mode .about-extra p {
    color: #94a3b8;
}

/* ----- TESTIMONIALS ----- */
.testimonials {
    padding: 50px 0 60px;
    border-top: 1px solid #eef2f6;
}

body.dark-mode .testimonials {
    border-top-color: #1e293b;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 28px;
    border-radius: 24px;
    border: 1px solid #edf2f7;
    transition: 0.3s;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    border-color: #dbeafe;
}

.testimonial-card .testimonial-quote {
    color: #2563eb;
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 8px;
}

.testimonial-card p {
    color: #475569;
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 16px;
}

body.dark-mode .testimonial-card p {
    color: #94a3b8;
}

.testimonial-card .testimonial-author h4 {
    font-weight: 600;
    font-size: 1rem;
}

.testimonial-card .testimonial-author span {
    font-size: 0.85rem;
    color: #64748b;
}

body.dark-mode .testimonial-card .testimonial-author span {
    color: #94a3b8;
}

/* ----- CONTACT FORM ----- */
.contact-section {
    padding: 60px 0 70px;
    background: #ffffff;
    border-top: 1px solid #eef2f6;
}

body.dark-mode .contact-section {
    background: #0f172a;
    border-top-color: #1e293b;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: flex-start;
}

.contact-info {
    flex: 1 1 240px;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-info p {
    color: #475569;
    margin-bottom: 20px;
}

body.dark-mode .contact-info p {
    color: #94a3b8;
}

.contact-details {
    margin: 20px 0;
}

.contact-details p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.contact-details i {
    color: #2563eb;
    width: 24px;
}

.social-links {
    display: flex;
    gap: 18px;
}

.social-links a {
    color: #475569;
    font-size: 1.6rem;
    transition: 0.25s;
}

body.dark-mode .social-links a {
    color: #94a3b8;
}

.social-links a:hover {
    color: #2563eb;
    transform: translateY(-4px) scale(1.1);
}

.contact-form {
    flex: 2 1 380px;
    background: #f9fafc;
    padding: 32px 32px 40px;
    border-radius: 32px;
    border: 1px solid #edf2f7;
}

body.dark-mode .contact-form {
    background: #1e293b;
    border-color: #334155;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 6px;
    color: #1e293b;
}

body.dark-mode .contact-form label {
    color: #e2e8f0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: 0.2s;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn-submit {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 14px 38px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
    width: 100%;
}

.contact-form .btn-submit:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.3);
}

.form-feedback {
    margin-top: 16px;
    font-weight: 500;
    text-align: center;
    min-height: 28px;
    color: #2563eb;
}

/* ----- NEWSLETTER ----- */
.newsletter-section {
    padding: 40px 0 50px;
    border-top: 1px solid #eef2f6;
}

body.dark-mode .newsletter-section {
    border-top-color: #1e293b;
}

.newsletter-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 28px;
    border: 1px solid #edf2f7;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

body.dark-mode .newsletter-wrapper {
    background: #1e293b;
    border-color: #334155;
}

.newsletter-wrapper h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.newsletter-wrapper p {
    color: #64748b;
    margin-bottom: 20px;
}

body.dark-mode .newsletter-wrapper p {
    color: #94a3b8;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 14px 20px;
    border: 1.5px solid #e2e8f0;
    border-radius: 60px;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.2s;
}

body.dark-mode .newsletter-form input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.newsletter-form button {
    padding: 14px 32px;
    border: none;
    border-radius: 60px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.newsletter-form button:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.3);
}

.newsletter-feedback {
    margin-top: 12px;
    font-weight: 500;
    color: #059669;
}

/* ----- FOOTER ----- */
.footer {
    padding: 40px 0 32px;
    border-top: 1px solid #eef2f6;
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    background: #f9fafc;
}

body.dark-mode .footer {
    background: #0f172a;
    border-top-color: #1e293b;
    color: #94a3b8;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eef2f6;
}

body.dark-mode .footer-content {
    border-bottom-color: #1e293b;
}

.footer-brand h3 {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    font-size: 0.85rem;
    color: #64748b;
}

body.dark-mode .footer-brand p {
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: 0.2s;
    font-weight: 500;
}

body.dark-mode .footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: #2563eb;
}

.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social a {
    color: #64748b;
    font-size: 1.2rem;
    transition: 0.2s;
}

body.dark-mode .footer-social a {
    color: #94a3b8;
}

.footer-social a:hover {
    color: #2563eb;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #eef2f6;
    padding-top: 24px;
}

body.dark-mode .footer-bottom {
    border-top-color: #1e293b;
}

.visitor-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef2f6;
    padding: 6px 20px;
    border-radius: 60px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #1e293b;
    margin-top: 12px;
    animation: pulseGlow 2.5s infinite;
}

body.dark-mode .visitor-counter {
    background: #1e293b;
    color: #e2e8f0;
}

.visitor-counter i {
    color: #2563eb;
}

.visitor-counter span {
    font-weight: 700;
    color: #2563eb;
    min-width: 40px;
    display: inline-block;
}

.visitor-counter .live-badge {
    display: inline-block;
    background: #059669;
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 6px;
    animation: pulseGlow 2s infinite;
}

/* ----- BACK TO TOP BUTTON ----- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #1d4ed8;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

/* ----- TYPING EFFECT ----- */
.typing-text {
    display: inline;
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    background: linear-gradient(145deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cursor {
    display: inline-block;
    font-size: 3.4rem;
    font-weight: 300;
    color: #2563eb;
    margin-left: 2px;
    -webkit-text-fill-color: #2563eb;
}

.dark-mode-toggle {
  position: fixed;
  top: 85px;
  right: 10px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  color: #1e293b;
  border: 2px solid #e2e8f0;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.dark-mode-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #2563eb;
}

body.dark-mode .dark-mode-toggle {
    background: #1e293b;
    border-color: #334155;
    color: #fbbf24;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .dark-mode-toggle:hover {
    border-color: #fbbf24;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.2);
}

.dark-mode-toggle .toggle-icon {
    transition: transform 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .dark-mode-toggle .toggle-icon {
    transform: rotate(180deg);
}

/* ----- CONTACT ICONS ----- */
.contact-details p {
    margin: 10px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-details i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f6;
    border-radius: 50%;
    color: #2563eb;
    font-size: 1rem;
    transition: 0.3s;
    flex-shrink: 0;
}

body.dark-mode .contact-details i {
    background: #1e293b;
    color: #60a5fa;
}

.contact-details p:hover i {
    background: #2563eb;
    color: #fff;
    transform: scale(1.08);
}

body.dark-mode .contact-details p:hover i {
    background: #3b82f6;
    color: #fff;
}

/* ----- SOCIAL LINKS (Contact) ----- */
.contact-info .social-links {
    display: flex;
    gap: 14px;
    margin-top: 10px;
}

.contact-info .social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f6;
    border-radius: 50%;
    color: #475569;
    font-size: 1.2rem;
    transition: 0.3s;
    text-decoration: none;
}

.contact-info .social-links a:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

body.dark-mode .contact-info .social-links a {
    background: #1e293b;
    color: #94a3b8;
}

body.dark-mode .contact-info .social-links a:hover {
    background: #3b82f6;
    color: #fff;
}

/* ----- FOOTER SOCIAL ICONS ----- */
.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f6;
    border-radius: 50%;
    color: #475569;
    font-size: 1.1rem;
    transition: 0.3s;
    text-decoration: none;
}

.footer-social a:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

body.dark-mode .footer-social a {
    background: #1e293b;
    color: #94a3b8;
}

body.dark-mode .footer-social a:hover {
    background: #3b82f6;
    color: #fff;
}

/* ----- FOOTER LINKS ----- */
.footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: 0.2s;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: 0.25s;
}

.footer-links a:hover::after {
    width: 100%;
}

body.dark-mode .footer-links a {
    color: #94a3b8;
}

body.dark-mode .footer-links a:hover {
    color: #60a5fa;
}

/* ----- FOOTER BRAND ----- */
.footer-brand h3 {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    font-size: 0.85rem;
    color: #64748b;
}

body.dark-mode .footer-brand p {
    color: #94a3b8;
}

.contact-info .social-links a:hover .fa-github,
.footer-social a:hover .fa-github {
    color: #fff;
}

.contact-info .social-links a:nth-child(1):hover,
.footer-social a:nth-child(1):hover {
    background: #333;
}

.contact-info .social-links a:nth-child(2):hover,
.footer-social a:nth-child(2):hover {
    background: #0a66c2;
}

.contact-info .social-links a:nth-child(3):hover,
.footer-social a:nth-child(3):hover {
    background: #1da1f2;
}

.contact-info .social-links a:nth-child(4):hover,
.footer-social a:nth-child(4):hover {
    background: #ff0000;
}

.contact-info .social-links a:nth-child(5):hover,
.footer-social a:nth-child(5):hover {
    background: #e4405f;
}

/* Light mode hover override */
.contact-info .social-links a:hover,
.footer-social a:hover {
    color: #fff !important;
}

/* ===== HIRE ME BUTTON ===== */
.btn-hire {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
    color: #fff;
    border: none;
    padding: 14px 38px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.25s;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-hire::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-hire:hover::before {
    left: 100%;
}

.btn-hire:hover {
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.35);
    transform: translateY(-4px);
}

.btn-hire:active {
    transform: translateY(0px) scale(0.97);
}

.btn-hire {
    animation: hirePulse 2.5s ease-in-out infinite;
}

@keyframes hirePulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
    }
    50% {
        box-shadow: 0 8px 32px rgba(124, 58, 237, 0.45);
    }
}

/* ===== DARK MODE SUPPORT ===== */
body.dark-mode .btn-hire {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.25);
}

body.dark-mode .btn-hire:hover {
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
    box-shadow: 0 14px 30px rgba(239, 68, 68, 0.35);
}

@media (max-width: 640px) {
    .btn-hire {
        padding: 10px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
  .dark-mode-toggle {
    top: 118px;
    right: 10px;
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }

}

.nav-links a.active {
    color: #2563eb;
}
.nav-links a.active::after {
    width: 100%;
}
body.dark-mode .nav-links a.active {
    color: #60a5fa;
}

@media (max-width: 480px) {
    .dark-mode-toggle {
    right: 10px !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 1.2rem !important;
    top: 120px !important;
    }
}

/* ----- RESPONSIVE ----- */
@media (max-width: 740px) {
    .typing-text {
        font-size: 2.6rem;
    }

    .cursor {
        font-size: 2.6rem;
    }

    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-avatar {
        flex: 0 0 160px;
    }

    .hero-avatar img {
        width: 160px;
        height: 160px;
        transform: scale(1);
    }

    .hero-avatar img:hover {
        transform: scale(1.05);
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .nav-links {
        gap: 16px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .stats-grid {
        gap: 16px;
    }

    .stat-item {
        min-width: 80px;
        padding: 8px 12px;
    }

    .stat-item .number {
        font-size: 2.2rem;
    }

    .stat-item .number .plus-sign {
        font-size: 1.6rem;
    }

    .project-svg {
        height: 130px;
    }

    .project-svg svg {
        width: 70px;
        height: 70px;
    }

    .view-more-grid {
        grid-template-columns: 1fr 1fr;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .dark-mode-toggle {
    bottom: 75px;
    top: 80px;
    right: 10px;
    width: 50px;
    height: 50px;
    font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .newsletter-form input {
        min-width: 100%;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px 18px;
    }

    .project-svg {
        height: 120px;
    }

    .project-svg svg {
        width: 60px;
        height: 60px;
    }

    .view-more-grid {
        grid-template-columns: 1fr;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }

    .newsletter-wrapper {
        padding: 24px 20px;
    }
}

.btn-games {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
    color: #fff;
    border: none;
    padding: 14px 38px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.25s;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-games::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-games:hover::before {
    left: 100%;
}

.btn-games:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.35);
    transform: translateY(-4px);
}

.btn-games:active {
    transform: translateY(0px) scale(0.97);
}

.btn-games {
    animation: gamesPulse 2.5s ease-in-out infinite;
}

@keyframes gamesPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
    }
    50% {
        box-shadow: 0 8px 32px rgba(124, 58, 237, 0.45);
    }
}

body.dark-mode .btn-games {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

body.dark-mode .btn-games:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.35);
}

@media (max-width: 640px) {
    .btn-games {
        padding: 10px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 447px) {
.nav-links .btn-outline {
  border: 1.5px solid #2563eb;
  padding: 8px 22px;
  border-radius: 40px;
  color: #2563eb;
  font-weight: 600;
  transition: 0.25s;
  display: none;
}
}

.btn-js {
    background: linear-gradient(135deg, #ff007e, #db2777);
    color: #fff;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.25) !important;
    color: #fff;
    border: none;
    padding: 14px 38px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.25s;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-js::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;

    transition: left 0.5s ease;
}

.btn-js:hover::before {
    left: 100%;
}

.btn-js:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #db2777, #be185d);
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.35) !important;
}

.btn-js:active {
    transform: translateY(0px) scale(0.97);
}

.btn-js {
    animation: jsPulse 2.5s ease-in-out infinite;
}

@keyframes jsPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
    }
    50% {
        box-shadow: 0 8px 32px rgba(245, 158, 11, 0.45);
    }
}

body.dark-mode .btn-js {
    background: linear-gradient(135deg, #ff0085, #ec4899);
}

body.dark-mode .btn-js:hover {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

@media (max-width: 640px) {
    .btn-js {
        padding: 10px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
}

.btn-typeshala {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-typeshala::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-typeshala:hover::before {
    left: 100%;
}

.btn-typeshala:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 40px rgba(37, 99, 235, 0.35);
}

.btn-typeshala:active {
    transform: scale(0.97);
}

.btn-typeshala .btn-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffbd14, #f09600);
    color: #fff;
    padding: 3px 14px;
    border-radius: 40px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    animation: badgePop 2s ease-in-out infinite;
    position: relative;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

@keyframes badgePop {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    }
    25% {
        transform: scale(1.1) rotate(-2deg);
        box-shadow: 0 0 35px rgba(245, 158, 11, 0.5);
    }
    50% {
        transform: scale(1.15) rotate(2deg);
        box-shadow: 0 0 45px rgba(245, 158, 11, 0.6);
    }
    75% {
        transform: scale(1.08) rotate(-1deg);
        box-shadow: 0 0 30px rgba(245, 158, 11, 0.4);
    }
}

.btn-typeshala .btn-badge.sparkle {
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
    }
    50% {
        transform: scale(1.2);
        opacity: 0.9;
        box-shadow: 0 0 40px rgba(245, 158, 11, 0.6), 0 0 80px rgba(245, 158, 11, 0.2);
    }
}

body.dark-mode .btn-typeshala .btn-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.3);
}

body.dark-mode .btn-typeshala .btn-badge:hover {
    box-shadow: 0 0 45px rgba(251, 191, 36, 0.5);
}

@media (max-width: 640px) {
    .btn-typeshala {
        padding: 14px 24px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
    .btn-typeshala .btn-badge {
        font-size: 0.55rem;
        padding: 2px 10px;
    }
}

.ai-projects {
  padding: 50px 0 30px;
}

.ai-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.ai-project-card {
  background: #ffffff;
  border-radius: 32px;
  padding: 24px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.02);
  border: 1px solid #edf2f7;
  transition: 0.35s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
}

body.dark-mode .ai-project-card {
  background: #1e293b;
  border-color: #334155;
}

.ai-project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #60a5fa, #2563eb);
  opacity: 0;
  transition: 0.3s;
  z-index: 2;
}

.ai-project-card:hover::before {
  opacity: 1;
}

.ai-project-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 48px -16px rgba(37, 99, 235, 0.15);
  border-color: #dbeafe;
}

body.dark-mode .ai-project-card:hover {
  border-color: #2563eb;
}

.ai-card-icon {
  font-size: 3rem;
  color: #2563eb;
  margin: 2rem 0 0.5rem;
  transition: 0.4s;
}

.ai-project-card:hover .ai-card-icon {
  transform: scale(1.08);
}

.ai-project-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #0f172a;
}

body.dark-mode .ai-project-card h3 {
  color: #f1f5f9;
}

.ai-project-card p {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 14px;
  padding: 0 1rem;
  flex: 1;
}

body.dark-mode .ai-project-card p {
  color: #94a3b8;
}

.ai-project-card .tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.ai-project-card .tech span {
  background: #f1f5f9;
  padding: 4px 16px;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #1e293b;
}

body.dark-mode .ai-project-card .tech span {
  background: #334155;
  color: #e2e8f0;
}

.ai-project-card .card-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.25s;
  margin-bottom: 4px;
}

.ai-project-card .card-link:hover {
  gap: 14px;
  color: #1d4ed8;
}


