/* Poseidon Theme Override CSS - Aligns colors with the UI source design */

/* Font hierarchy matching ui_source */
/* Headers use Khand */
h1, h2, h3, h4, h5, h6, .hero-main-text h2 {
    font-family: 'Khand', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
}

/* Body text uses Lato */
body, p, .hero-main-text p, .btn, .nav-link {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
}

/* Specific hero styling */
.hero-main-text h2 {
    font-family: 'Khand', sans-serif;
    font-weight: 600;
}

.hero-main-text p {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
}

/* Primary colors from ui_source */
:root {
    --primary-dark: #020034;
    --primary-blue: #0014eb;
    --accent-cyan: #01CED3;
    --accent-green: #55ee00;
    --text-white: #ffffff;
      /* Legacy variables for compatibility */
    --poseidon-primary-blue: #01CED3;
    --poseidon-secondary-blue: #0B00FF;
    --poseidon-primary-blue-light: #0ff;
    --poseidon-blue-gradient: linear-gradient(180deg, rgba(0, 75, 235, 0.85) 0%, rgba(0, 70, 192, 0.85) 75%, rgba(0, 30, 150, 0.85) 100%);
    --poseidon-background-blue: #0046c0;
    --poseidon-green: #55ee00;
    --poseidon-green-dark: #4ad400;
}

/* Main background */
body {
    background-color: var(--primary-dark) !important;
    color: var(--text-white);
}

/* Override the main color overlay background to match UI source */
.main .color-overlay {
    background: transparent var(--poseidon-blue-gradient) 0% 0% no-repeat padding-box;
}

/* Add patterns and texture to background */
.main {
    position: relative;
    background-color: var(--poseidon-background-blue);
    background-image: url('../images/pattern-grid.webp'), url('../images/immersion-bw.webp');
    background-size: 100% auto, cover;
    background-repeat: repeat, no-repeat;
    background-position: center top, center center;
    background-blend-mode: overlay, normal;
}

/* Blue glow effect to enhance visual appeal */
.blue-glow {
    position: relative;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 150px rgba(0, 100, 255, 0.3);
}

/* Hero text styling to match design */
.hero-main-text {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.hero-main-text h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-family: 'Khand', sans-serif;
    color: white;
    letter-spacing: 0.5px;
    text-shadow: 0 0 20px rgba(1, 206, 211, 0.5);
}

.hero-main-text p {
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
    color: white;
    text-transform: uppercase;
}

/* Top bar and logo styling */
.top-bar {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
}

.logo {
    display: flex;
    justify-content: center;
    margin: 0;
    text-align: center;
}

.user-auth {
    position: absolute;
    right: 0;
    top: 15px;
}

.user-auth a {
    color: white;
    text-decoration: none;
}

.login-btn {
    background-color: var(--poseidon-green);
    border-color: var(--poseidon-green);
    color: #000;
    font-weight: bold;
    padding: 5px 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-family: 'Khand', sans-serif;
}

.login-btn:hover {
    background-color: var(--poseidon-green-dark);
    border-color: var(--poseidon-green-dark);
    color: #000;
}

/* Button colors from ui_source */
.btn-primary {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background-color: #4dd600;
    border-color: #4dd600;
    color: var(--primary-dark);
}

/* Nav pills styling from ui_source */
.nav-pills .nav-link.active {
    background-color: var(--accent-green);
    color: var(--primary-dark);
}

.nav-pills .nav-link {
    color: var(--text-white);
}

.nav-pills .nav-link:hover {
    color: var(--accent-cyan);
}

/* Login page and input form styling */
.nav-pills .nav-link {
    color: var(--text-white);
}

.nav-pills .nav-link:hover {
    color: var(--accent-cyan);
}

.nav-pills .nav-link.active {
    background-color: var(--accent-green);
    color: var(--primary-dark);
}

/* Button styling to match design */
.btn-primary {
    background-color: var(--poseidon-primary-blue);
    color: black;
    border-color: var(--poseidon-primary-blue);
}

.btn-primary:hover {
    background-color: var(--poseidon-primary-blue-light);
    border-color: var(--poseidon-primary-blue-light);
    color: black;
}

/* Success button styling */
.btn-success {
    background-color: var(--poseidon-green);
    border-color: var(--poseidon-green);
    color: #000;
}

.btn-success:hover {
    background-color: var(--poseidon-green-dark);
    border-color: var(--poseidon-green-dark);
    color: #000;
}

/* Auth area links */
.auth-area .nav-link {
    color: var(--poseidon-primary-blue) !important;
}

/* Component card highlights */
.component-card:hover {
    border-color: var(--poseidon-primary-blue);
}

.component-card i, 
.component-details {
    color: var(--poseidon-primary-blue);
}

/* Form focus states */
.form-control:focus {
    border-color: var(--poseidon-primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(1, 206, 211, 0.25);
}

/* Special styling for home page matching ui_source */
body.home .main {
    background: transparent url("../images/immersion-bw.webp") no-repeat center center / cover;
}

body.home .main .color-overlay {
    background: transparent linear-gradient(180deg, rgba(0, 20, 235, 0.85) 0%, rgba(0, 20, 92, 0.85) 75%, rgba(0, 0, 92, 0.85) 100%) 0% 0% no-repeat padding-box;
}

/* Login page specific styling */
body.login .main {
    background-image: url('../images/pattern-grid.webp'), url('../images/immersion-bw.webp');
    background-size: 100% auto, cover;
    background-repeat: repeat, no-repeat;
    background-position: center top, center center;
    background-blend-mode: overlay, normal;
}

body.login .color-overlay {
    background: var(--poseidon-blue-gradient);
}

/* Case Study styling to match UI source */
/* Case study page main area styling */
.case-study-badge {
    display: inline-block;
    background-color: #55ee00;
    color: #000;
    font-weight: bold;
    padding: 5px 15px;
    text-transform: uppercase;
    font-family: 'Khand', sans-serif;
    margin-bottom: 10px;
    font-size: 1rem;
}

.hero {
    text-align: left;
    padding: 20px 0;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Khand', sans-serif;
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
}

/* Case Study back button styling to exactly match design */
.btn-back {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    margin-right: 15px;
    background-color: rgba(50, 50, 50, 0.8) !important;
    border: none !important;
    color: white !important;
    transition: all 0.2s ease;
    padding: 0 !important;
}

.btn-back:hover {
    background-color: rgba(70, 70, 70, 0.9) !important;
    color: white !important;
    border: none;
}

.btn-back i {
    font-size: 1.25rem;
}

.case-study .main {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 60vh;
    min-height: 400px;
    position: relative;
}

.case-study .main .image-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.case-study .main .main-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 2rem;
}

/* Fix for top navigation */
.case-study-top-nav {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0;
    margin: 0;
    border-radius: 0;
}

/* Full width split screen sections - exactly as in UI source */
.full-width-split-screen {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .full-width-split-screen {
        flex-direction: row;
    }
    
    .full-width-split-screen > img {
        width: 50%;
        object-fit: cover;
    }
    
    .full-width-split-screen > div {
        width: 50%;
        padding: 3rem;
    }
}

.full-width-split-screen > img {
    max-width: 100%;
    height: auto;
}

.full-width-split-screen > div {
    padding: 2rem;
}

.blue-gradient {
    background: linear-gradient(180deg, rgba(0, 75, 235, 0.85) 0%, rgba(0, 70, 192, 0.85) 75%, rgba(0, 30, 150, 0.85) 100%);
}

.bg-poseidon-secondary-blue {
    background-color: var(--poseidon-secondary-blue);
}

.title {
    font-family: 'Khand', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* Partners section (logo carousel) */
.partners {
    background-color: #000;
    padding: 2rem 0;
    overflow: hidden;
}

.partner-logos {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.animated-container {
    display: flex;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.animated-container-item {
    height: 60px;
    margin-right: 2rem;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.animated-container-item:hover {
    opacity: 1;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% + 0px)); }
}

/* Contact module styling */
.contact-module {
    background-image: url('../images/contact-module-bg.webp');
    background-size: cover;
    background-position: center center;
    padding: 0.5rem 0;
}

.contact-module .color-overlay {
    background-color: rgba(2, 0, 52, 0.87);
    padding: 0.25rem 0;
}

.contact-module .image-overlay {
    text-align: center;
    padding: 0.5rem 0;
}

.contact-module h2 {
    font-family: 'Khand', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
}

.contact-module p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: white;
}

/* Footer styling */
footer {
    background-color: #000;
    color: #6c757d;
}

.footer-top {
    padding: 3rem 0;
    display: flex;
    justify-content: space-between;
}

.footer-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    margin-left: 1rem;
    color: #6c757d;
}

.copyright {
    background-color: #111;
    padding: 1rem 0;
}

.copyright-inner {
    display: flex;
    justify-content: space-between;
}

/* Login form styling */
.login-form-container {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.login-form-container h2 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Khand', sans-serif;
    text-transform: uppercase;
}

.login-form-container .form-label {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Khand', sans-serif;
}

.login-form-container .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.login-form-container .form-check-label {
    color: white;
}

.login-form-container .btn-primary {
    width: 100%;
    padding: 10px;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 10px;
    background-color: var(--poseidon-primary-blue);
    font-family: 'Khand', sans-serif;
}

/* Enhancements for tab content and cards */
.tab-content {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.tab-pane {
    color: white;
}

/* Card styling enhancements */
.card {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.card-header {
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Khand', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
}

/* Table styling enhancements */
.table {
    color: white;
}

.table-dark {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Input field enhancements */
.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Add subtle pulsing effect to the logo */
@keyframes subtle-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.logo img {
    animation: subtle-pulse 3s infinite ease-in-out;
}