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

html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 90px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.logo img {
    height: 85px;
    width: auto;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=1920') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    padding: 150px 0 100px;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 31, 68, 0.9), rgba(10, 31, 68, 0.4));
    z-index: 1;
}

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

.hero-content {
    max-width: 650px;
}

.badge {
    display: inline-block;
    background: var(--grad-blue);
    color: white;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.hero h1 {
    font-size: 72px;
    line-height: 1.05;
    margin-bottom: 30px;
    color: white;
    letter-spacing: -2px;
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero .btn-outline {
    border-color: white;
    color: white;
}

.hero .btn-outline:hover {
    background: white;
    color: var(--primary-navy);
}

/* Common Section Styles */
section {
    padding: var(--section-padding);
}

.section-subtitle {
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 42px;
    margin-bottom: 20px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 50px;
}

.text-center {
    text-align: center;
}

.text-center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* Clients */
.clients {
    background: white;
    padding: 100px 0;
    text-align: center;
}

/* Clients Logo Slider */
.logo-slider {
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    width: 100%;
}

.logo-slider::before,
.logo-slider::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 200px;
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 768px) {
    .logo-slider::before,
    .logo-slider::after {
        width: 50px;
    }
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

.logo-track {
    display: flex;
    width: calc(300px * 18);
    animation: scroll 30s linear infinite !important;
    gap: 0;
    align-items: center;
    pointer-events: none; /* Prevents click/touch from interrupting the flow */
}

.logo-item {
    pointer-events: auto; /* Allows links inside if needed, but track keeps moving */
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 9)); }
}

.logo-item {
    width: 300px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.logo-item img {
    max-width: 220px;
    max-height: 90px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.15);
}

.logo-popup {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--primary-navy);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.logo-item:hover .logo-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.logo-popup::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--primary-navy);
}

/* About */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card.navy {
    background: var(--grad-navy);
    color: white;
}

.stat-card.navy .stat-label {
    color: rgba(255, 255, 255, 0.7);
}

.stat-num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

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

.check-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 600;
}

.check-list i {
    color: var(--primary-blue);
    font-size: 18px;
}

.vision-mission {
    margin-top: 40px;
    display: grid;
    gap: 30px;
}

.vm-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-blue);
    border-left: 4px solid var(--primary-blue);
    padding-left: 15px;
}

.vm-item p {
    color: var(--text-dark);
    font-weight: 500;
}

/* Services */
.services {
    background: white;
}

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

.service-card {
    padding: 50px 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 15px;
}

.learn-more {
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* Portfolio Highlights */
.highlights {
    background: white;
}

.highlights-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.highlights-text {
    flex: 1;
}

.highlights-image {
    flex: 1;
}

.highlights-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.highlight-list {
    list-style: none;
    margin-top: 30px;
}

.highlight-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.highlight-list i {
    color: var(--primary-blue);
    font-size: 18px;
    margin-top: 4px;
}

.highlight-list p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 16px;
}

/* Portfolio */
.portfolio {
    background: var(--bg-light);
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.portfolio-filters {
    display: flex;
    gap: 10px;
    background: white;
    padding: 6px;
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 100px;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 450px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: #000;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0.85;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 15, 30, 0.98) 0%, rgba(10, 15, 30, 0.6) 40%, transparent 100%);
    padding: 40px;
    color: white;
    transform: translateY(15px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-card:hover .project-img {
    transform: scale(1.1);
    opacity: 0.6;
}

.project-card:hover .project-overlay,
.project-card.active-mobile .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-card.active-mobile .project-img {
    transform: scale(1.1);
    opacity: 0.6;
}

.project-cat {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: inline-block;
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
    width: fit-content;
}

.project-title {
    font-size: 28px;
    font-family: var(--font-heading);
    margin-bottom: 10px;
    line-height: 1.2;
    color: white;
    font-weight: 700;
}

.project-desc-mini {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.8;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #F1F5F9;
}

.project-client {
    font-size: 15px;
    opacity: 0.9;
    font-weight: 500;
}

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

.info-item {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.info-item .icon {
    width: 45px;
    height: 45px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-form-wrapper {
    background: white;
    padding: 60px;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.about-text {
    flex: 1.2;
}

.expertise-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 25px;
}

.exp-item {
    background: #F1F5F9;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-navy);
    transition: var(--transition);
}

.exp-item i {
    color: var(--primary-blue);
    font-size: 16px;
}

.exp-item:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.about-paragraphs {
    margin-bottom: 30px;
}

.about-paragraphs p {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}

.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 15px;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-block {
    width: 100%;
    padding: 15px;
}

.form-status {
    margin-top: 20px;
    padding: 10px;
    border-radius: var(--border-radius);
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: #DCFCE7;
    color: #166534;
}

/* Footer */
.footer {
    background: #F8FAFC;
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

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

.footer-brand p {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 15px;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 25px;
}

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

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 15px;
}

.footer-links ul li a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 992px) {
    .container {
        padding: 0 24px;
    }

    .about-container, .contact-container, .highlights-container {
        display: flex;
        flex-direction: column;
        gap: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 60px 40px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        font-size: 16px;
        font-weight: 600;
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-dark);
    }

    .contact-form-wrapper {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .portfolio-filters {
        flex-direction: column;
        width: 100%;
        border-radius: 16px;
        padding: 10px;
        background: white;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
        border-radius: 12px;
    }

    .vision-mission {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .project-overlay {
        padding: 30px;
    }

    .project-title {
        font-size: 24px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .stat-card {
        padding: 30px 20px;
    }

    .stat-card h3 {
        font-size: 28px;
    }
}

/* Body lock when menu is open */
body.menu-open {
    overflow: hidden;
}
