/* Modern Design System - Glassmorphism & Premium Dark Theme */
/* Modern Design System - Premium Light Theme */
:root {
    --bg-color: #f8fafc;
    /* Very Light Gray/White */
    --text-color: #1e293b;
    /* Slate 800 */
    --primary-color: #2563eb;
    /* Royal Blue */
    --accent-color: #f59e0b;
    /* Amber */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: white;
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(59, 130, 246, 0.7);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

/* Dropdown Menu */
.nav-links li {
    position: relative;
    padding: 10px 0;
    /* Increase hit area */
}

.dropdown-menu {
    list-style: none;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    min-width: 220px;
    padding: 15px 0;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 5px;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.nav-links li:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    padding: 0 15px;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-color);
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s;
}

/* Bullet points for dropdown items */
/* Removed bullets as requested */

.dropdown-menu a:hover {
    background: #f1f5f9;
    color: var(--primary-color);
    padding-left: 20px;
}


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

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 100%;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Specific Header Buttons */
.btn-login {
    background-color: #2563eb;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.btn-login:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.btn-register {
    background-color: white;
    color: #f59e0b;
    border: 2px solid #f59e0b;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-register:hover {
    background-color: #f59e0b;
    color: white;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        margin-top: 2rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero p {
        margin: 0 auto 2rem auto;
    }

    .hero-image {
        display: none;
        /* Hide image on smaller screens if too crowded, or show it below */
    }
}

/* Services Grid */
.services {
    padding: 5rem 0;
}

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

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

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #020617;
    padding: 3rem 0;
    margin-top: 5rem;
    border-top: 1px solid var(--glass-border);
}

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

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

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

.footer-section ul li a {
    color: #94a3b8;
}

.footer-section ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    color: #475569;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

/* Form Styles */
.auth-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-box {
    width: 100%;
    max-width: 400px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #475569;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1e293b;
    font-family: inherit;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* =========================================
   Premium Navigation Bar Styles
   ========================================= */

/* Sub-Header Container */
.sub-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 12px 0;
    position: fixed;
    top: 90px;
    width: 100%;
    z-index: 900;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

/* Scrollable Container */
.quick-nav {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 5px 20px;
    scrollbar-width: none;
    justify-content: center;
    /* Centered on desktop */
}

.quick-nav::-webkit-scrollbar {
    display: none;
}

/* Nav Buttons (Pill Style) */
.quick-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Hover State */
.quick-nav a:hover {
    background: #ffffff;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
}

/* Active State */
.quick-nav a.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .quick-nav {
        justify-content: flex-start;
        /* Left align on mobile for scrolling */
    }

    .sub-header {
        top: 70px;
        /* Adjust if main header shrinks on mobile */
    }
}

/* =========================================
   Modal Styles (Admin Edit User)
   ========================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay[style*="display: block"],
.modal-overlay[style*="display:block"],
.modal-overlay[style*="display: flex"],
.modal-overlay[style*="display:flex"] {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 100000;
}

.modal-overlay[style*="display: block"] .modal-box,
.modal-overlay[style*="display:block"] .modal-box {
    transform: scale(1);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #ef4444;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

@media (max-width: 768px) {
    .modal-box {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
    }

    .modal-body {
        padding: 20px;
    }
}

/* =========================================
   Testimonials Slider Styles
   ========================================= */

.testimonials-section {
    padding: 5rem 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.testimonials-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 60px;
}

.testimonials-track {
    position: relative;
    min-height: 300px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

.testimonial-card-home {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
    text-align: left;
}

.testimonial-card-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.quote-icon {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 4rem;
    color: rgba(37, 99, 235, 0.08);
    line-height: 1;
}

.testimonial-rating-home {
    color: #fbbf24;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    gap: 5px;
    margin-left: 60px;
}

.testimonial-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 30px;
    font-style: italic;
    position: relative;
    padding-left: 60px;
}

.testimonial-author {
    border-top: 2px solid #f1f5f9;
    padding-top: 20px;
    margin-left: 60px;
}

.testimonial-author h4 {
    margin: 0 0 5px 0;
    color: #0f172a;
    font-size: 1.3rem;
    font-weight: 700;
}

.testimonial-author p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #2563eb;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.slider-btn:hover {
    background: #1d4ed8;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: #94a3b8;
    transform: scale(1.2);
}

.dot.active {
    background: #2563eb;
    width: 32px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 3rem 0;
    }

    .testimonials-slider {
        padding: 20px 50px;
    }

    .testimonial-card-home {
        padding: 30px 25px;
    }

    .testimonial-text {
        font-size: 1rem;
        padding-left: 0;
    }

    .testimonial-rating-home,
    .testimonial-author {
        margin-left: 0;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-prev {
        left: 5px;
    }

    .slider-next {
        right: 5px;
    }

    .quote-icon {
        font-size: 2.5rem;
        top: 20px;
        left: 20px;
    }
}