* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --tertiary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: #0a0e27;
    --card-bg: #1a1f3a;
    --text-light: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent: #667eea;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navbar */
header {
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3rem;
    width: 100%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
    font-weight: 500;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Profile Menu */
.profile-menu {
    position: relative;
}

.profile-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.profile-btn:hover {
    color: #8393f5;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    min-width: 200px;
    margin-top: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.profile-menu.active .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.profile-header p {
    margin: 0;
    word-break: break-all;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    padding: 0.8rem 1rem;
    background: none;
    border: none;
    color: var(--text-light);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent);
}

.logout-btn {
    color: #ef4444;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.profile-dropdown hr {
    margin: 0;
    border: none;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
    font-weight: 500;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}
.settings-menu {
    position: relative;
}

.settings-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.settings-btn:hover {
    color: #8393f5;
    transform: rotate(15deg);
}

.settings-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    min-width: 280px;
    margin-top: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    padding: 1rem 0;
}

.settings-menu.active .settings-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.settings-header {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    margin-bottom: 0.8rem;
}

.settings-header h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
}

.theme-selector-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.8rem;
}

.theme-btn-nav {
    padding: 0.8rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    text-align: left;
}

.theme-btn-nav:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

.theme-btn-nav.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(26, 31, 58, 0.8), var(--dark-bg));
}

.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-shape {
    position: absolute;
    opacity: 0.1;
    border-radius: 50%;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-gradient);
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-gradient);
    bottom: 10%;
    right: 10%;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--tertiary-gradient);
    top: 50%;
    right: 5%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(50px) translateX(30px); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease-out;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Branches Section */
.branches {
    padding: 5rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.branches h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.branch-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.branch-card {
    background: var(--card-bg);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.branch-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.branch-card:nth-child(2)::before {
    background: var(--secondary-gradient);
}

.branch-card:nth-child(3)::before {
    background: var(--tertiary-gradient);
}

.branch-card:hover::before {
    opacity: 0.1;
    top: -25%;
    right: -25%;
}

.branch-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

.branch-card:nth-child(2) .card-icon {
    animation-delay: 0.2s;
}

.branch-card:nth-child(3) .card-icon {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.branch-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.branch-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.feature {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.5rem 0;
}

.branch-btn {
    width: 100%;
    padding: 0.9rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.branch-card:nth-child(2) .branch-btn {
    background: #667eea;
}

.branch-card:nth-child(3) .branch-btn {
    background: #667eea;
}

.branch-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    background: #5568d3;
}

/* Features Section */
.features {
    padding: 5rem 3rem;
    background: linear-gradient(180deg, transparent, rgba(102, 126, 234, 0.05));
    max-width: 1400px;
    margin: 0 auto;
}

.features h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: var(--card-bg);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
}

.feature-number {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 3rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
}

/* Quote Section */
.quote-section {
    padding: 5rem 3rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.quote-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
}

.quote-content {
    position: relative;
    margin-bottom: 2rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-content i:first-child {
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.quote-content i:last-child {
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.3;
    margin-top: 1rem;
    text-align: right;
}

#quoteText {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

#quoteAuthor {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.quote-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.quote-btn:active {
    transform: translateY(0);
}

/* Footer */
footer {
    background: linear-gradient(180deg, transparent, rgba(10, 14, 39, 0.8));
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    padding: 4rem 3rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    max-width: 1400px;
    margin: 0 auto 2rem;
    gap: 2rem;
}

.footer-section h5 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    color: var(--text-muted);
}

/* Theme Selector */
.theme-selector {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.theme-btn {
    padding: 0.9rem 1.8rem;
    background: var(--card-bg);
    color: var(--text-light);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
}

.theme-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.theme-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(240, 147, 251, 0.05));
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.1);
}

/* Login Form */
.login-container {
    max-width: 500px;
    margin: 0 auto;
}

.login-form {
    background: var(--card-bg);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.1);
}

.login-form .form-group.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.login-form .form-group.checkbox input {
    width: auto;
    margin: 0;
}

.login-form .form-group.checkbox label {
    margin-bottom: 0;
    font-weight: 400;
}

.login-footer {
    text-align: center;
    color: var(--text-muted);
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.login-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.login-footer a:hover {
    color: #8393f5;
}

.login-form .cta-btn {
    width: 100%;
    margin-top: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.9rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(102, 126, 234, 0.15);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Form Group */
.card-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.card-link:hover {
    color: #8393f5;
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, transparent, rgba(10, 14, 39, 0.9));
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    padding: 3rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .branches h2,
    .features h2,
    .cta-section h2 {
        font-size: 2rem;
    }

    .branch-container {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}