/* --- Global Reset & Variables --- */
:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --accent-cyan: #0ea5e9;
    --accent-orange: #f97316;
    --accent-emerald: #10b981;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(15, 23, 42, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo h1 span {
    color: var(--accent-cyan);
}

.logo p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, rgba(15,23,42,0.95) 40%, rgba(14,165,233,0.15)), url('https://images.unsplash.com/photo-1588508065123-287b28e013da?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 8rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-cyan);
    color: #fff;
}

.btn-primary:hover {
    background-color: #0284c7;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    background-color: #fff;
    color: #000;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
}

/* --- Service Grid --- */
.services-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-cyan);
    margin: 0.5rem auto 0 auto;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.service-details {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card .icon-box {
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 1.25rem;
    display: inline-block;
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.15);
}

/* --- Client Registration Portal --- */
.auth-section {
    padding: 6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.auth-info-side {
    flex: 1;
    min-width: 320px;
}

.auth-info-side h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.auth-info-side h2 span {
    color: var(--accent-cyan);
}

.auth-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.auth-perks {
    list-style: none;
}

.auth-perks li {
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-card {
    flex: 1;
    min-width: 320px;
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.auth-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.optional-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.btn-auth {
    background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.auth-alert {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 600;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Secure Admin Table Configuration */
.admin-log-wrapper {
    margin-top: 4rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.admin-panel-box {
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.admin-panel-header h4 {
    font-size: 1.2rem;
    color: var(--accent-cyan);
}

.btn-admin-close {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-admin-close:hover {
    background: #ef4444;
    color: white;
}

.table-scroll-container {
    overflow-x: auto;
}

.admin-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-data-table th, 
.admin-data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-data-table th {
    background-color: var(--bg-card);
    color: var(--text-main);
    font-weight: 600;
}

.admin-data-table td {
    color: var(--text-muted);
}

.highlight-green {
    color: var(--accent-emerald) !important;
    font-weight: 600;
}

/* --- Hardware Scrap Buyback Desk --- */
.buyback-section {
    padding: 5rem 0;
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
}

.buyback-glass-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 3.5rem;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.recycle-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--accent-emerald);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.green-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: greenPulseAni 2s infinite;
}

@keyframes greenPulseAni {
    0% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.6; }
}

.buyback-container-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    text-align: left;
}

.buyback-text-side {
    flex: 1.4;
    min-width: 320px;
}

.buyback-text-side h3 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.buyback-text-side h3 span {
    color: var(--accent-emerald);
}

.buyback-tagline {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.buyback-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.buyback-action-side {
    flex: 0.8;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
}

.value-estimate-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.value-estimate-box .estimate-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.value-estimate-box .estimate-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
}

.btn-buyback {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-buyback:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    filter: brightness(1.1);
}

/* --- Ultra Premium 3D Neon Referral Section --- */
.referral-section {
    padding: 6rem 0;
    background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
}

.referral-glass-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 4rem 3rem;
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.premium-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
}

.premium-title span {
    background: linear-gradient(90deg, #0ea5e9, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 3.5rem auto;
    line-height: 1.7;
}

.reward-split-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.split-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
    transition: var(--transition);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.left-glow { border-color: rgba(14, 165, 233, 0.1); }
.right-glow { border-color: rgba(249, 115, 22, 0.1); }

.left-glow:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.2);
}

.right-glow:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.2);
}

.split-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.03);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.left-glow .split-icon { color: var(--accent-cyan); }
.right-glow .split-icon { color: var(--accent-orange); }

.split-info h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.split-info h3 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.left-glow h3 { color: var(--text-main); }
.right-glow h3 { color: var(--accent-orange); }

.split-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.action-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.btn-3d-call {
    background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    box-shadow: 0 8px 0 #0369a1, 0 15px 25px rgba(14, 165, 233, 0.3);
    transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.btn-3d-call:hover {
    transform: translateY(2px);
    box-shadow: 0 6px 0 #0369a1, 0 10px 20px rgba(14, 165, 233, 0.2);
}

.btn-3d-call:active {
    transform: translateY(8px);
    box-shadow: 0 0 0 #0369a1, 0 5px 10px rgba(14, 165, 233, 0.1);
}

/* --- Home Visit Booking Section --- */
.booking-section {
    padding: 5rem 0;
    background-color: rgba(30, 41, 59, 0.15);
}

.booking-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.booking-content {
    flex: 1;
    min-width: 320px;
}

.booking-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.booking-content h2 span {
    color: var(--accent-cyan);
}

.booking-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.booking-features {
    list-style: none;
}

.booking-features li {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-cyan {
    color: var(--accent-cyan);
    font-size: 1.2rem;
    width: 25px;
}

.booking-form-box {
    flex: 1;
    min-width: 320px;
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.booking-form-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.booking-form-box input,
.booking-form-box select,
.auth-card input {
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.85rem;
    color: #fff;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    width: 100%;
}

.booking-form-box input:focus,
.booking-form-box select:focus,
.auth-card input:focus {
    border-color: var(--accent-cyan);
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
    min-width: 140px;
}

.btn-booking {
    background-color: var(--accent-cyan);
    color: white;
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

/* --- Contact Section --- */
.contact-section {
    padding: 4rem 0;
    background-color: rgba(30, 41, 59, 0.3);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-method {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-method i {
    color: var(--accent-cyan);
    margin-right: 0.5rem;
}

.contact-form-box form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form-box input, 
.contact-form-box textarea {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: #fff;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.contact-form-box input:focus, 
.contact-form-box textarea:focus {
    border-color: var(--accent-cyan);
}

.btn-submit {
    background-color: var(--accent-cyan);
    color: white;
}

/* --- Google Maps Area --- */
.location-section {
    padding-bottom: 5rem;
}

.map-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    background: var(--bg-card);
}

.map-overlay-info {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 300px;
}

.map-overlay-info h4 {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--text-main);
}

.map-overlay-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.5rem 0 1.2rem 0;
}

.btn-map-dir {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent-cyan);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-map-dir:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

/* --- Footer --- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-content p {
    margin: 0.25rem 0;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 75px;
        left: 0;
        background-color: var(--bg-dark);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 1.5rem 0;
        text-align: center;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .buyback-wrapper, .booking-container, .referral-glass-card, .buyback-container-layout, .auth-container {
        flex-direction: column;
        text-align: center;
    }

    .buyback-text-side, .buyback-action-side {
        width: 100%;
    }

    .booking-features li {
        justify-content: center;
    }

    .map-overlay-info {
        position: relative;
        top: 0;
        left: 0;
        max-width: 100%;
        margin: 10px;
        border-radius: 12px;
    }
}