:root {
    --primary-color: #0052FF; /* Vibrant Blue from Logo */
    --secondary-color: #D6C6FF; /* Lavender from Logo */
    --dark-bg: #0B0E14; /* Dark Navy from Design */
    --light-bg: #F8F9FA;
    --text-dark: #1A1A1A;
    --text-muted: #526173;
    --white: #FFFFFF;
    --accent-gradient: linear-gradient(135deg, #0052FF 0%, #D6C6FF 100%);
}

body {
    font-family: 'Inter', sans-serif; /* Modern font choice */
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Premium Layout Grid - Custom Container Side Padding */
.container {
    padding-left: 24px;
    padding-right: 24px;
}

@media (min-width: 992px) {
    .container {
        padding-left: 48px;
        padding-right: 48px;
    }
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 1rem;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    color: var(--white);
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-custom:hover {
    background-color: #0041cc;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 82, 255, 0.25);
    color: var(--white);
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 4rem;
    background: radial-gradient(circle at 90% 10%, rgba(214, 198, 255, 0.2) 0%, transparent 40%),
                radial-gradient(circle at 10% 90%, rgba(0, 82, 255, 0.05) 0%, transparent 40%);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Feature Cards */
.feature-card {
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
    background: var(--white);
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.feature-number {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

/* Services Section (Dark) */
.services-section {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 6rem 0;
    border-radius: 50px 50px 0 0;
}

.service-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-item:hover {
    padding-left: 1rem;
    border-bottom-color: var(--primary-color);
}

.service-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0;
}

.service-item p {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Contact Section */
.contact-section {
    background-color: #2D343F;
    color: var(--white);
    padding: 5rem;
    border-radius: 40px;
    margin: 4rem 0;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 1rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .contact-section {
        padding: 2rem;
    }
}

/* Reveal Animations */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Admin Dashboard Specific Styles */
.admin-body {
    background-color: #F4F7FE;
    height: 100vh;
    overflow: hidden;
}

.admin-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

.admin-sidebar {
    width: 280px;
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 2rem 1.5rem;
    height: 100vh;
    z-index: 1000;
    box-shadow: 4px 0 24px rgba(0,0,0,0.05);
    border-right: 1px solid rgba(255,255,255,0.05);
    overflow-y: auto;
    flex-shrink: 0;
}

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

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.sidebar-logo {
    margin-bottom: 0;
    padding-left: 0;
    flex: 1;
    min-width: 0;
}

.sidebar-logo img {
    max-width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

.admin-sidebar-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.admin-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
}

.sidebar-item {
    margin-bottom: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar-link i {
    width: 20px;
    margin-right: 15px;
    font-size: 1.1rem;
    opacity: 0.8;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    transform: translateX(5px);
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2b7fff 100%);
    color: var(--white);
    box-shadow: 0 8px 16px rgba(0, 82, 255, 0.25);
}

.sidebar-link.active i {
    opacity: 1;
}

.admin-main {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 2rem 3rem;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.search-box {
    background: var(--white);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.admin-card {
    background: var(--white);
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    height: 100%;
}

.stat-card-primary {
    background: var(--primary-color);
    color: var(--white);
}

.admin-table th {
    background-color: #F9FAFB;
    border: none;
    padding: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-table td {
    padding: 1.2rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #F1F1F1;
}

/* Admin — mobile sidebar & responsive shell */
.admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 14, 20, 0.45);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.admin-sidebar-backdrop.is-visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.admin-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: var(--white);
    color: var(--dark-bg);
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.admin-menu-toggle:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.admin-topbar-start,
.admin-topbar-end {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.admin-topbar-start {
    flex: 1;
}

.admin-topbar-end {
    flex-shrink: 0;
}

.admin-mobile-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-bg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.admin-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Dashboard traffic chart */
.traffic-chart {
    display: flex;
    align-items: flex-end;
    gap: clamp(0.35rem, 2vw, 0.95rem);
    height: min(300px, 45vw);
    min-height: 200px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.traffic-chart__group {
    flex: 1 1 36px;
    min-width: 32px;
    max-width: 72px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.traffic-chart__track {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    min-height: 100px;
}

.traffic-chart__bar {
    width: 100%;
    min-height: 6px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #2b7fff 0%, var(--primary-color) 100%);
    opacity: 0.88;
    transition: height 0.35s ease, opacity 0.2s ease;
}

.traffic-chart__label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: center;
    white-space: nowrap;
}

.dashboard-chart-header {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dashboard-stat-card h3 {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.lead-item {
    min-width: 0;
}

.lead-item .lead-icon {
    flex-shrink: 0;
}

@media (max-width: 1199.98px) {
    .admin-menu-toggle {
        display: inline-flex;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.15);
    }

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

    .admin-sidebar-close {
        display: inline-flex;
    }

    /* Keep topbar behind overlay + drawer when menu is open */
    body.admin-nav-open .admin-topbar {
        z-index: 1;
        pointer-events: none;
    }

    body.admin-nav-open .admin-topbar-start,
    body.admin-nav-open .admin-topbar-end {
        opacity: 0;
        visibility: hidden;
    }

    /* Close via sidebar × button only — avoids overlapping logo */
    body.admin-nav-open .admin-menu-toggle {
        display: none !important;
    }

    .admin-main {
        width: 100%;
        padding: 1rem 1rem 2rem;
    }

    .admin-topbar {
        gap: 0.75rem;
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
    }

    .search-box {
        width: 100%;
        max-width: 280px;
    }

    body.admin-nav-open {
        overflow: hidden;
    }
}

@media (max-width: 767.98px) {
    .admin-body {
        height: auto;
        min-height: 100vh;
        overflow-x: hidden;
    }

    .admin-wrapper {
        height: auto;
        min-height: 100vh;
    }

    .admin-sidebar {
        width: min(280px, 88vw);
        padding: 1.25rem 1rem;
    }

    .sidebar-header {
        margin-bottom: 1.25rem;
    }

    .admin-main {
        height: auto;
        min-height: 100vh;
        overflow-y: visible;
        padding: 0.75rem 0.75rem 1.5rem;
    }

    .admin-topbar {
        flex-direction: row;
        align-items: center;
    }

    .admin-mobile-title {
        max-width: min(160px, 40vw);
    }

    .admin-card {
        border-radius: 16px;
    }

    .traffic-chart {
        min-height: 180px;
        height: 220px;
    }

    .dashboard-quick-action .admin-card {
        padding: 1.25rem !important;
    }

    .dashboard-quick-action i {
        font-size: 1.5rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .admin-main {
        padding: 1.25rem 1.5rem 2rem;
    }

    .admin-mobile-title {
        max-width: 220px;
    }
}

@media (min-width: 1200px) {
    .admin-sidebar-backdrop {
        display: none !important;
    }
}

/* CRM module */
.crm-subnav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.crm-subnav::-webkit-scrollbar { display: none; }

.crm-subnav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.crm-subnav__link:hover {
    background: #f8fafc;
    color: var(--primary-color);
}

.crm-subnav__link.active {
    background: #eff6ff;
    color: var(--primary-color);
}

.crm-badge { font-weight: 600; font-size: 0.7rem; }

.crm-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), #2b7fff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
}

.admin-page-crm .admin-mobile-title { display: none !important; }

/* Portfolio Home Card */
.project-card-home {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f1f5f9;
}
.project-card-home:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}
.project-img-wrapper {
    height: 250px;
    overflow: hidden;
}
.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.project-card-home:hover .project-img-wrapper img {
    transform: scale(1.1);
}

/* Testimonials */
.testimonial-card {
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    background: rgba(255,255,255,0.08) !important;
    border-color: var(--primary-color) !important;
}

/* Accordion Enhancements */
.accordion-button:not(.collapsed) {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0.125);
}
.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0,82,255,0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}
.fw-800 { font-weight: 800; }

/* Premium Flat UI System */
.flat-ui-layout { max-width: 1200px; margin: 0 auto; }
.flat-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.flat-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.flat-card-header h6 { margin: 0; font-weight: 700; color: #475569; }
.flat-control {
    width: 100%;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--dark-bg);
    transition: all 0.2s ease;
}
.flat-control:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.1);
    outline: none;
}
.flat-label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.flat-title-input {
    font-size: 2.5rem;
    font-weight: 800;
    border: none;
    background: transparent;
    width: 100%;
    padding: 0;
    margin-bottom: 1.5rem;
    color: var(--dark-bg);
}
.flat-title-input:focus { outline: none; }
.btn-flat-primary {
    background: var(--primary-color);
    color: #fff;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 700;
    border: none;
    transition: all 0.2s ease;
}
.btn-flat-primary:hover { background: #0041cc; transform: translateY(-2px); }
.btn-flat-light {
    background: #f1f5f9;
    color: #475569;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 700;
    border: none;
    text-decoration: none;
}
.flat-upload-zone {
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8fafc;
}
.flat-upload-zone:hover { border-color: var(--primary-color); background: #fff; }
.bg-soft-primary { background: rgba(0, 82, 255, 0.1); color: var(--primary-color); }

/* Touch Targets Accessibility Improvements */
.footer-links a {
    display: inline-block !important;
    padding: 8px 0 !important;
}

/* Skeleton UI Layout Shift Control Loader */
.skeleton-image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f1f5f9;
}
.skeleton-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    z-index: 2;
    transition: opacity 0.3s ease;
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-image-wrapper img {
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.skeleton-image-wrapper img.loaded {
    opacity: 1;
}
.skeleton-image-wrapper.loaded {
    background-color: transparent !important;
    background: none !important;
}
.skeleton-image-wrapper.loaded::before {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none;
}

