/* public/css/glass.css */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;800&display=swap');

:root {
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --primary-accent: #4facfe;
    --secondary-accent: #00f2fe;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    min-height: 100vh;
    font-family: 'Figtree', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background Animation Elements */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: floatOrb 20s infinite ease-in-out;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }
}

/* Typography */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Glass Components */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 32, 39, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: white;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-accent);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-primary {
    padding: 10px 24px;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    border: none;
    border-radius: 50px;
    color: #0f2027;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

/* Sections */
section {
    padding: 6rem 5%;
    position: relative;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #b3e5fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.hero-card {
    flex: 1;
    max-width: 500px;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% {
        left: -150%;
    }

    50%,
    100% {
        left: 150%;
    }
}

.glass-input {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.glass-input:focus {
    border-color: var(--primary-accent);
}

.glass-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    border: none;
    color: #0f2027;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.glass-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

/* Stats Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-accent);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features/Services Grid */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    transition: transform 0.3s, background 0.3s;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-accent);
}

/* Testimonials */
.testimonials-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    /* Hide scrollbar */
    scrollbar-width: none;
}

.testimonial-card {
    min-width: 350px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ccc;
    object-fit: cover;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: radial-gradient(circle at center, rgba(79, 172, 254, 0.2) 0%, transparent 70%);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 4rem;
    border-radius: 30px;
}

/* Footer */
footer {
    background: rgba(10, 20, 25, 0.8);
    backdrop-filter: blur(20px);
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--primary-accent);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.stat-title {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

/* Tab Navigation */
.glass-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.glass-tab {
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
}

.glass-tab:hover,
.glass-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Admin Layout Styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: rgba(15, 32, 39, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    color: var(--primary-accent);
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link i {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-link:hover i {
    transform: translateX(3px);
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(79, 172, 254, 0.2), transparent);
    color: white;
    border-left: 3px solid var(--primary-accent);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f2027;
    font-weight: 800;
    font-size: 1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.logout-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: 0.2s;
    display: flex;
    align-items: center;
}

.logout-btn:hover {
    color: #ff4b4b;
    background: rgba(255, 75, 75, 0.1);
}

.admin-content {
    margin-left: 280px;
    flex: 1;
    padding: 2.5rem;
    background: radial-gradient(circle at top right, rgba(79, 172, 254, 0.05), transparent 40%);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }

    .sidebar-brand span,
    .nav-link span,
    .user-info,
    .sidebar-header {
        display: none;
    }

    .sidebar-header {
        padding: 1.5rem;
        display: flex;
        justify-content: center;
    }

    .sidebar-brand {
        justify-content: center;
    }

    .nav-link {
        justify-content: center;
        padding: 1rem;
    }

    .sidebar-footer {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .admin-content {
        margin-left: 80px;
    }
}

/* --- Mobile Specific Enhancements --- */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(15, 32, 39, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.4s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    /* Reduce performance heavy effects on mobile */
    .bg-orb {
        filter: blur(40px);
        /* Half the blur for mobile */
        animation-duration: 40s;
        /* Slower animation to save CPU */
        width: 150px !important;
        height: 150px !important;
    }

    .glass-panel,
    .glass-card,
    .glass-nav {
        backdrop-filter: blur(8px);
        /* Less heavy blur */
        -webkit-backdrop-filter: blur(8px);
    }
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding-top: 6rem;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-card {
        width: 100%;
        max-width: 100%;
    }

    .glass-panel {
        padding: 2rem;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    /* Vertical Progress Track */
    .progress-track {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
        padding-left: 1rem;
    }

    .progress-track::before {
        left: 28px;
        top: 0;
        width: 2px;
        height: 100%;
        transform: none;
    }

    .step {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0;
        background: transparent;
        width: 100%;
        text-align: left;
    }

    .step-circle {
        margin: 0;
        flex-shrink: 0;
        width: 35px;
        height: 35px;
    }

    .step-label {
        margin: 0;
        font-size: 1rem;
    }

    .nav-links {
        /* display: none; */
    }
}