/* ==========================================================================
   #DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Colors - Medical/Pharma Professional Palette */
    --color-primary: #004e92;
    /* Deep Trusted Blue */
    --color-primary-dark: #003366;
    --color-secondary: #00b4db;
    /* Medical Teal/Clean */
    --color-accent: #2ecc71;
    /* Success/Growth Green */
    --color-text-main: #2c3e50;
    /* Dark Slate for reading */
    --color-text-light: #6c757d;
    /* Muted text */
    --color-bg-light: #f8f9fa;
    /* Light Gray Background */
    --color-white: #ffffff;
    --color-border: #e9ecef;

    /* Typography */
    --font-heading: 'Inter', 'Montserrat', sans-serif;
    --font-body: 'Roboto', 'Open Sans', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ==========================================================================
   #RESET & BASE
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   #UTILITIES & COMPONENTS
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-bg {
    background-color: var(--color-bg-light);
}

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

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-secondary);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(0, 78, 146, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 78, 146, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

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

/* ==========================================================================
   #HEADER & NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: all 0.3s;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
}

/* ==========================================================================
   #HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    background: linear-gradient(rgba(0, 78, 146, 0.5), rgba(0, 180, 219, 0.5)), url('../img/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--color-white);
    margin-top: 0;
    padding-top: 80px;
    /* Offset for fixed header */
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-family: var(--font-body);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.stat-item span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ==========================================================================
   #ABOUT SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--color-secondary);
    z-index: -1;
    border-radius: 10px;
    opacity: 0.2;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* ==========================================================================
   #SERVICES SECTION
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--color-secondary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 180, 219, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ==========================================================================
   #PORTFOLIO / CASE STUDIES
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.case-study {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.case-study:hover {
    box-shadow: var(--shadow-md);
}

.case-content {
    padding: 2rem;
}

.case-tag {
    background: rgba(0, 78, 146, 0.1);
    color: var(--color-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

/* ==========================================================================
   #TEAM SECTION
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-member {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    padding: 1.5rem;
    gap: 1.5rem;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.member-pic {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-bg-light);
}

.member-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--color-primary);
}

.member-info span {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 0.3rem;
}

.member-info p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* ==========================================================================
   #TESTIMONIALS
   ========================================================================== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
}

.client-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.client-info span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   #CONTACT SECTION
   ========================================================================== */
.contact-wrapper {
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

.contact-info {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 3rem;
}

.contact-info h3 {
    color: var(--color-white);
}

.contact-info p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-form {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
}

/* ==========================================================================
   #FOOTER
   ========================================================================== */
.footer {
    background: var(--color-text-main);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.footer p {
    opacity: 0.7;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-secondary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ==========================================================================
   #RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--color-white);
        flex-direction: column;
        padding: 2rem;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 60px;
        text-align: center;
    }

    .hero-content {
        margin-top: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.1rem;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero .btn {
        width: 100%;
        max-width: 300px;
        margin-left: 0 !important;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 2rem;
    }
}

/* ==========================================================================
   #ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   #SERVICE PAGES
   ========================================================================== */
.page-header h1 {
    color: var(--color-white);
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
}

.page-header {
    background: linear-gradient(rgba(0, 78, 146, 0.8), rgba(0, 78, 146, 0.8)), url('../img/hero-bg.png');
    background-size: cover;
    background-position: center;
    padding: 120px 0 60px;
    color: var(--color-white);
    text-align: center;
}

.sidebar {
    background: var(--color-bg-light);
    padding: 30px;
    border-radius: 8px;
    position: sticky;
    top: 100px;
}

.sidebar-menu li {
    margin-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-menu a {
    display: block;
    padding: 10px 0;
    color: var(--color-text-main);
    font-weight: 500;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    color: var(--color-primary);
    padding-left: 5px;
}

.content-area {
    padding: 40px;
}

.content-area h2 {
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 20px;
}

.content-area h3 {
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .content-area {
        padding: 25px;
    }
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.service-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--color-accent);
    position: absolute;
    left: 0;
    top: 4px;
}

/* Service Layout Container */
.service-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.sidebar-cta {
    margin-top: 30px;
    background: #eef2f7;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.sidebar-cta h4 {
    color: var(--color-primary);
}

.sidebar-cta .btn {
    margin-top: 1rem;
}

@media (max-width: 992px) {
    .service-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        margin-top: 2rem;
    }
}