/* styles.css - COMPLETE FINAL VERSION */

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

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: #ffffff;
    background-color: #000000;
    overflow-x: hidden;
}

/* ====================== HEADER ====================== */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: transparent;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    background-color: #000000;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: #333333;
}

/* ====================== HOME HERO ====================== */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    z-index: 5;
    text-align: left;
}

.overlay-text h1 {
    font-size: 48px;
    line-height: 1.2;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-button {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #333333;
}

.social-icons {
    position: absolute;
    bottom: 20px;
    left: 40px;
    display: flex;
    z-index: 5;
}

.social-icons a {
    color: #ffffff;
    font-size: 24px;
    margin-right: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #cccccc;
}

/* ====================== INNER PAGES ====================== */
body:not(.home) {
    background: linear-gradient(to bottom, #2a0b4d, #000000);
}

body:not(.home) .main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 10;
}

body:not(.home) .services-hero,
body:not(.home) .about-hero {
    padding-top: 100px;
    position: relative;
    z-index: 2;
}

/* ====================== SERVICES PAGE ====================== */
.services-hero {
    padding: 140px 20px 80px;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(42,11,77,0.4));
    min-height: 60vh;
}

.services-header-content h1 {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.subtitle {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 1.5rem;
    opacity: 0.9;
    letter-spacing: 1px;
}

.intro-text {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.services-grid {
    background: #000000;
    padding: 80px 20px 100px;
    max-width: 1600px;
    margin: 0 auto;
}

.service-category {
    margin-bottom: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-category h2 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.service-category h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #8a4fff, #ff6bff);
    border-radius: 2px;
}

/* Video Grid - 2 columns on desktop, 1 column on mobile */
.video-collage {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.video-collage:has(> *:only-child) {
    grid-template-columns: minmax(320px, 700px);
    justify-content: center;
}

.video-enlarge-wrapper {
    position: relative;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-enlarge-wrapper video {
    position: relative !important;     /* Reset absolute positioning */
    top: auto !important;
    left: auto !important;
    transform: none !important;
    min-width: unset !important;
    min-height: unset !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.video-enlarge-wrapper:hover {
    transform: scale(1.04);
    box-shadow: 0 20px 50px rgba(138, 79, 255, 0.3);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.98);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
}

.video-modal video {
    width: 100%;
    max-height: 90vh;
    border-radius: 16px;
    background: #000;
}

.video-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 40px;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

/* ====================== WHY CHOOSE SECTION ====================== */
.why-choose-section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: start;
}

.why-content {
    flex: 2;
    min-width: 300px;
}

.why-content h2,
.trusted-process h3 {
    font-size: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.benefit h3 {
    font-size: 22px;
    margin: 30px 0 10px;
    color: #bbbbff;
}

.benefit p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

.trusted-process {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.trusted-by .logos {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

.trusted-by img {
    height: 60px;
    object-fit: contain;
    opacity: 0.8;
}

.process ol {
    padding-left: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.process li {
    margin-bottom: 15px;
}

/* ====================== CONTACT FORM ====================== */
.contact-section {
    padding: 80px 40px;
    text-align: center;
}

.contact-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: #222222;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaaaaa;
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M1 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #333333;
}

/* ====================== ABOUT PAGE ====================== */
.about-hero {
    padding: 120px 40px 60px;
    text-align: center;
}

.about-header-content h1 {
    font-size: 54px;
    margin-bottom: 10px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.bio-text {
    flex: 2;
    min-width: 300px;
    font-size: 18px;
    line-height: 1.7;
}

.bio-text p {
    margin-bottom: 25px;
}

.highlight {
    font-size: 20px;
    font-weight: bold;
    color: #bbbbff;
}

.team-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.about-version {
    text-align: center;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.benefit-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

/* ====================== FOOTER - FULLY INCLUDED ====================== */
.main-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 40px 20px 20px;
    font-size: 14px;
    border-top: 1px solid #333333;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin: 8px 0;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #cccccc;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-social-icons a {
    font-size: 24px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer-social-icons a:hover {
    color: #cccccc;
}

.rights-section p {
    margin: 10px 0;
    font-size: 13px;
    color: #888888;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #222222;
}

.back-to-top {
    color: #888888;
    text-decoration: none;
    font-size: 14px;
}

.back-to-top:hover {
    color: #ffffff;
}

/* ====================== PRIVACY & TERMS PAGE STYLES ====================== */
.legal-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.8;
    font-size: 16px;
}

.legal-content h1 {
    text-align: center;
    margin-bottom: 40px;
}

.legal-content h2 {
    margin-top: 50px;
    color: #bbbbff;
}

.legal-content p, .legal-content li {
    margin-bottom: 15px;
}

.legal-content ul {
    padding-left: 25px;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1024px) {
    .services-hero,
    .about-hero {
        padding-top: 120px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px 20px;
    }

    .nav-menu {
        margin-top: 10px;
    }

    .nav-menu li {
        margin-left: 0;
        margin-right: 10px;
    }

    .overlay-text h1 {
        font-size: 32px;
    }

    .contact-button {
        padding: 12px 24px;
        font-size: 16px;
    }

    .social-icons {
        left: 20px;
        bottom: 10px;
    }

    .about-version .benefit-list {
        grid-template-columns: 1fr;           /* One per row */
        gap: 20px;
        padding: 0 10px;
    }
    
    .about-version .benefit {
        text-align: center;
        padding: 25px 20px;
        background: rgba(20, 20, 40, 0.4);
        border-radius: 12px;
        margin: 0 auto;
        max-width: 420px;                     /* Prevents stretching too wide */
    }

    /* Services - Mobile: 1 column */
    .video-collage {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .services-hero {
        padding: 110px 15px 60px;
    }

    .service-category {
        margin-bottom: 100px;
    }

    .video-enlarge-wrapper:hover {
        transform: scale(1.02);
    }

    .why-choose-section {
        padding: 60px 20px;
        flex-direction: column;
        gap: 40px;
    }

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

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

    .benefit {
        text-align: center;
        padding: 20px 15px;
        background: rgba(20, 20, 40, 0.4);
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .about-version .benefit-list {
        gap: 18px;
    }
    
    .about-version .benefit {
        padding: 22px 15px;
    }

    .video-collage {
        gap: 1.2rem;
    }
}