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

        :root {
            --candy-red: #FF4757;
            --sky-blue: #70A1FF;
            --sunny-yellow: #FFA502;
            --white: #FFFFFF;
            --light-pink: #FFE0E6;
            --light-blue: #E8F4FF;
            --light-yellow: #FFF5E0;
        }

        body {
            font-family: 'Comic Neue', cursive;
            background: linear-gradient(135deg, var(--light-pink) 0%, var(--light-blue) 50%, var(--light-yellow) 100%);
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
        }

        /* 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: 20%; left: 20%; animation-delay: 4s; }
        .floating-cupcake:nth-child(4) { bottom: 30%; right: 10%; animation-delay: 1s; }

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

        /* Navigation Bar */
       /* Navbar Base */
.navbar {
  width: 100%;
  background: linear-gradient(90deg, #60a5fa, #f9a8d4, #fde68a); /* light blue → light pink → soft yellow */
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

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

/* Logo */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 1px;
}

/* Nav Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links li a {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease-in-out;
  padding: 5px 0;
}

/* Hover Gradient Underline */
.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #60a5fa, #f9a8d4, #fde68a);
  border-radius: 5px;
  transition: width 0.4s ease;
}

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

.nav-links li a:hover {
  transform: translateY(-2px);
}

/* CTA Button */
.cta-btn {
  padding: 10px 20px;
  background: linear-gradient(45deg, #60a5fa, #f9a8d4, #fde68a);
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.cta-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Scale Now Navigation Button */
.scale-nav-btn {
    background: linear-gradient(45deg, #60a5fa, #fde68a) !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3) !important;
    display: inline-block !important;
}

.scale-nav-btn:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4) !important;
}

.scale-nav-btn::after {
    display: none !important;
}

/* User Info Display */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    font-weight: 600;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--candy-red), var(--sunny-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.logout-btn {
    background: linear-gradient(45deg, #ff4757, #ff3838) !important;
    color: #ffffff;
    border: none !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: 'Comic Neue', cursive;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3) !important;
}

.logout-btn:hover {
    background: linear-gradient(45deg, #ff3838, #ff2d2d) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4) !important;
}

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

        .page-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .page-title {
            font-size: 3rem;
            color: var(--candy-red);
            margin-bottom: 1rem;
            text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
            animation: bounce 2s ease-in-out infinite;
        }

        .page-subtitle {
            font-size: 1.2rem;
            color: #666;
            max-width: 600px;
            margin: 0 auto;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }

        /* Ingredient Cards */
        .ingredients-container {
            display: grid;
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .ingredient-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 1.5rem;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            border: 2px solid transparent;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

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

        .ingredient-card:hover {
            transform: translateY(-5px);
            border-color: var(--sky-blue);
            box-shadow: 0 12px 40px rgba(112, 161, 255, 0.2);
        }

        .ingredient-card:hover::before {
            left: 100%;
        }

        .ingredient-header {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
        }

        .ingredient-icon {
            font-size: 2rem;
            margin-right: 1rem;
        }

        .ingredient-name {
            font-size: 1.3rem;
            font-weight: 700;
            color: #333;
            flex: 1;
        }

        .ingredient-controls {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            align-items: end;
        }

        .control-group {
            display: flex;
            flex-direction: column;
        }

        .control-label {
            font-size: 0.9rem;
            font-weight: 600;
            color: #666;
            margin-bottom: 0.5rem;
        }

        .custom-select, .custom-input {
            padding: 0.75rem;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-family: 'Comic Neue', cursive;
            font-size: 1rem;
            background: white;
            transition: all 0.3s ease;
        }

        .custom-select:focus, .custom-input:focus {
            outline: none;
            border-color: var(--sky-blue);
            box-shadow: 0 0 0 3px rgba(112, 161, 255, 0.2);
        }

        .custom-input[type="number"] {
            text-align: center;
            font-weight: 600;
        }

        /* Brand Selector */
        .brand-selector {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

        .brand-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--candy-red);
            margin-bottom: 1rem;
            text-align: center;
        }

        .brand-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
        }

        .brand-option {
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            padding: 1rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
        }

        .brand-option:hover {
            border-color: var(--sunny-yellow);
            background: var(--light-yellow);
            transform: scale(1.05);
        }

        .brand-option.selected {
            border-color: var(--sky-blue);
            background: var(--light-blue);
        }

        /* Action Buttons */
        .action-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn {
            padding: 1rem 2rem;
            border: none;
            border-radius: 25px;
            font-family: 'Comic Neue', cursive;
            font-size: 1.1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            position: relative;
            overflow: hidden;
        }

        .btn-primary {
            background: var(--candy-red);
            color: white;
            box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
        }

        .btn-secondary {
            background: var(--sky-blue);
            color: white;
            box-shadow: 0 4px 15px rgba(112, 161, 255, 0.4);
        }

        .btn-success {
            background: #2ED573;
            color: white;
            box-shadow: 0 4px 15px rgba(46, 213, 115, 0.4);
        }

        .btn:hover {
            transform: translateY(-3px);
            animation: wobble 0.5s ease-in-out;
        }

        @keyframes wobble {
            0% { transform: translateY(-3px) rotate(0deg); }
            25% { transform: translateY(-3px) rotate(1deg); }
            75% { transform: translateY(-3px) rotate(-1deg); }
            100% { transform: translateY(-3px) rotate(0deg); }
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .page-title {
                font-size: 2rem;
            }

            .ingredient-controls {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .brand-options {
                grid-template-columns: 1fr;
            }

            .action-buttons {
                flex-direction: column;
                align-items: center;
            }

            .btn {
                width: 100%;
                max-width: 300px;
                justify-content: center;
            }
        }

        /* Success Message */
        .success-message {
            background: rgba(46, 213, 115, 0.1);
            border: 2px solid #2ED573;
            border-radius: 15px;
            padding: 1rem;
            margin: 1rem 0;
            text-align: center;
            color: #2ED573;
            font-weight: 600;
            display: none;
            animation: slideDown 0.5s ease-out;
        }

        @keyframes slideDown {
            from { transform: translateY(-20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        /* Tooltip */
        .tooltip {
            position: relative;
            cursor: help;
        }

        .tooltip::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: #333;
            color: white;
            padding: 0.5rem;
            border-radius: 8px;
            font-size: 0.8rem;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 1000;
        }

        .tooltip:hover::after {
            opacity: 1;
            visibility: visible;
        }

        
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 40px 20px;
    font-family: sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer h2 {
    color: #ff7f50;
}

.footer h3 {
    margin-bottom: 10px;
    color: #ff7f50;
}

.footer p {
    font-size: 14px;
    line-height: 1.5;
}

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

.footer-links ul li {
    margin-bottom: 6px;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #ff7f50;
}

.footer-newsletter input {
    padding: 10px;
    width: 100%;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
}

.footer-newsletter button {
    background-color: #ff7f50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.footer-newsletter button:hover {
    background-color: #ff956b;
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: transform 0.3s, opacity 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.85;
}

/* Specific brand colors */
.social-icon.linkedin { background: #0077b5; }
.social-icon.github   { background: #6e5494; }
.social-icon.twitter  { background: #1da1f2; }
.social-icon.email    { background: #ff8800; }

.footer-bottom {
    text-align: center;
    font-size: 14px;
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 20px;
}
