/* --- Global Styles & Dark Gradient Theme Base --- */
:root {
    --primary-blue: #3f51b5; 
    --accent-purple: #bb86fc; 
    --text-light: #e0e0ff;
    --bg-black: #08080c; 
    --nav-height: 70px; 
    --section-max-width: 1200px; 
    --coverflow-scale: 1.55; 
    --glow-color: rgba(187, 134, 252, 0.7); 
}

html {
    scroll-behavior: smooth; 
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-light);
    max-width: 100vw; 
    overflow-x: hidden; 
    
    /* Enhanced Background Gradient */
    background: linear-gradient(135deg, #0d0c1d 0%, #1a237e 30%, #4527a0 70%, #0d0c1d 100%);
    background-attachment: fixed; 
    background-size: 200% 200%; 
}

h1, h2, h3 {
    font-weight: 800;
}

section {
    padding: calc(var(--nav-height) + 60px) 5vw 80px 5vw; 
    text-align: center;
    position: relative; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: clamp(2em, 3.5vw, 3em);
    margin-bottom: 40px;
    color: white;
    text-shadow: 0 0 10px rgba(187, 134, 252, 0.5); 
}

/* Fix for company text bolding: ensures standard text elements behave normally */
.company-content p {
    font-weight: 400; 
    line-height: 1.6;
    max-width: 900px;
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    z-index: 1000;
    height: var(--nav-height); 
    left: 0;
    width: 100%;
    max-width: none;
    background-color: rgba(18, 18, 30, 0.2); 
    backdrop-filter: blur(12px); 
    transition: background-color 0.4s, box-shadow 0.4s;
    border-bottom: 1px solid rgba(187, 134, 252, 0.1);
    display: flex;
    justify-content: center; 
    align-items: center;
}

.navbar-content {
    width: 100%;
    max-width: 1400px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; 
}

.logo-group {
    display: flex;
    align-items: center;
}

.logo-mask {
    height: 55px; 
    margin-right: 10px; 
}

.logo-text {
    height: 35px; 
    filter: drop-shadow(0 0 5px rgba(187, 134, 252, 0.3));
}

.navbar.scrolled {
    background-color: rgba(18, 18, 30, 0.9); 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent-purple);
    font-size: 1.5em;
    cursor: pointer;
    padding: 15px; 
    flex-shrink: 0; 
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: flex-end; 
    flex-wrap: nowrap; 
}

.nav-links li {
    margin-left: 35px; 
    position: relative;
    white-space: nowrap; 
}

.nav-links li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600; 
    padding: 10px 0;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--accent-purple); 
}

/* --- Login Button Styling --- */
.login-button {
    text-decoration: none;
    font-weight: 700;
    color: var(--bg-black); 
    background-color: var(--accent-purple);
    padding: 8px 18px;
    border-radius: 20px; 
    margin-left: 20px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 10px rgba(187, 134, 252, 0.4); 
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.login-button:hover {
    color: white; 
    background-color: #d1b4ff; 
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--accent-purple), 0 0 40px rgba(187, 134, 252, 0.8);
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2); 
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.login-button:hover::before {
    left: 100%; 
}


/* --- Hero Section (Video Visibility Update) --- */
.hero-section {
    min-height: 100vh; 
    padding: 0; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    position: relative;
    background: var(--bg-black); 
    flex-direction: column; 
}

#bgVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100vw;
    min-height: 100vh;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.5) contrast(1.05) grayscale(0.1); 
}

.hero-content {
    z-index: 10;
    margin-top: 0;
    padding: 40px 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(187, 134, 252, 0.3); 
    box-shadow: 0 0 40px rgba(187, 134, 252, 0.3), 0 8px 30px rgba(0, 0, 0, 0.8);
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2.5em, 5vw, 6em); 
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent-purple); 
    margin-bottom: 10px;
}

.hero-content p {
    font-size: clamp(1em, 1.8vw, 1.8em); 
    font-weight: 400;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Services Card (Grid and Hover) --- */
.service-item {
    background: rgba(187, 134, 252, 0.05);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(187, 134, 252, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    text-align: left; 
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(187, 134, 252, 0.25); 
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: var(--section-max-width);
    width: 100%;
    margin: 0 auto;
}

/* --- COVERFLOW CAROUSEL SECTION (#features) --- */
.coverflow-section {
    background-color: #1a1a2e; 
    padding-top: 100px;
    padding-bottom: 100px;
}

.coverflow-wrapper {
    position: relative;
    max-width: 1000px; 
    width: 100%;
    margin: 40px auto;
}

.coverflow-track {
    display: flex;
    width: 100%;
    overflow: hidden; 
    cursor: grab;
    justify-content: center;
    align-items: center;
    height: 450px; 
    perspective: 1200px; 
    position: relative;
}

.coverflow-slide {
    position: absolute; 
    width: 320px; 
    height: 250px;
    border-radius: 15px;
    transition: transform 0.5s ease-in-out, opacity 0.5s, box-shadow 0.5s;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    background-color: #1a1a2e; 
    border: 3px solid rgba(187, 134, 252, 0.15); 
    overflow: hidden; 
}

/* Center slide glow effect */
.coverflow-slide.is-active {
    box-shadow: 
        0 0 10px var(--glow-color),
        0 0 30px var(--glow-color),
        0 15px 50px rgba(0, 0, 0, 0.8);
    border-color: var(--accent-purple);
}

.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 600;
    padding-bottom: 50px; 
}

.coverflow-slide.slide-1 .slide-image { background-color: #38385a; }
.coverflow-slide.slide-2 .slide-image { background-color: #5a3838; }
.coverflow-slide.slide-3 .slide-image { background-color: #385a38; }
.coverflow-slide.slide-4 .slide-image { background-color: #5a5a38; }


.coverflow-caption {
    position: relative; 
    background-color: rgba(187, 134, 252, 0.9); 
    color: var(--bg-black);
    padding: 10px 15px;
    width: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 1em;
    z-index: 20; 
}

/* Coverflow controls (Arrows) */
.coverflow-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(187, 134, 252, 0.2);
    color: var(--accent-purple);
    border: 2px solid var(--accent-purple);
    padding: 10px 15px;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 50;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.coverflow-control:hover {
    background: var(--accent-purple);
    color: white;
    box-shadow: 0 0 15px var(--accent-purple);
}

.coverflow-control.prev {
    left: -60px; 
}

.coverflow-control.next {
    right: -60px; 
}

/* --- Footer --- */
footer {
    text-align: center; 
    padding: 30px;
    background-color: var(--bg-black);
    color: #6a6a8e;
    font-size: 0.9em;
}

.contact-info {
    margin-bottom: 15px;
}

.contact-link {
    color: var(--accent-purple); 
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s, text-shadow 0.3s;
    text-shadow: 0 0 5px rgba(187, 134, 252, 0.3); 
}

.contact-link:hover {
    color: white;
    text-shadow: 0 0 10px var(--accent-purple), 0 0 20px rgba(187, 134, 252, 0.7);
}

/* --- Glass Morphism Styles for Login Page (ADJUSTED) --- */
.glass-card {
    background: rgba(255, 255, 255, 0.05); 
    border-radius: 25px; 
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(187, 134, 252, 0.5); 
    padding: 50px 30px; 
    max-width: 420px; 
    width: 90%;
    text-align: center;
    position: relative;
    /* Purple Glow Effect */
    box-shadow: 0 0 60px rgba(187, 134, 252, 0.6); 
    transition: box-shadow 0.5s;
}

.glass-card:hover {
    box-shadow: 0 0 90px rgba(187, 134, 252, 0.9), 0 12px 40px 0 rgba(0, 0, 0, 0.6);
}

.glass-card .login-logo {
    height: 95px; 
    margin-bottom: 30px; 
    filter: drop-shadow(0 0 15px rgba(187, 134, 252, 0.9)); 
}

/* Form Styles */
.glass-card form {
    width: 100%;
    max-width: 350px; 
    margin: 0 auto; 
}

/* Ensure all three inputs have the same style */
.glass-card input[type="text"],
.glass-card input[type="password"] {
    width: calc(100% - 30px); 
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid rgba(187, 134, 252, 0.3); 
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-light);
    font-size: 1.1em;
    outline: none;
    transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
    box-sizing: border-box; 
}

.glass-card input:focus {
    border-color: var(--accent-purple);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 10px var(--accent-purple); 
}

.glass-card button {
    cursor: pointer;
    background-color: var(--accent-purple);
    color: var(--bg-black);
    font-weight: 700;
    font-size: 1.2em;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

/* Button Hover Effect: Animated Shimmer */
.glass-card button:hover {
    background-color: #d1b4ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(187, 134, 252, 0.7);
}

/* --- Style for Large Login Advisory Text (No Changes) --- */
.login-advisory {
    font-size: clamp(1.4em, 3vw, 2em);
    font-weight: 700;
    color: white;
    text-shadow: 0 0 15px var(--accent-purple), 0 0 25px rgba(187, 134, 252, 0.5);
    line-height: 1.4;
    margin: 30px 0;
}

.login-contact-info a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    display: block;
    margin: 10px 0;
    transition: color 0.3s;
}

.login-contact-info a:hover {
    color: white;
}


/* --- MOBILE RESPONSIVENESS (Fixes) --- */
@media (max-width: 850px) {
    
    .hero-content {
        max-width: 90%; 
        padding: 20px 30px; 
    }
    .hero-content h1 {
        font-size: 2.5em; 
        letter-spacing: 3px;
    }
    .hero-content p {
        font-size: 1.1em; 
    }

    .navbar-content {
        padding: 0 15px; 
    }

    .menu-toggle {
        display: block;
        margin-right: 0;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        background-color: rgba(18, 18, 30, 0.95);
        padding: 10px 20px; 
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links li {
        margin-left: 0;
        text-align: left;
        padding: 10px 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    /* FIX: Prevents logo text from pushing the login button off-screen on small devices */
    .logo-text {
        height: 25px; 
        margin-right: auto; /* Push the text away from the center */
    }

    .logo-mask {
        height: 45px; /* Slightly smaller logo on mobile */
    }

    .login-button {
        /* Ensure the button is still visible on mobile outside the menu */
        margin-left: 10px;
        flex-shrink: 0; /* Prevents it from shrinking */
    }

    .hero-section {
        min-height: 80vh;
    }

    .coverflow-track {
        height: auto;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        perspective: none;
        overflow-y: hidden;
    }
    
    .coverflow-slide {
        position: relative;
        transform: none !important; 
        opacity: 1 !important;
        width: 85vw; 
        max-width: 450px;
        height: 220px; 
        margin-bottom: 20px;
        flex-shrink: 0;
    }

    .coverflow-slide.is-active {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6); 
        border-color: rgba(187, 134, 252, 0.15);
    }

    .coverflow-control {
        display: none; 
    }

    .coverflow-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: hidden;
    }
}