/* After Dark Systems - Navy Blue & White Theme */
:root {
    --navy-dark: #1a237e;
    --navy-primary: #283593;
    --navy-light: #3f51b5;
    --navy-accent: #5c6bc0;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --shadow: rgba(26, 35, 126, 0.15);
}

/* Dark Mode Variables */
body.dark-mode {
    --navy-dark: #5c6bc0;
    --navy-primary: #7986cb;
    --navy-light: #9fa8da;
    --navy-accent: #c5cae9;
    --white: #1a1a1a;
    --light-gray: #2a2a2a;
    --medium-gray: #b0b0b0;
    --dark-gray: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.3);
    background-color: #1a1a1a;
    color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    gap: 1rem;
}

.nav-brand {
    flex-shrink: 0;
    margin-right: 1rem;
}

.nav-brand a {
    text-decoration: none;
}

.nav-brand h2 {
    color: var(--navy-dark);
    font-weight: 700;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-brand a:hover h2 {
    color: var(--navy-primary);
}

/* Search Box */
.nav-search {
    display: flex;
    align-items: center;
    background: var(--navy-primary);
    border-radius: 6px;
    padding: 0.5rem;
    flex: 0 1 400px;
    max-width: 400px;
}

.nav-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--white);
    padding: 0.3rem 0.5rem;
    font-size: 0.95rem;
    outline: none;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.nav-search button {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.nav-search button:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin-left: auto;
    margin-right: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--navy-primary);
}

.employee-login-btn {
    background: var(--navy-primary);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.employee-login-btn:hover {
    background: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

/* Dropdown menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border-radius: 4px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    padding-top: 0.5rem;
}

.dropdown-content a {
    color: var(--navy-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.dropdown-content a:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.dropdown-content a:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.dropdown-content a:hover {
    background-color: var(--light-gray);
    color: var(--navy-primary);
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    margin-top: 70px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--white);
    color: var(--navy-dark);
}

.btn-primary:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--navy-dark);
}

/* Sections */
section {
    padding: 80px 0;
}

.why-choose-us {
    background: var(--light-gray);
}

.why-choose-us h2,
.services-overview h2,
.team-overview h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--navy-dark);
    margin-bottom: 3rem;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature h3 {
    color: var(--navy-dark);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Services Overview */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--navy-primary);
    box-shadow: 0 5px 20px var(--shadow);
}

.service-card h3 {
    color: var(--navy-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card li {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-card li::before {
    content: "✓";
    color: var(--navy-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Team Overview */
.team-overview {
    background: var(--light-gray);
}

.team-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat {
    text-align: center;
    background: var(--white);
    padding: 2rem 1rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--dark-gray);
    font-weight: 500;
}

/* CTA Section */
.cta {
    background: var(--navy-dark);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--medium-gray);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--medium-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--medium-gray);
    padding-top: 2rem;
    text-align: center;
    color: var(--medium-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        margin-top: 0.5rem;
    }

    .nav-links {
        display: none;
    }

    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 0.8rem 1.5rem;
    }

    .dropdown-content {
        left: 0;
        transform: none;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    border: 2px solid var(--navy-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 2px 10px var(--shadow);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px var(--shadow);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    display: none;
}

body.dark-mode .theme-toggle {
    background: var(--light-gray);
    border-color: var(--navy-accent);
}