/* ===== VARIABLES ===== */
:root {
    --primary: #1a56db;
    --primary-dark: #1242b0;
    --secondary: #f97316;
    --dark: #111827;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
    --radius: 0.75rem;
    --transition: all .3s ease;
}

/* ===== RESET & BASE ===== */
* { box-sizing: border-box; }
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--gray-700);
    background: var(--gray-50);
    line-height: 1.7;
}
h1,h2,h3,h4,h5,h6 { color: var(--gray-900); font-weight: 700; line-height: 1.3; }
a { text-decoration: none; }
img { max-width: 100%; }

/* ===== NAVBAR ===== */
.navbar-custom {
    background: var(--white) !important;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}
.navbar-custom.scrolled {
    padding: .6rem 0;
    box-shadow: var(--shadow);
}
.navbar-custom .navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary) !important;
    letter-spacing: -.5px;
}
.navbar-custom .navbar-brand i { margin-right: .4rem; }
.navbar-custom .nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    padding: .5rem 1rem !important;
    border-radius: .5rem;
    transition: var(--transition);
    font-size: .95rem;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary) !important;
    background: rgba(26,86,219,.06);
}
.navbar-custom .navbar-toggler {
    border: none;
    padding: .4rem;
}
.navbar-custom .navbar-toggler:focus { box-shadow: none; }
.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23374151' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: var(--white);
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}
.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.2rem;
    line-height: 1.15;
}
.hero p.lead {
    font-size: 1.2rem;
    opacity: .9;
    max-width: 540px;
    margin-bottom: 2rem;
}
.hero .btn-hero {
    padding: .85rem 2.2rem;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 50rem;
    transition: var(--transition);
}
.hero .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.hero .btn-outline-light:hover {
    background: rgba(255,255,255,.15);
    transform: translateY(-2px);
}

/* ===== SECTION ===== */
.section { padding: 5rem 0; }
.section-light { background: var(--white); }
.section-gray { background: var(--gray-50); }
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: .6rem;
    position: relative;
}
.section-subtitle {
    color: var(--gray-500);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--white);
}
.feature-icon.bg-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.feature-icon.bg-orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.feature-icon.bg-green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.feature-icon.bg-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.feature-icon.bg-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.feature-icon.bg-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.feature-card h5 { font-weight: 700; margin-bottom: .5rem; }
.feature-card p { color: var(--gray-500); font-size: .95rem; margin: 0; }

/* ===== PRODUCT CARDS ===== */
.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}
.product-card:hover .card-img-top { transform: scale(1.05); }
.product-card .img-wrapper { overflow: hidden; }
.product-card .card-body { padding: 1.5rem; }
.product-card .card-title { font-weight: 700; font-size: 1.1rem; }
.product-card .card-text { color: var(--gray-500); font-size: .9rem; }
.product-card .price {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
}
.product-placeholder {
    height: 220px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 3rem;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.service-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.service-card h5 { font-weight: 700; }
.service-card p { color: var(--gray-500); font-size: .95rem; }

/* ===== STATS ===== */
.stats { background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%); color: var(--white); padding: 4rem 0; }
.stat-item h3 { font-size: 2.8rem; font-weight: 800; color: var(--white); margin-bottom: .3rem; }
.stat-item p { opacity: .85; font-size: 1rem; margin: 0; }

/* ===== CTA ===== */
.cta {
    background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}
.cta h2 { color: var(--white); font-size: 2.4rem; margin-bottom: 1rem; }
.cta p { opacity: .8; font-size: 1.15rem; max-width: 500px; margin: 0 auto 2rem; }
.cta .btn-cta {
    padding: .85rem 2.5rem;
    font-weight: 600;
    border-radius: 50rem;
    font-size: 1.05rem;
    transition: var(--transition);
}
.cta .btn-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: var(--white);
    padding: 4rem 0 3rem;
    text-align: center;
}
.page-header h1 { color: var(--white); font-size: 2.5rem; margin-bottom: .5rem; }
.page-header p { opacity: .85; font-size: 1.1rem; margin: 0; }
.breadcrumb-custom { display: flex; justify-content: center; gap: .5rem; margin-top: .8rem; font-size: .9rem; opacity: .8; }
.breadcrumb-custom a { color: var(--white); opacity: .7; }
.breadcrumb-custom a:hover { opacity: 1; }

/* ===== CONTACT ===== */
.contact-info-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item .icon {
    width: 48px;
    height: 48px;
    border-radius: .75rem;
    background: rgba(26,86,219,.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-info-item h6 { font-weight: 700; margin-bottom: .2rem; }
.contact-info-item p { color: var(--gray-500); margin: 0; font-size: .95rem; }
.contact-form {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2.5rem;
}
.contact-form .form-control {
    border-radius: .5rem;
    border: 1px solid var(--gray-200);
    padding: .75rem 1rem;
    transition: var(--transition);
}
.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.contact-form label { font-weight: 600; color: var(--gray-700); margin-bottom: .3rem; }

/* ===== ABOUT ===== */
.about-feature {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.about-feature .icon {
    width: 48px; height: 48px;
    border-radius: .75rem;
    background: rgba(26,86,219,.08);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.about-feature h6 { font-weight: 700; margin-bottom: .2rem; }
.about-feature p { color: var(--gray-500); margin: 0; font-size: .95rem; }

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); }
.testimonial-card .stars { color: #f59e0b; margin-bottom: .8rem; }
.testimonial-card p { color: var(--gray-500); font-style: italic; }
.testimonial-card .author { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.testimonial-card .avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--gray-200); display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--primary); font-size: .9rem;
}
.testimonial-card .author-name { font-weight: 700; font-size: .95rem; }
.testimonial-card .author-role { color: var(--gray-500); font-size: .85rem; }

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: var(--gray-200);
    padding: 4rem 0 0;
}
.footer h5 { color: var(--white); font-weight: 700; margin-bottom: 1.2rem; font-size: 1.1rem; }
.footer p { color: rgba(255,255,255,.6); font-size: .95rem; }
.footer a { color: rgba(255,255,255,.6); transition: var(--transition); font-size: .95rem; }
.footer a:hover { color: var(--white); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links li a::before { content: '→ '; opacity: .4; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: .9rem;
    color: rgba(255,255,255,.4);
}

/* ===== BUTTONS ===== */
.btn-primary { background: var(--primary); border-color: var(--primary); border-radius: .5rem; font-weight: 600; padding: .6rem 1.5rem; transition: var(--transition); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); border-radius: .5rem; font-weight: 600; padding: .6rem 1.5rem; transition: var(--transition); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-1px); }

/* ===== ADMIN ===== */
.admin-sidebar .list-group-item {
    border: none;
    padding: .8rem 1.2rem;
    font-weight: 500;
    border-radius: .5rem;
    margin-bottom: .25rem;
    transition: var(--transition);
}
.admin-sidebar .list-group-item.active {
    background: var(--primary);
    border-color: var(--primary);
}
.admin-sidebar .list-group-item:not(.active):hover {
    background: var(--gray-100);
}
.admin-stat-card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.admin-stat-card:hover { box-shadow: var(--shadow-lg); }
.admin-stat-card .stat-number { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.admin-stat-card .stat-label { color: var(--gray-500); font-weight: 500; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero { padding: 4rem 0 3rem; }
    .hero h1 { font-size: 2.2rem; }
    .section { padding: 3.5rem 0; }
    .section-title { font-size: 1.8rem; }
    .stat-item h3 { font-size: 2rem; }
    .page-header { padding: 3rem 0 2rem; }
    .page-header h1 { font-size: 2rem; }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
}