/* assets/css/style.css */

/* Import Manrope Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
    /* CUP-TECH Brand Colors */
    --slate-grey: #708090;
    --slate-grey-dark: #4a5568;
    --slate-grey-light: #f7fafc;
    
    --burnt-orange: #CC5500;
    --burnt-orange-hover: #b34a00;
    
    --text-dark: #1a202c;
    --text-light: #ffffff;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-dark);
    background-color: var(--slate-grey-light);
    overflow-x: hidden;
}

/* Premium Typography Settings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--slate-grey-dark);
    letter-spacing: -0.02em;
}

/* Custom Buttons matching the brand */
.btn-brand {
    background-color: var(--burnt-orange);
    color: var(--text-light);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 6px;
    border: none;
    transition: all 0.3s ease;
}

.btn-brand:hover {
    background-color: var(--burnt-orange-hover);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 85, 0, 0.3);
}

.btn-outline-brand {
    background-color: transparent;
    color: var(--burnt-orange);
    border: 2px solid var(--burnt-orange);
    font-weight: 600;
    padding: 10px 26px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-outline-brand:hover {
    background-color: var(--burnt-orange);
    color: var(--text-light);
}

/* Section Spacing */
.section-padding {
    padding: 80px 0;
}

/* --- PREMIUM ADMIN CONSOLE STYLES --- */

/* Admin Layout Wrapper */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #f4f7f6; /* Very soft slate-grey-light */
}

/* Modern Sidebar (Updated width & padding to prevent text wrapping) */
.admin-sidebar {
    width: 300px; /* Increased from 280px */
    background-color: var(--text-dark); /* Deep Slate */
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    padding: 30px 15px; /* Reduced horizontal padding to free up inner space */
    box-shadow: 4px 0 20px rgba(0,0,0,0.05);
    z-index: 10;
}

.admin-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--burnt-orange);
    text-decoration: none;
    margin-bottom: 40px;
    padding-left: 10px;
    letter-spacing: 1px;
}

/* Updated Admin Nav Link (Optimized padding, gap, and nowrap rules) */
.admin-nav-link {
    color: var(--slate-grey);
    text-decoration: none;
    padding: 12px 15px; /* Streamlined padding to give text maximum width */
    border-radius: 12px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem; /* Balanced text scale */
    display: flex;
    align-items: center;
    gap: 12px; /* Streamlined gap between icon and text */
    transition: all 0.3s ease;
    white-space: nowrap; /* Forces links strictly onto a single straight line */
}

.admin-nav-link i {
    font-size: 1.2rem;
}

.admin-nav-link:hover, .admin-nav-link.active {
    background-color: var(--burnt-orange);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(204, 85, 0, 0.4);
    transform: translateX(5px);
}

/* Admin Main Content Area */
.admin-main {
    flex-grow: 1;
    padding: 40px 50px;
    overflow-y: auto;
    height: 100vh;
}

/* Premium Cards */
.admin-card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
    padding: 25px;
    height: 100%;
}

.admin-card:hover {
    transform: translateY(-5px);
}

.admin-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background-color: rgba(204, 85, 0, 0.1);
    color: var(--burnt-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Better Tables */
.table-premium {
    vertical-align: middle;
}
.table-premium thead th {
    border-bottom: 2px solid var(--slate-grey-light);
    color: var(--slate-grey-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding-bottom: 15px;
}
.table-premium tbody td {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 10px;
    color: var(--text-dark);
    font-weight: 500;
}

/* Inputs & Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    font-weight: 500;
}
.form-control:focus {
    border-color: var(--burnt-orange);
    box-shadow: 0 0 0 3px rgba(204, 85, 0, 0.15);
}

/* --- PREMIUM FRONTEND STYLES --- */

/* Frontend Navbar */
.navbar-custom {
    background-color: var(--slate-grey-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}
.navbar-custom .nav-link {
    color: #e2e8f0;
    font-weight: 600;
    margin: 0 10px;
    transition: color 0.3s ease;
}
.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
    color: var(--burnt-orange);
}

/* Section Headings */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--slate-grey-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--burnt-orange);
    border-radius: 2px;
}
.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Frontend Cards (Services & Products) */
.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    border-bottom: 4px solid transparent;
}
.feature-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--burnt-orange);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--burnt-orange);
    margin-bottom: 20px;
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px 0;
    background-color: var(--slate-grey-light);
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero-image {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

/* --- INTERNAL PAGES CSS --- */

/* Page Header Banners */
.page-header {
    background-color: var(--slate-grey-dark);
    padding: 140px 0 80px 0;
    position: relative;
    overflow: hidden;
}
/* Subtle background gradient overlay for headers */
.page-header::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(204, 85, 0, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Tech Stack Pills */
.tech-pill {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    color: var(--slate-grey-dark);
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 50px;
    display: inline-block;
    margin: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}
.tech-pill:hover {
    border-color: var(--burnt-orange);
    color: var(--burnt-orange);
    transform: translateY(-3px);
}

/* Case Study Cards */
.case-study-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    margin-bottom: 50px;
}
/* Updated Case Study Image (Optimized for full, non-cropped screenshots) */
.case-study-img {
    width: 100%;
    height: 100%;
    max-height: 400px; /* Keeps the screenshot size controlled */
    object-fit: contain; /* STRIP-LOCK ASPECT RATIO: Prevents any side-cropping */
    padding: 25px; /* Adds premium device-frame spacing around your screenshot */
    background-color: #f8fafc; /* Beautiful off-white background canvas */
    transition: all 0.3s ease;
}
.case-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: inline-block;
}

.hover-orange:hover { 
    color: var(--burnt-orange) !important; 
    transition: color 0.3s ease;
}

/* --- FLOATING WHATSAPP CHAT WIDGET --- */
.whatsapp-chat-widget {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 35px;
    right: 35px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-chat-widget:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Subtle pulse wave animation to draw click attention */
.whatsapp-chat-widget::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.4;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* --- DYNAMIC COOKIE CONSENT BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background-color: var(--text-dark);
    color: #cbd5e1;
    z-index: 99999;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
    border-top: 3px solid var(--burnt-orange);
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}
.cookie-banner.show {
    transform: translateY(0);
}

/* --- MOBILE RESPONSIVENESS OVERRIDES --- */
@media (max-width: 991px) {
    /* Reduce large desktop padding for mobile spacing */
    .section-padding {
        padding: 50px 0;
    }
    .hero-section {
        padding: 110px 0 50px 0; /* Keeps navbar from overlapping content */
    }
    
    /* Responsive typography scaling */
    h1.display-4 {
        font-size: 2.3rem !important;
        line-height: 1.3 !important;
        text-align: center;
    }
    
    .hero-section p.lead {
        font-size: 1.05rem !important;
        text-align: center;
        margin-bottom: 30px !important;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    /* Adjust floating WhatsApp widget slightly for thumb comfort */
    .whatsapp-chat-widget {
        width: 50px;
        height: 50px;
        bottom: 25px;
        right: 25px;
        font-size: 1.6rem;
    }
}

/* Restrict About Page image height on mobile to prevent endless scrolling */
@media (max-width: 991px) {
    .about-page-img {
        max-height: 280px !important;
        border-radius: 12px !important;
    }
}

/* --- NATIVE MOBILE ADMIN LAYOUT --- */
@media (max-width: 991px) {
    /* Lock the viewport context */
    body {
        overflow-x: hidden !important;
        background-color: #f4f7f6;
    }
    
    /* Hide the sidebar off-screen left by default */
    .admin-sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: 280px !important;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 1050; /* Sits on top of everything */
        box-shadow: 10px 0 30px rgba(0,0,0,0.15);

        /* THE NESTED SCROLL SHIELD (Fixes mobile sidebar clipping) */
        overflow-y: auto !important;
    }
    
    /* Class to slide the sidebar in */
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    /* Sliding backdrop overlay */
    .sidebar-overlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        z-index: 1040;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }
    
    /* Main workspace space correction for top bar */
    .admin-main {
        padding: 20px 15px !important;
        margin-top: 60px; /* Leaves room for the fixed top app bar */
    }
    
    /* Fixed Mobile Top App Bar */
    .mobile-app-bar {
        position: fixed;
        top: 0; left: 0; right: 0;
        height: 60px;
        background-color: var(--text-dark);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        z-index: 1000;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    .mobile-brand-title {
        color: #ffffff;
        font-weight: 800;
        margin-bottom: 0;
        font-size: 1.15rem;
        letter-spacing: 0.5px;
    }
    .hamburger-btn {
        background: transparent;
        border: none;
        color: #ffffff;
        font-size: 1.6rem;
        padding: 0;
        cursor: pointer;
        transition: transform 0.2s ease;
    }
    .hamburger-btn:active {
        transform: scale(0.9);
    }
}

/* --- MOBILE NATIVE DATA CARDS --- */
.mobile-card-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-data-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f0f0;
}

.mobile-data-card .card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f8f9fa;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.mobile-data-card .sender-info {
    margin-bottom: 12px;
}

.mobile-data-card .message-body {
    background-color: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    font-size: 0.9rem;
    color: var(--slate-grey-dark);
    margin-bottom: 15px;
}

