:root {
    --primary-color: #FF4500;
    --secondary-color: #e63900;
    --bg-color: #ffffff;
    --text-color: #121212;
    --card-bg: rgba(0, 0, 0, 0.03);
    /* Header BG is now used for the floating pills, not the strip */
    --pill-bg: rgba(255, 255, 255, 0.85);
    --font-main: 'Space Grotesk', sans-serif;
    --border-color: rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--bg-color);
    background: radial-gradient(circle at 50% 50%, #fff8f0 0%, #ffffff 100%);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-attachment: fixed;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --secondary-color: #cc3700;
    --card-bg: rgba(40, 40, 40, 0.6);
    --pill-bg: rgba(30, 30, 30, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);

    background: radial-gradient(circle at 50% 50%, #2a1a1a 0%, #0d0d0d 100%);
    background-attachment: fixed;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Floating Pizza Background */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.8;
    animation: float 25s infinite ease-in-out;
    user-select: none;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.1));
}

.shape-1::after {
    content: '🍕';
    font-size: 4rem;
}

.shape-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2::after {
    content: '🍅';
    font-size: 3rem;
}

.shape-2 {
    bottom: 20%;
    right: 10%;
    animation-delay: -5s;
}

.shape-3::after {
    content: '🧀';
    font-size: 2.5rem;
}

.shape-3 {
    top: 50%;
    left: 15%;
    animation-delay: -10s;
}

.shape-4::after {
    content: '🍕';
    font-size: 5rem;
}

.shape-4 {
    bottom: 10%;
    left: 40%;
    animation-delay: -15s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(20deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-10deg);
    }
}

/* Header - Floating Layout */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Align top so elements hang */
    padding: 30px 60px;
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    /* No full background */
    backdrop-filter: none;
    z-index: 1000;
    border: none;
    box-shadow: none;
    pointer-events: none;
    /* Let clicks pass through empty space */
    transition: padding 0.3s ease;
}

/* Disabled scroll shrinking as requested */
.header.scrolled {
    padding: 30px 60px;
}

/* Ensure interactive children capture clicks */
.header>* {
    pointer-events: auto;
}

[data-theme="dark"] .header {
    box-shadow: none;
}

.logo {
    height: 110px;
    width: auto;
    transition: transform 0.3s;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.logo:hover {
    transform: scale(1.05) rotate(-3deg);
}

/* Nav - The Floating Island */
nav {
    flex: 0 1 auto;
    /* Don't stretch */
    background: var(--pill-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 40px;
    border-radius: 50px;
    /* Highly rounded corners (Pill) */
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 30px;
}

[data-theme="dark"] nav {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    padding: 0;
    margin: 0;
}

nav ul li a {
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.cta-link {
    color: var(--primary-color);
    font-weight: 800;
}

/* Theme Toggle Button - Floating Pill */
#theme-toggle {
    background: var(--pill-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-left: 20px;
    /* Spacing from nav */
}

#theme-toggle:hover {
    transform: translateY(-2px) scale(1.1);
    color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: transform 0.3s;
    pointer-events: auto;
    /* Ensure clickable even if inside header container */
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn i {
    font-size: 30px;
    color: #ffffff;
}

/* Common Section */
.section {
    padding: 100px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    text-align: center;
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    /* More top padding for header */
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
}

.hero-text {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.05);
}

.hero-text p {
    font-size: 1.4rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    /* Fixed height for canvas/animation */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    /* Let the pizza float */
}

#glcanvas {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    /* Mask/Clip if needed, or just let it be a background behind pizza */
    background: transparent;
    /* The canvas renders the background, but let's border radius it */
    mask-image: radial-gradient(circle, white 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle, white 40%, transparent 80%);
}

.primary-btn {
    display: inline-block;
    padding: 20px 60px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(255, 69, 0, 0.4);
    transition: 0.3s;
    letter-spacing: 0.5px;
}

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 69, 0, 0.5);
    background-color: var(--secondary-color);
    color: white;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.card.glass {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 50px 30px;
    border-radius: 25px;
    transition: 0.4s;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.card.glass:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.card p {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.7;
}


/* About Section */
.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-layout>div {
    flex: 1;
}

.text-content .section-title {
    text-align: left;
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.text-content .lead {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--text-color);
    font-weight: 800;
    line-height: 1.3;
}

.text-content p {
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 20px;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Orange highlight for key words */
.highlight {
    color: var(--primary-color);
    font-weight: 800;
}

/* Logo Slider */
.logo-slider-container {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.logo-slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
}

.company-logo {
    width: 100%;
    max-width: 500px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: 30px;
    border: 3px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .company-logo {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.company-logo:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.logo-placeholder {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-align: center;
}

/* Customer Testimonials */
.testimonial {
    max-width: 450px;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-color);
    text-align: center;
    line-height: 1.7;
    opacity: 1;
    padding: 25px 35px;
    position: relative;
    font-weight: 500;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    background: rgba(255, 69, 0, 0.03);
    box-shadow:
        0 0 20px rgba(255, 69, 0, 0.3),
        0 0 40px rgba(255, 69, 0, 0.15),
        inset 0 0 20px rgba(255, 69, 0, 0.05);
}

[data-theme="dark"] .testimonial {
    background: rgba(255, 69, 0, 0.05);
    box-shadow:
        0 0 25px rgba(255, 69, 0, 0.4),
        0 0 50px rgba(255, 69, 0, 0.2),
        inset 0 0 25px rgba(255, 69, 0, 0.08);
}

/* When replacing with images, add this CSS */
.company-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* Contact Section - WhatsApp CTA */
.contact-subtitle {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    font-weight: 600;
    text-align: center;
}

.whatsapp-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 25px 60px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 800;
    font-size: 1.3rem;
    border-radius: 50px;
    box-shadow:
        0 10px 30px rgba(255, 69, 0, 0.4),
        0 0 40px rgba(255, 69, 0, 0.6);
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
    animation: glow-pulse 2s ease-in-out infinite;
    margin: 0 auto;
    display: flex;
    width: fit-content;
}

.whatsapp-cta-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 15px 40px rgba(255, 69, 0, 0.6),
        0 0 60px rgba(255, 69, 0, 0.8);
    background-color: var(--secondary-color);
    color: white;
    animation: none;
}

.whatsapp-cta-btn svg {
    width: 35px;
    height: 35px;
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow:
            0 10px 30px rgba(255, 69, 0, 0.4),
            0 0 40px rgba(255, 69, 0, 0.6);
    }

    50% {
        box-shadow:
            0 10px 35px rgba(255, 69, 0, 0.6),
            0 0 60px rgba(255, 69, 0, 0.9),
            0 0 80px rgba(255, 69, 0, 0.4);
    }
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

input,
textarea {
    width: 100%;
    background: rgba(128, 128, 128, 0.05);
    border: 2px solid transparent;
    padding: 18px 25px;
    border-radius: 15px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 69, 0, 0.1);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus {
    background: #222;
}

.submit-btn {
    width: 100%;
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 69, 0, 0.3);
}

footer {
    text-align: center;
    padding: 40px;
    color: var(--text-color);
    opacity: 0.6;
    font-size: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
    font-weight: 500;
}

/* Animations Helpers */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 20px;
        /* Center logo */
        justify-content: center;
        align-items: center;
        height: auto;
        /* Remove gap/column direction so logo sits top center */
        flex-direction: row;
    }

    /* PREVENT JUMP: Force scrolled state to match default mobile state */
    .header.scrolled {
        padding: 20px;
    }

    .logo {
        height: 80px;
    }

    nav {
        display: none;
    }

    /* Move toggle to Top Right on Mobile */
    #theme-toggle {
        position: fixed;
        /* Vertical Align: Logo height 80px + 20px padding = center ~60px. Button height 40px. Top: 40px. */
        top: 40px;
        right: 20px;
        /* Right aligned */
        left: auto;
        /* Reset left */
        bottom: auto;
        width: 40px;
        /* Smaller */
        height: 40px;
        /* Smaller */
        margin-left: 0;
        font-size: 1rem;
        /* Smaller icon */
        z-index: 2000;
        background: var(--pill-bg);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border: 1px solid var(--border-color);
    }

    /* WhatsApp stays bottom right on mobile */
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .hero-container {
        flex-direction: column-reverse;
        /* Visual on top? Or text on top? Usually text on top is better for SEO, but visual is engaging. Let's do visual top or stack normally. */
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-text {
        text-align: center;
        padding: 0 10px;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .text-content .section-title {
        font-size: 2.2rem;
        /* Reduced from 3.5rem */
        text-align: center;
    }

    .text-content .lead {
        font-size: 1.3rem;
        /* Reduced from 2rem */
        text-align: center;
    }

    .text-content p {
        text-align: center;
        font-size: 1rem;
    }

    .hero-visual {
        width: 100%;
        height: 500px;
        margin-top: 100px;
        /* LARGE SPACER - Pushes keypad way down */
        margin-bottom: 20px;
    }

    #pizza-container {
        transform: translate(-50%, -50%) scale(0.5);
    }

    .split-layout {
        flex-direction: column;
    }

    /* Ensure Logos are visible */
    .logo-slider-container {
        height: 400px;
        /* Increased to show full logos */
        min-height: 400px;
    }

    .company-logo {
        height: 400px;
        /* Increased for larger logos */
        width: 90%;
        max-width: 650px;
        padding: 0;
        margin: 0 auto;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .logo-placeholder {
        font-size: 1.5rem;
    }

    /* Mobile logo slider fixes - ensure visibility while keeping rotation */
    .logo-slider-container {
        position: relative;
        /* Ensure proper positioning context */
        overflow: visible;
        /* Don't clip content */
    }

    .logo-slide {
        position: absolute;
        /* Keep absolute for slider to work */
        display: flex;
        /* Ensure flex display */
    }

    .client-logo {
        display: block;
        max-width: 100%;
        max-height: 100%;
        min-width: 250px;
        /* Increased from 200px */
        min-height: 180px;
        /* Increased from 150px */
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .form-row {
        flex-direction: column;
    }

    .contact-form {
        padding: 30px;
    }
}