/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    background: none;
}

button.btn {
    border: none;
    outline: none;
}

button.btn:focus {
    outline: 2px solid #00A39C;
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, #00A39C, #4A40D0);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 163, 156, 0.3);
}

/* Improved focus visibility */
.nav-link:focus-visible,
.footer-links a:focus-visible,
button.btn:focus-visible,
.btn:focus-visible,
a.btn:focus-visible {
    outline: 3px solid #4A40D0;
    outline-offset: 3px;
    border-radius: 6px;
}

/* Ensure links have visible hover/focus contrast */
.nav-link:focus-visible,
.nav-link:hover {
    color: #00A39C;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn-secondary {
    background: transparent;
    color: #00A39C;
    border: 2px solid #00A39C;
}

.btn-secondary:hover {
    background: #00A39C;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #4A40D0;
    border: 2px solid #4A40D0;
}

.btn-outline:hover {
    background: #4A40D0;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.2rem;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo {
    height: 72px;
    width: auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Branded wordmark next to the logo */
.brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.05;
}

.brand-line {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, #00A39C, #4A40D0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.brand-line1 { font-size: 1.06rem; }
.brand-line2 { font-size: 0.95rem; opacity: 0.9; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    list-style: none;
    padding: 0.5rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.nav-item.dropdown:focus-within .dropdown-menu {
    display: block;
}

.nav-link {
    text-decoration: none;
    color: #333333;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #00A39C;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333333;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0, 163, 156, 0.1), rgba(74, 64, 208, 0.1));
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #00A39C, #4A40D0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #666;
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: grid;
    gap: 0.4rem;
}

.hero-bullets li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-weight: 600;
}

.hero-bullets li::before {
    content: '✓';
    color: #00A39C;
    font-weight: 800;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-graphic {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #00A39C, #4A40D0);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Simple integration diagram inside hero */
.integration-diagram {
    display: grid;
    grid-auto-flow: column;
    gap: 1.2rem;
    align-items: center;
    background: rgba(255,255,255,0.14);
    padding: 16px 22px;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.diagram-node {
    background: rgba(255,255,255,0.2);
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.25);
    letter-spacing: 0.3px;
}

.diagram-arrow {
    font-size: 26px;
    opacity: 0.95;
}

.tech-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    z-index: 2;
    position: relative;
}

.tech-layer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
}

.tech-layer:nth-child(1) { animation-delay: 0.1s; }
.tech-layer:nth-child(2) { animation-delay: 0.2s; }
.tech-layer:nth-child(3) { animation-delay: 0.3s; }
.tech-layer:nth-child(4) { animation-delay: 0.4s; }

.tech-layer.leadership {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.tech-layer:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.tech-layer svg {
    opacity: 0.9;
}

.tech-layer span {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.hero-accent {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 0.4; }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #333333;
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Pain Points Section */
.pain-points {
    background: #F5F5F5;
}

/* Value Props Section */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem 2rem;
    margin-top: 2.5rem;
}

.value-card {
    background: white;
    padding: 1.75rem;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.value-icon {
    color: #00A39C;
    margin-bottom: 1rem;
}

.value-card h3 {
    margin-bottom: 0.5rem;
    color: #333333;
}

.value-card p {
    color: #666;
    margin: 0 auto;
}

/* Trusted By Section */
.trusted-by {
    background: #F5F5F5;
    padding: 60px 0;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.client-logo {
    padding: 1rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: #333333;
}

.client-logo.placeholder {
    color: #999;
    font-style: italic;
}

/* LIMS Solutions Section */
.lims-solutions {
    background: linear-gradient(135deg, rgba(0, 163, 156, 0.05), rgba(74, 64, 208, 0.05));
}

.project-overview {
    margin-top: 3rem;
}

.project-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333333;
}

.project-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Deliverables Grid */
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.deliverable-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deliverable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.deliverable-icon {
    color: #00A39C;
    margin-bottom: 1.5rem;
    text-align: center;
}

.deliverable-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333333;
    text-align: center;
}

.deliverable-card ul {
    list-style: none;
    padding: 0;
}

.deliverable-card li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.deliverable-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00A39C;
    font-weight: bold;
}

/* Timeline Section */
.timeline-section {
    margin-top: 4rem;
    margin-bottom: 3rem;
}

.timeline-section h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: #333333;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #00A39C, #4A40D0);
    top: 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid #00A39C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #00A39C;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: calc(50% - 40px);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    text-align: left;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    text-align: right;
}

.timeline-content h5 {
    color: #00A39C;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-content p {
    color: #666;
    font-size: 0.95rem;
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
}

.cta-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Case Studies Section */
.case-studies {
    background: #F5F5F5;
}

.case-study-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.case-study-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.industry-tag {
    background: linear-gradient(135deg, #00A39C, #4A40D0);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.case-study-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.case-study-content h4 {
    color: #00A39C;
    margin-bottom: 0.5rem;
}

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

.results li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.results li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00A39C;
    font-weight: bold;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.values {
    margin-top: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.value-item h4 {
    color: #00A39C;
    margin-bottom: 0.5rem;
}

.value-item p {
    font-size: 0.9rem;
    color: #666;
}

.placeholder-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #00A39C, #4A40D0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-align: center;
}

.profile-image {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, rgba(0, 163, 156, 0.05), rgba(74, 64, 208, 0.05));
}

.contact-cta {
    text-align: center;
    padding: 3rem 0;
}

.contact-cta .btn {
    margin-bottom: 1.5rem;
}

.cta-subtext {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: #333333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo .logo {
    height: 55px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00A39C;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #999;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        gap: 2rem;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .deliverables-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-logo .logo {
        height: 80px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 999;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #f8f9fa;
        margin-top: 0.5rem;
        padding: 1rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .tech-stack {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .tech-layer {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .tech-layer span {
        font-size: 0.8rem;
    }
    
    .hero-graphic {
        height: 340px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-image {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .case-study-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .deliverables-grid {
        grid-template-columns: 1fr;
    }
    
    #engagements .deliverable-card {
        min-height: auto;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-marker {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .nav-logo .logo {
        height: 70px;
    }
    
    .nav-menu {
        top: 80px;
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        font-size: 0.95rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .value-grid {
        gap: 1.5rem;
    }
    
    .value-card {
        padding: 1.5rem;
    }
    
    .hero-graphic {
        height: 300px;
    }
    
    .tech-stack {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .tech-layer {
        padding: 0.75rem 0.5rem;
        gap: 0.4rem;
        min-height: 80px;
        justify-content: center;
    }
    
    .tech-layer svg {
        width: 28px;
        height: 28px;
    }
    
    .tech-layer span {
        font-size: 0.7rem;
        line-height: 1.2;
        text-align: center;
    }
}

/* Extra small mobile devices */
@media (max-width: 375px) {
    .hero-graphic {
        height: 280px;
    }
    
    .tech-stack {
        gap: 0.4rem;
        padding: 0.75rem;
    }
    
    .tech-layer {
        padding: 0.6rem 0.4rem;
        min-height: 75px;
    }
    
    .tech-layer svg {
        width: 24px;
        height: 24px;
    }
    
    .tech-layer span {
        font-size: 0.65rem;
    }
}

/* Newsletter CTA */
.newsletter-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f7f6 100%);
    border-radius: 12px;
}

.newsletter-cta-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Newsletter trigger button - only add the arrow effect */
.newsletter-trigger::after {
    content: '→';
    font-size: 20px;
    margin-left: 8px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.newsletter-trigger:hover::after {
    transform: translateX(3px);
}

/* Hero section newsletter button - already has arrow in text */
.hero-buttons .newsletter-trigger::after {
    content: '';
    display: none;
}

@media (max-width: 600px) {
    .newsletter-cta {
        margin-top: 40px;
        padding: 25px 15px;
    }
    
    .newsletter-cta-text {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .newsletter-trigger {
        font-size: 16px;
        padding: 12px 20px;
        max-width: 280px;
        width: 100%;
    }
}

/* Newsletter Exit-Intent Pop-up Styles */
.newsletter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

.newsletter-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-width: calc(100vw - 40px);
    max-height: 90vh;
    overflow-y: auto;
    z-index: 9999;
    animation: popupScale 0.3s ease forwards;
}

.newsletter-popup.show {
    display: block;
}

.newsletter-overlay.show {
    display: block;
}

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

@keyframes popupScale {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.popup-close:hover {
    color: #000;
}

.popup-content {
    padding: 40px 30px 30px;
    text-align: center;
}

.popup-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.popup-content > p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Newsletter Form Styles */
.listmonk-form {
    margin: 0 auto;
    max-width: 400px;
}

.listmonk-form h3 {
    font-size: 20px;
    font-weight: 600;
    color: #00A39C;
    margin-bottom: 20px;
}

.listmonk-form input[type="email"],
.listmonk-form input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease;
}

.listmonk-form input[type="email"]:focus,
.listmonk-form input[type="text"]:focus {
    outline: none;
    border-color: #00A39C;
}

.listmonk-form p {
    margin-bottom: 15px;
}

.listmonk-form input[type="checkbox"] {
    margin-right: 8px;
}

.listmonk-form label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.listmonk-form input[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-disclaimer {
    font-size: 12px;
    color: #999;
    margin-top: 20px;
    margin-bottom: 0;
}

/* Responsive adjustments for popup */
@media (max-width: 480px) {
    .newsletter-popup {
        width: 95%;
        max-width: calc(100vw - 20px);
    }
    
    .popup-content {
        padding: 25px 20px 20px;
    }
    
    .popup-content h2 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .popup-content > p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .listmonk-form h3 {
        font-size: 18px;
    }
    
    .listmonk-form input[type="email"],
    .listmonk-form input[type="text"] {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #00A39C;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 163, 156, 0.3);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #00897B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 163, 156, 0.4);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}


/* Engagements Page */
.engagement-type, .engagement-benefits {
    margin-bottom: 2rem;
}

.engagement-type ul, .engagement-benefits ul {
    margin-left: 1.5rem;
    list-style: disc;
}

.engagement-benefits li {
    margin-bottom: 0.5rem;
}

/* Service Pages */
.service-section {
    margin-bottom: 2rem;
}

.service-section ul {
    margin-left: 1.5rem;
    list-style: disc;
}

/* Engagements Page */
.best-for {
    background: linear-gradient(135deg, rgba(0, 163, 156, 0.1), rgba(74, 64, 208, 0.1));
    padding: 1rem;
    border-radius: 8px;
    margin-top: auto;
    border-left: 4px solid #00A39C;
    font-size: 0.95rem;
}

/* Enhanced deliverable cards for engagements */
#engagements .deliverable-card {
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

#engagements .deliverable-card ul {
    flex-grow: 1;
    margin-bottom: 0;
}

#engagements .deliverable-card h4 {
    margin-bottom: 1.5rem;
}
