/* ==========================================================================
   Modern UI Overrides for Minh Hien Website
   ========================================================================== */

:root {
    /* Color Palette */
    --primary-color: #2563eb;       /* Royal Blue */
    --primary-hover: #1d4ed8;
    --secondary-color: #f59e0b;     /* Amber */
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    /* Gradients */
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Radii */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
}

/* Base Typography */
body, h1, h2, h3, h4, h5, h6, p, a, div, span {
    font-family: 'Inter', sans-serif !important;
}

body {
    background: var(--bg-gradient);
    color: var(--text-main);
    line-height: 1.6;
}

/* Glassmorphism Header */
#topbar, header, .wrapper.row1 {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 50;
    transition: var(--transition-normal);
}

/* Navigation Links */
#mainav ul li a {
    font-weight: 500;
    color: var(--text-main) !important;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

#mainav ul li a:hover,
#mainav ul li.active a {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Hero Section / Banner */
.bgded {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 20px auto;
    box-shadow: var(--shadow-lg);
    background-size: cover;
    background-position: center;
}

.bgded::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    z-index: 1;
}

.bgded .hoc {
    position: relative;
    z-index: 2;
    padding: 60px 0;
}

.bgded h1, .bgded h2, .bgded h6, .bgded p {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.bgded h6.heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Features & Services (Cards) */
.services ul li, .features ul li, .productlayout li, .one_third {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.services ul li:hover, .features ul li:hover, .productlayout li:hover, .one_third:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

/* Icon inside Cards */
.services ul li i, .features ul li i {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.5s ease;
}

.services ul li:hover i, .features ul li:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Buttons */
.btn, .button {
    background: var(--primary-gradient);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: none;
    display: inline-block;
    text-decoration: none;
}

.btn:hover, .button:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Image Hover Effects (News & Products) */
.imgover {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
    position: relative;
}

.imgover img {
    width: 100%;
    transition: transform 0.6s ease;
}

.imgover:hover img {
    transform: scale(1.1);
}

/* News List Module */
.news-item {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    padding: 15px;
    transition: var(--transition-normal);
    border-left: 4px solid transparent;
}

.news-item:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--secondary-color);
    transform: translateX(5px);
}

.news-title a {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
}

.news-title a:hover {
    text-decoration: underline;
}

/* Footer Modernization */
#footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 60px 0;
    margin-top: 50px;
}

#footer h6.heading {
    color: #ffffff;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

#footer a {
    color: #94a3b8;
    transition: var(--transition-fast);
}

#footer a:hover {
    color: var(--secondary-color);
}
