:root {
    --primary-color: #0077b6;
    --secondary-color: #00b4d8;
    --accent-color: #1e3a8a;
    /* Darker blue for contrast on white */
    --light-bg: #f8fbff;
    /* Very soft blue-white */
    --text-main: #1e293b;
    /* Dark slate */
    --text-muted: #475569;
    /* Lighter slate */
    --glass-bg: rgba(255, 255, 255, 0.85);
    /* Frosty white */
    --glass-border: rgba(0, 119, 182, 0.15);
    /* Subtle blue border */
    --surface-hover: rgba(255, 255, 255, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

/* Background image slider */
.water-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
    animation: ken-burns 18s ease-in-out infinite alternate;
}

.bg-slide.active {
    opacity: 1;
}

.bg-slide-1 {
    background-image: url('../imagini/b.jpeg');
    animation-delay: 0s;
}

.bg-slide-2 {
    background-image: url('../imagini/bg_apa.png');
    animation-delay: -6s;
}

.bg-slide-3 {
    background-image: url('../imagini/a.png');
    animation-delay: -12s;
}

@keyframes ken-burns {
    0% {
        transform: scale(1) translateX(0px);
    }

    50% {
        transform: scale(1.06) translateX(-15px);
    }

    100% {
        transform: scale(1.04) translateX(8px);
    }
}

/* Overlay gradient integrat cu tema albastra */
.bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(240, 248, 255, 0.82) 0%,
            rgba(214, 234, 248, 0.72) 40%,
            rgba(189, 225, 250, 0.60) 70%,
            rgba(240, 248, 255, 0.80) 100%);
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    padding-top: calc(2rem + 70px);
    /* compensate for fixed header */
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 2.5rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 180, 216, 0.18);
    box-shadow: 0 2px 20px rgba(0, 119, 182, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.main-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00b4d8, #0077b6, #48cae4, #0077b6);
    background-size: 200% 100%;
    animation: shimmer-header 4s linear infinite;
}

@keyframes shimmer-header {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-main);
    cursor: default;
    letter-spacing: -0.3px;
}

.logo i {
    color: var(--secondary-color);
    font-size: 1.4rem;
    filter: drop-shadow(0 0 6px rgba(0, 180, 216, 0.5));
    animation: droplet-pulse 3s ease-in-out infinite;
}

@keyframes droplet-pulse {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(0, 180, 216, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(0, 180, 216, 0.8));
    }
}

.logo span {
    font-weight: 300;
    color: var(--accent-color);
    opacity: 0.75;
}

nav {
    display: flex;
    gap: 1.5rem;
}


/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}

.hero-section {
    width: 100%;
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1.2;
}

.hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    font-weight: 400;
}

/* Access badge */
.access-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 119, 182, 0.08);
    border: 1px solid rgba(0, 119, 182, 0.2);
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.42rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
}

[data-theme="dark"] .access-badge {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.25);
    color: var(--primary-color);
}

.hero-extra-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.hero-extra-text p {
    margin-bottom: 1rem;
}

.presentation-section {
    width: 100%;
}

.modules-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.module-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.2rem;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .module-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }

    .card-icon-wrapper {
        flex: 0 0 65px;
    }

    .module-content {
        flex: 1;
    }
}

.module-card:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
    box-shadow: 0 10px 20px rgba(0, 119, 182, 0.08);
}

.module-icon {
    width: 65px;
    height: 65px;
    background: rgba(0, 180, 216, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.module-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    color: var(--primary-color);
    font-weight: 700;
}

.module-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.module-card ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 900px) {
    .module-card ul {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

.module-card li {
    font-size: 0.95rem;
    color: var(--text-main);
    /*display: flex;
    align-items: flex-start; 
    gap: 1rem; */
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.4);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 119, 182, 0.08);
    transition: transform 0.2s, background 0.2s;
    text-align: justify;
}

.module-card li:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 119, 182, 0.15);
}

.module-card li i {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-top: 2px;
    /* background: rgba(0, 180, 216, 0.1);*/
    width: 35px;
    /* height: 35px; */
    border-radius: 50%;
    /*  display: flex; */
    align-items: center;
    justify-content: center;
    /* flex-shrink: 0;*/
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.card-link-secondary {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}

.card-link-secondary:hover {
    color: var(--primary-color);
}

.card-btn-offer {
    margin-left: auto;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.25);
}

.card-btn-offer:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 119, 182, 0.35);
}

/* Promo Card */
.website-promo-card {
    margin-top: 1.8rem;
    position: relative;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: 20px;
    padding: 1.8rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.05);
    overflow: hidden;
}

.website-promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.05), rgba(0, 119, 182, 0.15));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.website-promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 119, 182, 0.15);
    border-color: var(--secondary-color);
}

.website-promo-card:hover::before {
    opacity: 1;
}

.promo-badge {
    position: absolute;
    top: -1px;
    right: 30px;
    background: linear-gradient(90deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    color: #b5175e;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 0 0 10px 10px;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(255, 154, 158, 0.3);
}

.promo-body {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.promo-icon {
    margin-bottom: 0;
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 119, 182, 0.3);
    border-radius: 16px;
    font-size: 1.8rem;
}

.promo-content {
    flex: 1;
}

.promo-content h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(to right, #0077b6, #00b4d8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promo-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.promo-action {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 119, 182, 0.05);
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.demo-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.website-promo-card:hover .promo-action {
    background: var(--primary-color);
    color: white;
}

.pulse-arrow {
    transition: transform 0.3s ease;
}

.website-promo-card:hover .pulse-arrow {
    animation: slideRight 1s infinite alternate;
}

@keyframes slideRight {
    0% {
        transform: translateX(-3px);
    }

    100% {
        transform: translateX(3px);
    }
}

/* Login Section */
.login-section {
    width: 100%;
    max-width: 550px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.3);
    /*background: var(--glass-bg);*/
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 15px 35px 0 rgba(0, 119, 182, 0.6);
}

.glass-panel h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.glass-panel p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group>i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1.1rem;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 1.1rem 3.2rem 1.1rem 3.5rem;
    /* right padding for eye icon */
    background: #f8fafc;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.input-group input:focus {
    border-color: var(--secondary-color);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.toggle-pass {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
    z-index: 2;
}

.toggle-pass:hover {
    color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    user-select: none;
}

.forgot-pass {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.forgot-pass:hover {
    color: var(--accent-color);
}

.btn-primary {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.message-box {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.msg-error {
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid rgba(255, 59, 48, 0.4);
    color: #520602;
}

.msg-success {
    background: rgba(52, 199, 89, 0.2);
    border: 1px solid rgba(52, 199, 89, 0.4);
    color: #01460e;
}

[data-theme="dark"] .msg-error {
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.35);
}

[data-theme="dark"] .msg-success {
    color: #86efac;
    background: rgba(74, 222, 128, 0.12);
    border-color: rgba(74, 222, 128, 0.35);
}

/* Footer Section */
.main-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 2.5rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 180, 216, 0.18);
    box-shadow: 0 -2px 20px rgba(0, 119, 182, 0.06);
    width: 100%;
    font-size: 0.88rem;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0077b6, #48cae4, #0077b6, #00b4d8);
    background-size: 200% 100%;
    animation: shimmer-header 4s linear infinite reverse;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-contact strong {
    color: var(--text-main);
    font-weight: 600;
}

.footer-contact span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-contact i {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.divider {
    color: var(--glass-border);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-extra-text {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .modules-grid {
        gap: 1.5rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-section {
        text-align: left;
    }

    .main-header {
        flex-direction: column;
        gap: 1rem;
        border-radius: 20px;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }

    .glass-panel {
        padding: 2rem 1.5rem;
    }
}

/* ============================================================
   GLOBAL TRANSITION - smooth theme switch
   ============================================================ */
*,
*::before,
*::after {
    transition-property: background-color, border-color, color, box-shadow, backdrop-filter;
    transition-duration: 0.35s;
    transition-timing-function: ease;
}

/* but keep animations unaffected */
.bg-slide,
.bg-slide *,
.logo i,
.main-header::before,
.main-footer::before {
    transition: opacity 1.8s ease-in-out, transform 18s ease-in-out, filter 3s ease-in-out,
        background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

/* ============================================================
   DARK MODE VARIABLES
   ============================================================ */
[data-theme="dark"] {
    --primary-color: #38bdf8;
    --secondary-color: #7dd3fc;
    --accent-color: #bae6fd;
    --light-bg: #0f172a;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.82);
    --glass-border: rgba(56, 189, 248, 0.18);
    --surface-hover: rgba(30, 41, 59, 0.95);
}

/* Body */
[data-theme="dark"] body {
    background-color: var(--light-bg);
    color: var(--text-main);
}

/* Background overlay - mai întunecat */
[data-theme="dark"] .bg-overlay {
    background: linear-gradient(135deg,
            rgba(10, 20, 40, 0.88) 0%,
            rgba(15, 30, 60, 0.80) 40%,
            rgba(10, 25, 50, 0.78) 70%,
            rgba(10, 20, 40, 0.88) 100%);
}

/* Header */
[data-theme="dark"] .main-header {
    background: rgba(15, 23, 42, 0.92);
    border-bottom-color: rgba(56, 189, 248, 0.18);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* Logo */
[data-theme="dark"] .logo {
    color: var(--text-main);
}

[data-theme="dark"] .logo span {
    color: var(--accent-color);
}

/* Module cards */
[data-theme="dark"] .module-card {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(56, 189, 248, 0.15);
}

[data-theme="dark"] .module-card:hover {
    background: rgba(30, 41, 59, 0.92);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .module-card h3 {
    color: var(--primary-color);
}

[data-theme="dark"] .module-card li {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(56, 189, 248, 0.1);
    color: var(--text-main);
}

[data-theme="dark"] .module-card li:hover {
    background: rgba(30, 41, 59, 0.85);
}

[data-theme="dark"] .module-card li i {
    color: var(--secondary-color);
}

[data-theme="dark"] .module-description {
    color: var(--text-muted);
}

[data-theme="dark"] .card-actions {
    border-top-color: rgba(56, 189, 248, 0.15);
}

[data-theme="dark"] .card-link-secondary {
    color: var(--text-muted);
}

[data-theme="dark"] .card-link-secondary:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .card-btn-offer {
    background: linear-gradient(135deg, #0369a1, #0ea5e9);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Module icon */
[data-theme="dark"] .module-icon {
    background: rgba(56, 189, 248, 0.15);
    color: var(--secondary-color);
}

/* Hero text */
[data-theme="dark"] .hero-text h1 {
    color: var(--text-main);
}

[data-theme="dark"] .subtitle {
    color: var(--accent-color);
}

[data-theme="dark"] .hero-extra-text {
    color: var(--text-muted);
}

/* Glass login panel */
[data-theme="dark"] .glass-panel {
    background: rgba(15, 23, 42, 0.3);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .glass-panel h2 {
    color: var(--text-main);
}

[data-theme="dark"] .glass-panel p {
    color: var(--text-muted);
}

[data-theme="dark"] .input-group input {
    background: #1e293b;
    border-color: rgba(56, 189, 248, 0.2);
    color: var(--text-main);
}

[data-theme="dark"] .input-group input:focus {
    background: #263145;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

[data-theme="dark"] .input-group input::placeholder {
    color: #475569;
}

[data-theme="dark"] .input-group>i {
    color: var(--secondary-color);
}

[data-theme="dark"] .toggle-pass {
    color: #475569;
}

[data-theme="dark"] .toggle-pass:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .checkbox-container {
    color: var(--text-muted);
}

[data-theme="dark"] .forgot-pass {
    color: var(--secondary-color);
}

[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #0369a1, #0ea5e9);
}

/* Promo card */
[data-theme="dark"] .website-promo-card {
    background: linear-gradient(135deg, #0f1e35, #142540);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .website-promo-card::before {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.06), rgba(14, 165, 233, 0.18));
}

[data-theme="dark"] .website-promo-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

[data-theme="dark"] .promo-icon {
    background: linear-gradient(135deg, #0369a1, #0ea5e9);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

[data-theme="dark"] .promo-content h3 {
    color: var(--text-main);
}

[data-theme="dark"] .promo-content p {
    color: var(--text-muted);
}

[data-theme="dark"] .promo-action {
    background: rgba(56, 189, 248, 0.08);
    color: var(--primary-color);
}

[data-theme="dark"] .website-promo-card:hover .promo-action {
    background: #0369a1;
    color: white;
}

[data-theme="dark"] .gradient-text {
    background: linear-gradient(to right, #38bdf8, #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer */
[data-theme="dark"] .main-footer {
    background: rgba(15, 23, 42, 0.92);
    border-top-color: rgba(56, 189, 248, 0.18);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.35);
    color: var(--text-muted);
}

[data-theme="dark"] .footer-contact strong {
    color: var(--text-main);
}

[data-theme="dark"] .footer-contact i {
    color: var(--primary-color);
}

[data-theme="dark"] .footer-link {
    color: var(--primary-color);
}

[data-theme="dark"] .footer-link:hover {
    color: var(--secondary-color);
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    background: none;
    border: 1.5px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.38rem 0.9rem 0.38rem 0.6rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 119, 182, 0.06);
}

[data-theme="dark"] .theme-toggle {
    border-color: rgba(56, 189, 248, 0.25);
    color: var(--text-muted);
}

[data-theme="dark"] .theme-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(56, 189, 248, 0.1);
}

/* Pictograma soare/luna */
.theme-toggle-icon {
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.theme-toggle:hover .theme-toggle-icon {
    transform: rotate(20deg) scale(1.1);
}

/* ============================================================
   MODAL RESETARE PAROLA
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.open {
    display: flex;
    animation: fadeInOverlay 0.25s ease;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.2rem 2.4rem;
    width: 100%;
    max-width: 430px;
    box-shadow: 0 20px 50px rgba(0, 119, 182, 0.2);
    animation: slideUpModal 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

@keyframes slideUpModal {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.modal-card .modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.6rem;
    line-height: 1.5;
}

.modal-input-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.modal-input-group i {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1rem;
    pointer-events: none;
}

.modal-input-group input {
    width: 100%;
    padding: 0.95rem 1rem 0.95rem 3rem;
    background: #f8fafc;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.97rem;
    color: var(--text-main);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.modal-input-group input:focus {
    border-color: var(--secondary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
}

.modal-input-group input::placeholder {
    color: var(--text-muted);
}

.modal-msg {
    font-size: 0.88rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.modal-msg.error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #c0392b;
    display: flex;
}

.modal-msg.success {
    background: rgba(52, 199, 89, 0.12);
    border: 1px solid rgba(52, 199, 89, 0.3);
    color: #1a7a38;
    display: flex;
}

.modal-msg.info {
    background: rgba(0, 119, 182, 0.08);
    border: 1px solid rgba(0, 119, 182, 0.2);
    color: var(--primary-color);
    display: flex;
}

.btn-modal-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.25s, box-shadow 0.25s;
}

.btn-modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.3);
}

.btn-modal-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Dark mode overrides modal */
[data-theme="dark"] .modal-overlay {
    background: rgba(5, 10, 25, 0.80);
}

[data-theme="dark"] .modal-card {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .modal-card h3 {
    color: var(--text-main);
}

[data-theme="dark"] .modal-input-group input {
    background: #1e293b;
    border-color: rgba(56, 189, 248, 0.2);
    color: var(--text-main);
}

[data-theme="dark"] .modal-input-group input:focus {
    background: #263145;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

[data-theme="dark"] .modal-input-group input::placeholder {
    color: #475569;
}

[data-theme="dark"] .modal-input-group i {
    color: var(--secondary-color);
}

[data-theme="dark"] .modal-msg.error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.3);
}

[data-theme="dark"] .modal-msg.success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.3);
}

[data-theme="dark"] .modal-msg.info {
    color: var(--primary-color);
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.2);
}

[data-theme="dark"] .btn-modal-submit {
    background: linear-gradient(135deg, #0369a1, #0ea5e9);
}

[data-theme="dark"] .modal-close {
    color: #475569;
}

[data-theme="dark"] .modal-close:hover {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger-menu {
    position: relative;
    z-index: 1002;
}

.hamburger-btn {
    background: rgba(0, 119, 182, 0.1);
    border: 1px solid rgba(0, 119, 182, 0.2);
    color: var(--primary-color);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hamburger-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 119, 182, 0.15);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 119, 182, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Săgeată pt dropdown */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-left: 1px solid rgba(0, 119, 182, 0.15);
    border-top: 1px solid rgba(0, 119, 182, 0.15);
    transform: rotate(45deg);
}

.menu-section {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(0, 119, 182, 0.1);
}

.menu-section.last {
    border-bottom: none;
    background: rgba(0, 119, 182, 0.03);
    border-radius: 0 0 16px 16px;
}

.menu-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    opacity: 0.85;
}

.menu-section a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    padding: 0.6rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.menu-section a:last-child {
    margin-bottom: 0;
}

.menu-section a i {
    color: var(--secondary-color);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 180, 216, 0.1);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.menu-section a:hover {
    background: rgba(0, 119, 182, 0.08);
    color: var(--primary-color);
    transform: translateX(5px);
}

.menu-section a:hover i {
    background: var(--primary-color);
    color: white;
}

.menu-link-direct {
    font-weight: 600 !important;
    color: var(--primary-color) !important;
}

/* Dark mode Hamburger */
[data-theme="dark"] .hamburger-btn {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.25);
    color: var(--primary-color);
}

[data-theme="dark"] .hamburger-btn:hover {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .dropdown-menu {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .dropdown-menu::before {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(56, 189, 248, 0.2);
}

[data-theme="dark"] .menu-section {
    border-color: rgba(56, 189, 248, 0.1);
}

[data-theme="dark"] .menu-section.last {
    background: rgba(56, 189, 248, 0.03);
}

[data-theme="dark"] .menu-section h4 {
    color: var(--secondary-color);
}

[data-theme="dark"] .menu-section a {
    color: var(--text-main);
}

[data-theme="dark"] .menu-section a:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--secondary-color);
}

/* ========================================================== */
/* RESPONSIVE DESIGN FOR MOBILE */
/* ========================================================== */
@media (max-width: 768px) {

    /* Adjust spacing because the fixed header might be taller or wrap */
    .container {
        padding-top: calc(3.5rem + 80px) !important;
    }

    /* Wrap the header items properly instead of overlapping */
    .main-header {
        padding: 0.8rem 1.5rem;
        flex-direction: column;
        gap: 0.8rem;
    }

    /* Keep the logo and nav centered and readable */
    .logo {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }

    nav {
        justify-content: center;
        width: 100%;
    }

    /* Dropdown centering on small screens so it won't go off-screen left/right */
    .dropdown-menu {
        right: auto;
        left: 50%;
        transform: translate(-50%, -10px);
        width: 90vw;
        max-width: 340px;
    }

    .dropdown-menu.show {
        transform: translate(-50%, 0);
    }

    /* Center the small arrow pointer under the hamburger button */
    .dropdown-menu::before {
        right: auto;
        left: 50%;
        margin-left: -6px;
        /* center relative to the 12px width */
    }

    /* Ensure presentation cards stack cleanly */
    .hero-section {
        flex-direction: column;
        gap: 2.5rem;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }

    /* Stack Promo Card elements on mobile */
    .website-promo-card {
        padding: 1.5rem;
    }

    .promo-body {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .promo-action {
        width: 100%;
        margin-top: 0.5rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 119, 182, 0.1);
    }

    .demo-btn {
        width: 100%;
        justify-content: center;
    }

    .promo-badge {
        right: 15px;
        font-size: 0.65rem;
        padding: 5px 12px;
    }

    /* Footer stacking on mobile */
    .main-footer {
        flex-direction: column;
        justify-content: center;
        gap: 1.2rem;
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .footer-contact {
        flex-direction: column;
        gap: 0.6rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }

    .footer-links .divider {
        display: none;
    }
}