:root {
            --candy-red: #FF6B6B;
            --sky-blue: #4ECDC4;
            --sunny-yellow: #FFD93D;
            --soft-pink: #FFB6C1;
            --mint-green: #98FB98;
            --lavender: #E6E6FA;
            --dark-bg: #1a1a1a;
            --dark-card: #2d2d2d;
            --dark-text: #ffffff;
            --dark-border: #404040;
        }

        body {
            font-family: 'Comic Neue', cursive;
            background-color: #f5f3f1;
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
            transition: all 0.3s ease;
            margin: 0;
            padding: 0;
        }

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

        /* Navigation */
        /* ===== STANDARDIZED NAVIGATION BAR ===== */
        .navbar {
            background: radial-gradient(circle at center, #e5c5b3, #e9b4b6);
            backdrop-filter: blur(15px);
            padding: 1rem 2rem;
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }

        body.dark-mode .navbar {
            background: #1e1e1e !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1500px;
            margin: 0 auto;
        }

        .logo {
            font-size: 2rem;
            font-weight: 600;
            color: #3e2723;
            text-decoration: none;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-family: "Comic Neue", cursive;
            min-width: 150px;
            padding-right: 50px;
        }

        .logo-icon {
            font-size: 2rem;
            transition: transform 0.3s ease;
        }

        .logo-text {
            font-weight: 600;
            letter-spacing: -0.5px;
        }

        .logo:hover {
            transform: scale(1.05);
            color: #3e2723;
        }

        .logo:hover .logo-icon {
            transform: rotate(10deg);
        }

        body.dark-mode .logo {
            color: #e0e0e0;
        }

        body.dark-mode .logo:hover {
            color: #e0e0e0;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 1.5rem;
            align-items: center;
        }

        .nav-links a {
            text-decoration: none;
            color: #3e2723;
            font-weight: 600;
            padding: 0.7rem 1rem;
            border-radius: 25px;
            transition: all 0.3s ease;
            position: relative;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid transparent;
        }

        body.dark-mode .nav-links a {
            color: #e0e0e0 !important;
            background: rgba(111, 100, 91, 0.133) !important;
            border: 2px solid transparent !important;
        }

        .nav-links a:hover {
            background-color: #f3e0d6;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            border-color: rgba(228, 191, 180, 0.3);
            color: #3e2723;
        }

        body.dark-mode .nav-links a:hover {
            background-color: #0d0d0d !important;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            border-color: #1e1e1e !important;
            color: #e0e0e0 !important;
        }

        /* Active navigation link styles */
        .nav-links a.active {
            background: linear-gradient(90deg, #3e2723, #573730, #3e2723)  !important;
            color: #ffffff !important;
            border-color: #1e1e1e !important;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        body.dark-mode .nav-links a.active {
            background-color: #0d0d0d !important;
            color: #ffffff !important;
            border-color: #1e1e1e !important;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        /* Navigation Actions */
        .nav-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .dark-mode-btn {
            background-color: #3e2723;
            border: none;
            color: white;
            padding: 0.7rem;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .dark-mode-btn:hover {
            transform: scale(1.1) rotate(360deg);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }

        body.dark-mode .dark-mode-btn {
            background-color: #e0e0e0;
            color: #1e1e1e;
        }

        
        .hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .hamburger:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .hamburger span {
            width: 25px;
            height: 3px;
            background: linear-gradient(45deg, #a4766a, #5d4037);
            margin: 3px 0;
            transition: 0.3s;
            border-radius: 2px;
        }

        body.dark-mode .hamburger span {
            background: #e0e0e0;
        }

        .hamburger.active span:nth-child(1) {
            transform: rotate(-45deg) translate(-5px, 6px);
        }

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

        .hamburger.active span:nth-child(3) {
            transform: rotate(45deg) translate(-5px, -6px);
        }


        body.dark-mode .social-link{
          background-color: #e0e0e0;
          color: #e0e0e0;
        }
        body.dark-mode .social-link a:hover {
            filter: brightness(1.14);
            transform: scale(1.11);
            box-shadow: 0 5px 16px 0 rgba(44, 68, 186, 0.13);
        }
        /* Navigation Actions */
        .nav-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .dark-mode-btn {
            background-color: #3e2723;
            border: none;
            color: white;
            padding: 0.7rem;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .dark-mode-btn:hover {
            transform: scale(1.1) rotate(360deg);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }

        body.dark-mode .dark-mode-btn {
            background-color: #e0e0e0;
            color: #1e1e1e;
        }

        


        /* ===== STANDARDIZED MOBILE NAVIGATION ===== */
        @media (max-width: 1242px) {
            .navbar {
                padding: 0.8rem 1rem;
            }

            .nav-links {
                display: flex;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100vh;
                background: #1a1a1a;
                flex-direction: column;
                justify-content: flex-start;
                align-items: center;
                padding-top: 6rem;
                transition: transform 0.3s ease;
                transform: translateX(-100%);
                gap: 0;
                z-index: 999;
            }

            body.dark-mode .nav-links {
                background: #1a1a1a !important;
            }

            .nav-links.active {
                transform: translateX(0);
            }

            .nav-links li {
                width: 90%;
                margin: 0;
                padding: 0;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            }

            body.dark-mode .nav-links li {
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            }

            .nav-links a {
                width: 100%;
                padding: 1.5rem 2rem;
                font-size: 1.2rem;
                margin-bottom: 0;
                background: #2a2a2a !important;
                color: #e0e0e0 !important;
                border-radius: 0;
                display: flex;
                align-items: center;
                gap: 1rem;
                transition: all 0.3s ease;
            }

            .nav-links a:hover {
                background: #3a3a3a !important;
                color: #ffffff !important;
            }

            /* Mobile navigation active state */
            .nav-links a.active {
                background: linear-gradient(90deg, #3e2723, #573730, #3e2723) !important;
                color: #ffffff !important;
            }

            .nav-actions{gap:.5rem; z-index:1001; position: absolute; right:5rem;}
           
            .dark-mode-btn {
                width: 40px;
                height: 40px;
                font-size: 0.9rem;
            }

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

            .logo {
                font-size: 1.5rem;
            }

            .logo-icon {
                font-size: 1.7rem;
            }
        }

        /* ===== STANDARDIZED SMALL MOBILE NAVIGATION ===== */
        @media (max-width: 480px) {
            .navbar {
                padding: 0.5rem;
            }

            .logo {
                font-size: 1.3rem;
            }

            .logo-icon {
                font-size: 1.5rem;
            }

            .nav-actions {
                gap: 0.3rem;
            }

           

            .dark-mode-btn {
                width: 35px;
                height: 35px;
                font-size: 0.8rem;
            }
        }

        /* Footer Modern Multi-Column */
        .footer {
            background: radial-gradient(circle at center, #e9b4b6, #e5c5b3);
            backdrop-filter: blur(15px);
            position: relative;
            z-index: 2;
            border-top: 1px solid rgba(255, 255, 255, 0.3);
            margin-top: 4rem;
        }

        .footer-content {
            max-width: 1500px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 3rem;
            padding: 3rem 2rem 2rem;
        }

        .footer-section h3.footer-title {
            color: #3e2723;
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            position: relative;
        }



        .footer-section h3.footer-title::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 30px;
            height: 3px;
            background:#3e2723;
            border-radius: 2px;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            margin-bottom: 1.5rem;
            font-size: 1.8rem;
            font-weight: 700;
            color: #3e2723;
        }

        .footer-logo-icon {
            font-size: 2rem;
        }

        .footer-description {
            color: #333;
            line-height: 1.6;
            margin-bottom: 2rem;
            font-size: 0.95rem;
        }

        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-links li {
            margin-bottom: 0.8rem;
        }

        .footer-links a {
            color: #333;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.8rem;
            font-weight: 500;
            transition: all 0.3s ease;
            padding: 0.3rem 0;
            border-radius: 5px;
        }

        .footer-links a:hover {
            color: black;
            transform: translateX(5px);
            background: rgba(255, 107, 107, 0.1);
            padding-left: 0.8rem;
        }

        .footer-links i {
            font-size: 0.9rem;
            width: 16px;
            opacity: 0.7;
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            background:linear-gradient(90deg, #3e2723, #6e463e, #3e2723);
            color: white;
            text-decoration: none;
            border-radius: 50%;
            font-size: 1.2rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .social-link:hover {
            transform: translateY(-3px) scale(1.1);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        }


        .social-link.linkedin {
            background: linear-gradient(90deg, #3e2723, #6e463e, #3e2723);
        }

        .social-link.github {
            background: linear-gradient(90deg, #3e2723, #6e463e, #3e2723);
        }

        .social-link.portfolio {
            background: linear-gradient(90deg, #3e2723, #6e463e, #3e2723);
        }

        .social-link.email {
            background: linear-gradient(90deg, #3e2723, #6e463e, #3e2723);
        }

        .footer-bottom {
            background: rgba(0, 0, 0, 0.05);
            backdrop-filter: blur(10px);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1.5rem 0;
        }

        .footer-bottom-content {
            max-width: 1500px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .copyright {
            color: #333;
            font-size: 0.9rem;
            margin: 0;
        }

        .copyright a {
            color: #3e2723;
            text-decoration: none;
            font-weight: 600;
        }

        .copyright a:hover {
            text-decoration: underline;
        }

        .footer-badges {
            display: flex;
            gap: 0.8rem;
            flex-wrap: wrap;
        }

        .badge {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.4rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .badge:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .badge-green {
            background: linear-gradient(90deg, #3e2723, #6e463e, #3e2723);
        }

        .badge-blue {
            background: linear-gradient(90deg, #3e2723, #6e463e, #3e2723);
        }

        .badge-purple {
            background: linear-gradient(90deg, #3e2723, #6e463e, #3e2723);
                    }

        body.dark-mode .badge-blue {
            background: #e0e0e0;
            color: #0d0d0d;
        }

        body.dark-mode .badge-green {
            background: #e0e0e0;
            color: #0d0d0d;
        }

        body.dark-mode .badge-purple {
            background: #e0e0e0;
            color: #0d0d0d;
        }


        @media (max-width: 1024px) {
            .footer-content {
                grid-template-columns: 1fr 1fr;
                gap: 2rem;
            }
        }

        @media (max-width: 768px) {
            .footer-content {
                grid-template-columns: 1fr 1fr;
                gap: 2rem;
                text-align: center;
            }

            .footer-bottom-content {
                flex-direction: column;
                text-align: center;
                gap: 1rem;
            }

            .footer-badges {
                justify-content: center;
            }
        }

        /*dark mode*/
        body.dark-mode .footer {

            background: #1e1e1e;

        }

        body.dark-mode .footer-section h3.footer-title {
            color: #e0e0e0;
        }

        body.dark-mode .footer-logo {
            color: #e0e0e0;
        }

        body.dark-mode .footer-description {
            color: #a0a0a0;
        }

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

        body.dark-mode .footer-links a:hover {
            color: #a0a0a0;
            background: rgba(255, 138, 128, 0.1);
        }

        body.dark-mode .footer-bottom {
            background: #1e1e1e;
        }

        body.dark-mode .copyright {
            color: #a0a0a0;
        }

        body.dark-mode .copyright .name {
            color: #ef6154;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
       :root {
            --candy-red: #FF4757;
            --light-pink: #FFE0E6;
            --light-blue: #E8F4FF;
            --light-yellow: #FFF5E0;
        }

        body {
             font-family: 'Comic Neue', cursive;
            background-color: #f5f3f1;
            min-height: 100vh;
            color: var(--white);
            transition: all 0.3s ease;
        }
     

        /* Animated Background Elements */
        .floating-elements {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        .floating-cupcake {
            position: absolute;
            font-size: 2rem;
            animation: float 6s ease-in-out infinite;
        }

        .floating-cupcake:nth-child(1) {
            top: 10%;
            left: 10%;
            animation-delay: 0s;
        }
                .floating-cupcake:nth-child(2) {
            top: 20%;
            right: 15%;
            animation-delay: 2s;
        }

        .floating-cupcake:nth-child(3) {
            bottom: 30%;
            left: 20%;
            animation-delay: 4s;
        }

        .floating-cupcake:nth-child(4) {
            bottom: 15%;
            right: 10%;
            animation-delay: 1s;
        }

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


        .floating-cupcake:nth-child(4) {
            bottom: 15%;
            right: 10%;
            animation-delay: 1s;
        }

        @keyframes float {

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

            50% {
                transform: translateY(-20px) rotate(5deg);
            }
        }

        @keyframes wobble {

            0%,
            100% {
                transform: rotate(0deg);
            }

            25% {
                transform: rotate(-3deg);
            }

            75% {
                transform: rotate(3deg);
            }
        }

        /* Back to Top Button Styles */
        #backToTop {
            position: fixed;
            bottom: 2.5rem;
            right: 2.5rem;
            z-index: 2000;
            background: linear-gradient(45deg, #a4766a, #5d4037);
            color: #fff;
            border: none;
            border-radius: 50%;
            width: 56px;
            height: 56px;
            font-size: 2rem;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
            cursor: pointer;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s, transform 0.2s;
        }

        body.dark-mode #backToTop {
            background: #e0e0e0;
            color: #0d0d0d;
        }

        #backToTop.show {
            opacity: 1;
            pointer-events: auto;
            transform: scale(1.08);
        }

        #backToTop:hover {
            background: linear-gradient(45deg, #a4766a, #5d4037);
            transform: scale(1.15);
        }

        /* Back to Top to Bottom Button Styles */
        #Toptoback {
            position: fixed;
            bottom: 2.5rem;
            right: 2.5rem;
            z-index: 2000;
            background: linear-gradient(45deg, #a4766a, #5d4037);
            color: #fff;
            border: none;
            border-radius: 50%;
            width: 56px;
            height: 56px;
            font-size: 2rem;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
            cursor: pointer;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s, transform 0.2s;
        }

        body.dark-mode #Toptoback {
            background: #e0e0e0;
            color: #0d0d0d;
        }

        #Toptoback.show {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(-10px) scale(1.08);
        }

        #Toptoback:hover {
            background: linear-gradient(45deg, #a4766a, #5d4037);
            transform: scale(1.15);
        }

        body.dark-mode #Toptoback:hover {
            background: #e0e0e0;
            transform: scale(1.15);
        }

        /* Main Container */
        .container {
            max-width: 1200px;
            margin: 4rem auto 0;
            padding: 2rem;
            position: relative;
            z-index: 10
        }

        /* Header Section */
        .header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .heading {
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 3rem;
            gap: 0.5rem;
        }


        .header h1 {

            font-size: clamp(2rem, 6vw, 3rem);
            font-weight: 700;
            margin-bottom: 1rem;
            color: #3e2723;
            animation: bounce 2s ease-in-out infinite;

        }
        body.dark-mode .header h1{
           color: #e0e0e0 !important;
  text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.1);
}
        


        .header p {
              font-size: 1.2rem;
            opacity: 0.9;
            margin-bottom: 2rem;
            color: #6b6767;
            
        }

        body.dark-mode .header p {
            color: #e0e0e0 !important;
        }
          @keyframes bounce {

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

            40% {
                transform: translateY(-10px);
            }

            60% {
                transform: translateY(-5px);
            }
        }

        /* Main Content */
        .main-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-bottom: 2rem;
        }


        body.dark-mode .main-content {
            color: #f1f5f9;
        }

        /* Card Style Sections */
        .input-section,
        .output-section {
            background: rgba(255, 255, 255, 0.9);

            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
            backdrop-filter: blur(12px);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .input-section:hover,
        .output-section:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
        }

        /* Dark Mode Cards */
        body.dark-mode .input-section,
        body.dark-mode .output-section {
            background: linear-gradient(120deg, #0d0d0d, #282727, #181818);

            backdrop-filter: blur(20px);
            border-radius: 24px;
            padding: 2rem;

            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        /* Header */
        body.dark-mode .header h1 {
            font-family:'Comic Neue', cursive;
            font-weight: 700;
            font-size:  clamp(2rem, 6vw, 3rem);
            color: #f0f0f1;
            margin-bottom: 1rem;
            position: relative;
            display: inline-block;
        }

        .section-title {
            font-size: 1.9rem;
            font-weight: 700;
            color: #3e2723;
            margin-bottom: 2rem;
            text-align: center;
            position: relative;
            letter-spacing: 0.5px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
        }

        body.dark-mode .section-title {
            color: #e0e0e0;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -6px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: #3e2723;
            border-radius: 2px;
        }
        body.dark-mode .section-title::after{
            background:#e0e0e0;
        }

        body.dark-mode .section-title {
            color: #e2e8f0;
            text-shadow: none;
        }

        /* Input Groups */
        .input-group {
            margin-bottom: 1.5rem;
        }

        .input-group label {
            display: block;
            font-weight: 600;
            color: #333;
            margin-bottom: 0.5rem;
            font-size: 1rem;
        }

        body.dark-mode .input-group label {
            font-size: 0.9rem;
            font-weight: 500;
            color: #94a3b8;
        }


        body.dark-mode .input-group label {
            color: #a0a0a0;
        }
        .serving-inputs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-bottom: 1.5rem;
            margin-top: 0.8rem;
        }

        .serving-input input {
            width: 100%;
            padding: 1rem;
            border: 2px solid #e0d6d0;
            border-radius: 15px;
            font-size: 1.1rem;
            font-family: 'Comic Neue', cursive;
            text-align: center;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.95);
            color: #2b2b2b;
            font-weight: 500;
            margin-top: 0.3rem;
        }

        .serving-input input::placeholder {
            color: #4b4a4a;
        }

        body.dark-mode .serving-input label {
            color: #a0a0a0;
        }

        body.dark-mode .serving-input input {
            background: #ffffff34;
            border: 2px solid #6b6767;
            color: #0d0d0d;
        }

        .serving-input input:focus {
            outline: none;
            background: #fff;
            color: #1a1a1a;
            border-color: #4ECDC4;
            transform: scale(1.04);
            box-shadow: 0 6px 15px rgba(78, 205, 196, 0.25);
        }

        /* Dark Mode Serving Input */
        body.dark-mode .serving-input input {
            background: rgba(27, 31, 35, 0.8);
            border: 2px solid rgba(148, 163, 184, 0.3);
            color: #f1f5f9;
        }

        body.dark-mode .serving-input input::placeholder {
            color: #94a3b8;
        }

        body.dark-mode .serving-input input:focus {
            background: #0b0b0b;
            border-color: #ffffff;
            box-shadow: 0 6px 15px rgba(255, 255, 255, 0.35);
        }

        /* Recipe Textarea */
        .recipe-textarea {
            width: 100%;
            min-height: 200px;
            padding: 1rem;
            border: 2px solid #e0d6d0;
            border-radius: 15px;
            font-size: 1rem;
            font-family: 'Comic Neue', cursive;
            resize: vertical;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.95);
            color: #2b2b2b;
            font-weight: 500;
        }

        .recipe-textarea::placeholder {
            color: #777;
        }

        body.dark-mode .recipe-textarea {
            background: #ffffff34;
            border: 2px solid #6b6767;
        }


        .recipe-textarea:focus {
            outline: none;
            background: #fff;
            color: #1a1a1a;
            border-color: #4ECDC4;
            box-shadow: 0 6px 15px rgba(78, 205, 196, 0.25);
        }

        /* Dark Mode Recipe Textarea */
        body.dark-mode .recipe-textarea {
            background: rgba(27, 31, 35, 0.8);
            border: 2px solid rgba(148, 163, 184, 0.3);
            color: #f1f5f9;
            border: 2px solid rgba(148, 163, 184, 0.25);
        }

        body.dark-mode .recipe-textarea::placeholder {
            color: #94a3b8;
        }

        body.dark-mode .recipe-textarea:focus {
            background: #0b0b0b;
            border-color: #ffffff;
            box-shadow: 0 6px 15px rgba(255, 255, 255, 0.35);
        }

        /* Toggle Switch */
        .toggle-switch {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            margin-top: 1rem;
            color: #333;
            font-weight: 500;
        }

        body.dark-mode .toggle-switch {
            color: #cbd5e1;
        }

        .toggle-switch input[type="checkbox"] {
            width: 50px;
            height: 25px;
            -webkit-appearance: none;
            appearance: none;
            background: #ccc;
            border-radius: 25px;
            position: relative;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .toggle-switch input[type="checkbox"]::before {
            content: '';
            position: absolute;
            width: 21px;
            height: 21px;
            border-radius: 50%;
            top: 2px;
            left: 2px;
            background: white;
            transition: transform 0.3s ease;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        }

        .toggle-switch input[type="checkbox"]:checked {
            background: linear-gradient(90deg, #4ECDC4, #45b7af);
        }

        .toggle-switch input[type="checkbox"]:checked::before {
            transform: translateX(25px);
        }


        /* Buttons */
        .btn-group {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin-top: 1.5rem;
        }

        /* Base Button */
        .btn {
            padding: 0.5rem 2rem;
            border: none;
            border-radius: 20px;
            font-family: 'Comic Neue', cursive;
            font-size: 1.1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.35s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            position: relative;
            overflow: hidden;
            letter-spacing: 0.5px;
            z-index: 1;
            text-align: center;
        }

        /* Shared Glow Effect */
        .btn::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 30px;
            background: inherit;
            filter: blur(20px);
            opacity: 0;
            transition: opacity 0.35s ease;
            z-index: -1;
        }

        .btn:hover::before {
            opacity: 0.8;
        }

        /* Primary Button */
        .btn-primary {
          
             background:linear-gradient(20deg, #3e2723, #6e463e, #3e2723);
            padding: 15px 25px;
            border: none;
            border-radius: 20px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            letter-spacing: 1px;
            color: white;

        }

        .btn-primary:hover {
            background: linear-gradient(90deg, #3e2723, #6e463e, #3e2723);
            box-shadow: 0 4px 16px rgba(255, 76, 76, 0.22);
            transform: translateY(-2px) scale(1.04);
        }

        /* Secondary Button */
        .btn-secondary {
            background: linear-gradient(90deg, #3e2723, #6e463e, #3e2723);
            color: #fff;
            border: none;
            padding: 1rem 2rem;
            border-radius: 25px;
            font-weight: bold;
            font-size: 1.1rem;
            box-shadow: 0 2px 8px rgba(255, 70, 70, 0.10);
            transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
            cursor: pointer;
        }

        .btn-secondary:hover {
            background: linear-gradient(90deg, #3e2723, #6e463e, #3e2723);
            box-shadow: 0 4px 16px rgba(255, 76, 76, 0.22);
            transform: translateY(-2px) scale(1.04);
        }

        /* Dark Mode Buttons */
        body.dark-mode .btn-primary {
            background: linear-gradient(135deg, #4ECDC4, #38bdf8, #818cf8);
            text-shadow: none;
            box-shadow: 0 4px 15px rgba(78, 205, 196, 0.25);
        }

        body.dark-mode .btn-secondary {
            background: linear-gradient(135deg, #334155, #1e293b);
            color: #e2e8f0;
            text-shadow: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
        }

        body.dark-mode .btn-primary:hover {
            box-shadow: 0 12px 28px rgba(78, 205, 196, 0.35);
        }

        body.dark-mode .btn-secondary:hover {
            box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
        }

        /* Gradient Animation */
        @keyframes gradientShift {
            0% {
                background-position: 0% 50%;
            }

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

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

                /* Results Section */
        .output-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            color: #2b2b2b;
            font-size: 1.05rem;
            line-height: 1.6;
        }

        .output-placeholder {
            font-size: 1rem;
            color: #777;
            text-align: center;
            margin-top: 3rem;
            opacity: 0.9;
        }

        body.dark-mode .btn-primary {
            background: rgba(220, 121, 63, 0.893);
            color: #e0e0e0;
            box-shadow: 0 2px 2px rgba(220, 121, 63, 0.893);
        }

        body.dark-mode .btn-secondary {
            background: rgba(220, 121, 63, 0.893);
            color: #e0e0e0;
            box-shadow: 0 2px 2px rgba(220, 121, 63, 0.893);
        }

        @keyframes shimmer {
            0% {
                background-position: -200% center;
            }

            100% {
                background-position: 200% center;
            }
        }

        .btn-secondary {
            background: linear-gradient(90deg, #3e2723, #6e463e, #3e2723);
            color: white;
            box-shadow: 0 4px 15px rgba(112, 161, 255, 0.4);
        }

        .btn-secondary:hover {
            background: linear-gradient(90deg, #3e2723, #6e463e, #3e2723);
            transform: translateY(-3px);
        }

        /* Toggle Switch */
        .toggle-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            margin: 1rem 0;
        }

        body.dark-mode .toggle-container span {
            color: #a0a0a0;
        }

        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 34px;
        }

        body.dark-mode .slider {
            background-color: #a0a0a0;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked+.slider {
            background-color: #3e2723;
        }


        body.dark-mode input:checked+.slider {
            background-color: #0d0d0d;
        }

        input:checked+.slider:before {
            transform: translateX(26px);
        }

        /* Results Section */
        .results-container {
            display: none;
        }

        .results-container.show {
            display: block;
            animation: fadeInUp 0.5s ease-out;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

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

        .results-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .results-table th,
        .results-table td {
            padding: 1rem;
            text-align: left;
            border-bottom: 1px solid #f0f0f0;
        }

        .results-table th {
            background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
            color: white;
            font-weight: 600;
        }

        .results-table tr:hover {
            background-color: #f8f9fa;
        }

        .ingredient-icon {
            font-size: 1.5rem;
            margin-right: 0.5rem;
        }

        /* Suggestions Box */
        .suggestions-box {
            background: rgba(255, 230, 109, 0.2);
            border: 2px solid #666;
            border-radius: 15px;
            padding: 1.5rem;
            margin-top: 1rem;
        }

        .suggestions-box h3 {
            color: #FF6B6B;
            margin-bottom: 1rem;
            font-size: 1.3rem;
        }

        .suggestions-box p {
            color: #333;
            line-height: 1.6;
            margin-bottom: 0.5rem;
        }

        /* Loading Animation */
        .loading {
            display: none;
            text-align: center;
            padding: 2rem;
        }

        .loading.show {
            display: block;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid #FF6B6B;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 1rem;
        }

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

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

        /* Responsive Design */
        @media (max-width: 768px) {
            .main-content {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .serving-inputs {
                grid-template-columns: 1fr;
            }

            .header h1 {
                font-size: 2rem;
            }

            .container {
                padding: 1rem;
            }

            .btn-group {
                flex-direction: column;
            }
        }

/* Tablet responsiveness */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Tablet & Mobile tweaks */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-badges {
    justify-content: center;
  }

  /* ✅ underline fix */
  .footer-section h3.footer-title {
    text-align: center;
    display: inline-block;
    margin: 0 auto 1.5rem;
  }

  .footer-section h3.footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Mobile (phones) */
@media (max-width: 500px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-description {
    max-width: 90%;
    margin: 0 auto;
  }

  .social-links {
    justify-content: center;
  }

  .footer-badges {
    justify-content: center;
  }
}


@media (max-width: 768px) {
  .btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; 
  }
}