/* 
   Total Nutrition Hub - Global Styles
   Theme: Active Science (Blue/Orange)
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    /* Color Palette */
    --primary-color: #004aad; /* Royal Blue - Trust, Science */
    --secondary-color: #ff6b00; /* Vibrant Orange - Energy, Action */
    --accent-color: #00c2cb; /* Cyan - Innovation */
    --dark-color: #0b1c2c; /* Deep Navy - Text/Headings */
    --light-color: #f4f7f6; /* Cool Gray - Backgrounds */
    --white-color: #ffffff;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    
    /* Shadows */
    --shadow-soft: 0 10px 30px rgba(0, 74, 173, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 74, 173, 0.15);
}

body {
    font-family: var(--font-body);
    color: #4a5568;
    line-height: 1.7;
    background-color: var(--white-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px; /* Sharper corners for "tech" feel */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background-color: #003380;
    border-color: #003380;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 74, 173, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background-color: #e65100;
    border-color: #e65100;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

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

/* --- Navbar --- */
.navbar {
    padding: 20px 0;
    background-color: var(--white-color);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.navbar-brand i {
    color: var(--secondary-color);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark-color) !important;
    margin-left: 15px;
    font-size: 0.95rem;
    position: relative;
}

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

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

.dropdown-menu {
    border-top: 3px solid var(--secondary-color);
    border-radius: 0 0 5px 5px;
}

.dropdown-item:active, .dropdown-item.active {
    background-color: var(--primary-color);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: rgba(0, 74, 173, 0.03);
    transform: rotate(-15deg);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
    border: 5px solid var(--white-color);
    box-shadow: var(--shadow-soft);
}

.hero-image-wrapper img {
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.03);
}

/* --- Cards & Features --- */
.feature-card {
    background: var(--white-color);
    padding: 40px 30px;
    border-radius: 10px;
    border: 1px solid #eef2f5;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

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

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(0, 74, 173, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 25px;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-box {
    background: var(--primary-color);
    color: var(--white-color);
}

/* --- Section Styling --- */
.section-padding {
    padding: var(--section-padding) 0;
}

.bg-light-blue {
    background-color: #f0f7ff;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- Testimonials --- */
.testimonial-card {
    background: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.testimonial-card i.fa-quote-left {
    color: rgba(0, 74, 173, 0.1);
    font-size: 4rem;
    position: absolute;
    top: 20px;
    left: 20px;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-color);
    color: #a0aec0;
    padding-top: 80px;
    padding-bottom: 30px;
}

.footer h5 {
    color: var(--white-color);
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--white-color);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white-color);
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 60px;
    padding-top: 30px;
}

.footer .footer-bottom a {
    color: var(--white-color) !important;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .section-padding {
        padding: 60px 0;
    }
}
