/* Google Font (Traditional + Elegant) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Poppins:wght@300;400;500&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fdf6f0, #f8e8ee, #e4f0f6);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor */
    color: #5c5470;
}

/* 🦋 Custom Butterfly Cursor */
.body {
    cursor: none;
}

/* Butterfly Cursor */
.cursor {
    width: 45px;
    height: 45px;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    background: url("../AddMiniProject/Assest/butterflygif.mp4") no-repeat center;
    background-size: contain;
    mix-blend-mode: screen;/* removes white background effect */
    transition: transform 0.05s linear;
}

/* Sparkles */
.sparkle {
    position: fixed;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, #fd2264, #fc3aa1, #ff6fc8);
    border-radius: 50%;
    pointer-events: none;
    animation: sparkleFade 0.8s linear forwards;
    z-index: 9998;
}

@keyframes sparkleFade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}


/* Flapping animation */
@keyframes flap {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid #f3d1dc;
    animation: fadeDown 1s ease forwards;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #a267ac;
}

/* Navbar */
nav {
    margin-top: 15px;
}

nav a {
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    color: #6a4e77;
    position: relative;
    transition: all 0.3s ease;
}

/* Underline animation */
nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -5px;
    background-color: #ff9eb5;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #ff9eb5;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    animation: fadeUp 1.5s ease forwards;
}

.hero h2 {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    color: #7a5c8e;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Projects Section */
.projects {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255,255,255,0.5);
    border-radius: 20px;
    margin: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease;
}

.projects:hover {
    transform: translateY(-8px);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #f3d1dc;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* General */


/* Section Layout */
.contribute-section {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    animation: fadeUp 1.5s ease;
}

/* Card */
.contribute-card {
    max-width: 800px;
    padding: 40px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: transform 0.4s ease;
}

.contribute-card:hover {
    transform: scale(1.02);
}

.contribute-card h2 {
    margin-top: 25px;
    color: #7b6cf6;
}

/* Code Styling */
pre {
    background: #f3e8ff;
    padding: 15px;
    border-radius: 15px;
    overflow-x: auto;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

code {
    font-family: monospace;
    color: #5a189a;
    font-size: 0.95rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Section */
.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

/* Contact Card */
.contact-card {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ch1 {
    text-align: center;
    align-items: center;
}

.contact-card:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* Paragraphs */
.contact-card p {
    font-size: 1.15rem;
    margin: 25px 0;
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* Links Styling */
.contact-card a {
    color: #7b6cf6;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.contact-card a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #ff69b4;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.contact-card a:hover {
    color: #ff69b4;
}

.contact-card a:hover::after {
    width: 100%;
}

/* Icons Styling */
.contact-card i {
    margin-right: 12px;
    font-size: 1.4rem;
    color: #7b6cf6;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.contact-card i:hover {
    transform: rotate(-10deg) scale(1.2);
    color: #ff69b4;
    text-shadow: 0 0 10px #ffb6c1, 0 0 20px #ff69b4;
}
.mini-projects {
    text-align: center;
    padding: 60px 20px;
}

.mini-projects h2 {
    color: #d147a3;
    margin-bottom: 30px;
    font-size: 2rem;
}

.mini-projects{
    display: flex;
}
.projects-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.project-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 25px;
    padding: 25px 30px;
    width: 220px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.project-card h3 {
    color: #ff69b4;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #5e548e;
}

.project-card .project-link {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 12px;
    background: #ffb6c1;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-card .project-link:hover {
    background: #ff69b4;
    transform: translateY(-2px);
}
/* Card Paragraph Styling */
section p.card {
    background: rgba(255, 255, 255, 0.6);   /* Glass effect */
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 30px;
    margin: 20px auto;
    max-width: 800px;
    
}

.github-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    text-decoration: none;
    background: #24292e;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: 0.3s ease;
}

.github-link:hover {
    background: #444;
}

/* Make Mini Project cards side by side */
.mini-projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.mini-projects .project-card {
    width: 220px;
}

/* ===== Home Header Redesign (main website) ===== */
.home-header {
    position: sticky;
    top: 14px;
    z-index: 200;
    margin: 14px auto 0;
    padding: 0 20px;
    text-align: left;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    animation: none;
}

.home-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 244, 250, 0.82), rgba(237, 248, 255, 0.84));
    box-shadow: 0 16px 45px rgba(113, 79, 127, 0.18);
    position: relative;
    overflow: hidden;
}

.home-header-inner::before {
    content: "";
    position: absolute;
    inset: -110% 42% auto -26%;
    height: 210%;
    background: linear-gradient(120deg, rgba(255, 169, 206, 0), rgba(255, 169, 206, 0.45), rgba(157, 200, 255, 0));
    transform: rotate(13deg);
    pointer-events: none;
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #5f3f78;
    position: relative;
    z-index: 1;
}

.home-brand-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1.4rem;
    background: linear-gradient(145deg, #ffd5e9, #fff3f9);
    box-shadow: 0 8px 24px rgba(216, 124, 165, 0.28);
}

.home-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    gap: 4px;
}

.home-brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: #6d4e86;
}

.home-brand-tagline {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9972ab;
    font-weight: 600;
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.home-nav a {
    text-decoration: none;
    color: #6a4e77;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.home-nav a:hover,
.home-nav a:focus-visible {
    color: #b23e86;
    border-color: rgba(255, 152, 194, 0.35);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 6px 16px rgba(255, 148, 193, 0.25);
    transform: translateY(-1px);
    outline: none;
}

.home-nav a.active {
    color: #ffffff;
    background: linear-gradient(135deg, #ff86ba, #b17ff6);
    box-shadow: 0 8px 20px rgba(191, 115, 185, 0.3);
}

.home-nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 10px 24px rgba(108, 83, 134, 0.2);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 2;
}

.home-nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 6px;
    background: #7e5b96;
    transition: transform 0.28s ease, opacity 0.2s ease;
}

.back-home {
    position: fixed;   /* stays visible while scrolling */
    left: 30px;        /* moves to left side */
    top: 7%;          /* vertically centered */
    transform: translateY(-50%);

    padding: 12px 18px;
    background: #ffb6c1;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: 0.3s ease;
    z-index: 50;
}

.back-home:hover {
    background: #ff8fab;
    transform: translateY(-50%) scale(1.05);
}

@media (max-width: 900px) {
    .home-header {
        top: 8px;
        padding: 0 12px;
    }

    .home-header-inner {
        flex-wrap: wrap;
        padding: 12px;
        border-radius: 20px;
        overflow: visible;
    }

    .home-nav-toggle {
        display: none;
    }

    .home-nav {
        position: static;
        width: 100%;
        margin-top: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 12px;
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.88);
        background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(252, 239, 246, 0.94));
        box-shadow: 0 20px 40px rgba(102, 74, 122, 0.2);
        opacity: 1;
        pointer-events: auto;
        transform: none;
        z-index: 40;
    }

    .home-nav a {
        text-align: center;
    }
    
    .js-ready .home-header-inner {
        flex-wrap: nowrap;
    }

    .js-ready .home-nav-toggle {
        display: inline-flex;
    }

    .js-ready .home-nav {
        position: absolute;
        right: 12px;
        top: calc(100% + 12px);
        width: min(320px, calc(100vw - 36px));
        margin-top: 0;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px) scale(0.98);
        transition: opacity 0.22s ease, transform 0.22s ease;
    }

    .js-ready .home-header.nav-open .home-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .js-ready .home-header.nav-open .home-nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .js-ready .home-header.nav-open .home-nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .js-ready .home-header.nav-open .home-nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 560px) {
    .home-brand-title {
        font-size: 1.1rem;
    }

    .home-brand-tagline {
        font-size: 0.7rem;
    }
}

@media (max-width: 420px) {
    .home-header-inner {
        gap: 10px;
    }

    .home-brand {
        gap: 10px;
    }

    .home-brand-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 1.1rem;
    }

    .home-brand-tagline {
        display: none;
    }

    .home-nav {
        right: 8px;
        width: calc(100vw - 28px);
    }

    .js-ready .home-nav {
        right: 8px;
        width: calc(100vw - 28px);
    }
}

@media (hover: none), (pointer: coarse) {
    body {
        cursor: auto;
    }

    .cursor,
    .sparkle {
        display: none !important;
    }
}

.nav-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto; /* pushes profile to right side */
}

#navUsername {
  font-weight: 600;
  color: #5b3a78;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#navUsername::before {
  content: "👤";
}

.logout-btn {
  border: none;
  background: linear-gradient(135deg,#ff4fa3,#ff7ab6);
  color: white;
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

.logout-btn:hover {
  transform: translateY(-1px);
}