/* Reset & Basic Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f2f2f2;
    color: #333;
    overflow-x: hidden;
}

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

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
}

.tagline {
    font-size: 13px;
    color: #333;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 400;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-btn {
    background: #eee;
    border: 1px solid #ddd;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
}

.burger-menu {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 5px;
}

.burger-menu span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #555;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    /* Simulating the ruins background */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../imgs/background.jpg');
    background-size: cover;
    background-position: center;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-content h1 {
    font-size: 2.2rem;
    max-width: 900px;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-btn {
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 12px 50px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.cta-btn:hover {
    background-color: #cc0000;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 25px;
    padding-bottom: 5px;
    margin-top: 20px;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 500;
    color: #222;
}

.section-header span {
    color: #666;
}

/* Features */
.feature-item {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    align-items: flex-start;
}

.feature-item img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
}

.feature-text h3 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.feature-text p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.card {
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.card span {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 100%;
    padding: 8px;
    font-size: 13px;
    text-align: center;
    backdrop-filter: blur(2px);
}

/* Policies */
.text-block p {
    font-size: 13px;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
}

.text-block strong {
    font-weight: 700;
}

.text-block ul {
    background: #fff;
    padding: 16px 20px 16px 40px;
    margin: 16px 0;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.text-block ul li {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 8px;
}

.text-block ul li:last-child {
    margin-bottom: 0;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.t-card {
    background: #fff;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.t-card h3 {
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 700;
}

.stars {
    color: #f4c150;
    margin-bottom: 15px;
    font-size: 12px;
}

.t-card p {
    font-size: 12px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.author {
    font-weight: 700;
    font-size: 12px;
    color: #0044cc;
}

/* Footer */
footer {
    background-color: #f4f6f8;
    padding: 50px 20px;
    margin-top: 50px;
    font-size: 12px;
    color: #444;
    border-top: 1px solid #ddd;
}

footer h3 {
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 700;
}

footer p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-links {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
}

.footer-links a {
    color: #0044cc;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-logo {
    margin-top: 40px;
    opacity: 0.8;
}

/* Logo sizing */
.logo img,
.menu-header img,
.footer-logo img {
    height: 40px;
}

/* Video Cards with background images */
.card-history {
    background-image: url('/imgs/history.jpeg');
}

.card-art {
    background-image: url('/imgs/art.jpeg');
}

.card-human {
    background-image: url('/imgs/human.jpeg');
}

.card-space {
    background-image: url('/imgs/space.jpeg');
}

.card-archaeology {
    background-image: url('/imgs/archaeology.jpeg');
}

.card-animals {
    background-image: url('/imgs/animals.jpeg');
}

/* Section header with extra top spacing */
.section-header--spaced {
    margin-top: 40px;
}

/* Success message icon */
.success-icon {
    font-size: 50px;
    color: #4caf50;
    margin-bottom: 20px;
}

/* Secondary submit button (gray) */
.submit-btn--secondary {
    background-color: #555;
    margin-top: 20px;
}

.submit-btn--secondary:hover {
    background-color: #444;
}

/* --- MODAL STYLES --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #050505;
    color: #fff;
    padding: 50px 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.close-modal:hover {
    background: #fff;
    color: #000;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 700;
    color: #aaa;
}

.form-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    padding: 8px 0;
    color: white;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

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

/* Phone input with country code */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #444;
    transition: border-color 0.3s;
}

.phone-input-wrapper:focus-within {
    border-bottom-color: #fff;
}

.phone-input-wrapper .country-code {
    color: #fff;
    font-size: 15px;
    padding: 8px 10px 8px 0;
    font-weight: 500;
    border-right: 1px solid #444;
    margin-right: 10px;
}

.phone-input-wrapper input {
    border-bottom: none;
    flex: 1;
}

.phone-input-wrapper input:focus {
    border-bottom: none;
}

.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 6px;
    display: block;
    min-height: 16px;
}

.submit-btn {
    width: 100%;
    background-color: #d32f2f;
    color: white;
    padding: 14px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: #b71c1c;
}

/* Success Message Styles */
.success-message {
    display: none;
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.5s;
}

.success-message.show {
    display: block;
}

.success-message h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.success-message p {
    color: #ccc;
    font-size: 16px;
    margin-bottom: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* --- SIDE MENU STYLES --- */
.side-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: none;
    justify-content: flex-end;
}

.side-menu-overlay.active {
    display: flex;
}

.menu-content {
    background-color: white;
    width: 320px;
    height: 100%;
    padding: 20px 30px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.menu-header .close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #888;
    cursor: pointer;
}

.menu-content ul {
    list-style: none;
}

.menu-content ul li {
    margin-bottom: 25px;
}

.menu-content ul li a {
    text-decoration: none;
    color: #444;
    font-size: 15px;
    font-weight: 300;
    transition: color 0.2s;
}

.menu-content ul li a:hover {
    color: #000;
}

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

@media (max-width: 600px) {
    header {
        padding: 10px 20px;
    }

    .header-controls {
        gap: 10px;
    }

    .logo img,
    .menu-header img,
    .footer-logo img {
        height: 28px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .feature-item {
        flex-direction: column;
    }

    .feature-item img {
        width: 100%;
        height: 150px;
    }

    .video-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .tagline {
        display: none;
    }
}