/* Globals & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    /* Yellow background to match the prompt image */
    background-color: #ffd646;
    /* Adding some subtle dynamic lighter spots on the background like the reference */
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 235, 110, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 60, 0.4) 0%, transparent 40%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 2rem;
    color: #1a1a1a;
}

/* Background Wrapper */
.background-wrapper {
    width: 100%;
    max-width: 1300px;
    height: 100%;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main Card Container */
.card {
    background-color: #ffffff;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 12px;
    padding: 2.25rem 3.25rem 1rem 3.25rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    /* Prevent floaters escaping */
}

/* Header */
header {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 90px;
    max-width: 450px;
    width: auto;
    object-fit: contain;
}

/* Main Layout Setup */
main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 0.75rem;
    position: relative;
    min-height: 0;
}

/* Left Content */
.content-left {
    flex: 1;
    min-width: 320px;
    max-width: 450px;
    padding-left: 1rem;
    /* Indentation in reference */
    position: relative;
    z-index: 20;
    /* Keep text always clickable and on top */
}

/* Right Content */
.content-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 350px;
    min-height: 500px;
    max-height: 600px;
    height: 56vh;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 1.5rem 1.75rem 1.25rem;
}

.content-right::before {
    content: "";
    position: absolute;
    inset: 6% 6% 8% 10%;
    border-radius: 42px;
    background:
        radial-gradient(circle at 28% 30%, rgba(255, 214, 70, 0.16), transparent 34%),
        radial-gradient(circle at 76% 64%, rgba(26, 26, 26, 0.04), transparent 40%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.26), rgba(255, 249, 229, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 24px 44px rgba(255, 214, 70, 0.09);
    backdrop-filter: blur(12px);
    z-index: 0;
}

/* Typography styles */
.coming-soon-label {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #999;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.main-heading {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.75rem;
    color: #1a1a1a;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Input Form */
.subscribe-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.subscribe-form input {
    flex: 1;
    min-width: 220px;
    padding: 1rem 1.5rem;
    border: 2px solid #1a1a1a;
    /* Bold border */
    border-radius: 8px;
    /* Slightly thicker radius for 3D illusion */
    font-size: 1rem;
    /* Slightly larger text for the 4D effect */
    font-weight: 700;
    /* Bold typography so 3D shadow holds */
    letter-spacing: 1.5px;
    /* Spread chars slightly so 3D shadows don't overlap */
    color: #1a1a1a;
    font-family: inherit;
    outline: none;
    box-shadow: 4px 4px 0px rgba(26, 26, 26, 0.08);
    /* Deep offset shadow */
    transition: all 0.3s ease;
    /* 4D Text Effect on the typed characters */
    text-shadow: 1px 1px 0px #ccc, 2px 2px 0px #eee;
}

.subscribe-form input::placeholder {
    color: #aaa;
    font-weight: 500;
    text-shadow: none;
    /* Keep the placeholder flat and clean */
    letter-spacing: normal;
}

.subscribe-form input:focus {
    box-shadow: 6px 6px 0px rgba(26, 26, 26, 0.15);
    /* Expand shadow on focus */
    transform: translate(-1px, -1px);
    /* Make the characters pop intensely while typing */
    text-shadow: 1px 1px 0px #ffd646, 2px 2px 0px #ccc;
}

.subscribe-form button {
    padding: 1rem 2rem;
    background-color: #1a1a1a;
    color: #ffffff;
    border: 2px solid #1a1a1a;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 5px 5px 0px #ffd646;
    /* High-contrast 3D pop shadow */
    transition: all 0.2s ease;
}

.subscribe-form button:hover {
    background-color: #333;
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px #ffd646;
    /* Extreme pop on hover */
}

/* 4D tactile click compression effect */
.subscribe-form button:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px transparent;
}

.subscribe-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 3px 3px 0px #ffd646;
}

#formMessage {
    display: none;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 1.2rem;
}

/* Illustration Styles */
.illustration {
    position: absolute;
    top: 55%;
    left: 51%;
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0;
    transition: opacity 1s ease-in-out;
    width: 100%;
    max-width: 470px;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    mix-blend-mode: multiply;
    z-index: 2;
}

.illustration.active {
    opacity: 1;
    z-index: 3;
}

/* Decorative Floating Illustrations */
.floater {
    position: absolute;
    width: 22%;
    max-width: 132px;
    height: auto;
    object-fit: contain;
    z-index: 1;
    animation: floatAnim 4s ease-in-out infinite;
    mix-blend-mode: multiply;
    opacity: 0.95;
}

/* Position 1 - Center Left */
.pos-1 {
    bottom: 4%;
    left: 9%;
    animation-delay: 0s;
}

/* Position 2 - Top Right */
.pos-2 {
    top: 12%;
    right: 6%;
    animation-delay: -1s;
}

/* Position 3 - Bottom Right */
.pos-3 {
    bottom: 10%;
    right: 8%;
    animation-delay: -2s;
}

@keyframes floatAnim {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Services Row */
.services-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    /* Allows natural wrapping if space gets super tight, but centers strictly */
    gap: 1rem;
    width: 100%;
    margin-top: 1.5rem;
    /* Massive gap to pull it away from the newsletter button/images */
    /* margin-bottom: 2rem; */
    /* Clean gap before the footer */
    z-index: 10;
    position: relative;
}

.service-item {
    background-color: #fcfcfc;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    border: 1px solid #eee;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-2px);
    border-color: #ffd646;
    background-color: #fffaf0;
    color: #1a1a1a;
    box-shadow: 0 6px 12px rgba(255, 214, 70, 0.15);
}

/* Footer layout */
footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 0.85rem;
    width: 100%;
    position: relative;
    z-index: 20;
    /* Keep social text above floaters */
}

.social-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.social-label {
    font-size: 0.70rem;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 2px;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
    color: #ffca28;
    transform: translateY(-3px);
}

/* Basic Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive constraints */
@media (max-width: 1024px) {
    .main-heading {
        font-size: 2.5rem;
    }

    /* Clean up the layout on tablets by dropping the background decorators */
    .floater {
        display: none;
    }
}

@media (max-width: 800px) {

    /* Allow scrolling on mobile where side-by-side doesn't fit height-wise */
    body {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding: 1rem;
    }

    .background-wrapper {
        height: auto;
    }

    .card {
        height: auto;
        min-height: auto;
        padding: 2.5rem 1.5rem 1rem 1.5rem;
        /* Slightly tighter padding for tiny screens, footer pushed down */
    }

    header {
        margin-bottom: 1.5rem;
    }

    .brand-logo {
        height: 60px;
        /* Scale logo down for mobile */
    }

    .main-heading {
        font-size: 2.2rem;
        text-align: center;
    }

    .coming-soon-label {
        text-align: center;
    }

    main {
        flex-direction: column;
        /* Standard stacking: Text on top, image below */
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }

    .content-right {
        width: 100%;
        min-width: auto;
        min-height: 320px;
        max-height: none;
        height: 360px;
        margin-bottom: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.5rem 0.25rem 0;
    }

    .content-right::before {
        inset: 6% 3% 8%;
        border-radius: 28px;
    }

    .illustration {
        left: 50%;
        max-height: 300px;
        max-width: 360px;
        transform: translate(-50%, -50%) scale(1.02);
    }

    .content-left {
        padding-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        /* Ensure all inner text centers firmly */
        width: 100%;
        max-width: 100%;
    }

    .subscribe-form {
        display: flex;
        flex-direction: column;
        /* Stack input and button */
        gap: 0.8rem;
        width: 100%;
        max-width: 400px;
        /* Stop it from looking insanely wide on tablets */
    }

    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
        /* Make button completely full-width exactly like input */
    }


    footer {
        justify-content: center;
        /* Center footer entirely */
        margin-top: 2rem;
    }

    .social-wrapper {
        flex-direction: column;
        gap: 0.8rem;
    }

    .floater {
        display: none;
    }
}

@media (max-height: 780px) {
    .card {
        padding-top: 1.25rem;
    }

    .main-heading {
        margin-bottom: 1.15rem;
        font-size: 2.2rem;
    }

    .content-right {
        min-height: 360px;
        height: 50vh;
    }

    .illustration {
        max-height: 320px;
    }

    .services-row {
        margin-top: 0.9rem;
    }

    footer {
        padding-top: 0.5rem;
    }
}

/*=============================================
   4D CELEBRATION MODAL (Post-Submission)
=============================================*/
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 214, 70, 0.95);
    /* Deep translucent yellow */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.success-modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #ffffff;
    padding: 3rem 4rem;
    border-radius: 12px;
    text-align: center;
    border: 4px solid #1a1a1a;
    /* 4D Neobrutalist Shadow Pop */
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.15);
    transform: scale(0.5) translateY(50px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Snappy bounce effect */
}

.success-modal.show .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.celebration-illustration {
    max-height: 150px;
    width: auto;
    margin-bottom: 1rem;
    display: inline-block;
    mix-blend-mode: multiply;
    /* Ensure vector backgrounds stay transparent */
    animation: blastOff 0.8s ease-in-out infinite alternate;
}

@keyframes blastOff {
    0% {
        transform: translateY(0) scale(1) rotate(-5deg);
    }

    100% {
        transform: translateY(-20px) scale(1.1) rotate(5deg);
    }
}

.modal-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.modal-content p {
    font-size: 1.1rem;
    color: #555;
    font-weight: 600;
}

/* Newsletter Input Error Shake */
.error-shake {
    animation: errorShake 0.4s ease-in-out;
    border-color: #ff4444 !important;
}

/*=============================================
   LINKEDIN NEON COMING SOON MODAL
=============================================*/
.linkedin-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    /* Modal constrained to 30% width */
    height: auto;
    background-color: transparent;
    /* Absolutely no background */
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.linkedin-modal.show {
    opacity: 1;
}

.neon-text {
    font-size: 3.5rem;
    /* Scaled down to fit smaller 30% width */
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-align: center;
    text-shadow:
        0 0 5px #1a1a1a,
        0 0 10px #1a1a1a,
        0 0 20px #0a66c2,
        /* LinkedIn Blue Glow */
        0 0 40px #0a66c2,
        0 0 80px #0a66c2,
        0 0 90px #0a66c2;
    animation: neonFlicker 1.5s infinite alternate;
}

@keyframes neonFlicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        text-shadow:
            0 0 5px #1a1a1a,
            0 0 10px #1a1a1a,
            0 0 20px #0a66c2,
            0 0 40px #0a66c2,
            0 0 80px #0a66c2,
            0 0 90px #0a66c2;
    }

    20%,
    24%,
    55% {
        text-shadow: none;
        /* Tube flickering off */
        color: #888;
    }
}

/* Ensure mobile neon fits tightly */
@media (max-width: 800px) {
    .linkedin-modal {
        width: 80%;
        /* Expand to prevent text crushing on small mobile */
    }

    .neon-text {
        font-size: 2.2rem;
    }
}

@keyframes errorShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}
