:root {
    --primary: #0a2540;
    --secondary: #635bff;
    --accent: #00d4ff;
    --text-main: #425466;
    --text-heading: #0a2540;
    --white: #ffffff;
    --bg-light: #f6f9fc;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.nav-link {
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* Modern Header */
header {
    background: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.4s ease, background 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.header-hidden {
    transform: translateY(-100%);
}

header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow);
}

.top-bar {
    background: var(--primary);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo img {
    height: 50px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-heading);
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--secondary);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 1rem 0;
    z-index: 1001;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    display: block;
    color: var(--text-main);
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--secondary);
}

/* New Hero Style: Split with Floating Elements */
.hero {
    padding-top: 100px;
    background: #ffffff;
    min-height: 85vh;
    /* Reduced from 95vh for better fit */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-slide-inner {
    display: flex;
    align-items: center;
    gap: 6rem;
    /* Increased gap for larger screens */
    padding: 6rem 0;
    /* Standardized vertical padding */
}

.hero-content {
    flex: 1;
}

.hero-content span {
    display: inline-block;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    /* Better readability */
    color: var(--primary);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-main);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-btns .btn:not(.btn-primary) {
    border: 1px solid var(--secondary);
}

.hero-image-wrap {
    flex: 1;
    position: relative;
}

.hero-image-wrap::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary);
    border-radius: 30px;
    z-index: -1;
}

.hero-image-wrap img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* Capability Cards */
.capabilities {
    padding: 120px 0;
    /* Slightly more breathe room */
    background: var(--bg-light);
}

.section-head {
    margin-bottom: 5rem;
    /* More space for desktop */
}

.section-head.center {
    text-align: center;
}

.section-head.center p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head span {
    display: inline-block;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.section-head h2 {
    font-size: 3rem;
    color: var(--primary);
    line-height: 1.2;
}

.section-head p {
    color: #666;
    max-width: 600px;
    line-height: 1.6;
    margin-top: 1rem;
    font-size: 1.1rem;
}



.cap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cap-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.cap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.cap-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.cap-card:hover::before {
    transform: scaleX(1);
}

.cap-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
    display: inline-block;
}

.cap-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.cap-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.cap-card:hover h3 {
    color: var(--secondary);
}

.read-more {
    color: var(--secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary);
}

.experience {
    padding: 120px 0;
}

.exp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    /* Standardized gap */
    align-items: center;
}

.exp-image-stack {
    position: relative;
}

.exp-img-1 {
    width: 100%;
    /* Better fill */
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.exp-img-2 {
    position: absolute;
    bottom: -40px;
    right: -20px;
    width: 65%;
    border: 8px solid white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 91, 255, 0.39);
}

.btn-primary:hover {
    background: #524ad4;
    transform: translateY(-2px);
}

/* Mission Section */
.mission {
    padding: 100px 0;
    background: var(--bg-light);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-content h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mission-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-main);
}

.mission-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Logo Grid */
.logos {
    padding: 120px 0;
    background: var(--bg-light);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.logo-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
}

.logo-item img {
    max-width: 150px;
    filter: grayscale(1);
    opacity: 0.6;
    transition: var(--transition);
}

.logo-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Footer */
footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr;
    /* More balanced distribution */
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-col h3 {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}

.footer-links li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-links i {
    color: var(--secondary);
    margin-top: 5px;
    width: 20px;
    text-align: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    flex: 1;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.12);
}

.newsletter-form .btn {
    border-radius: 12px !important;
    padding: 0.8rem 1.5rem !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.875rem;
}

/* Swiper Custom */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    align-items: center;
}

.swiper-pagination-bullet-active {
    background: var(--secondary) !important;
}

/* Mobile Menu Styling */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.4);
    /* Transparent backdrop */
    backdrop-filter: blur(8px);
    z-index: 2200;
    transition: all 0.4s ease;
    visibility: hidden;
    opacity: 0;
    display: flex;
    justify-content: flex-end;
    /* Slides from right */
}

.mobile-nav-overlay.active {
    visibility: visible;
    opacity: 1;
}

.mobile-nav-content-wrapper {
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: white;
    /* Changed to Light */
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.85, 0, 0.15, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav-overlay.active .mobile-nav-content-wrapper {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.close-menu {
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
}

.close-menu:hover {
    background: var(--secondary);
    color: white;
}

.mobile-nav-content {
    flex-grow: 1;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-links {
    list-style: none;
    margin-bottom: 2rem;
}

.mobile-links>li {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-links>li:last-child {
    border-bottom: none;
}

.mobile-links a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary) !important;
    padding: 0.8rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-links a i {
    font-size: 0.8rem;
    color: #94a3b8;
    transition: 0.3s;
}

/* Mobile Submenu */
.mobile-submenu {
    list-style: none;
    padding: 0 0 1rem 1.5rem;
    display: none;
    animation: slideDownMobile 0.4s ease;
}

@keyframes slideDownMobile {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-submenu li {
    margin-top: 1rem;
    text-align: left;
}

.mobile-submenu a {
    font-size: 1rem;
    font-weight: 500;
    color: #4b5563 !important;
}

.has-submenu.open .mobile-submenu {
    display: block;
}

.has-submenu.open>a {
    color: var(--secondary) !important;
}

.has-submenu.open>a i {
    transform: rotate(180deg);
}

/* Mobile Footer info */
.mobile-nav-footer {
    margin-top: auto;
    padding-top: 3rem;
    border-top: 1px solid #f1f5f9;
}

.mobile-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.mobile-contact-info a {
    color: #4b5563 !important;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-contact-info i {
    color: var(--secondary);
}

.mobile-social {
    display: flex;
    gap: 1.5rem;
}

.mobile-social a {
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    transition: 0.3s;
}

.mobile-social a:hover {
    background: var(--secondary);
    color: white !important;
    transform: translateY(-5px);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .cap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Hero Responsive */
    .hero-slide-inner {
        flex-direction: column-reverse;
        text-align: center;
        padding: 3rem 0;
        /* Reduced padding */
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        /* Slightly smaller for mobile */
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-btns .btn {
        margin: 0 !important;
        /* Reset inline margins */
        width: 100%;
        max-width: 280px;
    }

    .hero-image-wrap::after {
        display: none;
    }

    /* Section Headings */
    .section-head {
        margin-bottom: 3rem !important;
        /* Reduced from 5rem */
    }

    .section-head h2 {
        font-size: 2rem !important;
    }

    /* Capabilities Responsive */
    .cap-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cap-card {
        padding: 2rem !important;
    }

    /* Experience Responsive */
    .exp-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .exp-content h2 {
        font-size: 2rem;
    }

    .exp-img-2 {
        display: none;
        /* Hide secondary image on small mobile for simplicity */
    }

    /* Mission Responsive */
    .mission-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .mission-content h3 {
        font-size: 1.5rem !important;
    }

    .mission-content p {
        font-size: 1.1rem !important;
    }

    /* Industry Grid */
    .industry-grid {
        grid-template-columns: 1fr !important;
        margin-top: 2rem;
    }

    .industry-item {
        padding: 2rem 1.5rem !important;
    }

    /* Logo Responsive */
    .logo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Footer Responsive */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 12px !important;
    }

    .newsletter-form button {
        border-radius: 12px !important;
        width: 100%;
    }

    /* Top bar */
    .top-links {
        display: none;
    }

    section {
        padding: 60px 0 !important;
    }
}

/* Utility Responsive Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Page Header Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.2rem !important;
    }

    .page-header {
        padding: 140px 0 60px !important;
    }

    .grid-3,
    .grid-4,
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    section {
        padding: 60px 0 !important;
    }

    .capability-detail-main h2,
    .capability-detail-main h3 {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.box-light {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 30px;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .box-light {
        padding: 1.5rem !important;
    }
}

/* Blog Styles */
.blog-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.post-img-wrap {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.post-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .post-img-wrap img {
    transform: scale(1.1);
}

.post-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-body {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-body h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--primary);
}

.post-body p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: #999;
}

.read-more {
    color: var(--secondary);
    font-weight: 700;
    transition: transform 0.3s ease;
}

.blog-card:hover .read-more i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .post-body {
        padding: 1.5rem;
    }

    .post-img-wrap {
        height: 200px;
    }
}

/* Industries Section */
.industries {
    padding: 120px 0;
    background: var(--bg-light);
}

.home-blog {
    padding: 120px 0;
    background: #ffffff;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.industry-item {
    background: white;
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.industry-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--secondary);
}

.industry-item i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    display: block;
}

.industry-item h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.3rem;
}

.industry-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Scroll to Top Button */
#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(99, 91, 255, 0.3);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

#scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-to-top:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(10, 37, 64, 0.3);
}

@media (max-width: 768px) {
    #scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}