@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #10b981;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --accent: #f59e0b;
    --glass: rgba(255, 255, 255, 0.9);
    --danger: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Fluid Typography & Spacing */
    --h1-size: clamp(2.5rem, 8vw, 5rem);
    --h2-size: clamp(2rem, 5vw, 3rem);
    --h3-size: 1.5rem;
    --body-size: 1rem;
    --hero-p-size: clamp(1.1rem, 2vw, 1.35rem);
    --section-padding: clamp(60px, 10vw, 120px);
}

img,
video,
iframe,
canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-weight: 800;
    letter-spacing: -0.025em;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Header */
header {
    height: 80px;
    display: flex;
    align-items: center;
    background: var(--glass);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-sign-in {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-sign-in {
        display: inline-flex !important;
    }

    .desktop-only {
        display: none !important;
    }
}

.logo {
    font-size: 1.5rem;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text);
    padding: 0.5rem;
    line-height: 1;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.2s;
}

nav a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s all;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

.btn-lg {
    padding: 1.1rem 2.8rem;
    font-size: 1.1rem;
}

.btn-outline {
    background: white;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0f7ff;
}

/* Cards */
.glass-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: 0.3s transform;
}

/* Home Page Specifics */
.hero .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1.2;
}

.hero-text h1 {
    font-size: var(--h1-size);
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #010b1a;
    font-weight: 800;
}

.hero-text p {
    font-size: var(--hero-p-size);
    color: #475569;
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.6;
}

.btn-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    position: relative;
    animation-delay: 0.2s;
    width: 100%;
}

.hero-image img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.12);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

/* Why Us Section */
.why-us-content {
    display: flex;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
}

.why-us-visual {
    flex: 1;
    min-width: 280px;
}

.why-us-text {
    flex: 1.2;
    min-width: 280px;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-item {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.check-icon {
    color: var(--secondary);
    font-size: 1.5rem;
}

.map-container {
    padding: 3rem;
    text-align: center;
}

.map-wrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#cta {
    text-align: center;
    background: var(--primary);
    color: white;
}

#cta h2 {
    font-size: var(--h2-size);
}

.section-white-border {
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.map-iframe {
    border: 0;
    width: 100%;
    height: 450px;
}

@media (max-width: 768px) {
    .map-iframe {
        height: 300px;
    }
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto clamp(40px, 5vw, 60px);
}

.view-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: #0f172a;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 40px;
    }

    .view-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.why-us-visual img {
    width: 100%;
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
}

.section-header h2 {
    font-size: var(--h2-size);
    margin-bottom: 1.25rem;
    color: #1e293b;
    line-height: 1.25;
}

.feature-card {
    background: white;
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: 32px;
    border: 1px solid #eef2f6;
    transition: 0.3s;
    text-align: center;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    border-color: #dbeafe;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #eff6ff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 24px;
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.map-section {
    background: #f1f5f9;
    padding: 80px 0;
    border-radius: 48px;
    margin: 80px 0;
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 2rem;
    }
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.view-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid #eef2f6;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .view-card {
        padding: 1.5rem;
    }
}

/* Tables */
.table-container {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8fafc;
    text-align: left;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
}

/* Badges */
.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-confirmed {
    background: #dcfce7;
    color: #166534;
}

.badge-under-service {
    background: #dbeafe;
    color: #1e40af;
}

.badge-service-done {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bdf4d4;
}

.badge-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Dashboard Sidebar */
.dash-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: white;
    border-right: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.sidebar .logo {
    text-decoration: none;
    margin-bottom: 2.5rem;
}

.nav-list {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-profile {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.booking-card {
    max-width: 850px;
}

.service-checklist-grid {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .service-checklist-grid {
        grid-template-columns: 1fr;
    }
}

.modal-md {
    width: 100%;
    max-width: 600px;
}

.modal-sm {
    max-width: 440px;
    text-align: center;
}

.site-footer {
    padding: 80px 0;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand .logo {
    font-size: 1.8rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-group strong {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.footer-group a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.footer-group a:hover {
    color: var(--primary);
}

/* Dashboard Specifics */
.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.action-group {
    display: flex;
    gap: 0.75rem;
}

.otp-wrapper {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.otp-digit {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.otp-digit:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.otp-sim-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
    z-index: 5000;
    width: 300px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-radius: 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    margin-bottom: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    background: #eff6ff;
    color: var(--primary);
}

.main-content {
    padding: 3rem;
    background: #f8fafc;
}

/* Stat Cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.stat-card h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.stat-card .value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
}

.hero {
    padding: 120px 0;
    background: radial-gradient(circle at 100% 0%, #f0f7ff 0%, #ffffff 70%);
}

.section-padding {
    padding: var(--section-padding) 0;
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 0 60px;
    }
}

/* Forms & Inputs */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.input-group input,
.input-group select {
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    width: 100%;
    transition: 0.2s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

/* Auth Pages */
.auth-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 3rem;
    border-radius: 32px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.tab-btn {
    border-bottom: 3px solid transparent;
    padding: 0.75rem 0;
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-tab-group {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.alert-info {
    margin-top: 2.5rem;
    padding: 1.25rem;
    background: #f0f9ff;
    border-radius: 16px;
    font-size: 0.85rem;
    color: #1e40af;
    border: 1px solid #dbeafe;
}

@media (max-width: 768px) {
    .auth-wrapper {
        min-height: calc(100vh - 70px);
        padding: 2rem 1rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

@media (max-width: 1200px) {
    :root {
        --h1-size: 4rem;
        --h2-size: 2.5rem;
    }

    .hero .container {
        gap: 2rem !important;
    }
}

@media (max-width: 1024px) {
    :root {
        --h1-size: 3.5rem;
        --h2-size: 2.25rem;
        --hero-p-size: 1.2rem;
    }

    .hero .container {
        align-items: center;
    }
}

@media (max-width: 968px) {
    .dash-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1.25rem 1rem;
        position: sticky;
        top: 0;
        z-index: 100;
        background: white;
    }

    .sidebar .logo {
        margin-bottom: 1.5rem !important;
        text-align: center;
    }

    .sidebar .nav-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
        margin-top: 0;
        padding-bottom: 0.75rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .sidebar .nav-list::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        padding: 0.6rem 1rem;
        white-space: nowrap;
        font-size: 0.85rem;
        margin-bottom: 0 !important;
    }

    .user-profile {
        display: none;
        /* Hide on mobile dash to save space */
    }

    .main-content {
        padding: 1.5rem;
    }

    .main-content h1 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .stat-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --h1-size: 2.75rem;
        --h2-size: 2rem;
        --hero-p-size: 1.1rem;
    }

    header {
        height: 70px;
    }

    .logo {
        font-size: 1.25rem;
    }

    nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        z-index: 999;
        overflow-y: auto;
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 0 !important;
        padding: 1rem 0;
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
        display: block;
    }

    nav a:last-child,
    nav a.btn {
        border-bottom: none;
        margin-top: 0.5rem;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f1f5f9;
        border-radius: 12px;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        border: none;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        margin-bottom: 1.5rem !important;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text .btn-group {
        justify-content: center;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem !important;
    }

    .hero-image {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .section-header h2 {
        font-size: var(--h2-size);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .map-section {
        padding: 2rem 1rem;
        margin: 30px 0;
        border-radius: 32px;
    }

    .map-section iframe {
        height: 300px;
    }

    footer .container {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 3rem !important;
    }

    #why-us .container {
        gap: 2.5rem !important;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .view-card {
        padding: 1.25rem;
    }

    .btn {
        width: 100%;
        margin-left: 0 !important;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .logo {
        font-size: 1.25rem;
    }

    header .container {
        padding: 0 1rem;
    }
}

/* Remove duplicated hiding of mobile menu btn at the end */