/* Import Poppins font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari&display=swap');

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #ff6f00;
    /* Deep Orange */
    --secondary-color: #ffa000;
    /* Lighter Orange */
    --text-color: #333333;
    --bg-color: #ffffff;
    --light-bg: #fff3e0;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}

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

}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    /* CRITICAL: Prevents white space on right */
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.8rem 2rem;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    /* Ensure it fills parent */
    margin: 0 auto;
}

.navbar-logo {
    height: 50px;
    /* Reduced slightly for mobile safety */
    width: auto;
}

.menu-items {
    display: flex;
    gap: 2rem;
}

.menu-items li a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
}

.menu-items li a:hover {
    color: var(--primary-color);
}

/* Hamburger Icon */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* =========================================
   3. HERO SECTION (Header)
   ========================================= */
header.logo {
    height: 100vh;
    width: 100%;
    /* Updated background syntax for better mobile support */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px 0 20px;
}

/* DONATE US SECTION */
.donate-box {
    background-color: var(--light-bg);
    padding: 40px 30px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s ease-out forwards;
    box-shadow: var(--shadow);
    max-width: 400px;
    margin: 50px auto;
    text-align: center;
    transition: var(--transition);
}

.donate-box:hover {
    transform: translateY(-5px);
}

.donate-box h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.donate-box p {
    font-size: 1.1rem;
    margin: 8px 0;
    color: var(--text-color);
}

.donate-box .upi-id {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* UPI ID Highlight Animation */
.upi-id {
    position: relative;
    animation: glowText 1.8s infinite alternate ease-in-out;
}

.qr-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    margin: 15px 0;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* QR Glow on hover */
.qr-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 111, 0, 0.5);
    transition: 0.3s ease-in-out;
}


/* Single Donate Button */
.donate-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: linear-gradient(90deg, #ff6f00, #ffa000);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    animation: subtlePop 0.6s ease-in-out;
}

.donate-btn:hover {
    opacity: 0.9;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 6px 14px rgba(255, 111, 0, 0.3);
    transform: translateY(-2px);
}

/* ================================
   KEYFRAMES
   ================================ */

/* Fade + slide up */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glow animation for UPI ID */
@keyframes glowText {
    from {
        color: #ff6f00;
        text-shadow: 0 0 4px rgba(255, 111, 0, 0.3);
    }

    to {
        color: #ffa000;
        text-shadow: 0 0 10px rgba(255, 111, 0, 0.6);
    }
}

/* Button subtle appearing pop */
@keyframes subtlePop {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

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

/* Simple fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Mobile responsiveness */
@media screen and (max-width: 480px) {
    .donate-box {
        padding: 25px 20px;
        margin: 30px 15px;
    }

    .donate-box p {
        font-size: 0.9rem;
        margin: 8px 0;
        color: var(--text-color);
    }

    .donate-box h2 {
        font-size: 1.5rem;
    }

    .donate-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .qr-img {
        width: 150px;
        height: 150px;
    }
}

/*////.........footer......./////*/
.footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 15px 10px;
    font-size: 14px;
    position: relative;
    bottom: 0;
    align-items: center;
    width: 100%;
}

.footer a {
    text-decoration: none;
    color: #ff5733;
    padding: 0.5rem;
    transition: 0.3s ease-in-out;
}

@media (max-width: 480px) {
    .footer {
        font-size: 12px;
        padding: 10px;
    }
}


@media screen and (max-width: 768px) {

    /* Navbar tweaks */
    .navbar {
        padding: 0.8rem 1.5rem;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    /* HIDE MENU IN MOBILE */
    .menu-items {
        position: fixed;
        top: 0;
        right: -100%;
        /* Off screen */
        height: 100vh;
        width: 75%;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transition: right 0.4s ease-in-out;
        visibility: hidden;
        opacity: 0;
    }

    .menu-items.active {
        right: 0;
        visibility: visible;
        opacity: 1;
    }

    /* Hamburger Animation */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    header.logo {
        padding-top: 60px;
        /* Make space for navbar */
    }
}