:root {
    --primary-color: #10b981; /* Emerald Green */
    --secondary-color: #0f766e; /* Teal */
    --bg-color: #0f172a; /* Slate 900 */
    --card-bg: rgba(30, 41, 59, 0.7); /* Slate 800 with opacity */
    --text-color: #f8fafc; /* Slate 50 */
    --text-muted: #94a3b8; /* Slate 400 */
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    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(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.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 {
    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: #e2e8f0;
}

.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: #e2e8f0;
}

.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(15, 23, 42, 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);
    }
    
    .nav-container.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    /* Hamburger animation to X */
    .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(255,255,255,0.2);
    background: rgba(15, 23, 42, 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: #34d399;
    font-weight: 600;
}
.admin-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}
.status-select {
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    background: var(--bg-color);
    color: white;
    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: white; }

/* 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;
    }
}
