/* assets/css/style.css */
/* VEP - Professional Laboratory Supply Website */

/* ===================================================
   ROOT VARIABLES & SETUP
   =================================================== */

:root {
    --primary: #435980;
    --primary-dark: #345075;
    --secondary: #87A952;
    --success: #26c281;
    --danger: #e74c3c;
    --warning: #f39c12;
    --light: #f8f9fa;
    --light-gray: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --text-muted: #666;
    --border-color: #ddd;
    
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: var(--font-main);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

body {
    background-color: #fff;
}

/* ===================================================
   GLOBAL STYLES
   =================================================== */

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: 1200px;
}

/* ===================================================
   NAVBAR
   =================================================== */

.navbar {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.navbar-brand {
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: 2px;
}

.navbar-nav .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    padding: 8px 15px !important;
    margin: 0 5px;
    border-radius: 5px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    background-color: var(--light);
    color: var(--primary) !important;
}

/* ===================================================
   HERO SECTION
   =================================================== */

.hero-section {
    background: linear-gradient(135deg, #435980 0%, #345075 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite;
}

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

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    animation: slideInDown 0.8s ease;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: slideInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: slideInUp 0.8s ease 0.4s both;
    flex-wrap: wrap;
}

.btn-primary-custom,
.btn-secondary-custom {
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    border: 2px solid white;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom {
    background: white;
    color: var(--primary);
}

.btn-primary-custom:hover {
    background: var(--primary);
    color: white;
}

.btn-secondary-custom {
    background: transparent;
    color: white;
}

.btn-secondary-custom:hover {
    background: white;
    color: var(--primary);
}

/* ===================================================
   CARDS & SECTIONS
   =================================================== */

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    margin: 15px auto 0;
    border-radius: 2px;
}

.card {
    border: none;
    border-radius: 10px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 30px;
}

/* Values Cards */
.value-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
}

.value-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.value-card h5 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
}

.value-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.product-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-category {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions button,
.product-actions a {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    display: block;
}

.btn-read-more {
    background: var(--primary);
    color: white;
}

.btn-read-more:hover {
    background: var(--primary-dark);
}

.btn-download {
    background: var(--light);
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.btn-download:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===================================================
   GRID & LAYOUT
   =================================================== */

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

/* ===================================================
   FORMS
   =================================================== */

.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(67, 89, 128, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    display: block;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(67, 89, 128, 0.4);
}

.btn-secondary {
    background: var(--light);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--light-gray);
}

/* ===================================================
   SECTION SPACING
   =================================================== */

section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
}

.mb-50 {
    margin-bottom: 50px;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}


.slider__overlay { margin: 5%;    }

/* ===================================================
   ANIMATIONS
   =================================================== */

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

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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


 
.splide__slide {
    
}
.splide__slide {
    
    min-height: 450px;
}
/* ===================================================
   UTILITIES
   =================================================== */

.mt-5 {
    margin-top: 5rem;
}

.mt-4 {
    margin-top: 3rem;
}

.mb-4 {
    margin-bottom: 3rem;
}

.py-5 {
    padding: 3rem 0;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7);
}

/* ===================================================
   FOOTER
   =================================================== */

footer {
    margin-top: 80px;
    background: linear-gradient(135deg, #2c3e50, #435980);
    color: white;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: white;
}

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
        padding: 12px 30px;
    }
}

/* ===================================================
   DARK MODE SUPPORT
   =================================================== */

@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .card {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .form-control {
        background: #3a3a3a;
        border-color: #4a4a4a;
        color: #e0e0e0;
    }
    
    .hero-section {
        background: linear-gradient(135deg, #2c4058 0%, #1e2d40 100%);
    }

    .navbar {
        background: #1a1a1a !important;
    }
}
