/**
 * Creative Home - Main Stylesheet
 * Construction, Interior Design & Training | Bikaner
 */

/* ===========================
   Base Styles & Resets
   =========================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

* {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* ===========================
   Utility Classes
   =========================== */
.gradient-text {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===========================
   Navigation Styles
   =========================== */
.nav-link {
    position: relative;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: #1e3a5f;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: #f97316;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ===========================
   Dropdown Styles
   =========================== */
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(251, 146, 60, 0.05));
}

.dropdown-item.active .font-semibold {
    color: #f97316;
}

.dropdown-item-simple {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #334e68;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item-simple:hover,
.dropdown-item-simple.active {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(251, 146, 60, 0.05));
    color: #f97316;
}

/* ===========================
   Mobile Navigation
   =========================== */
.mobile-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    font-weight: 500;
    color: #1e3a5f;
    transition: all 0.2s ease;
}

.mobile-link i {
    width: 24px;
    margin-right: 12px;
    text-align: center;
    color: #627d98;
}

.mobile-link:hover,
.mobile-link.active {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(251, 146, 60, 0.05));
    color: #f97316;
}

.mobile-link:hover i,
.mobile-link.active i {
    color: #f97316;
}

/* ===========================
   Mobile Sidebar
   =========================== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
}

.mobile-sidebar.open {
    transform: translateX(0);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ===========================
   Bottom Navigation
   =========================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    z-index: 9999;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    color: #627d98;
    font-size: 0.65rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.bottom-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: #f97316;
}

/* ===========================
   Responsive Styles
   =========================== */

/* Mobile bottom padding for nav */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
}

/* Desktop container padding */
@media (min-width: 1024px) {
    .container {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
}

@media (min-width: 1280px) {
    .container {
        padding-left: 5rem !important;
        padding-right: 5rem !important;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1400px;
        padding-left: 4rem !important;
        padding-right: 4rem !important;
    }
}
