/* CSS Changes: Sticky Header, Colors, Responsiveness */
:root {
    --pink: #ff008c;
    --yellow: #ffd200;
    --green: #00b454;
    --blue: #0057ff;
    --red: #e0311e;
    --black: #000000;
    --white: #ffffff;
    --muted: #64748b;
    --gray-light: #94a3b8;

    /* Smooth Scroll */
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Fix for sticky header overlap */
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto;
    --brand: var(--pink);
}

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

body {
    background: var(--black);
    color: var(--white);
}

/* HEADER: Sticky */
header {
    background: var(--black);
    padding: 20px 0;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 800;
    font-size: 32px;
}

.logo-title {
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
}

.logo-subtitle {
    font-size: 11px;
    margin-top: 2px;
    color: var(--gray-light);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--yellow);
}

.cta {
    background: var(--yellow);
    color: black;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s;
}

.cta:hover {
    transform: scale(1.05);
}

/* HERO GRID */
.hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
    width: 100%;
}

.block {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    color: black;
    overflow: hidden;
}

/* FIXED: SVG Scaling */
.block img {
    width: auto;
    height: auto;
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
}

.b-pink {
    background: var(--pink);
}

.b-yellow {
    background: var(--yellow);
}

.b-green {
    background: var(--green);
}

.b-blue {
    background: var(--blue);
    color: white;
}

.b-red {
    background: var(--red);
}

.b-white {
    background: var(--white);
}

.b-pattern {
    background: black;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path d="M0 20 Q10 0 20 20 T40 20" stroke="white" fill="none" stroke-width="2"/></svg>');
}

/* RESPONSIVE HERO GRID */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 120px;
    }

    .block {
        font-size: 32px;
    }

    nav ul {
        display: none;
    }

    /* Hide menu mostly for simple mobile view */
}

/* WAVE ANIMATIONS */
.wave-section {
    position: relative;
}

.wave-separator {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 10;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Idea Wave (Yellow Section) */
#idea-wave .wave-separator:first-child {
    top: 0;
    transform: translateY(-100%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23000000' fill-opacity='1' d='M0,192L48,192C96,192,192,192,288,181.3C384,171,480,149,576,160C672,171,768,213,864,229.3C960,245,1056,235,1152,213.3C1248,192,1344,160,1392,144L1440,128L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
}

#idea-wave .wave-separator:last-child {
    bottom: 0;
    transform: translateY(100%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffd200' fill-opacity='1' d='M0,192L48,192C96,192,192,192,288,181.3C384,171,480,149,576,160C672,171,768,213,864,229.3C960,245,1056,235,1152,213.3C1248,192,1344,160,1392,144L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
}

/* Contact Wave (Red Section) */
#contact-wave .wave-separator:first-child {
    top: 0;
    transform: translateY(-100%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23000000' fill-opacity='1' d='M0,192L48,192C96,192,192,192,288,181.3C384,171,480,149,576,160C672,171,768,213,864,229.3C960,245,1056,235,1152,213.3C1248,192,1344,160,1392,144L1440,128L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
}

/* New Digital Transition (Red -> Black) */
.digital-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    /* Adjust height for the pixel size */
    transform: translateY(100%);
    /* Move completely below */
    margin-top: -2px;
    /* Pull up slightly to overlap and hide the sub-pixel seam line */
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath fill='%23e0311e' d='M0,0 v10 h10 v5 h10 v-5 h10 v10 h10 v-10 h10 v5 h10 v-5 h10 v10 h10 v-15 h10 v5 h10 v-5 h10 v10 h10 v-25 L120,0 Z' /%3E%3C/svg%3E");
    /* 
       High Frequency Wave (Repeating Ripple)
       Red on TOP, Transparent on Bottom.
       Uses background-repeat to create a tight, repetitive "girinti-cikinti" effect.
    */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath fill='%23e0311e' d='M0,0 L100,0 L100,50 Q75,80 50,50 T0,50 Z'/%3E%3C/svg%3E");
    background-size: 60px 100%;
    /* Controls the frequency. Smaller px = more waves. */
    background-repeat: repeat-x;
    z-index: 10;
}

/* SECTIONS */
.section-clients {
    padding: 120px 0;
    text-align: center;
    background: black;
    color: white;
}

.section-idea {
    background: var(--yellow);
    padding: 100px 20px;
    text-align: center;
    color: black;
    z-index: 5;
}

.section-about {
    padding: 120px 0;
    background: black;
    color: white;
}

.section-contact {
    background: var(--red);
    padding: 100px 20px;
    text-align: center;
    color: white;
    z-index: 5;
}

.heading-xl {
    font-size: 64px;
    font-weight: 900;
    text-transform: uppercase;
    max-width: 900px;
    margin: auto;
    line-height: 1.1;
}

.heading-lg {
    font-size: 56px;
    font-weight: 900;
    max-width: 900px;
    margin: auto;
    text-transform: uppercase;
    line-height: 1.1;
}

.heading-md {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 60px;
    text-align: center;
}

.text-lead {
    margin-top: 20px;
    font-size: 20px;
    color: #ccc;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.text-sub {
    margin-top: 10px;
    font-size: 24px;
    font-weight: 400;
}

/* CLIENTS GRID */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 70px auto 0;
    padding: 0 20px;
}

.client-card {
    background: #111;
    padding: 30px;
    border-radius: 14px;
    color: white;
    border: 1px solid #222;
    transition: transform 0.3s, border-color 0.3s;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.client-card:hover {
    transform: translateY(-5px);
    border-color: var(--pink);
}

.client-content h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--white);
}

.client-content p {
    font-size: 15px;
    color: var(--gray-light);
    line-height: 1.5;
    font-weight: 400;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.service-card {
    padding: 50px;
    border-radius: 16px;
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
}

.service-card.pink {
    background: var(--pink);
    color: black;
}

.service-card.green {
    background: var(--green);
    color: black;
}

.service-card.blue {
    background: var(--blue);
    color: white;
}

.service-label {
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.8;
}

.service-desc {
    font-size: 18px;
    font-weight: 400;
    margin-top: 16px;
    text-transform: none;
    line-height: 1.5;
}

/* RESPONSIVE CONTENT */
@media (max-width: 900px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .heading-xl {
        font-size: 42px;
    }

    .heading-lg {
        font-size: 36px;
    }

    .heading-md {
        font-size: 36px;
    }
}

/* FOOTER */
.footer {
    padding: 60px 0;
    border-top: 1px solid #222;
    margin-top: 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left,
.footer-right {
    width: fit-content;
}

.footer-right {
    display: flex;
    gap: 60px;
    text-align: right;
}

.footer-brand {
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 6px;
}

.footer-copy {
    color: var(--gray-light);
    font-size: 13px;
}

.footer-list-text {
    color: var(--gray-light);
    margin-top: 6px;
    line-height: 1.5;
}

.footer-contact-text {
    color: var(--gray-light);
    margin-top: 6px;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

.btn-book {
    margin-top: 40px;
    background: black;
    color: white;
    padding: 18px 40px;
    border-radius: 40px;
    font-size: 20px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
}

.btn-book:hover {
    transform: scale(1.05);
    background: #222;
}

/* ------------------ */
/* DARK TECH MODAL */
/* ------------------ */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    /* Darker backdrop */
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #111;
    /* Dark Background */
    border: 1px solid #333;
    /* Subtle border */
    color: white;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(255, 0, 140, 0.1);
    /* Pink glow */
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    text-align: left;
}

.modal-backdrop.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #222;
    padding-bottom: 16px;
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
}

.modal-close {
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--pink);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #94a3b8;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: #222;
    border: 2px solid #333;
    color: white;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #555;
    font-weight: 500;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--pink);
    /* Pink focus ring */
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--pink);
    color: black;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 0, 140, 0.3);
}