:root {
    --primary-color: #14285d;
    --secondary-color: #4999ca;
    --accent-color: #ffffff;
    --text-primary: #14285d;
    --text-secondary: #64748b;
    --bg-color: #ffffff;
    --light-bg: #f8faff;

    --gradient-primary: linear-gradient(135deg, #14285d 0%, #1e3a8a 100%);
    --gradient-secondary: linear-gradient(135deg, #4999ca 0%, #3b82f6 100%);

    --shadow-soft: 0 10px 30px -5px rgba(20, 40, 93, 0.08);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05);

    --radius-round: 50px;
    --radius-card: 16px;

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-max: 1200px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-secondary);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Global Container Fixes */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0;
}

.text-primary {
    color: var(--secondary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    /* Reset fixed dimensions to allow natural flow */
    width: auto;
    height: auto;
}

.logo-img {
    height: 68px;
    width: auto;
    object-fit: contain;
    display: block;
    /* Remove absolute positioning to keep it inside the bar */
    position: static;
    transform: none;
}

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

.nav-links a {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
}

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

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-round);
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(73, 153, 202, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(73, 153, 202, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Hero */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, #dbeafe, #ffffff);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.badge-pill {
    background: rgba(73, 153, 202, 0.1);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.headline {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-primary-gradient {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subheadline {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-person-img {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

.blob-bg {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--gradient-secondary);
    opacity: 0.15;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    top: -10%;
    left: -10%;
    transform: none;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    min-width: 180px;
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.8rem;
}

.floating-card div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.floating-card strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.floating-card span {
    font-size: 0.8rem;
    color: #888;
}

.c1 {
    top: 20%;
    left: -20px;
    animation-delay: 0s;
}

.c2 {
    bottom: 20%;
    right: -20px;
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Trust Bar */
.trust-bar {
    background: var(--secondary-color);
    padding: 2rem 0;
    color: white;
    text-align: center;
}

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

.trust-bar span:first-child {
    font-weight: 700;
    margin-right: 2rem;
    opacity: 0.8;
}

.partner {
    font-weight: 700;
    font-size: 1.5rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Sections General */
.section {
    padding: 6rem 0;
}

.section-tag {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-header-center {
    text-align: center;
    margin-bottom: 4rem;
}

/* About */
.about-container {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text .check-list {
    display: block;
    width: fit-content;
    text-align: left;
    margin: 2rem auto 3rem auto;
    /* Added bottom margin for spacing */
}

.check-list {
    list-style: none;
    margin: 2rem 0;
}

.check-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.about-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    height: 400px;
}

.img-grid-item {
    background: #eee;
    border-radius: var(--radius-card);
    background-size: cover;
    background-position: center;
}

.g1 {
    grid-column: span 2;
    background-image: url('https://images.unsplash.com/photo-1581578731117-104f2a417954?auto=format&fit=crop&q=80&w=800');
}

.g2 {
    background-image: url('https://images.unsplash.com/photo-1527515673510-813d3143d192?auto=format&fit=crop&q=80&w=800');
}

.g3 {
    background-image: url('https://images.unsplash.com/photo-1584622050111-993a426fbf0a?auto=format&fit=crop&q=80&w=800');
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.service-card-new {
    background: var(--primary-color);
    /* Permanently Dark Blue */
    padding: 2.5rem 2rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white !important;
    /* Force white text */
}

.service-card-new:hover,
.service-card-new.active {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card-new h3,
.service-card-new p {
    color: white !important;
}

/* Icon Circle - Flying & Mirror Reflection Effect */
.icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    background: var(--primary-color) !important;
    /* Strict Dark Blue */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: 0.3s;
    position: relative;
    z-index: 1;

    /* Flying Effect */
    animation: float 4s ease-in-out infinite;
    /* Transparent Dark Blue with Blur (Glassmorphism) */
    background: rgba(20, 40, 93, 0.4) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 25px rgba(73, 153, 202, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Mirror Style Blur Reflection */
.icon-circle::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: var(--primary-color);
    border-radius: 50%;
    bottom: -30%;
    left: 10%;
    filter: blur(15px);
    opacity: 0.7;
    z-index: -1;
    transform: scaleY(-0.5);
    animation: float-shadow 4s ease-in-out infinite;
}

@keyframes float-shadow {
    0% {
        transform: scaleY(-0.5) translateY(0);
        opacity: 0.7;
    }

    50% {
        transform: scaleY(-0.5) translateY(20px);
        opacity: 0.4;
    }

    100% {
        transform: scaleY(-0.5) translateY(0);
        opacity: 0.7;
    }
}

/* Stagger animations */
.service-card-new:nth-child(1) .icon-circle {
    animation-delay: 0s;
}

.service-card-new:nth-child(2) .icon-circle {
    animation-delay: 1s;
}

.service-card-new:nth-child(3) .icon-circle {
    animation-delay: 2s;
}

.service-card-new:nth-child(4) .icon-circle {
    animation-delay: 0.5s;
}

.service-card-new:nth-child(5) .icon-circle {
    animation-delay: 1.5s;
}

/* Active/Hover State: Just scaling (Background is already set to transparent in base class) */
.service-card-new:hover .icon-circle,
.service-card-new.active .icon-circle {
    transform: scale(1.1);
    /* No background override here to keep transparency */
}

/* Standardize reflection */
.service-card-new:hover .icon-circle::after,
.service-card-new.active .icon-circle::after {
    opacity: 0.8;
}

/* Portfolio with Blurred Overlay */
.portfolio-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.portfolio-item-new {
    height: 300px;
    background: #cbd5e1;
    border-radius: var(--radius-card);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

.overlay-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: 0.3s;
}

.overlay-text::after {
    content: '→';
    font-weight: 800;
    opacity: 0.5;
}

/* Testimonials Marquee */
.overflow-hidden {
    overflow: hidden;
}

.reviews-marquee-wrapper {
    width: 100%;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    /* Prevent vertical scrollbar */
    /* Allow manual scroll */
    white-space: nowrap;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    cursor: grab;
    padding-bottom: 10px;
    /* Slight padding for shadows, hidden by overflow-y if strict, but helps generic layout */
}

.reviews-marquee-wrapper::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

.reviews-marquee-wrapper:active {
    cursor: grabbing;
}

.reviews-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    /* Removed animation for JS control */
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    text-align: center;
    border: 1px solid #f0f0f0;
    min-width: 280px;
    max-width: 300px;
    flex-shrink: 0;
    white-space: normal;
}

.testimonial-card.active {
    background: var(--secondary-color);
    color: white;
}

.testimonial-card.active h4,
.testimonial-card.active span,
.testimonial-card.active p {
    color: white;
}

/* Global Stars Color */
.stars {
    color: #ffd700;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 auto 1rem auto;
    background-size: cover;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Centered CTA Group for Post-Reviews */
.centered-cta-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.centered-cta-group .btn {
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Footer */
.main-footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    margin-bottom: 1rem;
}

.logo-img-footer {
    height: 130px;
    width: auto;
    object-fit: contain;
    /* Optional: Invert color if logo is dark and footer is dark */
    /* filter: brightness(0) invert(1); */
    background: white;
    /* Adding white bg just in case it is transparent with dark text */
    padding: 12px;
    border-radius: 12px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-col a {
    display: block;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
    color: white;
    margin-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    background: #0f1e47;
}

/* Mobile */
@media (max-width: 900px) {
    .section {
        padding: 4rem 0;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        display: none;
        text-align: center;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .sm-hidden {
        display: none;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 4rem;
        text-align: center;
    }

    .hero-container {
        flex-direction: column;
        gap: 3rem;
    }

    .hero-content {
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .headline {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .subheadline {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Fix buttons sticking to edges or being too wide */
    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        /* Center the group horizontally */
    }

    .btn {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .about-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .check-list {
        text-align: left;
        align-self: center;
    }

    .trust-container {
        gap: 1.5rem;
        justify-content: center;
    }

    .partner {
        font-size: 1.1rem;
    }

    .about-images {
        height: 300px;
    }

    .floating-card {
        display: none;
    }

    .blob-bg {
        width: 280px;
        height: 280px;
    }

    /* Ensure perfect single column symmetry for grids */
    .portfolio-grid-new,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .service-card-new,
    .portfolio-item-new {
        width: 100%;
        max-width: 400px;
    }

    .footer-grid {
        text-align: center;
        justify-items: center;
    }

    .footer-col {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .footer-col a:hover {
        margin-left: 0;
        transform: scale(1.05);
    }

    .logo {
        width: auto;
    }

    .logo-img {
        height: 50px;
        position: static;
    }
}

@media (max-width: 480px) {
    .headline {
        font-size: 1.8rem;
    }

    .trust-bar span:first-child {
        width: 100%;
        margin: 0 0 1rem 0;
        display: block;
    }

    .testimonial-card {
        min-width: 280px;
        padding: 1.5rem;
    }
}