/* CSS Variables */
:root {
    --primary-navy: #0D2C54;
    --secondary-slate: #6C7A89;
    --accent-gold: #FFB700;
    --neutral-off-white: #F8F9FA;
    --neutral-white: #FFFFFF;
    --neutral-dark: #212529;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--neutral-dark);
    overflow-x: hidden;
}

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(13, 44, 84, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sticky-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sticky-header .logo img {
    height: 36px;
}

.sticky-header .nav-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-switcher {
    position: relative;
    margin: 0 10px;
}

.language-dropdown {
    position: relative;
    cursor: pointer;
}

.language-current {
    color: var(--accent-gold);
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-current::after {
    content: '▼';
    font-size: 10px;
    transition: transform 0.3s ease;
}

.language-dropdown:hover .language-current::after {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
}

.language-dropdown:hover .language-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    color: #333;
    font-size: 14px;
    font-family: var(--font-body);
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.language-option:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.language-option:last-child {
    border-bottom: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.language-option:hover {
    background-color: #f8f9fa;
}

.language-option.active {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
    font-weight: 600;
}

.btn-cta {
    background: var(--accent-gold);
    color: var(--primary-navy);
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover {
    background: #ffd24d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 183, 0, 0.3);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: var(--primary-navy);
    color: var(--neutral-white);
    padding: 140px 20px 80px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.network-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 183, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(108, 122, 137, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.3rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-style: italic;
    position: relative;
}

.hero-text h1::before {
    content: '"';
    position: absolute;
    left: -0.5em;
    top: -0.2em;
    font-size: 1.5em;
    color: var(--accent-gold);
    font-style: normal;
}

.hero-text .quote-author {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 183, 0, 0.3);
    color: var(--accent-gold);
    font-weight: 600;
    font-style: normal;
}

.hero-text .invitation {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--neutral-white);
    font-weight: 400;
}

.hero-text .invitation strong {
    color: var(--accent-gold);
    font-weight: 700;
}

/* Mini Form */
.mini-form {
    background: var(--neutral-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mini-form h3 {
    font-family: var(--font-heading);
    color: var(--primary-navy);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-group label {
    display: none;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* Make placeholder option in select appear gray like input placeholders */
.form-group select option[value=""] {
    color: #999;
}

.form-group select:invalid {
    color: #999;
}

.form-group select:valid {
    color: #333;
}

.btn-submit {
    width: 100%;
    background: var(--accent-gold);
    color: var(--primary-navy);
    padding: 0.85rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #ffd24d;
    transform: translateY(-1px);
}

.form-note {
    font-size: 0.8rem;
    color: var(--secondary-slate);
    margin-top: 1rem;
    text-align: center;
}

/* Section Base */
section {
    padding: 80px 20px;
}

h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-navy);
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--secondary-slate);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Social Proof */
.social-proof {
    background: var(--neutral-off-white);
    text-align: center;
}

.metrics {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.metric-item {
    text-align: center;
}

.metric-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
}

.metric-label {
    font-size: 0.95rem;
    color: var(--secondary-slate);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Comparison Table */
.comparison {
    background: var(--neutral-white);
}

.comparison-table {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-header {
    background: var(--primary-navy);
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: center;
}

.comparison-header.highlight-col {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

.comparison-cell {
    padding: 1.2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
}

.comparison-cell:not(:last-child) {
    border-right: 1px solid #e0e0e0;
}

.comparison-cell:first-child {
    font-weight: 600;
    color: var(--primary-navy);
}

.check-icon {
    color: #28a745;
    font-size: 1.5rem;
}

.cross-icon {
    color: #dc3545;
    font-size: 1.5rem;
}

.highlight-col {
    background: rgba(255, 183, 0, 0.05);
}

/* Product Tour Cards */
.product-tour {
    background: var(--neutral-off-white);
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.tour-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-5px);
}

.tour-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-navy);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.tour-card p {
    color: var(--secondary-slate);
    line-height: 1.7;
}

.tour-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.micro-cta {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.micro-cta:hover {
    color: var(--primary-navy);
}

/* Use Cases */
.use-cases {
    background: var(--neutral-white);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.use-case-card {
    background: var(--neutral-off-white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-gold);
}

.use-case-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-navy);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.use-case-card p {
    color: var(--secondary-slate);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.outcome {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--primary-navy);
    display: inline-block;
}

/* Workflows */
.workflows {
    background: var(--neutral-off-white);
}

.workflow {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.workflow:last-child {
    margin-bottom: 0;
}

.workflow h3 {
    font-family: var(--font-heading);
    color: var(--primary-navy);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.workflow-step {
    display: flex;
    align-items: start;
    gap: 1rem;
}

.step-number {
    background: var(--accent-gold);
    color: var(--primary-navy);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    color: var(--secondary-slate);
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    background: var(--primary-navy);
    color: white;
}

.testimonials h2 {
    color: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-gold);
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.testimonial-role {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.testimonial-metric {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--accent-gold);
    font-weight: 600;
}

/* Security */
.security {
    background: var(--neutral-white);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.security-item {
    text-align: center;
    padding: 2rem;
}

.security-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.security-item h3 {
    font-family: var(--font-heading);
    color: var(--primary-navy);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.security-item p {
    color: var(--secondary-slate);
    line-height: 1.6;
}

/* FAQ */
.faq {
    background: var(--neutral-off-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--neutral-off-white);
}

.faq-toggle {
    font-size: 1.2rem;
    color: var(--accent-gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--secondary-slate);
    line-height: 1.7;
}

/* Lead Magnet */
.lead-magnet {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #1a365d 100%);
    color: white;
    text-align: center;
}

.lead-magnet h2 {
    color: white;
}

.magnet-box {
    max-width: 600px;
    margin: 0 auto 3rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 183, 0, 0.3);
}

.magnet-box h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.magnet-box p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.magnet-list {
    text-align: left;
    margin: 1.5rem 0;
    display: inline-block;
}

.magnet-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.magnet-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: 700;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-navy);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #ffd24d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 183, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    border: 2px solid white;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-navy);
}

/* Footer */
.footer {
    background: var(--neutral-dark);
    color: white;
    padding: 3rem 20px 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--neutral-off-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-contact a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--secondary-slate);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-slate);
    background: none;
    border: none;
    padding: 0.5rem;
}

.modal-close:hover {
    color: var(--primary-navy);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 120px 20px 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    .hero-text h1::before {
        left: -0.3em;
        font-size: 1.3em;
    }

    .hero-text .invitation {
        font-size: 1.1rem;
    }

    /* Comparison Table Mobile Card View */
    .comparison-table {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .comparison-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        background: white;
        margin-bottom: 1rem;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        border: 1px solid #e0e0e0;
        overflow: hidden;
    }

    .comparison-header {
        display: none;
    }

    /* Feature Name - Full Width */
    .comparison-cell:first-child {
        grid-column: 1 / -1;
        background: var(--neutral-off-white);
        border-bottom: 1px solid #e0e0e0;
        font-size: 1rem;
        color: var(--primary-navy);
        justify-content: center;
        font-weight: 700;
        padding: 1rem;
        border-right: none !important;
    }

    /* ChatGPT & Wisanna Cells */
    .comparison-cell:nth-child(2),
    .comparison-cell:nth-child(3) {
        display: flex;
        flex-direction: column;
        justify-content: start;
        text-align: center;
        padding: 1.2rem 0.8rem;
        font-size: 0.9rem;
        border-bottom: none;
        height: 100%;
    }

    /* Vertical divider between ChatGPT and Wisanna */
    .comparison-cell:nth-child(2) {
        border-right: 1px solid #e0e0e0 !important;
    }

    /* Labels */
    .comparison-cell:nth-child(2)::before {
        content: "ChatGPT";
        display: block;
        font-size: 0.7rem;
        text-transform: uppercase;
        color: var(--secondary-slate);
        margin-bottom: 0.5rem;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .comparison-cell:nth-child(3)::before {
        content: "Wisanna";
        display: block;
        font-size: 0.7rem;
        text-transform: uppercase;
        color: #d49700;
        margin-bottom: 0.5rem;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .sticky-header .nav-group {
        gap: 0.8rem;
    }

    .btn-cta {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
    }
}

/* ============================================
   IMAGE MODAL WITH LOADING STATE
   ============================================ */

/* Image Modal Container */
.image-modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
}

/* Image Modal Content */
.image-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 90vw;
    max-height: 85vh;
}

/* Modal Image */
.image-modal-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: #fff;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal-img.loaded {
    opacity: 1;
}

/* Loading Spinner */
.image-modal-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.image-modal-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Spinner Animation */
.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 183, 0, 0.2);
    border-top: 4px solid var(--accent-gold, #FFB700);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-inline {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(13, 44, 84, 0.3);
    border-top: 2px solid var(--primary-navy);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Loading Text */
.loading-text {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    font-family: var(--font-body, 'Inter', sans-serif);
}

/* Close Button */
.image-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    line-height: 1;
}

.image-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

/* Navigation Arrows */
.image-modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.image-modal-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.image-modal-arrow.left {
    left: 2rem;
}

.image-modal-arrow.right {
    right: 2rem;
}

/* Dots Navigation */
.image-modal-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.5rem;
}

.image-modal-dots .dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.image-modal-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.image-modal-dots .dot.active {
    background: var(--accent-gold, #FFB700);
    transform: scale(1.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .image-modal-img {
        max-width: 95vw;
        max-height: 70vh;
        border-radius: 8px;
    }

    .image-modal-close {
        top: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 2rem;
    }

    .image-modal-arrow {
        font-size: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .image-modal-arrow.left {
        left: 0.5rem;
    }

    .image-modal-arrow.right {
        right: 0.5rem;
    }

    .spinner {
        width: 50px;
        height: 50px;
    }

    .loading-text {
        font-size: 0.85rem;
    }

    .image-modal-dots {
        margin-top: 1rem;
    }

    .image-modal-dots .dot {
        width: 0.6rem;
        height: 0.6rem;
    }
}

/* Keyboard Focus Styles */
.image-modal-close:focus,
.image-modal-arrow:focus {
    outline: 2px solid var(--accent-gold, #FFB700);
    outline-offset: 2px;
}

/* ========================================
   RTL (Hebrew) Language Support
   ======================================== */

/* Text Alignment */
[dir="rtl"] .hero-text h1::before {
    left: auto;
    right: -0.5em;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] p {
    text-align: right;
}

[dir="rtl"] p.centered,
[dir="rtl"] h2.centered,
[dir="rtl"] .div.centered {
    text-align: center;
}

[dir="rtl"] .section-subtitle,
[dir="rtl"] .quote-author,
[dir="rtl"] .invitation {
    text-align: right;
}

[dir="rtl"] div.workflow,
[dir="rtl"] div.step-text {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .workflows .workflow {
    direction: ltr;
}

/* Lists */
[dir="rtl"] ul,
[dir="rtl"] ol {
    padding-right: 2rem;
    padding-left: 0;
    text-align: right;
}

[dir="rtl"] .magnet-list {
    padding-right: 1.5rem;
    padding-left: 0;
}

/* Comparison Table */
[dir="rtl"] .comparison-table {
    direction: rtl;
}

[dir="rtl"] .comparison-cell,
[dir="rtl"] .comparison-header {
    text-align: center;
}

/* Tour Cards & Use Case Cards */
[dir="rtl"] .tour-card h3,
[dir="rtl"] .tour-card p,
[dir="rtl"] .use-case-card h3,
[dir="rtl"] .use-case-card p {
    text-align: right;
}

/* Workflow Steps */
[dir="rtl"] .workflow-step {
    flex-direction: row-reverse;
}

[dir="rtl"] .step-number {
    margin-left: 1rem;
    margin-right: 0;
}

[dir="rtl"] .step-text {
    text-align: right;
}

/* Security Grid */
[dir="rtl"] .security-item h3,
[dir="rtl"] .security-item p {
    text-align: center;
}

/* FAQ */
[dir="rtl"] .faq-question {
    text-align: right;
}

[dir="rtl"] .faq-answer-content {
    text-align: right;
}

/* Testimonials */
[dir="rtl"] .testimonial-quote {
    text-align: right;
}

[dir="rtl"] .testimonial-author,
[dir="rtl"] .testimonial-metric {
    text-align: right;
}

/* Form Elements */
[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select,
[dir="rtl"] .form-group textarea {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .form-group label {
    text-align: right;
}

/* Buttons */
[dir="rtl"] .btn-submit,
[dir="rtl"] .btn-primary,
[dir="rtl"] .btn-secondary {
    direction: rtl;
}

/* Header & Navigation */
[dir="rtl"] .sticky-header .container {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-group {
    flex-direction: row-reverse;
}

/* Hero Section */
[dir="rtl"] .hero-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-text h1,
[dir="rtl"] .hero-text p {
    text-align: right;
}

/* Metrics */
[dir="rtl"] .metrics {
    direction: rtl;
}

[dir="rtl"] .metric-label {
    text-align: center;
}

/* Footer */
[dir="rtl"] .footer-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-links {
    direction: rtl;
}

[dir="rtl"] .footer-bottom p {
    text-align: center;
}

/* Modal */
[dir="rtl"] .modal-content {
    direction: rtl;
}

[dir="rtl"] .modal-content h2,
[dir="rtl"] .modal-content p {
    text-align: right;
}

[dir="rtl"] .modal-close {
    left: 1.5rem;
    right: auto;
}

/* Image Modal RTL Adjustments */
[dir="rtl"] .image-modal-close {
    left: 2rem;
    right: auto;
}

[dir="rtl"] .image-modal-arrow.left {
    left: auto;
    right: 2rem;
}

[dir="rtl"] .image-modal-arrow.right {
    right: auto;
    left: 2rem;
}

/* Language Dropdown RTL */
[dir="rtl"] .language-options {
    left: auto;
    right: 0;
}

[dir="rtl"] .language-option {
    text-align: right;
}

/* Mobile RTL Adjustments */
@media (max-width: 768px) {
    [dir="rtl"] .image-modal-close {
        left: 1rem;
        right: auto;
    }

    [dir="rtl"] .image-modal-arrow.left {
        left: auto;
        right: 0.5rem;
    }

    [dir="rtl"] .image-modal-arrow.right {
        right: auto;
        left: 0.5rem;
    }

    [dir="rtl"] .hero-content {
        flex-direction: column;
    }

    [dir="rtl"] .workflow-step {
        flex-direction: row-reverse;
    }

    [dir="rtl"] .step-number {
        margin-left: 0.75rem;
        margin-right: 0;
    }

    /* RTL Comparison Table Mobile - adjust border for right-to-left */
    [dir="rtl"] .comparison-cell:nth-child(2) {
        border-right: none !important;
        border-left: 1px solid #e0e0e0 !important;
    }
}