/* Base Reset */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Premium Color Palette */
    --primary-color: #0f172a;
    /* Slate 900 - Dark Corporate */
    --accent-blue: #0ea5e9;
    /* Sky 500 - Vibrant Blue */
    --accent-green: #10b981;
    /* Emerald 500 - Safety Green */
    --accent-teal: #14b8a6;
    /* Teal 500 */
    --accent-orange: #f59e0b;
    /* Amber 500 - Warning/Risk */

    --text-dark: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-light: #f8fafc;
    /* Slate 50 */

    --bg-light: #f8fafc;
    --bg-white: #ffffff;

    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
    background-color: #1e293b;
    /* Slightly lighter slate */
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(15, 23, 42, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #1e293b;
    background-image: url('https://images.unsplash.com/photo-1565008447742-97f6f38c985c?q=80&w=2070&auto=format&fit=crop');
    /* Muted Industrial */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding-top: 60px;
    /* Offset for navbar */
    animation: fadeUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtext {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Visual Feature Sections */
.feature-sections {
    background-color: var(--bg-white);
}

.visual-section {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 100px 24px;
}

.visual-section.reverse {
    flex-direction: row-reverse;
    background-color: #f8fafc;
    /* Alternating bg */
}

.visual-content {
    flex: 1;
}

.visual-image {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.visual-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.visual-image:hover img {
    transform: scale(1.03);
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.bg-blue-soft {
    background-color: rgba(14, 165, 233, 0.1);
}

.text-blue {
    color: var(--accent-blue);
}

.bg-green-soft {
    background-color: rgba(16, 185, 129, 0.1);
}

.text-green {
    color: var(--accent-green);
}

.bg-teal-soft {
    background-color: rgba(20, 184, 166, 0.1);
}

.text-teal {
    color: var(--accent-teal);
}

.bg-orange-soft {
    background-color: rgba(245, 158, 11, 0.1);
}

.text-orange {
    color: var(--accent-orange);
}


.visual-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.visual-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}



/* Company Information Section */
.company-section {
    padding: 100px 0;
    background-color: white;
}

.company-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.company-text {
    flex: 1;
}

.company-text h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.company-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.company-image {
    flex: 1;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    position: relative;
}

.company-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.company-image:hover img {
    transform: scale(1.05);
}

.company-values {
    display: flex;
    gap: 24px;
    margin-top: 32px;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.value-item i {
    font-size: 1.5rem;
    color: var(--accent-blue);
    background: rgba(14, 165, 233, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.value-item span {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Feature Cards Grid */
.grid-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    margin: 20px auto 0;
    border-radius: 2px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.info-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(14, 165, 233, 0.3);
}

.info-card i {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 24px;
}

.info-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.info-card p {
    color: var(--text-muted);
}

/* Trust Section */
.trust-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    color: white;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.trust-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.trust-item p {
    color: #94a3b8;
    font-size: 1rem;
}

/* Footer */
footer {
    background-color: #0f172a;
    /* Darkest slate */
    color: #94a3b8;
    padding: 60px 0 40px;
    border-top: 1px solid #1e293b;
}

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

.footer-left strong {
    color: white;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-right p {
    font-size: 0.9rem;
}

/* --- LOGIN MODAL PREMIUM (2-Column) --- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.25s ease-out;
    padding: 20px;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 440px;
    /* Fallback */
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    /* Important for 2-column image */
}

.two-column-modal {
    max-width: 900px;
    display: flex;
    height: 600px;
    /* Fixed height for consistency */
}

/* Left Side: Image */
.modal-image-side {
    flex: 1;
    background-color: #0f172a;
    /* Static fallback */
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    overflow: hidden;
    /* Contain the slider */
}

.modal-slider-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.6;
    /* Dim images so text is readable */
}

.modal-slider-track {
    display: flex;
    height: 100%;
    width: calc(450px * 8);
    /* Approx width of half modal * 8 slides */
    animation: modalScroll 40s linear infinite;
}

.modal-slide {
    width: 450px;
    height: 100%;
    flex-shrink: 0;
}

.modal-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes modalScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-450px * 4));
        /* Move half the track (4 slides) */
    }
}

.modal-image-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
    /* Above slider, below text */
}

.modal-overlay-text {
    position: relative;
    z-index: 3;
    /* Top most */
    color: white;
}

.modal-overlay-text h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-overlay-text p {
    font-size: 1.1rem;
    opacity: 1;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Right Side: Form */
.modal-form-side {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 1.75rem;
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.close-btn:hover {
    color: var(--primary-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-logo {
    height: 48px;
    margin-bottom: 16px;
}

.modal-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
    background-color: #f8fafc;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-toggle {
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--primary-color) !important;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.error-box {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.error-box::before {
    content: '\f071';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

@keyframes scaleUp {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .navbar-content {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .visual-section,
    .visual-section.reverse,
    .company-content {
        flex-direction: column;
        padding: 60px 24px;
        text-align: center;
    }

    .visual-image,
    .company-image {
        width: 100%;
        margin-top: 30px;
        height: 300px;
    }

    .company-values {
        justify-content: center;
    }

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

    .icon-box {
        margin: 0 auto 24px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    /* Modal Mobile */
    .two-column-modal {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-image-side {
        display: none;
        /* Hide image on mobile to save space, OR make it header */
    }

    .modal-form-side {
        padding: 32px 24px;
    }
}

/* --- EXPLORE MODAL (Media Rich) --- */
.media-modal {
    max-width: 900px;
    width: 90%;
    margin: 20px;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    /* Prevent it from being taller than screen */
}

.media-modal-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 24px;
    text-align: center;
    flex-shrink: 0;
    /* Keep header visible */
}

.media-modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.media-modal-header p {
    color: #cbd5e1;
    font-size: 1rem;
    font-weight: 300;
}

.media-modal-body {
    padding: 24px;
    background-color: #f8fafc;
    overflow-y: auto;
    /* Scroll info if too long */
    flex: 1;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-description {
    margin-bottom: 24px;
    text-align: center;
    color: #475569;
}

.media-description h3 {
    color: #0f172a;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1.25rem;
}

.media-description p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.media-grid img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.media-grid img:hover {
    transform: scale(1.05);
}

/* --- CAROUSEL STYLES --- */
.carousel-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    background-color: #000;
}

.carousel-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}