/* KudzaiOnline Custom Styles */

:root {
    --primary-color: #000;
    --secondary-color: #1a1a1a;
    --accent-color: #00bfff;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 10px;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

* {
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #0f0f0f;
    color: #ffffff;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ====== Navigation ====== */
.navbar {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%) !important;
    border-bottom: 2px solid var(--accent-color);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
    transition: var(--transition);
}

.nav-link {
    position: relative;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-color) !important;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

.dropdown-menu-dark {
    background-color: #1a1a1a !important;
    border-color: var(--accent-color);
}

/* ====== Hero Section ====== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #002f4d 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 191, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 191, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -20px); }
    50% { transform: translate(-20px, 20px); }
    75% { transform: translate(20px, 20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideDown 0.8s ease;
}

.hero p {
    font-size: 1.3rem;
    color: #a0a0a0;
    margin-bottom: 2rem;
    animation: slideUp 0.8s ease 0.2s backwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== Buttons ====== */
.btn-primary,
.btn-info {
    background: linear-gradient(135deg, var(--accent-color) 0%, #0088cc 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover,
.btn-info:hover {
    background: linear-gradient(135deg, #0088cc 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 191, 255, 0.3);
}

.btn-dark {
    background-color: var(--secondary-color);
    border: 1px solid var(--accent-color);
    color: #fff;
}

.btn-dark:hover {
    background-color: var(--accent-color);
    color: #000;
}

.btn-outline-info {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline-info:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
}

/* ====== Cards ====== */
.card {
    background-color: var(--secondary-color);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(0, 191, 255, 0.2);
    transform: translateY(-5px);
}

.card-title {
    color: #fff;
    font-weight: 600;
}

.card-text {
    color: #a0a0a0;
}

.card-img-top {
    object-fit: cover;
    height: 200px;
}

/* ====== Product Cards ====== */
.product-card {
    background-color: var(--secondary-color);
    border: 1px solid rgba(0, 191, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
}

.product-image {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

/* ====== Product Carousel Styles ====== */
.carousel {
    height: 100%;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
    background-color: #1a1a1a;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-control-prev,
.carousel-control-next {
    width: auto;
    height: auto;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    padding: 8px 10px;
    transition: background-color 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 191, 255, 0.8);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.carousel-indicators {
    bottom: 10px;
    gap: 8px;
    padding: 8px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    transition: background-color 0.3s ease;
}

.carousel-indicators button.active {
    background-color: var(--accent-color);
    width: 12px;
    height: 12px;
}

.carousel-indicators button:hover {
    background-color: rgba(0, 191, 255, 0.8);
}

/* ====== object-fit fallback ====== */
.object-fit-cover {
    object-fit: cover;
}

/* ====== Image Lightbox Modal ====== */
.modal {
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #0a0a0a;
    box-shadow: 0 10px 40px rgba(0, 191, 255, 0.2);
}

.modal-header {
    background-color: #1a1a1a;
    border-color: var(--accent-color) !important;
}

.modal-footer {
    background-color: #1a1a1a;
    border-color: var(--accent-color) !important;
}

/* Lightbox image styling */
#imageModal img,
#imageCarousel img {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

/* Carousel in lightbox - enhanced styling */
.carousel-item img {
    display: block;
    margin: 0 auto;
}

/* Lightbox carousel controls - larger and more visible */
.modal .carousel-control-prev,
.modal .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 191, 255, 0.2);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.modal .carousel-control-prev:hover,
.modal .carousel-control-next:hover {
    background-color: rgba(0, 191, 255, 0.6);
}

.modal .carousel-control-prev-icon,
.modal .carousel-control-next-icon {
    width: 24px;
    height: 24px;
    filter: brightness(1.2);
}

/* Lightbox indicators - better visibility */
.modal .carousel-indicators {
    bottom: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px 20px 40px;
    border-radius: 0 0 8px 8px;
}

.modal .carousel-indicators button {
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.modal .carousel-indicators button.active {
    background-color: var(--accent-color);
    border-color: white;
}

.modal .carousel-indicators button:hover {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* Cursor pointer for clickable images */
.carousel-item img.cursor-pointer,
[data-bs-toggle="modal"] img {
    cursor: pointer;
}

.carousel-item img.cursor-pointer:hover {
    opacity: 0.8;
    filter: brightness(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: #000;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.85rem;
    color: #a0a0a0;
    flex-grow: 1;
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.product-price {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
    margin: 1rem 0 0.5rem 0;
}

.product-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.product-footer .btn {
    transition: all 0.3s ease;
}

/* ====== Sections ====== */
section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #a0a0a0;
    margin-bottom: 3rem;
}

/* ====== Service Cards ====== */
.service-card {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 191, 255, 0.1);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.service-desc {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ====== Gallery Grid ====== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 191, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ====== Blog Cards ====== */
.blog-card {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 191, 255, 0.1);
}

.blog-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background: var(--accent-color);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: var(--accent-color);
}

.blog-excerpt {
    color: #c0c0c0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    min-height: 3rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #a0a0a0;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 191, 255, 0.1);
}

/* ====== Forms ====== */
.form-control,
.form-select {
    background-color: var(--secondary-color);
    border: 1px solid rgba(0, 191, 255, 0.2);
    color: #fff;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--secondary-color);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(0, 191, 255, 0.25);
}

.form-control::placeholder {
    color: #aaa;
}

.form-label {
    color: #fff;
    font-weight: 500;
}

/* ====== Cart Styles ====== */
.cart-item {
    background-color: var(--secondary-color);
    border: 1px solid rgba(0, 191, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details h5 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.cart-item-details p {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.cart-item-price {
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: 700;
}

/* ====== Pagination ====== */
.pagination {
    justify-content: center;
    margin-top: 3rem;
}

.page-link {
    background-color: var(--secondary-color);
    border-color: rgba(0, 191, 255, 0.2);
    color: var(--accent-color);
}

.page-link:hover,
.page-link.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
}

/* ====== Footer ====== */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a2a3a 100%);
    border-top: 2px solid var(--accent-color);
}

footer h5 {
    color: var(--accent-color);
    font-weight: 600;
}

footer p, footer li, footer a {
    color: #d0d0d0;
    transition: var(--transition);
}

footer a {
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-color) !important;
}

.social-links a {
    font-size: 1.3rem;
    color: var(--accent-color);
}

.social-links a:hover {
    transform: scale(1.2);
}

/* ====== WhatsApp Button ====== */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    z-index: 999;
}

.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 3rem 0;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }

    .whatsapp-btn {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ====== Animations ====== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ====== Utility Classes ====== */
.text-info {
    color: var(--accent-color) !important;
}

.bg-info {
    background-color: var(--accent-color) !important;
    color: #000 !important;
}

.border-info {
    border-color: var(--accent-color) !important;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-color), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
}

.min-vh-100 {
    min-height: 100vh;
}

/* ====== Admin Responsive ====== */
.hover-info {
    transition: all 0.3s ease;
}

.hover-info:hover {
    background-color: rgba(0, 191, 255, 0.1) !important;
    color: var(--accent-color) !important;
}

@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed !important;
        left: 0;
        top: 0;
        width: 100vw;
        max-width: 250px;
        z-index: 999;
    }

    .main-content {
        width: 100%;
    }
}
