﻿/* CodeWithRatan Premium Corporate Styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #6c5ce7 0%, #0984e3 100%);
    --accent-gradient: linear-gradient(135deg, #a29bfe 0%, #00cec9 100%);
    --bg-dark: #0f172a;
    --bg-dark-card: #1e293b;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted-dark: #475569;
    --text-light: #f8fafc;
    --text-muted-light: #cbd5e1;
    --royal-purple: #6c5ce7;
    --deep-blue: #0984e3;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--royal-purple);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--deep-blue);
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

.dark-glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    color: var(--text-light);
}

/* Premium Buttons */
.btn-premium {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-premium:hover {
    background: var(--accent-gradient);
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 206, 201, 0.4);
}

.btn-premium-outline {
    background: transparent;
    color: var(--royal-purple);
    border: 2px solid var(--royal-purple);
    padding: 10px 26px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-premium-outline:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
}

/* Sticky Header Custom Styles */
.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
    background: transparent;
}

.header-sticky.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 10px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--royal-purple);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at 10% 20%, rgba(240, 236, 255, 0.5) 0%, rgba(225, 240, 255, 0.5) 100%);
    padding: 80px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-shapes .shape {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    border-radius: 50%;
}

.hero-shapes .shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(108, 92, 231, 0.15);
    top: 10%;
    left: -50px;
}

.hero-shapes .shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(9, 132, 227, 0.15);
    bottom: 5%;
    right: -100px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Counter / Stats Section */
.stat-card {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

/* Service cards */
.service-card {
    padding: 40px 30px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.1);
    border-color: rgba(108, 92, 231, 0.2);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--royal-purple);
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-gradient);
    color: #fff;
}

/* Portfolio Filter & Grid */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    border: none;
    background: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--text-muted-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-gradient);
    color: #fff;
}

.portfolio-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: #fff;
    transition: var(--transition);
    height: 100%;
}

.portfolio-img-wrapper {
    position: relative;
    overflow: hidden;
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-img-wrapper img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(108, 92, 231, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

/* Floating WhatsApp widget */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* Footer premium styling */
.footer-premium {
    background-color: var(--bg-dark);
    color: var(--text-muted-light);
    padding: 80px 0 30px;
}

.footer-heading {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Client Portal & Admin Layout specifics */
.admin-body {
    padding: 0;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 45%, #f9f7ff 100%);
    color: #172033;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    min-width: 280px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #fff;
    z-index: 1050;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 24px 0 80px rgba(15, 23, 42, 0.22);
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 20px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #6c5ce7 0%, #0984e3 100%);
    box-shadow: 0 10px 24px rgba(108, 92, 231, 0.24);
}

.admin-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 8px 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.admin-sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.admin-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar-nav::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.15);
    border-radius: 4px;
}

.nav-section {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    padding: 14px 16px 6px;
}

.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 24px;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    margin-bottom: 22px;
    border-radius: 24px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 70px rgba(15, 23, 42, 0.08);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    min-width: 240px;
}

.header-search input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    color: #334155;
}

.btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    display: grid;
    place-items: center;
    background: #f8fafc;
    color: #475569;
    transition: var(--transition);
}

.btn-icon:hover {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.16), rgba(9, 132, 227, 0.12));
    color: var(--royal-purple);
    transform: translateY(-2px);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(9,132,227,0.12));
    color: #334155;
    font-weight: 600;
}

.sidebar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(135deg, #6c5ce7 0%, #0984e3 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(108, 92, 231, 0.24);
}

.content-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-main .card {
    border: none !important;
    border-radius: 20px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.07);
    background: rgba(255,255,255,0.95);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-main .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.1);
}

.admin-main .table {
    margin-bottom: 0;
}

.admin-main .table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: sticky;
    top: 0;
    z-index: 1;
}

.admin-main .table tbody tr {
    transition: background 0.2s ease;
}

.admin-main .table tbody tr:hover {
    background: rgba(108, 92, 231, 0.06);
}

.admin-main .form-control,
.admin-main .form-select,
.admin-main textarea {
    border-radius: 14px;
    border: 1px solid #dbe5f0;
    padding: 0.78rem 0.95rem;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.admin-main .form-control:focus,
.admin-main .form-select:focus,
.admin-main textarea:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.15);
}

.admin-main .btn {
    border-radius: 999px;
    transition: var(--transition);
}

.admin-main .btn:hover {
    transform: translateY(-2px);
}

.admin-main .badge {
    border-radius: 999px;
    padding: 0.42rem 0.7rem;
}

.admin-main .alert {
    border: none;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.dashboard-hero {
    background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(9,132,227,0.12));
    border: 1px solid rgba(108,92,231,0.1);
}

.metric-card {
    border-radius: 18px;
    padding: 18px;
    color: #fff;
    min-height: 122px;
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: '';
    position: absolute;
    inset: auto -20px -20px auto;
    width: 90px;
    height: 90px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}

.metric-card.violet { background: linear-gradient(135deg, #6c5ce7 0%, #8b7cf6 100%); }
.metric-card.blue { background: linear-gradient(135deg, #0984e3 0%, #2d9cdb 100%); }
.metric-card.green { background: linear-gradient(135deg, #00b894 0%, #55efc4 100%); }
.metric-card.orange { background: linear-gradient(135deg, #ff7675 0%, #ff9f43 100%); }

.metric-card .metric-label {
    font-size: 0.77rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

.metric-card .metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 6px;
}

.metric-card .metric-foot {
    font-size: 0.82rem;
    opacity: 0.9;
}

.sidebar-link {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 14px;
    transition: var(--transition);
    margin: 2px 4px;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(108, 92, 231, 0.22), rgba(9, 132, 227, 0.16));
    border-left: 4px solid var(--royal-purple);
    padding-left: 12px;
}

.sidebar-link i {
    width: 24px;
    margin-right: 10px;
}

.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.45);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
}

.admin-sidebar-overlay.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Auth Page */
.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at top left, rgba(108,92,231,0.18), transparent 35%), linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
}

.auth-card {
    width: min(100%, 460px);
    padding: 34px 28px;
    border-radius: 28px;
    text-align: center;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.14);
}

.auth-badge {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    color: #fff;
    background: linear-gradient(135deg, #6c5ce7 0%, #0984e3 100%);
    box-shadow: 0 18px 34px rgba(108, 92, 231, 0.22);
}

/* Responsive fixes */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
        padding: 16px;
    }

    .sidebar-toggle {
        display: inline-grid;
    }

    .header-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .header-search {
        min-width: 0;
        flex: 1 1 100%;
    }
}

@media (max-width: 575px) {
    .admin-main {
        padding: 12px;
    }

    .admin-header {
        padding: 14px 16px;
        border-radius: 18px;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .user-pill span {
        display: none;
    }
}

/* Floating Contact Panel on Middle-Right of the screen */
.floating-contact-panel {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.floating-contact-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
}

.floating-contact-btn:hover {
    transform: scale(1.1) translateX(-5px);
}

.floating-contact-btn.call {
    background: linear-gradient(135deg, #0984e3 0%, #00cec9 100%);
}

.floating-contact-btn.whatsapp {
    background: #25d366;
}

.floating-contact-btn.quote {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
}

/* Tooltip expansion labels */
.floating-contact-btn::before {
    content: attr(data-label);
    position: absolute;
    right: 50px;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.floating-contact-btn:hover::before {
    opacity: 1;
    visibility: visible;
    right: 52px;
}
