/**
 * ==========================================================================
 * DEWIZARDS PORTFOLIO - MAIN STYLESHEET
 * ==========================================================================
 * Author: Debojeet Bhowmick
 * Version: 2.0.0
 * Last Updated: 2026-02-06
 * 
 * TABLE OF CONTENTS
 * ==========================================================================
 * 
 * 1. FOUNDATIONS
 *    1.1 Font Imports
 *    1.2 CSS Reset & Base Styles
 *    1.3 CSS Custom Properties (Variables)
 *    1.4 Dark Mode Variables
 *    1.5 Typography Base
 * 
 * 2. LAYOUT COMPONENTS
 *    2.1 Header & Navigation
 *    2.2 Mobile Menu
 *    2.3 Section Base Styles
 * 
 * 3. PAGE SECTIONS
 *    3.1 Home / Hero Section
 *    3.2 Profession Animation (Rotating Circle)
 *    3.3 About Section
 *    3.4 Services Section
 *    3.5 Pricing Section
 *    3.6 Portfolio Section
 *    3.7 Testimonials Section
 *    3.8 Contact Section
 * 
 * 4. UI COMPONENTS
 *    4.1 Buttons
 *    4.2 Cards
 *    4.3 Forms & Inputs
 *    4.4 Modal (Order Form)
 * 
 * 5. FOOTER
 *    5.1 Footer Layout
 *    5.2 Social Media Buttons
 *    5.3 Back to Top Button
 * 
 * 6. WIDGETS & PLUGINS
 *    6.1 Cookie Banner
 *    6.2 UPI Payment Widget
 *    6.3 Toast Notifications
 * 
 * 7. ANIMATIONS
 *    7.1 Keyframe Animations
 *    7.2 Transitions
 * 
 * 8. RESPONSIVE DESIGN
 *    8.1 Desktop Large (1200px)
 *    8.2 Desktop (1100px - 1024px)
 *    8.3 Tablet (991px - 768px)
 *    8.4 Mobile (580px - 450px)
 *    8.5 Small Mobile (365px - 315px)
 * 
 * 9. UTILITIES
 *    9.1 Content Protection
 *    9.2 Performance Optimization
 *    9.3 Accessibility
 * 
 * ==========================================================================
 */

/* ==========================================================================
   1. FOUNDATIONS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1.1 Font Imports
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

/* --------------------------------------------------------------------------
   1.3 CSS Custom Properties (Variables)
   -------------------------------------------------------------------------- */
:root {
    --bg-color: #fdfdfd;
    --text-color: #333;
    --main-color: #528276;
    /* --main-color: #5c8d81; */
    --white-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .2);

    /* Transition Variables */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;

    --primary-color: #5c8d81;
    --primary: #6FA89A;
    --primary-dark: #5B8C7A;
    --primary-light: #8FBFB3;
    --primary-glow: rgba(111, 168, 154, 0.4);
    --secondary-color: #f5f5f5;
    --highlight-color: #528276;
    --highlight-hover-color: #528276;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: rgba(111, 168, 154, 0.1);
    --text-primary: #1a1a2e;
    --text-secondary: #666680;
    --text-muted: #9999aa;
    --card-bg-color: #f9f9f9;
    --input-bg-color: #fdfdfd;
    --input-border-color: #5c8d81;
}

*::selection {
    background: var(--main-color);
    color: var(--bg-color);
}

.dark-mode {
    --bg-color: #04272c;
    --text-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .7);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* ==========================================================================
   2. LAYOUT COMPONENTS
   ========================================================================== */

body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
    /* Prevent layout shift if possible, or handle via JS */
}

/* --------------------------------------------------------------------------
   2. REUSABLE COMPONENTS
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   2.1 Header & Navigation
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.3rem 5%;
    /* Reduced height */
    background: rgba(255, 255, 255, 0.18);
    /* More translucent */
    display: flex;
    align-items: center;
    z-index: 100;
    transition: var(--transition-fast);
    backdrop-filter: blur(12px) saturate(180%);
    /* Glassmorphism effect */
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 24px 0 rgba(31, 38, 135, 0.07);
    will-change: background, box-shadow;
}

.header.sticky {
    background: rgba(255, 255, 255, 0.14);
    /* Slightly less translucent when sticky */
    box-shadow: 0 4px 32px 0 rgba(31, 38, 135, 0.12);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.dark-mode .header {
    background: rgba(4, 39, 44, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .header.sticky {
    background: rgba(4, 39, 44, 0.95);
}

.logo {
    font-size: 2.4rem;
    color: var(--main-color);
    font-weight: 600;
    margin-right: auto;
    transition: var(--transition-fast);
}

.logo-img {
    display: block;
    margin-right: 10px;
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar a {
    position: relative;
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 500;
    margin-right: 3rem;
    transition: color var(--transition-fast);
}

.navbar a:hover {
    color: var(--main-color);
}

.navbar a.active {
    color: var(--main-color);
}

.navbar a.active::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 0.2rem;
    background: var(--main-color);
    border-radius: 2px;
    opacity: 0.8;
}

.header.sticky .navbar a {
    color: var(--text-color);
}

.header.sticky .navbar a:hover,
.header.sticky .navbar a.active {
    color: var(--main-color);
}

.header.sticky .navbar a.active::before {
    background: var(--main-color);
    opacity: 0.7;
}

#darkMode-icon {
    font-size: 2.1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color var(--transition-fast), transform var(--transition-fast);
    background: none;
    border: none;
    padding: 0;
}

#darkMode-icon:hover {
    transform: scale(1.1);
}

.header.sticky #darkMode-icon {
    color: var(--text-color);
    opacity: 0.9;
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
    background: none;
    border: none;
    padding: 0;
}

section {
    min-height: 100vh;
    padding: 10rem 7% 2rem;
}

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

/* ==========================================================================
   3. PAGE SECTIONS
   ========================================================================== */

/* --------------------------------------------------------------------------
   3.1 Home / Hero Section
   -------------------------------------------------------------------------- */
.home {
    display: flex;
    align-items: center;
}

.home .home-content {
    max-width: 44rem;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: .3;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    margin-bottom: .3rem;
}

.home-content p {
    font-size: 1.6rem;
}

.home-content .social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 2rem;
    color: var(--main-color);
    margin: 2.5rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.home-content .social-media a:hover {
    background: var(--main-color);
    color: var(--white-color);
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--main-color);
    border-radius: .6rem;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 1.6rem;
    color: var(--white-color);
    letter-spacing: .1rem;
    font-weight: 600;
    border: .2rem solid transparent;
    transition: .5s ease;
}

.btn i {
    vertical-align: middle;
    margin-right: 8px;
}

.btn:hover {
    background: transparent;
    color: var(--main-color);
    border-color: var(--main-color);
}

.home .profession-container {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.home .profession-container .profession-box {
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(320px, 50vw, 768px);
    max-width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: professionRotate 13s ease-out infinite;
}

@keyframes professionRotate {
    0%, 25% {
        transform: rotate(0deg);
    }
    33.33%, 58.33% {
        transform: rotate(-120deg);
    }
    66.66%, 91.66% {
        transform: rotate(-240deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

.home .profession-box .profession {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: var(--main-color);
    transform: rotate(calc(360deg / 3 * var(--i)));
    transform-origin: clamp(160px, 25vw, 384px);
    background: var(--bg-color);
    padding: 8px 15px;
    border-radius: 8px;
}

.home .profession-box .profession:nth-child(1) i {
    margin-right: 15px;
}

.home .profession-box .profession:nth-child(2) {
    padding-bottom: 20px;
}

.home .profession i {
    font-size: 3.6rem;
}

.home .profession h3 {
    font-size: 3.2rem;
    line-height: 1;
    font-weight: 600;
}

.home .profession-box .circle {
    width: clamp(280px, 35vw, 540px);
    height: clamp(280px, 35vw, 540px);
    border: 3px solid var(--main-color);
    border-radius: 50%;
    z-index: -1;
}

.home .profession-container .overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 50vh solid var(--main-color);
    border-right: clamp(160px, 25vw, 384px) solid var(--main-color);
    border-bottom: 50vh solid var(--main-color);
    border-left: clamp(160px, 25vw, 384px) solid transparent;
}

.mobile-profession-container {
    display: none;
}

.home-img img {
    position: absolute;
    bottom: 0;
    right: 40px;
    pointer-events: none;
    max-width: 480px;
    max-height: 100vh;
}

span {
    color: var(--main-color);
}

/* --------------------------------------------------------------------------
   3.3 About Section
   -------------------------------------------------------------------------- */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.about-img img {
    width: 40vw;
}

.heading {
    font-size: 4.5rem;
    text-align: center;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

/* --------------------------------------------------------------------------
   3.4 Services Section
   -------------------------------------------------------------------------- */
.services {
    min-height: auto;
    padding-bottom: 10rem;
}

.services h2 {
    margin-bottom: 5rem;
    font-size: 5rem;
    text-align: center;
}

.services h2 span {
    color: var(--main-color);
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2.5rem;
}


.services-box {
    flex: 1 1 30rem;
    max-width: 350px;
    /* ADAPTIVE GLASS: Uses --card-bg-color but with transparency */
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);

    padding: 3rem 2rem 3.5rem;
    border-radius: 2.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Dark Mode Specific Overlay */
.dark-mode .services-box {
    background: rgba(43, 44, 44, 0.6);
    /* Keep the dark glass for dark mode */
    border-color: rgba(255, 255, 255, 0.1);
}

/* Hover Effect - Lift & Glow */
.services-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 2rem 4rem rgba(111, 168, 154, 0.25);
    border-color: var(--main-color);
}

.dark-mode .services-box:hover {
    background: rgba(43, 44, 44, 0.8);
}

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

.services-box:hover::before {
    left: 100%;
}

.services-box i {
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(111, 168, 154, 0.4);
    transition: transform 0.3s;
}

.services-box:hover i {
    transform: scale(1.1) rotate(5deg);
}

.services-box h3 {
    font-size: 2.2rem;
    transition: .5s ease;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    /* Adaptive text color */
    font-weight: 700;
}

.services-box p {
    font-size: 1.5rem;
    margin: 0.5rem 0 2.5rem;
    line-height: 1.6;
    flex-grow: 1;
    color: var(--text-color);
    /* Adaptive text color */
    opacity: 0.9;
}

.dark-mode .services-box h3,
.dark-mode .services-box p {
    color: var(--white-color);
}


.services-box .btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--main-color);
    border-radius: 4rem;
    font-size: 1.5rem;
    color: var(--white-color);
    letter-spacing: .05rem;
    font-weight: 600;
    border: .2rem solid transparent;
    transition: .5s ease;
    text-decoration: none;
    margin-top: auto;
    box-shadow: 0 5px 15px rgba(111, 168, 154, 0.3);
}

.services-box .btn:hover {
    background: transparent;
    color: var(--main-color);
    border-color: var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   3.5 Pricing Section
   -------------------------------------------------------------------------- */
.pricing {
    min-height: auto;
    padding-bottom: 10rem;
}

.pricing h2 {
    margin-bottom: 5rem;
    font-size: 5rem;
    text-align: center;
}

.pricing h2 span {
    color: var(--main-color);
}

/* --- Pricing Tabs for Filtering --- */
/* --- Pricing Tabs for Filtering --- */
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    /* Remove gap for sliding effect */
    margin-bottom: 5rem;
    flex-wrap: nowrap;
    /* Prevent wrapping for sliding */
    background: rgba(255, 255, 255, 0.2);
    /* Slightly more visible glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 6px;
    border-radius: 5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: fit-content;
    max-width: 95vw;
    /* responsiveness */
    margin-left: auto;
    margin-right: auto;
    position: relative;
    /* For indicator */
    z-index: 1;
}

.dark-mode .pricing-tabs {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
}

.pricing-tab-indicator {
    position: absolute;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);
    background: linear-gradient(135deg, var(--main-color), var(--primary));
    border-radius: 4rem;
    box-shadow: 0 4px 15px rgba(82, 130, 118, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
    /* Width and transform set by JS */
}

.dark-mode .pricing-tab-indicator {
    background: rgba(255, 255, 255, 0.15);
    /* Subtle light pill in dark mode */
}

.pricing-tabs .tab-btn {
    padding: 1.2rem 2.8rem;
    /* Increased padding */
    border-radius: 4rem;
    border: none;
    background: transparent !important;
    color: var(--text-color);
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
    margin: 0;
    white-space: nowrap !important;
    /* Force single line */
    flex-shrink: 0;
    /* Prevent squishing */
    opacity: 0.7;
    /* Lower default opacity for contrast */
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode .pricing-tabs .tab-btn {
    color: var(--white-color);
    opacity: 0.7;
}

.pricing-tabs .tab-btn:hover {
    opacity: 1;
    color: var(--main-color);
}

.dark-mode .pricing-tabs .tab-btn:hover {
    color: #fff;
}

.pricing-tabs .tab-btn.active {
    color: #fff;
    box-shadow: none;
    opacity: 1;
    transform: none;
    /* remove scale */
}

.dark-mode .pricing-tabs .tab-btn.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Cascade Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.pricing-box.animate {
    animation: fadeUp 0.6s ease forwards;
}


/* --- Pricing Category Containers --- */
.pricing-container {
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2.5rem;
    animation: fadeIn 0.5s ease-in-out;
}

.pricing-container.active {
    display: flex;
    /* Show only active category */
}

/* --- Adaptive Pricing Cards (Glassmorphism) --- */
.pricing-box {
    flex: 1 1 30rem;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.1);
    /* Adaptive Light Glass */
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);

    padding: 3rem 2rem 3.5rem;
    border-radius: 2.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Dark Mode Specific Overlay */
.dark-mode .pricing-box {
    background: rgba(43, 44, 44, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.pricing-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 2rem 4rem rgba(111, 168, 154, 0.25);
    border-color: var(--main-color);
}

.dark-mode .pricing-box:hover {
    background: rgba(43, 44, 44, 0.8);
}

/* Content Styling */
.pricing-box h4 {
    font-size: 2.2rem;
    transition: .5s ease;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 700;
}

.dark-mode .pricing-box h4 {
    color: var(--white-color);
}

.pricing-box .price {
    font-size: 3.5rem;
    color: var(--main-color);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(111, 168, 154, 0.3);
}

.pricing-box ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 3rem;
    text-align: left;
    flex-grow: 1;
}

.pricing-box ul li {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    position: relative;
    padding-left: 2.5rem;
    color: var(--text-color);
    opacity: 0.9;
}

.dark-mode .pricing-box ul li {
    color: #e0e0e0;
}

.pricing-box ul li:before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--main-color);
    font-weight: bold;
    font-size: 1.4rem;
}

/* Pricing Actions Container */
.pricing-actions {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    margin-top: auto;
}

.pricing-box .order-btn,
.pricing-box .buy-now-btn,
.pricing-box .add-to-cart {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem; /* Slightly more compact */
    border-radius: 4rem;
    font-size: 1.3rem; /* Slightly smaller font */
    font-weight: 600;
    transition: .5s ease;
    text-decoration: none;
    width: 100%;
}

.pricing-box .order-btn {
    background: transparent;
    color: var(--main-color);
    border: .2rem solid var(--main-color);
}

.pricing-box .buy-now-btn {
    background: var(--main-color);
    color: var(--white-color);
    border: .2rem solid transparent;
    box-shadow: 0 5px 15px rgba(111, 168, 154, 0.3);
}

.pricing-box .add-to-cart {
    background: rgba(111, 168, 154, 0.1);
    color: var(--main-color);
    border: .2rem dashed var(--main-color);
}

.pricing-box .order-btn:hover {
    background: var(--main-color);
    color: var(--white-color);
    box-shadow: 0 0 15px var(--main-color);
}

.pricing-box .buy-now-btn:hover {
    background: transparent;
    color: var(--main-color);
    border-color: var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
    transform: translateY(-2px);
}

.pricing-box .add-to-cart:hover {
    background: var(--main-color);
    color: var(--white-color);
    border-style: solid;
    transform: translateY(-2px);
}

/* Dark Mode Specific Styles */
.dark-mode .services-box {
    background: var(--bg-color);
    border-color: var(--main-color);
}

.dark-mode .pricing-box {
    background: var(--bg-color);
    border-color: var(--main-color);
}

.dark-mode .pricing {
    background: var(--bg-color);
}

.dark-mode .services-box h3,
.dark-mode .services-box p,
.dark-mode .pricing-box h4,
.dark-mode .pricing-box ul li,
.dark-mode .pricing h2 {
    color: var(--text-color);
}

@media screen and (max-width: 1024px) {
    .pricing h2 {
        font-size: 4rem;
        margin-bottom: 4rem;
    }

    .pricing-box {
        max-width: 22rem;
    }

    .pricing-box .price {
        font-size: 2.8rem;
    }
}

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

    /* .pricing-container, */
    .services-container {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }

    .services-box,
    .pricing-box {
        max-width: 100%;
    }

    .pricing h2 {
        font-size: 4.5rem;
    }

    .pricing-box h4 {
        font-size: 2.8rem;
    }

    .pricing-box .price {
        font-size: 3.6rem;
    }
}

/*
@media screen and (max-width: 580px) {
    .pricing h2 {
        font-size: 3rem;
    }

    .pricing-box {
        padding: 2rem 1.2rem;
        max-width: 95%;
    }

    .pricing-box .order-btn {
        padding: 1rem 2.4rem;
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 450px) {
    .pricing h2 {
        font-size: 2.6rem;
        margin-bottom: 3rem;
    }

    .pricing-box h4 {
        font-size: 1.6rem;
    }

    .pricing-box .price {
        font-size: 2.2rem;
    }

    .pricing-box ul li {
        font-size: 1.2rem;
    }

    .pricing-box .order-btn {
        padding: 0.8rem 2rem;
        font-size: 1.2rem;
    }
} */

/* Initial Hidden State for Modal */
#order-form {
    display: none;
    /* Hide the modal by default */
    position: fixed;
    /* Make it cover the full viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent overlay */
    z-index: 1000;
    /* Ensure it appears on top */
    align-items: center;
    justify-content: center;
    display: none;
    /* Hide modal initially */
}

/* Modal Content Styling */
#order-form .modal-content {
    background: #fff;
    /* White background for modal */
    margin: 15% auto;
    padding: 20px;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
}

/* Close Button */
.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    cursor: pointer;
}

/* Modal when it's visible */
#order-form[aria-hidden="false"] {
    display: flex;
    /* Show the modal when aria-hidden is false */
}

/* Modal Form Design */
.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content label {
    font-size: 1rem;
    color: var(--text-primary);
}

.modal-content input,
.modal-content textarea {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-content .submit-btn {
    padding: 12px 20px;
    font-size: 1.2rem;
    background: var(--highlight-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-content .submit-btn:hover {
    background: var(--highlight-hover-color);
}

/* ==========================================================================
   3.6 Portfolio Section
   ========================================================================== */
.portfolio {
    min-height: auto;
    padding-bottom: 10rem;
}

.portfolio h2 {
    margin-bottom: 4rem;
}

.portfolio .portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.portfolio-container .portfolio-box {
    position: relative;
    display: flex;
    border-radius: 2rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, .1);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.portfolio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .1), var(--main-color));
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-box:hover .portfolio-layer {
    opacity: 1;
}

.portfolio-layer h4 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.portfolio-layer p {
    font-size: 1.2rem;
    margin: .3rem 0 1rem;
}

.portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--white-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.portfolio-layer a:hover {
    transform: scale(1.1);
}

.portfolio-layer .store-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white-color);
    margin: 0.5rem 0 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.store-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.store-actions a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: var(--white-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.store-actions a:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--main-color);
}

.store-actions a:hover i {
    color: var(--white-color);
}

.store-actions a i {
    font-size: 2.2rem;
    color: var(--main-color);
    transition: color 0.3s ease;
}

/* Back to top smooth scroll fix */
.footer-iconTop a {
    scroll-behavior: smooth;
}

/* ==========================================================================
   3.7 Testimonials Section
   ========================================================================== */
.testimonial-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 5rem 1rem;
}

.testimonial-container .testimonial-wrapper {
    position: relative;
    max-width: 90rem;
    width: 100%;
    padding: 5rem;
}

.testimonial-wrapper .testimonial-box {
    padding: 1rem;
    border-radius: 2rem;
    overflow: hidden;
}

.testimonial-content .testimonial-slide {
    display: flex;
    align-items: center;
    flex-direction: column;
    background: var(--bg-color);
    border-radius: 2rem;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
    padding: 3rem 5rem;
    border-top: .8rem solid var(--main-color);
    border-bottom: .8rem solid var(--main-color);
}

.testimonial-slide img {
    width: 14rem;
    height: 14rem;
    object-fit: cover;
    border-radius: 50%;
    border: .5rem solid var(--bg-color);
    outline: .5rem solid var(--main-color);
}

.testimonial-slide h3 {
    font-size: 2.5rem;
    margin: 2rem 0;
}

.testimonial-slide p {
    font-size: 1.4rem;
    text-align: center;
}

.testimonial-box .swiper-button-next,
.testimonial-box .swiper-button-prev {
    color: var(--main-color);
}

.testimonial-box .swiper-button-next {
    right: 0;
}

.testimonial-box .swiper-button-prev {
    left: 0;
}

.testimonial-box .swiper-pagination-bullet {
    background: rgba(0, 0, 0, .8);
}

.testimonial-box .swiper-pagination-bullet-active {
    background: var(--main-color);
}

/* --------------------------------------------------------------------------
   3.8 Contact Section
   -------------------------------------------------------------------------- */
.contact {
    min-height: auto;
    padding-bottom: 7rem;
}

.contact h2 {
    margin-bottom: 3rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
}

.contact form .input-box input {
    width: 100%;
}

.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */

/* --------------------------------------------------------------------------
   5.1 Footer Layout
   -------------------------------------------------------------------------- */
footer {
    background: var(--main-color);
    background: linear-gradient(to right, var(--main-color), #6fa89a);
    color: #fff;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s, text-decoration 0.3s;
}

footer a:hover {
    text-decoration: underline;
}

.footer-content {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom,
.footer-bottom a {
    margin-top: 10px;
    color: rgb(255, 255, 255);
    font-size: 14px;
    text-decoration: none;
}


/* --------------------------------------------------------------------------
   5.2 Social Media Buttons
   -------------------------------------------------------------------------- */
.social-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: right;
    gap: 8px;
}

.social-button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
    width: 30px;
    /* Adjusted width */
    height: 30px;
    /* Adjusted height */
    text-decoration: none;
    border-radius: 50%;
    background: #fff;
    text-align: center;
    overflow: hidden;
    transition: background-color 0.3s;
}

.social-button::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    display: block;
    width: 0;
    height: 0;
    border-radius: 50%;
    transition: 0.3s;
}

.social-button:focus,
.social-button:hover {
    color: #fff;
}

.social-button:focus::after,
.social-button:hover::after {
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    margin-left: calc(-50% - 1px);
}

.social-button i,
.social-button svg {
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.social-button i {
    font-size: 20px;
    /* Adjusted font size */
}

.social-button svg {
    height: 24px;
    /* Adjusted size */
    width: 24px;
    /* Adjusted size */
}

.social-button--youtube {
    color: #ff0000;
}

.social-button--youtube::after {
    background: #ff0000;
}

.social-button--instagram {
    color: #e4405f;
}

.social-button--instagram::after {
    background: #e4405f;
}

.social-button--github {
    color: #6e5494;
}

.social-button--github::after {
    background: #6e5494;
}

.social-button--linkedin {
    color: #0077b5;
}

.social-button--linkedin::after {
    background: #0077b5;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--white-color);
    border-radius: .8rem;
    border: .2rem solid var(--main-color);
    outline: .2rem solid transparent;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    outline-color: var(--white-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: #333;
}

.buymeacoffee-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

/* ==========================================================================
   6. WIDGETS & PLUGINS
   ========================================================================== */

/* --------------------------------------------------------------------------
   6.1 Cookie Banner
   -------------------------------------------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #1f242d;
    color: #fff;
    padding: 15px 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    z-index: 9999;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
}

.cookie-banner a {
    color: #6FA89A;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   6.2 UPI Payment Widget
   -------------------------------------------------------------------------- */
.upi-imgs {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.upi-imgs>img {
    padding: 5px;
}

/* ===== Base Reset for Widget ===== */
.upi-float-btn *,
.upi-modal * {
    box-sizing: border-box;
}

/* ===== Floating Button ===== */
.upi-float-btn {
    position: fixed !important;
    left: auto !important;
    right: 30px !important;
    top: auto !important;
    bottom: 100px !important;
    background: linear-gradient(135deg, rgba(111, 168, 154, 0.95) 0%, rgba(91, 140, 122, 0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(111, 168, 154, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 99999 !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: visible;
}

.upi-float-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 15px 40px rgba(111, 168, 154, 0.45),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.upi-float-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.upi-float-btn .btn-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.3s ease;
}

.upi-float-btn:hover .btn-glow {
    opacity: 0.6;
}

.upi-float-btn i {
    font-size: 22px;
    transition: transform 0.3s ease;
    color: #fff;
}

.upi-float-btn:hover i {
    animation: iconBounce 0.6s ease;
}

/* Support Text - Explicitly White */
.upi-float-btn .support-text {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes iconBounce {

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

    25% {
        transform: translateY(-4px);
    }

    50% {
        transform: translateY(0);
    }

    75% {
        transform: translateY(-2px);
    }
}

/* Pulse Ring Animation */
.pulse-ring {
    position: absolute;
    inset: -4px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    opacity: 0;
    animation: pulseRing 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    pointer-events: none;
}

.pulse-ring.delay {
    animation-delay: 1.5s;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* ===== Modal Overlay ===== */
.upi-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000 !important;
    padding: 16px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 30, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== Modal Container ===== */
.upi-inner {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 252, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 28px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(111, 168, 154, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Custom Scrollbar for Modal */
.upi-inner::-webkit-scrollbar {
    width: 6px;
}

.upi-inner::-webkit-scrollbar-track {
    background: transparent;
    margin: 20px 0;
    /* Add margin to prevent overlap with border-radius */
}

.upi-inner::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.upi-inner::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

.animate-modal {
    animation: modalSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    0% {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }

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

/* ===== Close Button ===== */
.upi-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    z-index: 10;
}

.upi-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: rotate(90deg) scale(1.1);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.upi-close i {
    font-size: 22px;
}

/* ===== Modal Header ===== */
.modal-header {
    text-align: center;
    margin-bottom: 24px;
    padding-top: 8px;
}

.upi-header-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
}

.upi-header-icon .icon-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 50%;
    opacity: 0.15;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.15;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.25;
    }
}

.upi-header-icon i {
    font-size: 32px;
    color: var(--primary);
    animation: heartBeat 1.5s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.15);
    }

    20% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.1);
    }

    40% {
        transform: scale(1);
    }
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.header-subtitle {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

/* ===== Payment Tabs ===== */
.payment-tabs {
    position: relative;
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 5px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.tab-indicator {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(25% - 2.5px);
    height: calc(100% - 10px);
    background: var(--main-color);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(111, 168, 154, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
}

.tab-btn {
    flex: 1;
    padding: 10px 6px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 11px;
    color: #555;
    /* Force visible dark color for inactive */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    position: relative;
    z-index: 1;
    /* Ensure above indicator */
    min-width: 0;
}

.tab-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
    z-index: 2;
    /* Explicitly above */
}

.tab-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    z-index: 2;
    /* Explicitly above */
}

.payment-tabs .tab-btn.active {
    color: #fff !important;
    /* Force white text */
}

.payment-tabs .tab-btn.active span,
.payment-tabs .tab-btn.active i {
    color: #fff !important;
    z-index: 5;
}

.tab-btn:hover:not(.active) {
    color: var(--text-secondary);
}

/* ===== Tab Content ===== */
.tab-content {
    display: none;
    animation: contentFade 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes contentFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ===== Glass Card ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.info-card {
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.info-card i {
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

/* ===== Amount Section ===== */
.amount-section {
    margin-bottom: 16px;
}

.amount-label {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.amount-btn {
    padding: 12px 6px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.amount-btn .amount-value {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.amount-btn .amount-label-small {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.amount-btn:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(111, 168, 154, 0.15);
}

.amount-btn.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(111, 168, 154, 0.1) 0%, rgba(111, 168, 154, 0.05) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(111, 168, 154, 0.2);
}

.amount-btn.active .amount-value {
    color: var(--primary);
}

.amount-btn.active .amount-label-small {
    color: var(--primary-dark);
}

/* Custom Input */
.custom-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    z-index: 1;
}

.custom-input {
    width: 100%;
    padding: 12px 14px 12px 32px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.custom-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(111, 168, 154, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.custom-input::placeholder {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 13px;
}

/* Remove number input arrows */
.custom-input::-webkit-outer-spin-button,
.custom-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ===== Pay Button ===== */
.upi-pay-btn {
    width: 100%;
    padding: 14px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.upi-pay-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(150, 143, 143, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.upi-pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(111, 168, 154, 0.4);
}

.upi-pay-btn:hover::before {
    opacity: 1;
}

.upi-pay-btn:active {
    transform: translateY(-1px);
}

.btn-content {
    color: #fff !important;
}

.btn-content-text {
    color: #fff !important;
}

.btn-content,
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-loading {
    display: none;
}

.upi-pay-btn.loading .btn-content {
    display: none;
}

.upi-pay-btn.loading .btn-loading {
    display: flex;
}

.upi-pay-btn i {
    font-size: 18px;
}

/* ===== QR Section ===== */
.qr-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 252, 250, 0.9) 100%);
    backdrop-filter: blur(15px);
    border-radius: 18px;
    border: 2px solid rgba(111, 168, 154, 0.2);
    box-shadow:
        0 10px 30px rgba(111, 168, 154, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    margin: 12px 0;
}

.qr-skeleton {
    position: absolute;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 12px;
    overflow: hidden;
}

.skeleton-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.qr-skeleton.hidden {
    display: none;
}

.upi-qr {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    opacity: 0;
}

.upi-qr.loaded {
    opacity: 1;
}

.upi-qr:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.qr-center-icon {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: #fff;
    padding: 3px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

.qr-hint {
    text-align: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.qr-hint i {
    font-size: 16px;
    animation: scanPulse 2s ease-in-out infinite;
}

@keyframes scanPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ===== UPI ID Section ===== */
.upi-id-box {
    margin-bottom: 16px;
}

.upi-label {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.upi-id-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 12px 14px;
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.upi-id-display:hover {
    border-color: var(--primary-light);
}

.upi-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.upi-icon i {
    color: white;
    font-size: 18px;
}

.upi-id-display>span {
    flex: 1;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 11px;
    color: var(--text-primary);
    font-weight: 600;
    word-break: break-all;
    min-width: 0;
}

.copy-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    position: relative;
}

.copy-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(111, 168, 154, 0.35);
}

.copy-btn:active {
    transform: scale(1.05);
}

.copy-btn i {
    font-size: 16px;
    position: absolute;
    transition: all 0.3s ease;
}

.copy-btn .check-icon {
    opacity: 0;
    transform: scale(0.5);
}

.copy-btn.copied .copy-icon {
    opacity: 0;
    transform: scale(0.5);
}

.copy-btn.copied .check-icon {
    opacity: 1;
    transform: scale(1);
}

/* ===== Modal Footer ===== */
.modal-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 20px;
}

.footer-hearts {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 6px;
}

.footer-hearts i {
    color: var(--primary);
    font-size: 12px;
    animation: heartFloat 2s ease-in-out infinite;
}

.footer-hearts i:nth-child(2) {
    animation-delay: 0.2s;
    font-size: 16px;
}

.footer-hearts i:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes heartFloat {

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

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

.gratitude-text {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

/* ===== Toast Notification ===== */
.toast-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 50, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    z-index: 100001;
    animation: toastSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: calc(100vw - 40px);
}

.toast-notification i {
    font-size: 18px;
    color: var(--primary-light);
    flex-shrink: 0;
}

@keyframes toastSlide {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.toast-notification.hide {
    animation: toastHide 0.3s ease forwards;
}

@keyframes toastHide {
    to {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

/* UPI MODAL CSS ENDS HERE */

/* ===== RESPONSIVE DESIGN ===== */
/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
    .upi-float-btn {
        left: 24px !important;
        right: auto !important;
        bottom: 24px !important;
        padding: 16px 28px;
        font-size: 15px;
    }

    .upi-float-btn i {
        font-size: 24px;
    }

    .upi-inner {
        max-width: 460px;
        padding: 36px;
    }

    .modal-header h3 {
        font-size: 26px;
    }

    .upi-qr {
        width: 220px;
        height: 220px;
    }

    .qr-skeleton {
        width: 220px;
        height: 220px;
    }
}

/* Large Tablets / Small Laptops (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .upi-float-btn {
        left: 20px !important;
        right: auto !important;
        bottom: 20px !important;
    }

    .upi-inner {
        max-width: 400px;
    }
}

/* Tablets Portrait (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .upi-float-btn {
        left: 18px !important;
        right: auto !important;
        bottom: 18px !important;
        padding: 12px 20px;
    }

    .upi-inner {
        max-width: 400px;
        padding: 28px;
    }

    .quick-amounts {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

/* Large Phones / Small Tablets (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .upi-float-btn {
        left: 16px !important;
        right: auto !important;
        bottom: 16px !important;
        padding: 12px 18px;
    }

    .upi-float-btn .support-text {
        font-size: 13px;
    }

    .upi-inner {
        max-width: 380px;
        padding: 24px;
    }

    .quick-amounts {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .amount-btn {
        padding: 10px 4px;
    }

    .amount-btn .amount-value {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .pricing-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 5px;
        max-width: 90vw;
        border-radius: 3rem;
        /* Hide Scrollbar */
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .pricing-tabs::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .pricing-tabs .tab-btn {
        padding: 0.8rem 1.5rem;
        /* Compact padding */
        font-size: 1.3rem;
        /* Reads better on mobile */
        flex-shrink: 0;
        /* Prevent buttons from squishing */
    }
}

/* Standard Mobile Phones (480px - 575px) */
@media (min-width: 480px) and (max-width: 575px) {
    .upi-modal {
        padding: 12px;
    }

    .upi-float-btn {
        left: 14px !important;
        right: auto !important;
        bottom: 14px !important;
        padding: 12px 16px;
        gap: 8px;
    }

    .upi-float-btn i {
        font-size: 20px;
    }

    .upi-float-btn .support-text {
        font-size: 12px;
    }

    .upi-inner {
        padding: 22px 18px;
        border-radius: 22px;
        max-height: 85vh;
    }

    .modal-header h3 {
        font-size: 20px;
    }

    .upi-header-icon {
        width: 56px;
        height: 56px;
    }

    .upi-header-icon i {
        font-size: 28px;
    }

    .quick-amounts {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .amount-btn {
        padding: 14px 10px;
    }

    .upi-qr {
        width: 180px;
        height: 180px;
    }

    .qr-skeleton {
        width: 180px;
        height: 180px;
    }
}

/* Small Mobile Phones (380px - 479px) */
@media (min-width: 380px) and (max-width: 479px) {
    .upi-modal {
        padding: 10px;
    }

    .upi-float-btn {
        left: 12px !important;
        right: auto !important;
        bottom: 12px !important;
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .upi-float-btn .support-text {
        display: none;
    }

    .upi-float-btn i {
        font-size: 22px;
    }

    .pulse-ring {
        border-radius: 50%;
    }

    .btn-glow {
        border-radius: 50% !important;
    }

    .upi-inner {
        padding: 20px 16px;
        border-radius: 20px;
        max-height: 85vh;
    }

    .upi-close {
        width: 32px;
        height: 32px;
        top: 12px;
        right: 12px;
    }

    .upi-close i {
        font-size: 20px;
    }

    .modal-header {
        margin-bottom: 20px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .header-subtitle {
        font-size: 12px;
    }

    .upi-header-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 12px;
    }

    .upi-header-icon i {
        font-size: 26px;
    }

    .payment-tabs {
        margin-bottom: 16px;
    }

    .tab-btn {
        padding: 8px 4px;
    }

    .tab-btn i {
        font-size: 16px;
    }

    .tab-btn span {
        font-size: 10px;
    }

    .info-card {
        padding: 10px 12px;
        margin-bottom: 14px;
    }

    .info-card i {
        font-size: 16px;
    }

    .info-card p {
        font-size: 11px;
    }

    .quick-amounts {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .amount-btn {
        padding: 12px 8px;
        border-radius: 10px;
    }

    .amount-btn .amount-value {
        font-size: 14px;
    }

    .amount-btn .amount-label-small {
        font-size: 8px;
    }

    .custom-input {
        padding: 11px 12px 11px 28px;
        font-size: 14px;
        border-radius: 10px;
    }

    .input-prefix {
        left: 12px;
        font-size: 14px;
    }

    .upi-pay-btn {
        padding: 12px;
        font-size: 13px;
        border-radius: 10px;
    }

    .qr-container {
        padding: 16px;
        border-radius: 16px;
    }

    .upi-qr {
        width: 160px;
        height: 160px;
    }

    .qr-skeleton {
        width: 160px;
        height: 160px;
    }

    .qr-center-icon {
        width: 42px;
        height: 42px;
    }

    .qr-hint {
        font-size: 12px;
    }

    .upi-id-display {
        padding: 10px 12px;
        gap: 8px;
    }

    .upi-icon {
        width: 32px;
        height: 32px;
    }

    .upi-icon i {
        font-size: 16px;
    }

    .upi-id-display>span {
        font-size: 10px;
    }

    .copy-btn {
        width: 32px;
        height: 32px;
    }

    .copy-btn i {
        font-size: 14px;
    }

    .modal-footer {
        padding-top: 14px;
        margin-top: 16px;
    }

    .gratitude-text {
        font-size: 12px;
    }

    .toast-notification {
        bottom: 80px;
        padding: 10px 16px;
        font-size: 12px;
        border-radius: 10px;
    }
}

/* Extra Small Mobile (below 380px) */
@media (max-width: 379px) {
    .upi-modal {
        padding: 8px;
    }

    .upi-float-btn {
        left: 10px !important;
        bottom: 10px !important;
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .upi-float-btn .support-text {
        display: none;
    }

    .upi-float-btn i {
        font-size: 20px;
    }

    .pulse-ring {
        border-radius: 50%;
        inset: -3px;
    }

    .btn-glow {
        border-radius: 50% !important;
    }

    .upi-inner {
        padding: 18px 14px;
        border-radius: 18px;
        max-height: 88vh;
    }

    .upi-close {
        width: 30px;
        height: 30px;
        top: 10px;
        right: 10px;
    }

    .upi-close i {
        font-size: 18px;
    }

    .modal-header {
        margin-bottom: 16px;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .header-subtitle {
        font-size: 11px;
    }

    .upi-header-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
    }

    .upi-header-icon i {
        font-size: 24px;
    }

    .payment-tabs {
        padding: 4px;
        gap: 3px;
        margin-bottom: 14px;
        border-radius: 12px;
    }

    .tab-indicator {
        top: 4px;
        left: 4px;
        height: calc(100% - 8px);
        width: calc(33.33% - 2.67px);
        border-radius: 8px;
    }

    .tab-btn {
        padding: 8px 3px;
        border-radius: 8px;
    }

    .tab-btn i {
        font-size: 14px;
    }

    .tab-btn span {
        font-size: 9px;
    }

    .info-card {
        padding: 8px 10px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .info-card i {
        font-size: 14px;
    }

    .info-card p {
        font-size: 10px;
    }

    .amount-label {
        font-size: 10px;
        margin-bottom: 10px;
    }

    .quick-amounts {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        margin-bottom: 12px;
    }

    .amount-btn {
        padding: 10px 6px;
        border-radius: 8px;
    }

    .amount-btn .amount-value {
        font-size: 13px;
    }

    .amount-btn .amount-label-small {
        font-size: 7px;
    }

    .custom-input-wrapper {
        margin-bottom: 0;
    }

    .custom-input {
        padding: 10px 10px 10px 26px;
        font-size: 13px;
        border-radius: 8px;
    }

    .input-prefix {
        left: 10px;
        font-size: 13px;
    }

    .custom-input::placeholder {
        font-size: 11px;
    }

    .upi-pay-btn {
        padding: 11px;
        font-size: 12px;
        border-radius: 8px;
        margin-top: 12px;
    }

    .upi-pay-btn i {
        font-size: 16px;
    }

    .qr-container {
        padding: 14px;
        border-radius: 14px;
        margin: 10px 0;
    }

    .upi-qr {
        width: 140px;
        height: 140px;
        padding: 6px;
        border-radius: 10px;
    }

    .qr-skeleton {
        width: 140px;
        height: 140px;
        border-radius: 10px;
    }

    .qr-center-icon {
        width: 36px;
        height: 36px;
        padding: 4px;
        border-radius: 8px;
    }

    .qr-hint {
        font-size: 11px;
        margin-top: 8px;
    }

    .qr-hint i {
        font-size: 14px;
    }

    .upi-id-box {
        margin-bottom: 12px;
    }

    .upi-label {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .upi-id-display {
        padding: 10px;
        gap: 6px;
        border-radius: 10px;
    }

    .upi-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }

    .upi-icon i {
        font-size: 14px;
    }

    .upi-id-display>span {
        font-size: 9px;
    }

    .copy-btn {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }

    .copy-btn i {
        font-size: 12px;
    }

    .modal-footer {
        padding-top: 12px;
        margin-top: 14px;
    }

    .footer-hearts i {
        font-size: 10px;
    }

    .footer-hearts i:nth-child(2) {
        font-size: 14px;
    }

    .gratitude-text {
        font-size: 11px;
    }

    .toast-notification {
        bottom: 70px;
        padding: 8px 14px;
        font-size: 11px;
        border-radius: 8px;
        gap: 6px;
    }

    .toast-notification i {
        font-size: 16px;
    }
}

/* Landscape Mode for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .upi-modal {
        padding: 8px;
        align-items: flex-start;
    }

    .upi-inner {
        max-height: 95vh;
        padding: 16px;
        margin-top: 8px;
    }

    .modal-header {
        margin-bottom: 12px;
    }

    .upi-header-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

    .upi-header-icon i {
        font-size: 20px;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .header-subtitle {
        display: none;
    }

    .payment-tabs {
        margin-bottom: 12px;
    }

    .quick-amounts {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .amount-btn {
        padding: 8px 4px;
    }

    .qr-container {
        padding: 12px;
    }

    .upi-qr {
        width: 120px;
        height: 120px;
    }

    .qr-skeleton {
        width: 120px;
        height: 120px;
    }

    .qr-center-icon {
        width: 30px;
        height: 30px;
    }

    .modal-footer {
        padding-top: 10px;
        margin-top: 12px;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .upi-qr {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Touch Devices - Larger Touch Targets */
@media (hover: none) and (pointer: coarse) {
    .upi-float-btn {
        min-height: 48px;
    }

    .tab-btn {
        min-height: 44px;
    }

    .amount-btn {
        min-height: 48px;
    }

    .upi-pay-btn {
        min-height: 48px;
    }

    .copy-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .upi-close {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .pulse-ring {
        display: none;
    }
}

/* Advanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

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

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

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

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

/* ==========================================================================
   8. RESPONSIVE DESIGN
   ========================================================================== */

/* --------------------------------------------------------------------------
   8.1 Desktop Large (1200px+)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }

    .home .profession-container .profession-box {
        right: -10%;
    }

    .home .profession-container .overlay {
        right: -6%;
    }

    .home-img img {
        right: 0;
    }
}

@media (max-width: 1100px) {
    .home .profession-container .profession-box {
        right: -15%;
    }

    .home-img img {
        max-width: 420px;
    }
}

@media (max-width: 1024px) {

    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .home .profession-container .profession-box {
        right: -20%;
    }

    .home .profession-container .overlay {
        right: -12%;
    }

    .home-img img {
        max-width: 400px;
    }
}

@media (max-width: 991px) {

    .navbar a:nth-child(1) {
        color: var(--main-color);
    }

    .navbar a.active::before {
        background: var(--main-color);
        opacity: .7;
    }

    .home .home-content {
        max-width: 50rem;
    }

    .home .profession-container .profession-box {
        right: -35%;
    }

    .home .profession-container .overlay {
        right: -30%;
    }

    .home-img img {
        display: none;
    }

    .footer {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .mobile-passion-text {
        margin-bottom: 2rem;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }
}

@media (max-width: 896px) {
    .navbar a:nth-child(2) {
        color: var(--main-color);
    }

    .home .profession-container .profession-box {
        right: -50%;
    }

    .home .profession-container .overlay {
        right: -43%;
    }
}

@media (max-width: 879px) {
    .portfolio .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 780px) {
    .navbar a:nth-child(2) {
        color: var(--white-color);
    }
}

@media (max-width: 768px) {

    /* Menu Icon - with animation for hamburger to X transition */
    #menu-icon {
        display: block;
        position: absolute;
        right: 4%;
        top: 50%;
        transform: translateY(-50%);
        font-size: 3.6rem;
        color: var(--text-color);
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: transform 0.3s ease, color 0.3s ease;
    }

    /* Menu icon animation when active (X state) */
    #menu-icon.bx-x {
        transform: translateY(-50%) rotate(180deg);
        color: var(--main-color);
    }

    #menu-icon:hover {
        color: var(--main-color);
    }

    #menu-icon:active {
        transform: translateY(-50%) scale(0.95);
    }

    #menu-icon.bx-x:active {
        transform: translateY(-50%) rotate(180deg) scale(0.95);
    }

    /* Dark Mode Icon - with gap from menu icon */
    #darkMode-icon {
        position: absolute;
        right: 14%;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2.6rem;
        color: var(--text-color);
        background: none;
        border: none;
        padding: 0;
        margin-right: 1rem;
        cursor: pointer;
        transition: transform 0.3s ease, color 0.3s ease;
    }

    #darkMode-icon:hover {
        color: var(--main-color);
        transform: translateY(-50%) scale(1.1);
    }

    #darkMode-icon:active {
        transform: translateY(-50%) scale(0.95);
    }

    /* Theme toggle animation when switching modes */
    #darkMode-icon.bx-sun {
        animation: sunRotate 0.5s ease-out;
    }

    @keyframes sunRotate {
        from {
            transform: translateY(-50%) rotate(-180deg) scale(0.5);
            opacity: 0;
        }

        to {
            transform: translateY(-50%) rotate(0deg) scale(1);
            opacity: 1;
        }
    }

    /* Mobile Navbar - with slide animation */
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 0 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
        /* Override desktop flex layout - stack links vertically */
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* Use max-height and opacity for animation instead of display */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.3s ease,
            visibility 0.3s ease,
            padding 0.4s ease;
    }

    .navbar.active {
        max-height: 400px;
        padding: 1rem 3%;
        opacity: 1;
        visibility: visible;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 2.5rem 0;
        color: var(--text-color);
        transform: translateX(-30px) scale(0.9);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
            opacity 0.3s ease,
            color 0.3s ease;
    }

    /* Staggered animation for navbar links - cascade effect */
    .navbar.active a {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    .navbar.active a:nth-child(1) {
        transition-delay: 0.08s;
    }

    .navbar.active a:nth-child(2) {
        transition-delay: 0.14s;
    }

    .navbar.active a:nth-child(3) {
        transition-delay: 0.20s;
    }

    .navbar.active a:nth-child(4) {
        transition-delay: 0.26s;
    }

    .navbar.active a:nth-child(5) {
        transition-delay: 0.32s;
    }

    .navbar.active a:nth-child(6) {
        transition-delay: 0.38s;
    }

    .navbar a:nth-child(1),
    .navbar a:nth-child(2) {
        color: var(--text-color);
    }

    .navbar a.active {
        color: var(--main-color);
    }

    .navbar a::before {
        display: none;
    }

    .navbar a:hover {
        color: var(--main-color);
        transform: translateX(10px) scale(1.02);
    }

    .home {
        padding: 15rem 3% 5rem;
        justify-content: center;
        text-align: center;
        min-height: auto;
        display: block;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-content .social-media a {
        margin: 2.5rem .75rem 3rem;
    }

    .home .profession-container {
        display: none;
    }

    .mobile-profession-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 1rem;
        width: 100%;
        position: relative;
        z-index: 10;
        gap: 0;
    }

    .mobile-passion-text {
        font-size: 2.8rem;
        font-weight: 700;
        color: var(--text-color);
        margin-bottom: 5px;
        line-height: 1.2;
    }

    .mobile-profession-box {
        height: 50px;
        overflow: hidden;
        position: relative;
        width: 100%;
        text-align: center;
    }

    .mobile-profession-item {
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        position: absolute;
        left: 0;
        top: 0;
        animation: mobileProfessionSlide 10s infinite;
        opacity: 0;
    }

    /* Staggered delays for 5 items (2s each) */
    .mobile-profession-item:nth-child(1) {
        animation-delay: 0s;
    }

    .mobile-profession-item:nth-child(2) {
        animation-delay: 2s;
    }

    .mobile-profession-item:nth-child(3) {
        animation-delay: 4s;
    }

    .mobile-profession-item:nth-child(4) {
        animation-delay: 6s;
    }

    .mobile-profession-item:nth-child(5) {
        animation-delay: 8s;
    }

    .profession-pill {
        display: inline-flex;
        align-items: center;
        font-size: 2.2rem;
        font-weight: 700;
        color: var(--main-color);
        gap: 12px;
        background: var(--bg-color);
        padding: 8px 25px;
        border-radius: 50px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(111, 168, 154, 0.15);
        white-space: nowrap;
    }

    .mobile-profession-item i {
        font-size: 2.6rem;
    }

    /* Keyframes for sliding/fading effect - 5 items (20% each) */
    @keyframes mobileProfessionSlide {
        0% {
            transform: translateY(100%);
            opacity: 0;
        }

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

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

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

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

    /* Stagger animations for each item - adjusted logic for cleaner loop */
    .mobile-profession-item {
        position: absolute;
        width: 100%;
        left: 0;
        top: 0;
    }

    .mobile-profession-item:nth-child(1) {
        animation-delay: 0s;
    }

    .mobile-profession-item:nth-child(2) {
        animation-delay: 2s;
    }

    .mobile-profession-item:nth-child(3) {
        animation-delay: 4s;
    }

    .mobile-profession-item:nth-child(4) {
        animation-delay: 6s;
    }

    /* Footer mobile styles */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-content p {
        order: 2;
    }

    .footer-iconTop {
        order: 1;
    }

    /* UPI widget mobile positioning */
    .upi-float-btn {
        left: auto !important;
        right: 15px !important;
        top: auto !important;
        bottom: 80px !important;
        padding: 12px 18px !important;
        font-size: 12px !important;
    }

    .upi-float-btn .support-text {
        display: none;
    }

    .upi-float-btn i {
        font-size: 1.8rem !important;
    }

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

    .about-content h2 {
        text-align: center;
    }

    .about-img img {
        width: 70vw;
        margin-top: -2rem;
    }

    .testimonial-container .testimonial-wrapper {
        padding: 5rem 0;
    }

    .testimonial-content .testimonial-slide {
        padding: 3rem 2rem;
    }

    .testimonial-box .swiper-button-next,
    .testimonial-box .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 580px) {
    .portfolio .portfolio-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    #darkMode-icon {
        right: 6rem;
    }



    .contact form .input-box input {
        width: 100%;
    }

    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        text-align: center;
        margin-top: 2rem;
    }
}

@media (max-width: 365px) {
    .about-img img {
        width: 90vw;
    }
}

@media (max-width: 315px) {
    .home-content h1 {
        font-size: 4.5rem;
    }
}

img {
    border-radius: 20px;
}

/* ==========================================================================
   9. UTILITIES
   ========================================================================== */

/* --------------------------------------------------------------------------
   9.1 Content Protection
   -------------------------------------------------------------------------- */
.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.no-drag {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Apply content protection to all images */
/* img {
    border-radius: 20px;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
} */

/* --------------------------------------------------------------------------
   9.2 Performance Optimization
   -------------------------------------------------------------------------- */
.hardware-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ==========================================================================
   10. iPAD & TABLET OPTIMIZATIONS
   ========================================================================== */

/* --------------------------------------------------------------------------
   10.1 Tablets & iPads (Portrait ONLY)
   Range: 769px - 1024px
   Target: iPad Mini, Air, Pro (Portrait)
   -------------------------------------------------------------------------- */
@media screen and (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {

    /* Header/Nav */
    .header {
        padding: 1rem 3%;
    }

    .navbar a {
        margin-right: 2rem;
        font-size: 1.6rem;
    }

    /* Grids */
    .services-container,
    .pricing-container,
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }


    .services-box,
    .pricing-box {
        flex: none;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .about {
        flex-direction: column;
        gap: 3rem;
    }

    .about-img img {
        width: 50vw;
    }
}

/* --------------------------------------------------------------------------
   10.2 Landscape Tablets & Blackberry Playbook
   Range: 600px - 1024px (Landscape)
   Target: Playbook (1024x600), iPad Landscape (1024x768)
   -------------------------------------------------------------------------- */
@media screen and (min-width: 600px) and (max-width: 1024px) and (orientation: landscape) {

    /* Grids - 2 columns for landscape tablets */
    .services-container,
    .pricing-container,
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Ensure section padding isn't huge */
    section {
        padding: 6rem 3% 2rem;
    }
}

/* --------------------------------------------------------------------------
   10.3 iPad Pro 12.9" (Large Tablets)
   Range: 1025px - 1366px
   -------------------------------------------------------------------------- */
@media screen and (min-width: 1025px) and (max-width: 1366px) {
    section {
        padding: 10rem 4% 2rem;
    }

    .portfolio-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}
/* ========== CUSTOM TOAST NOTIFICATIONS ========== */
.toast-container {
    position: fixed;
    top: 9rem;
    right: 2rem;
    z-index: 10000;
}

.toast {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    animation: toastSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.toast.success { border-left: 5px solid #2ecc71; }
.toast.error { border-left: 5px solid #e74c3c; }
.toast.info { border-left: 5px solid var(--main-color); }

.toast i { font-size: 2rem; }
.toast.success i { color: #2ecc71; }
.toast.error i { color: #e74c3c; }
.toast.info i { color: var(--main-color); }

@keyframes toastSlideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
    to { transform: translateX(120%); opacity: 0; }
}

/* ========== CUSTOM MODALS ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-color);
    padding: 3rem;
    border-radius: 2rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--main-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-size: 2.2rem;
    color: var(--main-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 3rem;
    color: var(--text-color);
    cursor: pointer;
}

.modal-body {
    font-size: 1.6rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.modal-footer .btn {
    padding: 1rem 2.5rem;
    font-size: 1.4rem;
    border-radius: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

.btn-primary {
    background: var(--main-color);
    border: 1px solid var(--main-color);
    color: var(--white-color);
}

.btn-primary:hover {
    box-shadow: 0 0 15px var(--main-color);
}

/* ========== CART ICON ========== */
.cart-icon-wrapper {
    position: relative;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-right: 2rem;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.cart-icon-wrapper:hover {
    color: var(--main-color);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--main-color);
    color: var(--white-color);
    font-size: 1rem;
    font-weight: 700;
    width: 1.8rem;
    height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--header-bg, #fff); /* Match header background */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.dark-mode .cart-count {
    border-color: #1f242d; /* Match dark mode header */
}

/* ========== CART REFINEMENTS ========== */
.cart-item {
    transition: all 0.3s ease;
    border-radius: 1.5rem;
    margin: 0.5rem 0;
    padding: 2rem 1.5rem;
}

.cart-item:hover {
    background: rgba(111, 168, 154, 0.08) !important;
    transform: scale(1.01);
}

.cart-empty-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
    text-align: center;
}

.cart-empty-container i {
    font-size: 10rem;
    color: var(--main-color);
    opacity: 0.3;
    margin-bottom: 3rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.checkout-summary-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 2rem;
    width: 100%;
    max-width: 400px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fix for mobile menu icon overlap */
@media (max-width: 768px) {
    .cart-icon-wrapper {
        margin-right: 5rem; /* Give space for menu icon */
    }
}

/* ========== HEADER & CART ICON REFINEMENTS ========== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: var(--text-color);
    margin: 0 1.5rem;
    transition: 0.3s;
}

.cart-icon-wrapper:hover {
    color: var(--main-color);
    transform: scale(1.1);
}

/* Ensure the count is a perfect centered circle */
.cart-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--main-color);
    color: var(--white-color);
    font-size: 1rem;
    font-weight: 800;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    line-height: 1;
    padding: 0;
}

.dark-mode .cart-count {
    border-color: #1f242d;
}

#darkMode-icon {
    font-size: 2.4rem;
    cursor: pointer;
    color: var(--text-color);
    margin-left: 1rem;
}

/*========== CART & CHECKOUT UI ==========*/
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.toast {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastSlideIn 0.5s forwards;
    border-left: 5px solid var(--main-color);
    backdrop-filter: blur(10px);
}

.toast.success { border-left-color: #2ecc71; }
.toast.error { border-left-color: #e74c3c; }
.toast.info { border-left-color: #3498db; }

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.checkout-summary-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.dark-mode .checkout-summary-card {
    background: rgba(0, 0, 0, 0.2);
}

/*========== MODAL UI ==========*/
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 11000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--main-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--main-color);
}

.btn-secondary:hover {
    background: var(--main-color);
    color: var(--bg-color);
}
