:root {
    --primary-color: #0077b6;
    /* Deep Ocean Blue - Trustworthy */
    --secondary-color: #00b4d8;
    /* Bright Cyan - Tech/Modern */
    --accent-color: #f72585;
    /* Vibrant Pink/Red - Highlights */
    --bg-body: #ffffff;
    /* Brighter White Background */
    --bg-alt: #f8fafc;
    /* Very Light Gray for alternating sections */
    --card-bg: #ffffff;
    --text-main: #0f172a;
    /* Dark Slate for readability */
    --text-muted: #64748b;
    /* Muted Blue-Gray */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --gradient-hero: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    --gradient-text: linear-gradient(45deg, #0077b6, #00b4d8);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1280px;
    /* Slightly wider for the new layout */
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-text);
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 180, 216, 0.4);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo-img {
    height: 50px;
    /* Adjust based on logo aspect ratio */
    width: auto;
    object-fit: contain;
    filter: brightness(0);
    /* Force black for visibility */
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background: var(--bg-alt);
}

/* Hero Background Image with Overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('assets/projector-home.png') no-repeat center center/cover;
    mask-image: linear-gradient(to right, transparent, black);
    -webkit-mask-image: linear-gradient(to right, transparent, black);
    z-index: 0;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    text-align: left;
    /* Alignment change */
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    /* Bigger for impact */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

/* Sections Global */
.section {
    padding: 8rem 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

/* Zig-Zag Product Layout */
.product-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.product-row:last-child {
    margin-bottom: 0;
}

.product-row:nth-child(even) {
    flex-direction: row-reverse;
}

.product-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.product-image img {
    width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-row:hover .product-image img {
    transform: scale(1.03);
}

.product-content {
    flex: 1;
}

.product-content h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.product-category {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.product-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.features-list {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.features-list li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.features-list li::before {
    content: '✓';
    color: var(--secondary-color);
    margin-right: 0.75rem;
    font-weight: 800;
}

/* Services Section */
.services-section {
    background: var(--bg-body);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.service-item {
    background: var(--card-bg);
    border-radius: 20px;
    /* Slightly tighter radius */
    padding: 10px;
    /* Content Padding requested by user */
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-img-wrapper {
    width: 100%;
    height: 240px;
    /* Taller image */
    border-radius: 12px;
    /* Radius for the inner image */
    overflow: hidden;
    flex-shrink: 0;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-item:hover .service-img {
    transform: scale(1.05);
}

.service-text {
    padding: 1.5rem 0.5rem 0.5rem;
    /* Padding below text */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-text h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.service-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Footer (Dark for contrast) */
.footer {
    background: #0f172a;
    /* Keep footer dark for grounding */
    color: white;
    padding: 6rem 0 2rem;
}

.footer h3 {
    margin-bottom: 1rem;
    color: white;
}

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer ul li a {
    color: #94a3b8;
}

.footer ul li a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    color: #94a3b8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
}

/* Animation Classes */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes float-alt {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes breathe {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes breathe-alt {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Apply Randomised Animations */
.product-image img {
    animation: float 6s ease-in-out infinite;
}

/* Even rows float opposite direction (down) */
.product-row:nth-child(even) .product-image img {
    animation: float-alt 7s ease-in-out infinite;
    /* Different duration too */
    animation-delay: 0.5s;
}

/* Third row gets a different timing */
.product-row:nth-child(3) .product-image img {
    animation-duration: 5.5s;
    animation-delay: 1.5s;
}

.service-img {
    animation: breathe 8s ease-in-out infinite;
}

/* Second service item breathes IN (shrinks slightly) instead of out */
.service-item:nth-child(2) .service-img {
    animation: breathe-alt 8.5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Third service item normal breathe but offset */
.service-item:nth-child(3) .service-img {
    animation-duration: 7.5s;
    animation-delay: 3s;
}

/* Responsive */
@media (max-width: 992px) {
    .hero::before {
        width: 100%;
        opacity: 0.15;
        background-color: black;
        /* Tint the image so text reads over it */
        mask-image: none;
        -webkit-mask-image: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .product-row {
        flex-direction: column !important;
        /* Stack everything */
        gap: 2rem;
        text-align: left;
    }

    .product-content h3 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
        /* Slightly compact on mobile */
    }

    .logo-img {
        height: 40px;
        /* Smaller logo on mobile */
        filter: brightness(0);
        /* Force logo to be black for visibility on white bg */
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        /* Below navbar */
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        height: auto;
        text-align: center;
        padding: 2rem 0;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        gap: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 24px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.modal-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.captcha-question {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.captcha-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 2rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.captcha-input:focus {
    border-color: var(--primary-color);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-main);
    border: none;
}

.btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.captcha-error {
    color: var(--accent-color);
    margin-top: 1.5rem;
    font-weight: 600;
    display: none;
}

.captcha-error.active {
    display: block;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 2rem 1.5rem;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
    }
}