body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 50;
}

@media (max-width: 640px) {
    .topbar {
        background: rgba(255, 255, 255, 0.9);
    }
}

.topbar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    transition: color 0.2s;
    font-weight: 500;
}

.topbar-link:hover {
    color: #dc2626;
}

.navbar {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 40;
    transition: top 0.3s ease-in-out;
}

@media (max-width: 640px) {
    .navbar {
        background: rgba(255, 255, 255, 0.95);
    }
}

.nav-link {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: #111827;
}

.nav-link.active {
    color: #dc2626;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: #dc2626;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-dropdown-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-icon {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 1.25rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.06);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0.75rem;
}

.nav-dropdown-item {
    display: block;
    padding: 0.875rem 1.25rem;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-dropdown-item:first-child {
    border-radius: 0.75rem 0.75rem 0 0;
}

.nav-dropdown-item:last-child {
    border-radius: 0 0 0.75rem 0.75rem;
    border-bottom: none;
}

.nav-dropdown-item:hover {
    background: #f9fafb;
    color: #dc2626;
    padding-left: 1.5rem;
}

.nav-cta {
    background: #dc2626;
    color: white;
    padding: 0.625rem 1.75rem;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.3);
}

.nav-cta:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: white;
}

@media (min-width: 1024px) {
    .hero {
        min-height: 90vh;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.3) 60%, transparent 100%);
}

@media (max-width: 768px) {
    .hero-bg::after {
        background: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.85) 65%);
    }
}

.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

@media (min-width: 640px) {
    .hero-container {
        padding: 4rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-container {
        padding: 6rem 2rem;
    }
}

.hero-card {
    max-width: 600px;
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.06);
}

@media (min-width: 640px) {
    .hero-card {
        padding: 3rem;
    }
}

.hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.75rem;
    line-height: 1.1;
    font-weight: 300;
    color: #111827;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-title-accent {
    font-weight: 800;
}

.hero-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .hero-text {
        font-size: 1.0625rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: #dc2626;
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.hero-btn-primary:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: 2px solid #111827;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    transition: all 0.2s;
}

.hero-btn-secondary:hover {
    background: #111827;
    color: white;
}

.services {
    padding: 4rem 1rem;
    background: #f9fafb;
}

@media (min-width: 640px) {
    .services {
        padding: 5rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .services {
        padding: 6rem 2rem;
    }
}

.services-container {
    max-width: 1280px;
    margin: 0 auto;
}

.services-header {
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .services-header {
        margin-bottom: 4rem;
    }
}

.services-title {
    font-size: 2.25rem;
    line-height: 1.1;
    font-weight: 300;
    color: #111827;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .services-title {
        font-size: 2.75rem;
    }
}

@media (min-width: 1024px) {
    .services-title {
        font-size: 3rem;
    }
}

.services-intro {
    font-size: 1rem;
    line-height: 1.6;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .services-intro {
        font-size: 1.0625rem;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.service-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: block;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.75rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.service-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 1.25rem;
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-overlay-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.service-list li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.5;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.875rem;
    width: 6px;
    height: 6px;
    background: #dc2626;
    border-radius: 50%;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #111827;
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    transition: all 0.2s;
}

.service-btn:hover {
    background: #dc2626;
    gap: 0.75rem;
}

.service-btn-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
}

.service-btn:hover .service-btn-icon {
    transform: translateX(4px);
}

.feature {
    padding: 4rem 1rem;
    background: #ffffff;
}

@media (min-width: 640px) {
    .feature {
        padding: 5rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .feature {
        padding: 6rem 2rem;
    }
}

.feature-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .feature-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.feature-content {
    order: 2;
}

@media (min-width: 1024px) {
    .feature-content {
        order: 1;
    }
}

.feature-image {
    order: 1;
    border-radius: 1rem;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .feature-image {
        order: 2;
    }
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-title {
    font-size: 2.25rem;
    line-height: 1.1;
    font-weight: 300;
    color: #111827;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .feature-title {
        font-size: 2.75rem;
    }
}

@media (min-width: 1024px) {
    .feature-title {
        font-size: 3rem;
    }
}

.feature-title-accent {
    font-weight: 800;
    color: #dc2626;
}

.feature-subtitle {
    font-size: 1.125rem;
    line-height: 1.4;
    color: #374151;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.feature-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 1.25rem;
}

.feature-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: #dc2626;
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    margin-top: 1rem;
}

.feature-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partners-scroll {
    animation: scroll 30s linear infinite;
}

.partners-scroll:hover {
    animation-play-state: paused;
}

/* Main content offset for fixed navbar + topbar */
.main-offset {
    padding-top: 90px;
}

/* Height utilities for images */
.h-500 {
    height: 500px;
}

@media (min-width: 1024px) {
    .lg\:h-500 {
        height: 500px;
    }
}

/* Sticky positioning for project filters */
.sticky-filter {
    top: 130px;
}

/* Scroll margin for anchor links */
.scroll-offset {
    scroll-margin-top: 190px;
}

/* Mobile menu scrolling */
#mobile-menu {
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}