:root {
    --primary-color: #10b981; /* Emerald Green */
    --secondary-color: #0f766e; /* Teal */
    --bg-color: #f8fafc; /* Slate 50 */
    --card-bg: rgba(255, 255, 255, 0.7); /* White glass */
    --text-color: #1e293b; /* Slate 800 */
    --text-muted: #64748b; /* Slate 500 */
    --glass-border: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(circle at top right, rgba(16, 185, 129, 0.15), transparent 40%),
                      radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.15), transparent 40%);
    background-attachment: fixed;
}

header {
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

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

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: #34d399;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

main {
    flex: 1;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 0;
    animation: fadeIn 1s ease-out;
}

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

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

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

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(52, 211, 153, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    margin-top: auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-top: 4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-banner {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-top: 5rem;
    backdrop-filter: blur(10px);
}
.contact-banner h3 {
    color: #34d399;
    margin-bottom: 1rem;
}
.contact-banner p {
    color: var(--text-muted);
    margin: 0.5rem 0;
}

/* Header Default (Desktop) */
.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
}
.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: 0.3s ease;
}

/* Mobile Responsiveness (Slide-in Menu) */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 1.5rem 2rem;
    }
    .menu-toggle {
        display: flex;
    }
    
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 6rem;
        padding-left: 2rem;
        gap: 2rem;
        transition: right 0.4s ease;
        z-index: 150;
        border-left: 1px solid var(--glass-border);
        box-shadow: -5px 0 30px rgba(0,0,0,0.5);
        overflow-y: auto;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    
    .nav-container::-webkit-scrollbar {
        display: none;
    }
    
    .nav-container.active {
        right: 0;
    }
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }
    .auth-buttons {
        padding: 0 2rem 3rem 2rem;
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
    }
    .auth-buttons .btn-primary {
        text-align: center;
    }
    .dropdown-menu {
        position: static !important;
        background: transparent !important;
        border: none !important;
        padding-left: 1rem !important;
        box-shadow: none !important;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 4rem 0;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    main {
        padding: 2rem 1rem;
    }
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
    text-align: left;
}
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form select option {
    background: var(--bg-color);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

/* Admin Dashboard */
.table-responsive {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}
.admin-table th, .admin-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.admin-table th {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-weight: 600;
}
.admin-table tbody tr:hover {
    background: rgba(0,0,0,0.02);
}
.status-select {
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.2);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
}
.status-select.new { color: #ef4444; border-color: rgba(239, 68, 68, 0.5); }
.status-select.contacted { color: #f59e0b; border-color: rgba(245, 158, 11, 0.5); }
.status-select.closed { color: #10b981; border-color: rgba(16, 185, 129, 0.5); }
.status-select option { background: var(--bg-color); color: var(--text-color); }

/* Dropdown Menu */
.dropdown {
    position: relative;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 150px;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.dropdown:hover .dropdown-menu, .dropdown.active .dropdown-menu {
    display: block;
}
.dropdown-menu li {
    margin: 0;
}
.dropdown-menu a {
    padding: 0.8rem 1.5rem !important;
    display: block;
    color: var(--text-color);
}
.dropdown-menu a:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981 !important;
}

/* Toast Notification */
.toast-success {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 185, 129, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    animation: slideDown 0.5s ease-out;
    width: max-content;
    max-width: 90vw;
}

@keyframes slideDown {
    from { top: -50px; opacity: 0; }
    to { top: 100px; opacity: 1; }
}

@media (max-width: 768px) {
    .toast-success {
        width: 90vw;
        border-radius: 12px;
        padding: 1rem;
        top: 80px;
    }
}

/* Desktop Sidebar overrides */
@media (min-width: 769px) {
    body {
        padding-left: 280px;
    }
    header {
        position: fixed;
        left: 0;
        top: 0;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 2.5rem 2rem;
        border-bottom: none;
        border-right: 1px solid var(--glass-border);
        overflow-y: auto;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    header::-webkit-scrollbar {
        display: none;
    }
    .logo {
        margin-bottom: 3rem;
        display: block;
    }
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        height: 100%;
        gap: 0;
    }
    nav {
        width: 100%;
    }
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }
    nav a {
        display: block;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        margin-left: -1rem; /* align text to the left while keeping padding */
    }
    nav a:hover {
        padding-left: 1.5rem;
        background: rgba(16, 185, 129, 0.1);
    }
    nav a.active {
        background: rgba(16, 185, 129, 0.15);
        color: #10b981;
        font-weight: 600;
        padding-left: 1.5rem;
        border-left: 4px solid #10b981;
        border-radius: 0 8px 8px 0;
    }
    .auth-buttons {
        margin-top: auto;
        padding-top: 2rem;
        padding-bottom: 3rem;
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    .auth-buttons .btn-primary {
        text-align: center;
        width: 100%;
    }
    /* Fix dropdown for sidebar */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: transparent;
        border: none;
        padding-left: 1rem;
        display: none; /* Keep hidden by default */
    }
    .dropdown.active .dropdown-menu {
        display: block;
    }
}

/* Coming Soon Page */
.coming-soon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}
.coming-soon-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 4rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    animation: pulseGlow 3s infinite alternate;
}
.coming-soon-card h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #10b981, #0f766e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.coming-soon-card p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
@keyframes pulseGlow {
    from { box-shadow: 0 20px 40px rgba(16, 185, 129, 0.05); border-color: rgba(16, 185, 129, 0.1); }
    to { box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2); border-color: rgba(16, 185, 129, 0.4); }
}
