:root {
    /* Brand Colors derived from Logo */
    --brand-navy: #0f2e5a;
    --brand-blue: #0077b6;
    --brand-cyan: #00b4d8;
    --brand-green: #84cc16;

    /* Functional Colors */
    --primary-blue: var(--brand-blue);
    --dark-navy: #020617;
    --light-gray: #f8fafc;
    --accent-green: var(--brand-green);
    
    --primary: var(--brand-blue);
    --secondary: var(--brand-navy);
    --accent: var(--brand-cyan);
    --accent-secondary: var(--brand-green);
    
    --light: #f8fafc;
    --dark: var(--brand-navy);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --success: var(--brand-green);
    --whatsapp: #25D366;
    
    --aws-orange: #FF9900;
    --azure-blue: #0078D4;
    --rackspace-red: #C40000;
    --multicloud-purple: #7C3AED;
    
    /* Updated Gradients */
    --gradient-1: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue) 100%);
    --gradient-2: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-green) 100%);
    --gradient-3: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-cyan) 50%, var(--brand-green) 100%);
    --gradient-hero: linear-gradient(135deg, #020617 0%, var(--brand-navy) 50%, #1e3a8a 100%);
    
    --shadow-sm: 0 2px 8px rgba(15, 46, 90, 0.08);
    --shadow-md: 0 4px 16px rgba(15, 46, 90, 0.12);
    --shadow-lg: 0 10px 40px rgba(15, 46, 90, 0.15);
    --shadow-xl: 0 20px 60px rgba(15, 46, 90, 0.2);
    --glow-blue: 0 0 20px rgba(0, 180, 216, 0.3);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--light);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-blue);
    background: rgba(0, 119, 182, 0.1);
}

nav ul li a:hover::before {
    width: 60%;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    color: white;
    padding: 140px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 119, 182, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(132, 204, 22, 0.1) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 70px);
    z-index: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #84cc16 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 800px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    animation: fadeInUp 1s ease;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
    color: var(--primary-blue);
}

.trust-badge:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.2);
}

.trust-badge i {
    color: var(--accent-green);
    font-size: 1.2rem;
}

.trust-badge span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-blue);
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-3);
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-whatsapp {
    background: var(--whatsapp);
    margin-left: 15px;
}

.btn-whatsapp:hover {
    background: #20b858;
    transform: translateY(-3px) scale(1.05);
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-3);
    border-radius: 2px;
}

.section-title p {
    max-width: 700px;
    margin: 30px auto 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* About Section */
#about {
    padding-bottom: 20px;
}

/* Services Section */
#services {
    padding-top: 20px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 20px;
}

.expertise-highlights {
    margin-top: 20px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.expertise-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.expertise-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 119, 182, 0.3);
}

.expertise-card:hover .expertise-icon {
    transform: scale(1.15) rotate(360deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.expertise-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.expertise-card:hover .expertise-icon::before {
    width: 200px;
    height: 200px;
}

.expertise-card h4 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.expertise-card > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.expertise-card ul {
    list-style: none;
    text-align: left;
    margin-top: 20px;
}

.expertise-card ul li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: var(--text-secondary);
}

.expertise-card ul li:before {
    content: "✓";
    color: var(--accent-green);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.cert-badge {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* Pharmacy Section Enhancements */
.compliance-checklist {
    margin: 20px 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-green);
}

.checklist-item:hover {
    background: rgba(0, 119, 182, 0.05);
    transform: translateX(5px);
}

.checklist-item i {
    color: var(--accent-green);
    font-size: 1.3rem;
}

.checklist-item span {
    color: var(--text-primary);
    font-weight: 500;
}

.csv-process {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.process-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.process-step:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.step-content h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.about-text h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.expertise-list {
    margin-top: 30px;
}

.expertise-list h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.expertise-list ul {
    list-style: none;
}

.expertise-list li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.7;
}

.expertise-list li:before {
    content: "✓";
    color: var(--accent-green);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Services Section */
.service-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card.hidden {
    display: none;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: white;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.service-card:hover .service-icon::after {
    transform: rotate(45deg) translate(50%, 50%);
}

.service-summary {
    flex-grow: 1;
}

.service-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    animation: slideDown 0.3s ease;
}

.service-details p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.service-details ul {
    margin-top: 15px;
}

.service-toggle {
    margin-top: 20px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    width: 100%;
    justify-content: center;
}

.service-toggle:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.service-toggle i {
    transition: transform 0.3s ease;
}

.service-card.expanded .service-toggle i {
    transform: rotate(180deg);
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-3);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--glow-blue);
    border-color: rgba(0, 119, 182, 0.3);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 119, 182, 0.4);
}

.service-card:hover .service-icon i {
    animation: iconPulse 1s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.4rem;
    line-height: 1.3;
}

.service-card ul {
    margin-left: 0;
    list-style: none;
}

.service-card ul li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.7;
}

.service-card ul li::before {
    content: "→";
    color: var(--primary-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Cloud Platforms */
.cloud-platforms {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.platform-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 15px;
}

.platform-tab {
    padding: 14px 28px;
    background: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.platform-tab i {
    font-size: 1.2rem;
}

.platform-tab[data-color="aws"].active {
    background: var(--aws-orange);
    color: white;
}

.platform-tab[data-color="azure"].active {
    background: var(--azure-blue);
    color: white;
}

.platform-tab[data-color="rackspace"].active {
    background: var(--rackspace-red);
    color: white;
}

.platform-tab[data-color="multicloud"].active {
    background: var(--multicloud-purple);
    color: white;
}

.service-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
}

.platform-tab.active .service-count {
    background: rgba(255, 255, 255, 0.3);
}

.platform-tab:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.platform-tab.active {
    background: var(--gradient-3);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.platform-content {
    display: none;
    animation: fadeIn 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
}

.platform-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease;
}

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

.platform-content h3 {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: center;
}

.platform-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.platform-service {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-blue);
}

.platform-service:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-left-width: 6px;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 2rem;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-details {
    margin-top: 30px;
}

.contact-details p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.contact-details i {
    margin-right: 15px;
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.1);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
}

/* About Image Placeholder */
.about-image {
    position: relative;
}

.about-image > div {
    background: var(--gradient-3);
    height: 100%;
    min-height: 400px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

#pharmacy .about-image > div {
    min-height: 500px;
}

.about-image > div::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-image > div p {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Security Assessment Widget */
.assessment-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.assessment-widget {
    background: white;
    border-radius: 24px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.assessment-progress {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-green));
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
}

.question-container {
    margin-bottom: 30px;
}

.question {
    margin-bottom: 30px;
}

.question h4 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-option {
    padding: 18px 24px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
}

.answer-option:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 119, 182, 0.05);
    transform: translateX(5px);
}

.answer-option.selected {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.assessment-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.assessment-results {
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.assessment-results h3 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 30px;
}

.score-display {
    margin: 40px 0;
}

.score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
    color: white;
}

.score-circle span {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.score-circle small {
    font-size: 1.2rem;
    opacity: 0.9;
}

.score-analysis {
    margin: 30px 0;
    padding: 30px;
    background: #f8fafc;
    border-radius: 16px;
    text-align: left;
}

.score-analysis h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

.score-analysis p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.score-analysis ul {
    list-style: none;
    padding-left: 0;
}

.score-analysis li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: var(--text-secondary);
}

.score-analysis li:before {
    content: "→";
    color: var(--primary-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 64px;
    height: 64px;
    bottom: 30px;
    right: 30px;
    background: var(--whatsapp);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-float 2s ease-in-out infinite;
    text-decoration: none;
}

@keyframes pulse-float {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
    }
}

.whatsapp-float:hover {
    background: #20b858;
    transform: scale(1.15);
    box-shadow: 0 20px 50px rgba(37, 211, 102, 0.7);
}

/* Footer */
footer {
    background: var(--gradient-hero);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.footer-column h3 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: var(--accent-green);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-column ul li a:hover {
    color: var(--accent-green);
    transform: translateX(5px);
}

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

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-green));
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(0, 119, 182, 0.5);
}

/* Animated Particle Background */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

/* Floating Rectangles Animation */
.floating-rectangles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.floating-rectangles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    animation: floatRect 25s linear infinite;
    bottom: -150px;
}

.floating-rectangles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.floating-rectangles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.floating-rectangles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.floating-rectangles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.floating-rectangles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.floating-rectangles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.floating-rectangles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.floating-rectangles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.floating-rectangles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.floating-rectangles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes floatRect {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 20%; /* Slight rounding as they go up */
    }
}

.particle {
    position: absolute;
    background: rgba(0, 119, 182, 0.4);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(0, 119, 182, 0.3);
}

.particle:nth-child(1) { width: 4px; height: 4px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 6px; height: 6px; left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { width: 3px; height: 3px; left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { width: 5px; height: 5px; left: 40%; animation-delay: 6s; }
.particle:nth-child(5) { width: 4px; height: 4px; left: 50%; animation-delay: 8s; }
.particle:nth-child(6) { width: 6px; height: 6px; left: 60%; animation-delay: 10s; }
.particle:nth-child(7) { width: 3px; height: 3px; left: 70%; animation-delay: 12s; }
.particle:nth-child(8) { width: 5px; height: 5px; left: 80%; animation-delay: 14s; }
.particle:nth-child(9) { width: 4px; height: 4px; left: 90%; animation-delay: 16s; }
.particle:nth-child(10) { width: 6px; height: 6px; left: 15%; animation-delay: 18s; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 119, 182, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 119, 182, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(360deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Testimonials Section */
.testimonials-section {
    background: white;
    padding: 100px 0;
    position: relative;
}

.testimonials-carousel {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 40px;
    animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-content {
    background: #f8fafc;
    padding: 50px 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 120px;
    color: var(--primary-blue);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.author-info h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.author-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.testimonial-dot.active {
    background: var(--primary-blue);
    width: 30px;
    border-radius: 6px;
}

/* Client Logos Section */
.clients-section {
    background: #f8fafc;
    padding: 80px 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.client-logo {
    background: white;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    filter: grayscale(100%);
    opacity: 0.6;
}

.client-logo:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-md);
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo-placeholder {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
}

/* Enhanced Parallax Effect */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 119, 182, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    will-change: transform;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Parallax Elements */
.parallax-element {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.parallax-slow {
    transition: transform 0.3s ease-out;
}

.parallax-fast {
    transition: transform 0.05s ease-out;
}

/* Magnetic Hover Effect */
.magnetic-hover {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Ripple Effect */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 119, 182, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s, opacity 0.6s;
    opacity: 0;
}

.ripple-effect:hover::after {
    width: 300px;
    height: 300px;
    opacity: 1;
}

/* 3D Card Effect */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

/* Glow Pulse Animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 119, 182, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 119, 182, 0.6), 0 0 60px rgba(132, 204, 22, 0.3);
    }
}

.glow-on-hover:hover {
    animation: glowPulse 2s ease-in-out infinite;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Cursor Effect (Optional - for desktop) */
@media (min-width: 1024px) {
    .cursor-glow {
        position: fixed;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(0, 119, 182, 0.3) 0%, transparent 70%);
        pointer-events: none;
        z-index: 9999;
        transition: transform 0.1s ease;
        display: none;
    }
    
    body:hover .cursor-glow {
        display: block;
    }
}

/* Styled Image Placeholder */
.image-placeholder-styled {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: var(--gradient-3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-placeholder-styled i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.2);
    z-index: 2;
    position: relative;
}

.image-placeholder-styled.pharmacy-bg {
    background: var(--gradient-2);
}

.placeholder-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 10%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 10%);
    background-size: 60px 60px;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* Readability Enhancements */
.about-text p,
.section-title p {
    max-width: 65ch; /* Optimal line length for reading */
}

.section-title p {
    margin-left: auto;
    margin-right: auto;
}

/* Fix Hover Effects for Touch Devices */
@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: var(--shadow-xl), var(--glow-blue);
        border-color: rgba(0, 119, 182, 0.3);
    }

    .service-card:hover .service-icon {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 10px 30px rgba(0, 119, 182, 0.4);
    }
    
    .btn:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }
    
    .expertise-card:hover {
        transform: translateY(-10px) rotateY(5deg);
        box-shadow: var(--shadow-xl);
        border-color: rgba(0, 119, 182, 0.3);
    }

    .trust-badge:hover {
        background: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 119, 182, 0.2);
    }
}

/* Tablet / Small Laptop Optimization */
@media (max-width: 1200px) {
    nav ul {
        gap: 5px;
    }
    
    nav ul li a {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        /* Reduce padding on mobile header to align more to edges */
        padding: 20px 10px; 
    }

    /* Make container full width in header to align to ends */
    header .container {
        width: 100%;
        padding: 0 20px; /* Keep safety padding or reduce it */
    }

    .mobile-menu {
        display: block;
    }
    
    nav {
        /* Remove nav from flex flow on mobile so logo/menu align to ends */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
    }

    nav ul {
        position: relative; /* Changed from absolute */
        top: auto;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        display: none;
        gap: 0;
        width: 100%; /* Ensure full width */
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 15px;
        border-radius: 8px;
    }
    
    /* Reduce padding on mobile */
    section {
        padding: 50px 0;
    }

    .hero {
        padding: 100px 0 60px; /* Account for fixed header */
    }

    .section-title {
        margin-bottom: 40px;
    }

    /* Better typography for mobile */
    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .section-title h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    /* Fix container padding */
    .container {
        padding: 0 20px; /* Ensure sufficient edge spacing */
        width: 100%;
    }

    /* Adjust grid gaps */
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
    
    .btn-whatsapp {
        margin-left: 0;
        margin-top: 15px;
        display: block;
        width: 100%;
    }
}

@media (max-width: 480px) {    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .service-card,
    .contact-form {
        padding: 25px;
    }
    
    .platform-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .platform-tab {
        text-align: center;
    }
    
    .trust-indicators {
        flex-direction: column;
        align-items: center;
    }
    
    .service-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        text-align: center;
    }
    
    .assessment-widget {
        padding: 30px 20px;
    }
    
    .score-circle {
        width: 150px;
        height: 150px;
    }
    
    .score-circle span {
        font-size: 3rem;
    }
    
    .assessment-actions {
        flex-direction: column;
    }
    
    .assessment-actions .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .testimonial-content {
        padding: 30px 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .client-logo {
        height: 100px;
        padding: 20px;
    }
}
