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

:root {
    --primary-color: #0a1628;
    --primary-light: #1a2a42;
    --accent-blue: #2563eb;
    --dark: #0a1628;
    --text-dark: #0f172a;
    --text-medium: #334155;
    --text-light: #ffffff;
    --text-gray: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-subtle: #f1f5f9;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    background: rgba(10, 22, 40, 0.98);
}

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

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

.logo-icon {
    width: 45px;
    height: 45px;
    position: relative;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-light);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 40px 140px;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-medium);
    margin-bottom: 3rem;
    line-height: 1.8;
    font-weight: 500;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--text-gray);
    animation: scrollAnimation 2s ease-in-out infinite;
}

@keyframes scrollAnimation {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.3; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: -0.3px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(10, 22, 40, 0.25);
}

.btn-large {
    padding: 22px 50px;
    font-size: 1.1rem;
}

/* What We Do Section */
.what-we-do {
    padding: 140px 0;
    background: var(--bg-light);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.section-intro {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 5rem;
    max-width: 800px;
    line-height: 1.8;
    font-weight: 500;
}

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

.service-block {
    background: var(--bg-white);
    padding: 60px 40px;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.service-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

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

.service-block:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(10, 22, 40, 0.15);
}

.service-block-content h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.service-block-content p {
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    font-weight: 400;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--dark);
}

/* Expertise Section */
.expertise {
    padding: 140px 0;
    background: linear-gradient(135deg, var(--dark) 0%, #0d1d35 100%);
    color: var(--text-light);
    position: relative;
}

.large-statement {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 4rem;
    letter-spacing: -2px;
    color: var(--text-light);
}

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

.expertise-col h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-light);
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    letter-spacing: -0.5px;
}

/* About Section */
.about {
    padding: 140px 0;
    background: var(--bg-white);
}

.section-title-dark {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 3rem;
    letter-spacing: -2px;
    text-align: center;
}

.about-description {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin: 0 auto 5rem;
    max-width: 700px;
    line-height: 1.9;
    text-align: center;
    font-weight: 500;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-top: 80px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background: var(--bg-subtle);
    transition: var(--transition);
}

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

.stat-item h3 {
    font-size: 4.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 900;
    letter-spacing: -3px;
}

.stat-item p {
    color: var(--text-medium);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

/* Client Carousel */
.clients-carousel-section {
    margin: 70px 0;
    padding: 50px 0;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-subtle) 50%, transparent 100%);
}

.carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 100px;
    width: fit-content;
    animation: scroll 30s linear infinite;
}

.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-dark);
    opacity: 0.7;
    transition: var(--transition-fast);
    white-space: nowrap;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
}

.logo-item:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.carousel-logo {
    height: 55px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(30%) opacity(0.85);
    transition: var(--transition-fast);
}

.logo-item:hover .carousel-logo {
    filter: grayscale(0%) opacity(1);
}

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

/* Pause animation on hover */
.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

/* Contact Section */
.contact {
    padding: 140px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    text-align: center;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.cta-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 3.5rem;
    line-height: 1.15;
    letter-spacing: -3px;
}

.contact-details {
    margin-top: 3.5rem;
}

.contact-email {
    font-size: 1.4rem;
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.contact-email:hover {
    color: var(--primary-color);
    background: var(--bg-subtle);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark) 0%, #0d1d35 100%);
    color: var(--text-light);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.footer-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.footer-icon svg {
    width: 100%;
    height: 100%;
}

.footer-logo-text {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-light);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.2px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-weight: 700;
}

.footer-section p,
.footer-section ul {
    color: rgba(255, 255, 255, 0.7);
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--text-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 968px) {
    .container {
        padding: 0 30px;
    }

    .nav-content {
        padding: 0 30px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hero {
        padding: 100px 30px 60px;
    }

    .service-blocks {
        grid-template-columns: 1fr;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

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

    .large-statement {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .service-block {
        padding: 40px 30px;
    }
}
