/* ============================
   GLOBAL FONT
============================ */
body {
    font-family: -apple-system, BlinkMacSystemFont,
        "SF Pro Display", "SF Pro Text",
        "Helvetica Neue", Helvetica,
        Arial, sans-serif;


    padding: 0;
    margin: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden !important;
}

/* ============================================================================================================================================================================================= */




/* ============================================================================================================================================================================================= */


/* ============================
   HERO SECTION
============================ */
.hero-kortoba {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    /* stack content + video vertically */
    justify-content: center;
    align-items: center;
    padding: 0 8%;
    background: linear-gradient(rgba(5, 15, 35, 0.7), rgba(5, 15, 35, 0.9));
    color: #fff;
    overflow: hidden;
    padding-top: 40px;
    padding-bottom: 50px;
}

/* Wrapper now single column */
.hero-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    z-index: 2;
}

/* ============================
   HERO CONTENT (CENTER)
============================ */

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

@keyframes badgeLean {
    0% {
        transform: rotate(-5deg);
    }

    25% {
        transform: rotate(5deg);
    }

    50% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(-5deg);
    }
}


.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 16px;
    margin-bottom: 20px;

    /* Infinite lean animation */
    animation: badgeLean 3.5s ease-in-out infinite;
    transform-origin: center center;
}


.hero-badge i {
    margin-right: 8px;
    color: #f5c542;
}

.hero-kortoba h1 {
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-kortoba h1 span {
    color: #f5c542;
    font-weight: 600;
}

.hero-kortoba p {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 35px;
}

/* CTA */
/* Jiggle keyframes */
@keyframes btnJiggle {
    0% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-6px);
    }

    50% {
        transform: translateY(3px);
    }

    75% {
        transform: translateY(-3px);
    }

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

/* Add animation to button */
.hero-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f5c542;
    color: #111;
    padding: 14px 30px;
    border-radius: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;

    /* Jiggle animation every 6.7s, lasts 0.67s */
    animation: btnJiggle 0.94s ease-in-out infinite;
    animation-delay: 3.4s;
}



/* ============================
   HERO VIDEO (RIGHT)
============================ */
.hero-video {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.video-box {
    position: relative;
    width: 80%;
    /* 80% width */
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.video-box video,
.video-box iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Soft border glow */
.video-box::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

/* ============================
   RESPONSIVE
============================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero-kortoba {
        padding: 0 6%;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-actions {
        display: flex;
        justify-content: center;
    }

    .hero-video {
        order: 2;
        /* VIDEO BELOW TEXT */
    }

    .hero-kortoba h1 {
        font-size: 44px;
    }

    .hero-kortoba p {
        font-size: 17px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-kortoba {
        min-height: 85vh;
        padding: 0 6%;
    }

    .hero-badge {
        font-size: 13px;
    }

    .hero-kortoba h1 {
        font-size: 36px;
    }

    .hero-kortoba p {
        font-size: 16px;
    }

    .video-box {
        max-width: 100%;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-kortoba {
        min-height: 90vh;
        padding: 0 5%;
    }

    .hero-kortoba h1 {
        font-size: 30px;
        line-height: 1.3;
    }

    .hero-kortoba p {
        font-size: 15px;
    }

    .hero-actions .btn-primary {
        width: 100%;
        justify-content: center;
        font-size: 15px;
        padding: 14px 20px;
    }

    .video-box {
        border-radius: 16px;
    }
}



.floating-icons {
    position: absolute;
    inset: 0;
    /* cover entire hero */
    pointer-events: none;
    z-index: 1;
    /* behind content but above background */
}

/* General style for all icons */
.floating-icons i {
    position: absolute;
    font-size: 28px;
    color: #f5c542;
    /* updated color */
    animation: floatIcon 12s infinite ease-in-out;
}

/* Pencil + Envelope stay as-is */
.floating-icons i:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icons i:nth-child(2) {
    top: 40%;
    left: 80%;
    animation-delay: 2s;
}

/* Other icons moved to sides only */
.floating-icons i:nth-child(3) {
    top: 70%;
    left: 5%;
    /* side left */
    animation-delay: 4s;
}

.floating-icons i:nth-child(4) {
    top: 25%;
    right: 5%;
    /* side right */
    animation-delay: 6s;
}

.floating-icons i:nth-child(5) {
    bottom: 10%;
    left: 7%;
    /* side left */
    animation-delay: 8s;
}

.floating-icons i:nth-child(6) {
    bottom: 20%;
    right: 7%;
    /* side right */
    animation-delay: 10s;
}

/* Floating animation */
@keyframes floatIcon {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-25px) rotate(15deg);
        opacity: 0.7;
    }

    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
}





/* ============================================================================================================================================================================================= */

/* ============================
   INFO SECTION
============================ */
.kortoba-info-section {
    padding: 100px 8%;
    background: #f8f9fc;
}

.section-title {
    text-align: center;
    font-size: 38px;
    margin-bottom: 80px;
    color: #111;
}

/* ROW */
.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 90px;
}

/* REVERSE DESKTOP */
.info-row.reverse {
    direction: rtl;
}

.info-row.reverse>* {
    direction: ltr;
}

/* IMAGE */
.info-image img {
    width: 100%;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

/* Bounce class triggers animation */
.bounce {
    animation: imgBounce 1.35s ease-out forwards;
}

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

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

    20% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-12px);
    }

    40% {
        transform: translateY(0);
    }

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

    60% {
        transform: translateY(0);
    }

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



/* CONTENT */
.info-content {
    max-width: 520px;
}

.info-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: #f5c542;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.info-content h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #111;
}

.info-content p {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 1024px) {
    .kortoba-info-section {
        padding: 80px 6%;
    }

    .info-row {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
        margin-bottom: 60px;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    /* FORCE IMAGE ON TOP */
    .info-row,
    .info-row.reverse {
        direction: ltr;
    }

    .info-content {
        max-width: 100%;
        margin: auto;
    }

    .info-icon {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }

    .info-content h3 {
        font-size: 24px;
    }

    .info-content p {
        font-size: 16px;
    }
}




/* ============================================================================================================================================================================================= */




/* ============================
   FORM SECTION
============================ */
.kortoba-form-section {
    padding: 100px 8%;
    background: #0b1224;
    color: #fff;
}

.form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* ============================
   INFO BOX (LEFT)
============================ */
.form-info h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.form-info p {
    font-size: 17px;
    opacity: 0.85;
    margin-bottom: 40px;
    line-height: 1.7;
}

.info-text a {
    display: inline-block;
    font-size: 16px;
    color: #f5c542;
    text-decoration: none;
    opacity: 0.9;
    transition: 0.3s;
}

.info-text a:hover {
    opacity: 1;
    text-decoration: underline;
}


.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    /* spacing between icon and text */
    margin-bottom: 25px;
}

.info-text {
    text-align: left;
    flex: 1;
    /* let text take available space */
}

.info-icon {
    width: 52px;
    height: 52px;
    background: rgba(245, 197, 66, 0.15);
    color: #f5c542;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.info-item span {
    display: block;
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.info-item strong {
    font-size: 16px;
    font-weight: 600;
}

.info-item2 {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 35px;
}

.info-item2 .info-icon {
    width: 52px;
    height: 52px;
    background: rgba(245, 197, 66, 0.15);
    color: #f5c542;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.info-item2 .info-text {
    text-align: left;
}

.info-item2 .info-label {
    display: block;
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 14px;
}

/* CITY BLOCK */
.city-block {
    margin-bottom: 18px;
}

.city-block strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #f5c542;
    margin-bottom: 6px;
}

.city-block p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.9;
}

.city-block .time {
    display: inline-block;
    margin-top: 6px;
    font-size: 14px;
    opacity: 0.85;
}

/* MOBILE */
@media (max-width: 768px) {
    .info-item2 {
        align-items: flex-start;
    }

    .city-block {
        margin-bottom: 16px;
    }
}

/* ============================
   FORM CARD (RIGHT)
============================ */
.form-card {
    background: #fff;
    color: #111;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.form-card h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 15px;
    outline: none;
}

.form-group input:focus {
    border-color: #f5c542;
}

/* SUBMIT */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: #f5c542;
    color: #111;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit i {
    margin-right: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 197, 66, 0.35);
}


.popup-qr {
    text-align: center;
    /* center content */
    margin-top: 20px;
}

#qrCodeContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #f5c542;
    border-radius: 12px;
    width: fit-content;   /* shrink to QR size */
    margin: auto;
    padding: 8px;         /* small padding so border doesn’t overlap */
}

#qrCodeContainer canvas {
    border-radius: 12px;  /* round the QR itself */
    display: block;
}

#qrDownload {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.9rem;
    /* slightly smaller font */
    color: #f5c542;
    text-decoration: none;
    font-weight: 500;
}

#qrDownload:hover {
    text-decoration: underline;
}


/* ============================
   RESPONSIVE
============================ */
@media (max-width: 1024px) {
    .kortoba-form-section {
        padding: 80px 6%;
    }

    .form-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .form-info {
        text-align: left;
        /* title & description centered */
    }

    .info-item {
        display: flex;
        gap: 20px;
        margin-bottom: 25px;
    }
}


@media (max-width: 480px) {
    .form-card {
        padding: 30px 22px;
    }

    .form-info h2 {
        font-size: 30px;
    }
}


/* Wrapper to position overlay */
.form-card-wrapper {
    position: relative;
}

/* Blur the form if already submitted */
.blurred {
    filter: brightness(0.7);
    pointer-events: none;
    /* Prevent interactions */
    user-select: none;
    transition: 0.3s;
}

/* Overlay message */
.overlay-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #0b1224;
    padding: 25px 35px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    font-size: 18px;
    font-weight: 600;
    color: #f5c542;
    text-align: center;
    z-index: 10;
}

/* Make sure overlay is responsive */
@media (max-width: 480px) {
    .overlay-message {
        padding: 20px 25px;
        font-size: 16px;
    }
}





/* ============================================================================================================================================================================================= */



/* ============================
   CARDS SECTION
============================ */
.kortoba-cards-section {
    padding: 100px 8%;
    background: #f8f9fc;
}

.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* CARD */
.positive-card {
    background: #fff;
    padding: 30px 25px 25px 25px;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.positive-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* ICON */
.card-icon {
    width: 50px;
    height: 50px;
    background: #f5c542;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #111;
    position: absolute;
    top: 20px;
    left: 20px;
}

/* TITLE & DESCRIPTION */
.positive-card h3 {
    margin-top: 70px;
    /* leave space for icon */
    margin-bottom: 15px;
    font-size: 22px;
    color: #111;
    line-height: 1.3;
}

.positive-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 1024px) {
    .cards-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .cards-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .positive-card h3 {
        margin-top: 60px;
    }
}



/* ============================================================================================================================================================================================= */


/* ============================
   FAQ SECTION
============================ */
.kortoba-faq-section {
    padding: 100px 8%;
    background: #fff;
}

.faq-wrapper {
    max-width: 1200px;
    margin: auto;
}

.faq-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
}

/* Flex layout desktop */
.faq-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* IMAGE ANIMATION */
.faq-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.faq-image img {
    width: 350px;
    border-radius: 20px;
    animation: lean 4s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes lean {
    0% {
        transform: rotate(-5deg);
    }

    25% {
        transform: rotate(5deg);
    }

    50% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(-5deg);
    }
}

/* FAQ LIST */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: #0b1224;
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f5c542;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    font-size: 16px;
    margin-top: 8px;
}

/* ============================
   FAQ ACTIVE STATE
============================ */
.faq-item.active .faq-answer {
    max-height: 500px;
    /* large enough for content */
    opacity: 1;
    color: #ffffff;

}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 1024px) {
    .faq-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-image img {
        max-width: 80%;
        margin: auto;
    }
}

@media (max-width: 768px) {
    .faq-title {
        font-size: 32px;
        margin-bottom: 50px;
    }
}
