/* Define the Navbar Height Variable */
:root {
    --navbar-height: 80px;
    --primary-blue-nav: #1e3a8a;
    --primary-blue-deep: #0f2b5c;
    --accent-gold: #FFD700;
    --mid-gray: #EEEEEE;
    --text-dark: #333;
    --step-number-size: 45px;
    --navbar-blur: rgba(30, 58, 138, 0.95);
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* --- LOADING LINE ANIMATION --- */
@keyframes loadingLine {
    0% {
        transform: scaleX(0);
        opacity: 0.3;
    }
    50% {
        transform: scaleX(1);
        opacity: 1;
    }
    100% {
        transform: scaleX(0);
        opacity: 0.3;
    }
}

.loading-line {
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-gold) 50%, 
        transparent 100%);
    border-radius: 2px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    animation: loadingLine 1.5s ease-in-out infinite;
}

.loading-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        transparent 100%);
    animation: loadingLine 1.5s ease-in-out infinite 0.75s;
}

/* Loading overlay styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Base Styles & Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ------------------------------------------- */
/* Premium Navbar Styling */
/* ------------------------------------------- */
#main-navbar {
    background-color: transparent;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* SCROLLED Navbar State - Premium Blur Effect */
#main-navbar.scrolled {
    background-color: var(--navbar-blur);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-nav-group {
    display: flex;
    align-items: center;
}

/* Premium Logo Text Styling */
.logo-text {
    font-size: 1.8em;
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-bottom: 5px;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

#main-navbar.scrolled .logo-text::after {
    width: 30px;
}

/* Logo Text - Scrolled Gold */
#main-navbar.scrolled .logo-text {
    color: var(--accent-gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 1.6em;
}

.right-nav-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

#nav-buttons {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: max-width 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease-out;
}

.nav-buttons-visible #nav-buttons {
    max-width: 300px;
    opacity: 1;
}

/* Premium Button Styling */
.nav-btn-create, .nav-btn-login {
    text-decoration: none;
    font-size: 0.9em;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.nav-btn-create {
    background-color: var(--accent-gold);
    color: var(--primary-blue-deep);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.nav-btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    background-color: #ffde33;
}

.nav-btn-login { 
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.nav-btn-login:hover { 
    background-color: white;
    color: var(--primary-blue-deep);
    transform: translateY(-2px);
}

/* Translate Button - Premium Styling */
.translate-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    padding: 8px 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 30px;
}

.translate-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

#main-navbar.scrolled .translate-btn {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--accent-gold);
    color: white;
}

/* Animation */
.slide-in-element {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), 
                transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.slide-in-right {
    transform: translateX(50px);
}

.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Premium Hero Section */
#hero-enterprise {
    background-color: var(--primary-blue-nav);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Enhanced Gradient Overlay */
#hero-enterprise::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(10, 26, 63, 0.95) 0%, rgba(10, 26, 63, 0.7) 100%);
    z-index: 1;
}

/* Ensure content is above the overlay */
#hero-enterprise .container {
    z-index: 2;
    position: relative;
    padding-top: calc(var(--navbar-height) + 60px);
    padding-bottom: 80px;
    width: 100%;
}

#hero-enterprise h1 {
    font-size: 3.5em;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    letter-spacing: -0.5px;
}

#hero-enterprise p {
    font-size: 1.4em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    max-width: 800px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#hero-enterprise p strong {
    color: var(--accent-gold);
}

/* Hero CTA Buttons - Premium */
.cta-group {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 20px;
}

.btn-primary, .btn-secondary {
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1em;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-blue-deep);
    box-shadow: 0 10px 30px -5px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -5px rgba(255, 215, 0, 0.6);
    background-color: #ffde33;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-blue-deep);
    transform: translateY(-3px);
    border-color: transparent;
}

/* How It Works Section */
#how-it-works {
    background-color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

#how-it-works h2 {
    text-align: center;
    color: var(--primary-blue-deep);
    margin-bottom: 60px;
    font-size: 2.5em;
    font-weight: 700;
    position: relative;
}

#how-it-works h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-gold);
}

/* Animated Dots Background */
#how-it-works::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
    background-image: radial-gradient(circle, var(--primary-blue-deep) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: moveDots 60s linear infinite;
}

@keyframes moveDots {
    from { background-position: 0 0; }
    to { background-position: 100px 100px; }
}

#how-it-works .container {
    position: relative;
    z-index: 1;
}

.step-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 20px;
}

/* Timeline line */
.step-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-gold), var(--primary-blue-deep));
    transform: translateX(-50%);
    z-index: 0;
    opacity: 0.3;
}

.step {
    width: 100%;
    max-width: 600px;
    padding: 25px 30px;
    position: relative;
    margin-bottom: 30px;
    background: white;
    z-index: 1;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Step Number Styling */
.step-number {
    background-color: var(--primary-blue-deep);
    color: var(--accent-gold);
    border: 3px solid var(--accent-gold);
    border-radius: 50%;
    width: var(--step-number-size);
    height: var(--step-number-size);
    line-height: calc(var(--step-number-size) - 6px);
    font-weight: bold;
    font-size: 1.3em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Step Positioning */
.step:nth-child(odd) {
    align-self: flex-start;
    text-align: right;
    padding-right: 50px;
}

.step:nth-child(odd) .step-number {
    right: calc(-1 * var(--step-number-size) / 2);
    left: auto;
}

.step:nth-child(odd) h4,
.step:nth-child(odd) p {
    text-align: right;
    margin-left: 0;
    margin-right: calc(var(--step-number-size) / 2 + 15px);
}

.step:nth-child(even) {
    align-self: flex-end;
    text-align: left;
    padding-left: 50px;
}

.step:nth-child(even) .step-number {
    left: calc(-1 * var(--step-number-size) / 2);
    right: auto;
}

.step:nth-child(even) h4,
.step:nth-child(even) p {
    text-align: left;
    margin-right: 0;
    margin-left: calc(var(--step-number-size) / 2 + 15px);
}

.step h4 {
    color: var(--primary-blue-deep);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
    font-weight: 700;
}

.step p {
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Trust & Final CTA Section */
#trust-and-cta {
    padding: 100px 0;
    text-align: center;
    background-color: var(--mid-gray);
    position: relative;
    overflow: hidden;
}

#trust-and-cta h3 {
    color: var(--primary-blue-deep);
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: 600;
}

#trust-and-cta h2 {
    color: var(--primary-blue-deep);
    margin-bottom: 50px;
    font-size: 2.5em;
    font-weight: 700;
    position: relative;
}

#trust-and-cta h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-gold);
}

.network-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 70px;
    flex-wrap: wrap;
}

.network-placeholder {
    border: 2px solid var(--primary-blue-deep);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-blue-deep);
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.network-placeholder:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-gold);
}

/* Premium Final CTA Button */
.btn-final-cta {
    background: linear-gradient(135deg, var(--accent-gold), #ffb347);
    color: var(--primary-blue-deep);
    padding: 18px 60px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.4em;
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-final-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 45px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #ffde33, #ffc14d);
}

/* Footer */
footer {
    background-color: var(--mid-gray);
    color: var(--text-dark);
    padding: 40px 0;
    text-align: center;
    font-size: 0.95em;
    border-top: 1px solid #ddd;
}

/* Media Queries for Tablet & Small Desktop (<= 900px) */
@media (max-width: 900px) {
    .step {
        max-width: 450px;
    }
    
    #hero-enterprise h1 {
        font-size: 2.8em;
    }
    
    #hero-enterprise p {
        font-size: 1.2em;
    }
    
    .logo-text {
        font-size: 1.5em;
    }
}

/* Media Queries for Mobile Phones (<= 600px) */
@media (max-width: 600px) {
    #main-navbar {
        padding: 15px 0;
    }
    
    #main-navbar.scrolled {
        padding: 10px 0;
    }
    
    .logo-text {
        font-size: 1.2em;
    }
    
    .logo-text::after {
        display: none;
    }
    
    #main-navbar.scrolled .logo-text {
        font-size: 1.1em;
    }
    
    .right-nav-group {
        gap: 8px;
    }
    
    .nav-btn-create, .nav-btn-login {
        padding: 6px 12px;
        font-size: 0.8em;
    }
    
    .translate-btn {
        padding: 6px 10px;
        font-size: 1em;
    }
    
    .translate-btn span {
        display: none; /* Hide text on mobile, show only icon */
    }
    
    .cta-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        padding: 14px 25px;
        font-size: 1em;
        white-space: normal;
        text-align: center;
        width: 100%;
    }
    
    #hero-enterprise .container {
        padding-top: calc(var(--navbar-height) + 40px);
        padding-bottom: 60px;
    }
    
    #hero-enterprise {
        min-height: 100vh;
        align-items: flex-start;
    }
    
    #hero-enterprise h1 {
        font-size: 2em;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    #hero-enterprise p {
        font-size: 1.1em;
        margin-bottom: 30px;
    }
    
    .step-container::before {
        left: 20px;
        transform: translateX(0);
    }
    
    .step {
        padding: 15px 15px 15px 50px !important;
        max-width: 100%;
        align-self: flex-start !important;
        text-align: left !important;
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .step:nth-child(odd),
    .step:nth-child(even) {
        padding-left: 50px !important;
        padding-right: 15px !important;
    }
    
    .step h4 {
        font-size: 1.1em;
        margin-top: 0;
        margin-bottom: 5px;
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .step p {
        font-size: 0.9em;
        margin-top: 0;
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        line-height: 30px;
        font-size: 1.1em;
        left: 20px !important;
        right: auto !important;
        transform: translate(-50%, -50%);
    }
    
    .step:nth-child(odd) .step-number,
    .step:nth-child(even) .step-number {
        left: 20px !important;
        right: auto !important;
    }
    
    .step:nth-child(odd) h4,
    .step:nth-child(odd) p {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .step:nth-child(even) h4,
    .step:nth-child(even) p {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    #how-it-works h2 {
        font-size: 1.8em;
        margin-bottom: 40px;
    }
    
    #trust-and-cta {
        padding: 60px 0;
    }
    
    #trust-and-cta h2 {
        font-size: 1.8em;
        margin-bottom: 40px;
    }
    
    #trust-and-cta h3 {
        font-size: 1.4em;
    }
    
    .network-logos {
        gap: 15px;
        margin-bottom: 50px;
    }
    
    .network-placeholder {
        font-size: 1em;
        padding: 8px 20px;
    }
    
    .btn-final-cta {
        font-size: 1.2em;
        padding: 15px 40px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    footer {
        padding: 30px 0;
        font-size: 0.85em;
    }
}

/* Partner Logos - Exactly like index.php */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-bottom: 70px;
    padding: 0 20px;
}

.partner-logo-item {
    width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}

.partner-logo-item:hover {
    transform: scale(1.05);
}

.partner-logo-item img {
    width: 100%;
    height: auto;
    max-width: 120px;
    object-fit: contain;
    filter: brightness(1);
    transition: filter 0.3s ease;
}

.partner-logo-item img:hover {
    filter: brightness(1.1);
}

/* Remove old network placeholder styles */
.network-placeholder,
.network-logos,
.network-logo-item,
.network-logo-img {
    display: none;
}

/* Mobile adjustments for partner logos */
@media (max-width: 600px) {
    .partner-logos {
        gap: 25px;
        margin-bottom: 50px;
    }
    
    .partner-logo-item {
        width: 70px;
    }
    
    .partner-logo-item img {
        max-width: 80px;
    }
}

/* Home button styling - matching translate button exactly */
.home-btn {
    margin-right: 8px;
    padding: 8px 15px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    height: 40px; /* Fixed height to match translate button */
    line-height: 1;
}

.home-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fde047;
    transform: translateY(-2px);
}

.home-btn i {
    font-size: 1.1em;
}

.home-btn span {
    font-size: 0.9em;
    white-space: nowrap;
}

/* Scrolled state for home button */
#main-navbar.scrolled .home-btn {
    background: rgba(255, 215, 0, 0.15);
    border-color: #fde047;
    color: white;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .home-btn span {
        display: none; /* Hide text on mobile, show only icon */
    }
    
    .home-btn {
        padding: 6px 12px !important;
        gap: 0;
    }
    
    .home-btn i {
        margin: 0;
    }
}