/* Modern Start Page Redesign */
:root {
    --primary: hsl(250, 70%, 60%);
    --primary-hover: hsl(250, 70%, 50%);
    --secondary: hsl(180, 70%, 45%);
    --accent: hsl(320, 80%, 60%);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(20, 20, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(30, 30, 40, 0.7);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Outfit', 'Inter', sans-serif;
}

body.start {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: #0f0f13;
    overflow-x: hidden;
}

/* Background Overlay */
#video-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.display-1 {
    font-size: 3.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Header Redesign */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

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

header.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

/* Override mobile.css legacy styles */
.start .logo {
    background-color: rgba(255, 255, 255, 0.95) !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    margin: 0 !important;
    padding: 8px 20px;
    border-radius: 50px;
    text-align: left;
    backdrop-filter: blur(5px);
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
    margin: 0 !important;
}

.logo p {
    color: #004298 !important;
    /* Brand blue color */
    font-size: 0.85rem !important;
    margin-left: 1rem !important;
    margin-bottom: 0 !important;
    display: inline-block;
    border-left: 1px solid #ddd;
    padding-left: 1rem;
    font-weight: 600;
    line-height: 1.2 !important;
    font-family: var(--font-main) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Buttons */
.btn-modern {
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Login Form */
.login-card {
    padding: 2.5rem;
    max-width: 400px;
    margin-left: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control-modern {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    transition: var(--transition);
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-control-modern::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Benefits Grid */
.benefits-section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(15, 15, 19, 0) 0%, #0f0f13 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.start .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--primary);
    border: 1px solid var(--glass-border);
}

/* News Section */
.news-section {
    padding: 6rem 0;
    background: #0f0f13;
}

.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.news-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Footer */
footer {
    background: #0a0a0c;
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@media (max-width: 768px) {
    .display-1 {
        font-size: 2.5rem;
    }

    .hero-section {
        padding-top: 100px;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .login-card {
        margin: 2rem auto 0;
    }
}

/* ── Mobile fullscreen menu ── */
@media (min-width: 1001px) {
    .start-mobile-burger { display: none !important; }
}
@media (max-width: 1000px) {
    .start .wheader { display: none !important; }
}

.start-mobile-burger {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 100;
}
.start-mobile-burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    margin-bottom: 5px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
    transition: all 0.3s;
}
.start-mobile-burger span:last-child { margin-bottom: 0; }

.start-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 10000;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.start-mobile-overlay.open {
    display: flex;
}
.start-mobile-overlay__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.start-mobile-overlay__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    padding: 0 5px;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.start-mobile-overlay__close:hover {
    opacity: 1;
}
.start-mobile-overlay__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 0;
}
.start-mobile-overlay__nav a {
    display: block;
    padding: 16px 28px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    font-family: var(--font-main);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s;
}
.start-mobile-overlay__nav a:hover,
.start-mobile-overlay__nav a:active {
    background: rgba(255,255,255,0.08);
}
.start-mobile-overlay__lang {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.start-mobile-overlay__lang a {
    display: inline-block;
    padding: 10px 24px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-main);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    transition: all 0.2s;
}
.start-mobile-overlay__lang a.active {
    background: #fff;
    color: #1a1a2e;
    border-color: #fff;
}
.start-mobile-overlay__lang a:hover:not(.active) {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}