* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blues-royal: hsl(218, 91%, 35%);
    --blues-light: hsl(206, 100%, 60%);
    --blues-accent: hsl(218, 100%, 50%);
    --red: hsl(0, 75%, 50%);
    --foreground: hsl(218, 25%, 15%);
    --muted: hsl(215, 20%, 65%);
    --border: hsl(214, 32%, 91%);
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(14, 73, 144, 0.95), rgba(24, 119, 242, 0.85)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><rect fill="%230E4990" width="1920" height="1080"/></svg>');
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(51, 153, 255, 0.2) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem 1rem;
}

.nav-logo {
    height: 72px;
}

/* Hamburger toggle hidden by default (show only on small screens) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* Ensure images inside picture are block-level for layout on mobile */
.project-card picture,
.project-card picture img,
.project-image {
    display: block;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    pointer-events: auto;
}

.navbar .nav-left, .navbar .nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    pointer-events: auto;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    opacity: 0.95;
}

.logo {
    display: block;
    height: 96px;
    margin: 0 auto 1.5rem;
    animation: fadeIn 0.8s ease-out;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeIn 0.8s ease-out 0.3s backwards;
}

.linear-color {
    background: #39a7ff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.8s ease-out 0.5s backwards;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    animation: fadeIn 0.8s ease-out 0.7s backwards;
}

.btn {
    padding: 1rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--blues-royal) 0%, var(--blues-accent) 100%);
    color: white;
    box-shadow: 0 12px 30px rgba(14,73,144,0.25);
    padding: 1rem 2.25rem;
    border-radius: 60px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    overflow: hidden;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
}

.btn-primary::before {
    /* ensure gradient doesn't bleed on antialiasing edges */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 60px;
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(14,73,144,0.28);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--blues-royal);
    transform: scale(1.05);
}

/* Remove underline from all links (visual consistency) */
a {
    text-decoration: none;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
    animation: fadeIn 0.8s ease-out 1s backwards;
}

.trust-item {
    text-align: center;
}

.trust-item .number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--blues-royal);
    background: rgba(255,255,255,0.95);
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(14,73,144,0.08);
}

.trust-item .label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Sections */
section {
    padding: 2rem 0;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Comparison Table */
.comparison-grid {
    display: grid;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-row {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

/* comparison items as pills */
.comparison-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #f7fbff;
    padding: 0.55rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
}

.comparison-feature {
    font-weight: 800;
    font-size: 1rem;
    color: var(--foreground);
}

.comparison-feature {
    font-weight: 700;
    font-size: 1.1rem;
}

.comparison-item {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.comparison-ours {
    background: rgba(14, 73, 144, 0.05);
    border: 1px solid rgba(51, 153, 255, 0.2);
}

.comparison-theirs {
    background: #f1f5f9;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(14, 73, 144, 0.2);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--blues-royal), var(--blues-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.service-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Projects Carousel */
.carousel-container {
    position: relative;
    margin-top: 3rem;
    padding: 0 20px;
}

.carousel {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
}

.project-card {
    flex: 0 0 340px;
    min-width: 340px;
    max-width: 340px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 300px;
    margin: 1rem 0; /* top/bottom spacing */
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(14, 73, 144, 0.2);
}

.project-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    flex: 0 0 120px;
}

@media (max-width: 1200px) {
    .project-card {
        flex: 0 0 300px;
        min-width: 300px;
        max-width: 300px;
        height: 280px;
    }
    .project-image {
        height: 110px;
        flex: 0 0 110px;
    }
}

@media (max-width: 768px) {
    .project-card {
        min-width: 85%;
        height: auto;
        min-height: 260px;
    }
    .project-image {
        height: 140px;
    }
    /* Ensure actions are visible below content on mobile */
    .project-card .project-content {
        padding: 0.75rem;
    }
    .project-card .project-actions {
        margin-top: 1rem;
        padding-bottom: 0.5rem;
    }
    .project-card .project-actions a {
        width: 100%;
        display: inline-flex;
        justify-content: center;
        padding: 0.9rem 1rem;
    }
}

.project-card .project-content {
    display:flex;
    flex-direction:column;
    gap:0.75rem;
    padding:1rem;
}

.project-card .project-actions {
    margin-top:auto;
    display:flex;
    justify-content:center;
}

.btn-pill-white {
    background: white;
    color: var(--blues-royal);
    border-radius: 999px;
    width: 56px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(14,73,144,0.08);
    border: none;
}

.btn-outline.small {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.project-card .btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    color: var(--blues-royal);
    font-weight: 700;
}

/* Automation panel */
.automation-panel {
    background: linear-gradient(90deg, rgba(14,73,144,0.95), rgba(57,167,255,0.9));
    padding: 3rem 2rem;
    border-radius: 12px;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.automation-panel h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 1.5rem;
}

.automation-features {
    display:flex;
    gap:2rem;
    justify-content:center;
    align-items:flex-start;
    flex-wrap:wrap;
    margin-bottom:1.5rem;
}

.automation-feature {
    flex:1 1 220px;
    max-width:320px;
    text-align:center;
}

.automation-icon {
    width:64px;
    height:64px;
    border-radius:12px;
    background: rgba(255,255,255,0.12);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    margin-bottom:0.75rem;
}

.automation-feature h3 {
    font-size:1.05rem;
    margin-bottom:0.5rem;
    font-weight:700;
}

.automation-feature p {
    opacity:0.95;
}

.automation-cta .btn {
    border-radius:40px;
    padding:0.9rem 1.25rem;
    font-weight:700;
}

.project-content {
    padding: 1.5rem;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 24px;
    color: var(--foreground);
}

.carousel-btn:hover {
    background: var(--blues-light);
    color: white;
    border-color: var(--blues-light);
}

.carousel-btn i {
    font-size: 20px;
}

.fa-solid.fa-check {
    color: var(--blues-accent);
}

.fa-solid.fa-xmark {
    color: var(--red);
}

.carousel-btn.prev {
    left: -28px;
}

.carousel-btn.next {
    right: -28px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blues-royal), var(--blues-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.modal-description {
    color: var(--muted);
    font-size: 1.1rem;
}

.modal-body {
    padding: 2rem;
}

.modal-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 2rem;
}

/* Hero overlay / particles */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.6;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.modal-features h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-features ul {
    list-style: none;
    padding: 0;
}

.modal-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.modal-features li::before {
    font-family: "Font Awesome 6 Free";
    content: "\f00c";
    font-weight: 900;
    color: var(--blues-light);
    font-size: 1.2rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* AI Section */
.ai-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}
@media (max-width: 768px) {
    .ai-grid {
        grid-template-columns: 1fr;
    }
}

.ai-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ai-card-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.ai-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--blues-royal), var(--blues-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.ai-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.ai-card p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--blues-royal), var(--blues-accent));
    color: white;
    text-align: center;
    padding: 1rem;
}

.cta-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.cta-stat {
    text-align: center;
}

.cta-stat-number {
    font-size: 3rem;
    font-weight: 800;
}

.cta-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: linear-gradient(180deg, #073b7a, #0f4fb2);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 48px;
    margin-bottom: 1rem;
}

.footer-contact {
    text-align: right;
}
@media (max-width: 768px) {
    .footer-contact {
        text-align: left;
    }
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer p, .footer a {
    color: white;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer a {
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 0.5rem;
    color: white;
}

.footer a:hover {
    color: var(--blues-light);
}

/* Force footer links to white across states and remove underline */
.footer a, .footer a:link, .footer a:visited, .footer a:active {
    color: white !important;
    text-decoration: none !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeIn 1s ease-out 1s backwards;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    width: 36px;
    height: 36px;
    fill: white;
}

.whatsapp-float i {
    font-size: 28px;
    color: white;
}

.btn i {
    margin-right: 0.5rem;
}

.cta-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.cta-emoji i {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-row {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        min-width: 85%;
    }
    .carousel-container {
        padding: 0 40px;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .carousel-btn.prev {
        left: 8px;
    }
    .carousel-btn.next {
        right: 8px;
    }
    
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
    .modal-content {
        margin: 1rem;
    }
    .modal-header, .modal-body {
        padding: 1.5rem;
    }
    /* Mobile navbar: smaller logo and hamburger menu */
    .nav-logo {
        height: 48px;
    }
    .hero-content {
        padding-top: 4.5rem;
    }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(255,255,255,0.06);
        border: none;
        border-radius: 8px;
        color: white;
        font-size: 20px;
        margin-left: 0.5rem;
        cursor: pointer;
    }
    .navbar .nav-right {
        display: none;
    }
    .navbar.open .nav-right {
        display: flex;
        position: absolute;
        top: 64px;
        right: 1rem;
        background: rgba(6, 30, 60, 0.95);
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        min-width: 200px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    }
    .navbar.open .nav-right a {
        color: white;
        padding: 0.5rem 0.25rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Strong override for footer links in case other rules apply later */
footer .footer-grid a,
footer .footer-grid a:link,
footer .footer-grid a:visited,
footer .footer-grid a:hover,
footer .footer-grid a:active {
    color: #ffffff !important;
    text-decoration: none !important;
}


