/* --- CSS VARIABLES (Based on the Logo) --- */
:root {
    --brand-navy: #182336;
    /* Dark background from logo */
    --brand-red: #d92b3a;
    /* The stripes */
    --brand-cream: #f4f1e1;
    /* The text color */
    --brand-teal: #5fa8bb;
    /* The robot face */
    --brand-orange: #f0a500;
    /* The overalls */
    --brand-dark: #111;

    /* New Variables */
    --brand-terminal-green: #39ff14;
    --brand-green-dot: #4caf50;
    --brand-screen-bg: #222;

    --font-heading: 'Alfa Slab One', cursive;
    --font-body: 'Open Sans', sans-serif;

    --border-style: 3px solid var(--brand-navy);
    --shadow-style: 5px 5px 0px var(--brand-navy);
}

/* --- RESET & GLOBAL --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--brand-cream);
    color: var(--brand-navy);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- UTILITIES --- */
.hidden {
    display: none !important;
}

/* --- COMPONENTS --- */

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    border: var(--border-style);
    box-shadow: var(--shadow-style);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--brand-red);
    color: var(--brand-cream);
}

.btn-secondary {
    background-color: var(--brand-teal);
    color: var(--brand-navy);
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px var(--brand-navy);
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--brand-navy);
}

/* Custom Cursor & Paint Trail */
body {
    cursor: url("https://img.icons8.com/color/48/paint-brush.png") 35 10, auto;
}

a,
button,
.btn,
select,
input,
.project-card,
.logo-container,
.dot {
    cursor: url("https://img.icons8.com/color/48/paint-brush.png") 35 10, auto;
}

.hidden {
    display: none;
}

.paint-particle {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: splatter-fade 0.8s linear forwards;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes splatter-fade {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Modal / Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    max-height: 90vh;
    object-fit: contain;
    border: 5px solid var(--brand-cream);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation: zoomIn 0.4s;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 2001;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--brand-red);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@media only screen and (max-width: 700px) {
    .modal-content {
        width: 95%;
    }

    .close-modal {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
}

/* --- HEADER --- */
header {
    background-color: var(--brand-navy);
    color: var(--brand-cream);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 5px solid var(--brand-red);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img-small {
    height: 50px;
    width: auto;
    border-radius: 50%;
    border: 2px solid var(--brand-cream);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--brand-cream);
}

nav ul {
    display: flex;
    gap: 40px;
}

nav a {
    font-weight: 700;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--brand-teal);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.call-btn-header {
    background-color: var(--brand-orange);
    color: var(--brand-navy);
    padding: 8px 15px;
    margin-right: 15px;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid var(--brand-cream);
    box-shadow: 3px 3px 0px var(--brand-cream);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.call-btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 0px var(--brand-cream);
    background-color: white;
}

.call-btn-header i {
    font-size: 0.9em;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    background-color: var(--brand-cream);
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
}

.sunburst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200vw;
    height: 200vw;
    background: repeating-conic-gradient(var(--brand-red) 0% 5%,
            var(--brand-cream) 5% 10%);
    transform: translate(-50%, -50%);
    opacity: 0.15;
    z-index: 0;
    animation: spin 60s linear infinite;
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    max-width: 1200px;
}

.hero-logo-large {
    width: 800px;
    max-width: 80%;
    margin-bottom: 20px;
    filter: drop-shadow(10px 10px 0px rgba(15, 24, 38, 0.2));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero h2 {
    font-size: 4rem;
    color: var(--brand-navy);
    text-shadow: 3px 3px 0px var(--brand-teal);
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--brand-navy);
    background-color: var(--brand-cream);
    padding: 5px 15px;
    border: 2px solid var(--brand-navy);
    transform: rotate(-2deg);
}

/* --- ABOUT BAR --- */
.about-bar {
    background-color: var(--brand-navy);
    color: var(--brand-cream);
    padding: 3rem 5%;
    text-align: center;
    border-top: var(--border-style);
    border-bottom: var(--border-style);
}

.about-bar p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    font-weight: 700;
}

/* --- SERVICES SECTION --- */
.services {
    padding: 4rem 5%;
    background-color: var(--brand-cream);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--brand-red);
    text-shadow: 2px 2px 0px var(--brand-navy);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border: var(--border-style);
    padding: 2rem;
    position: relative;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 10px 10px 0px var(--brand-orange);
}

.service-icon {
    font-size: 3rem;
    color: var(--brand-red);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--brand-navy);
}

/* --- WHY US (Robot Theme) --- */
.why-us {
    background-color: var(--brand-navy);
    color: var(--brand-cream);
    padding: 4rem 5%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.why-content {
    flex: 1;
    min-width: 300px;
}

.why-content h2 {
    font-size: 2.5rem;
    color: var(--brand-orange);
    margin-bottom: 20px;
}

.why-content ul li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.why-content ul li i {
    color: var(--brand-teal);
    margin-right: 15px;
    font-size: 1.3rem;
}

.why-visual {
    flex: 1;
    min-width: 300px;
    background-color: var(--brand-red);
    border: 4px solid var(--brand-cream);
    padding: 40px;
    text-align: center;
    transform: rotate(2deg);
    box-shadow: 10px 10px 0px var(--brand-teal);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1;
}

/* --- CONTACT CTA --- */
.cta-section {
    background-color: var(--brand-orange);
    padding: 5rem 2rem;
    text-align: center;
    border-top: var(--border-style);
}

.cta-box {
    background-color: white;
    border: var(--border-style);
    display: inline-block;
    padding: 3rem;
    box-shadow: 15px 15px 0px var(--brand-navy);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* --- FOOTER --- */
footer {
    background-color: var(--brand-navy);
    color: white;
    text-align: center;
    padding: 2rem;
    border-top: 5px solid var(--brand-red);
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    font-size: 1.5rem;
    margin: 0 10px;
    color: var(--brand-teal);
}

.social-links a:hover {
    color: var(--brand-orange);
}

/* --- GALLERY / PROJECTS SECTION --- */
.our-work-section {
    background-color: var(--brand-navy);
    padding: 5rem 5%;
    border-top: var(--border-style);
}

.section-subtitle {
    text-align: center;
    color: var(--brand-teal);
    font-size: 1.2rem;
    margin-top: -30px;
    margin-bottom: 50px;
    font-weight: bold;
    font-style: italic;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    background-color: var(--brand-cream);
    border: var(--border-style);
    padding: 20px;
    box-shadow: 10px 10px 0px var(--brand-orange);
}

.project-header {
    margin-bottom: 20px;
    border-bottom: 2px dashed var(--brand-navy);
    padding-bottom: 10px;
}

.project-header h3 {
    font-size: 1.5rem;
    color: var(--brand-navy);
}

.project-header p {
    font-family: var(--font-body);
    color: #555;
    font-size: 0.9rem;
}

.comparison-row {
    display: flex;
    gap: 20px;
    animation: fadeEffect 0.5s;
}

.comparison-row.active {
    display: flex;
}

/* Start hidden if part of carousel (JS handles logic) */
.carousel-card .comparison-row:not(.active) {
    display: none;
}

@keyframes fadeEffect {
    from {
        opacity: 0.4
    }

    to {
        opacity: 1
    }
}

.photo-frame {
    flex: 1;
    position: relative;
    border: 3px solid var(--brand-navy);
    height: 250px;
    overflow: hidden;
    background: #000;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-frame:hover img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    z-index: 10;
    border: 2px solid var(--brand-navy);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
}

.badge-before {
    background-color: #555;
    color: white;
}

.badge-after {
    background-color: var(--brand-red);
    color: var(--brand-cream);
}

.carousel-dots {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed var(--brand-navy);
}

.dot {
    cursor: pointer;
    height: 20px;
    width: 20px;
    margin: 0 15px;
    background-color: transparent;
    border: 2px solid var(--brand-navy);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot:hover {
    background-color: var(--brand-teal);
}

.dot.active {
    background-color: var(--brand-orange);
    transform: scale(1.2);
    box-shadow: 1px 1px 0px var(--brand-navy);
}

/* --- CALCULATOR SECTION --- */
.calculator-section {
    background-color: var(--brand-teal);
    padding: 4rem 5%;
    border-bottom: var(--border-style);
}

.calculator-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.calc-text {
    flex: 1;
    min-width: 300px;
    color: var(--brand-navy);
}

.calc-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.3);
}

.calc-mascot {
    width: 150px;
    margin-top: 20px;
}

.calc-machine {
    flex: 1;
    min-width: 320px;
    background-color: var(--brand-cream);
    border: var(--border-style);
    padding: 25px;
    box-shadow: 15px 15px 0px var(--brand-navy);
    position: relative;
}

.machine-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

.calc-dot {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    border: 2px solid var(--brand-navy);
}

.red {
    background: var(--brand-red);
}

.yellow {
    background: var(--brand-orange);
}

.green {
    background: var(--brand-green-dot);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--brand-navy);
    background-color: white;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Split Columns & Labels */
.select-row {
    display: flex;
    gap: 10px;
}

.select-row select,
.select-row input {
    flex: 1;
}

.col-half {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sub-label {
    font-size: 0.8rem;
    color: var(--brand-navy);
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.digital-screen {
    margin-top: 20px;
    background-color: var(--brand-screen-bg);
    color: var(--brand-terminal-green);
    padding: 20px;
    border: 4px solid #555;
    font-family: 'Courier New', monospace;
    text-align: center;
    border-radius: 5px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.digital-screen.visible {
    opacity: 1;
    max-height: 200px;
}

.screen-label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
    color: #fff;
}

.price-text {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 5px var(--brand-terminal-green);
}

.book-now-link {
    display: inline-block;
    background: var(--brand-red);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: bold;
    font-family: sans-serif;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    a.call-btn-header {
        font-size: .75rem;
    }
    .calculator-container {
        flex-direction: column;
        gap: 30px;
    }

    .calc-text {
        text-align: center;
    }

    .calc-mascot {
        display: none;
    }

    #home {
        margin-top: -30px;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-logo-large {
        width: 400px;
        max-width: 80%;
        margin-top: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .button-group {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }

    .button-group a {
        width: 47%;
        font-size: 1rem;
        padding: 0;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--brand-navy);
        padding: 20px;
        border-bottom: 2px solid var(--brand-orange);
    }

    nav ul.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .why-visual {
        transform: rotate(0deg);
        margin-top: 20px;
    }

    /* Gallery Mobile */
    .comparison-row {
        flex-direction: column;
    }
    
    .cta-box a.btn.btn-primary {
        font-size: 1rem;
        padding: 5px;
    }

    .photo-frame {
        height: 200px;
    }
    
    .dot {
        height: 13px;
        width: 13px;
        margin: 0 10px;
    }

    /* Calculator Mobile */
    .select-row {
        flex-direction: column;
    }
}