* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

:root {
    --brand-blue: #0866ff;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* Hero Container */
.hero-video-container {
    position: relative;
    min-height: 100vh;
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: -90px; /* Shift video upwards to cover navbar area */
    left: 0;
    width: 100%;
    height: calc(100% + 90px); /* Extend height to compensate for shift */
    object-fit: cover;
    z-index: -1;
}


.overlay {
    position: absolute;
    top: -90px; /* Shift overlay upwards to match video */
    left: 0;
    width: 100%;
    height: calc(100% + 90px); /* Extend height to compensate for shift */
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    color: white;
    z-index: 100;
    /* Glassmorphism effect with minimal tint */
    background: rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease;
}

/* Logo container - ensure no background */
.navbar .logo {
    background: none !important;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* Navbar when scrolled */
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Add text shadow for better visibility on transparent navbar */
.navbar:not(.scrolled) .nav-links li,
.navbar:not(.scrolled) .nav-links a {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Logo shadow for visibility on transparent navbar */
.navbar:not(.scrolled) .nav-logo {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

/* Try to blend logo white background with video */
.navbar:not(.scrolled) .logo {
    background: transparent !important;
    backdrop-filter: none;
}

.navbar:not(.scrolled) .nav-logo {
    /* If logo has white background, try to make it semi-transparent */
    opacity: 0.95;
}

/* Ensure buttons are visible on transparent navbar */
.navbar:not(.scrolled) .btn-ai,
.navbar:not(.scrolled) .btn-contact {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-logo {
    height: 70px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin: 0;
    background: transparent !important;
    padding: 5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
}

.nav-links li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Mega Menu Styles */
.has-megamenu {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.has-megamenu:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.megamenu {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 1000px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    padding: 0;
    overflow: hidden;
}

.has-megamenu:hover .megamenu {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 10px);
}

.megamenu-container {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 0;
    min-height: 450px;
}

/* Left Promotional Section */
.megamenu-promo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    border-radius: 20px 0 0 20px;
}

.promo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.promo-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.megamenu-promo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.megamenu-promo p {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
}

.promo-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.promo-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Right Services Grid */
.megamenu-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 30px 20px;
    background: #1a1a2e;
}

.service-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 15px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.service-item:hover::before {
    transform: scaleY(1);
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(5px);
}

.service-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

.service-desc {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

.service-item .arrow {
    color: #ff6b6b;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.service-item:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

.btn-ai {
    background: #ab47bc;
    border: none;
    padding: 10px 20px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-contact {
    border: none;
    padding: 10px 20px;
    background: var(--brand-blue);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-ai:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-contact:hover {
    background: #0052cc;
    transform: translateY(-2px);
}

/* Mobile Responsive Mega Menu */
@media (max-width: 1024px) {
    .megamenu-container {
        grid-template-columns: 1fr;
    }

    .megamenu-promo {
        border-radius: 20px 20px 0 0;
        padding: 30px 20px;
    }

    .megamenu-services {
        grid-template-columns: 1fr;
    }

    .megamenu {
        max-width: 90vw;
    }
}

@media (max-width: 768px) {
    .has-megamenu .megamenu {
        position: fixed;
        left: 0;
        right: 0;
        top: 90px;
        transform: none;
        max-width: 100%;
        border-radius: 0;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .megamenu-container {
        min-height: auto;
    }

    .service-item {
        padding: 12px 15px;
    }
}

/* Hamburger Toggle Button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
    padding: 0;
}

.mobile-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Content */
.hero-content {
    position: relative;
    z-index: 5;
    color: white;
    padding-left: 80px;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 1.3rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.highlight {
    color: var(--brand-blue);
}

.hero-list {
    list-style: none;
    margin: 20px 0;
}

.hero-list li {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.cta-btn {
    background-color: var(--brand-blue);
    color: white;
    padding: 15px 40px;
    border: none;
    margin-top: 20px;
    font-weight: bold;
    cursor: pointer;
}

/* 2nd: Sub-headers styling */
.sub-headers {
    margin: px 0;
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: 400;
}

/* 3rd: Button Group for two buttons */
.cta-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--brand-blue);
    color: white;
}

.secondary-btn:hover {
    background: var(--brand-blue);
}

.about-section {
    background: #f8f9fa;
    /* Light background for contrast */
    padding: 60px 50px;
    text-align: center;
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.about-section p {
    margin-bottom: 40px;
    color: #666;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 cards per row */
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    /* Aligns text to the right of the image */
}

.stat-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.stat-item {
    font-size: x-small;
}

.stat-info h3 {
    font-size: 1.5rem;
    color: var(--brand-blue);
    margin: 0;
}

.stat-info p {
    font-size: 0.85rem;
    color: #333;
    margin: 0;
}

.client-marquee {
    overflow: hidden;
    background: white;
    padding: 30px 0;
    width: 100%;
}

.marquee-track {
    display: flex;
    gap: 30px;
    /* Controls spacing between images */
    animation: scroll 30s linear infinite;
    width: max-content;
}

.marquee-track img {
    height: 50px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
    }
}

/*about us*/
.about-section {
    background-color: #1C14AB;
    /* Deep blue background */
    color: white;
    /* Makes the text white for better contrast */
    padding: 60px 50px;
    text-align: center;
}

/* Ensure the heading and description text turn white, but not stats-grid content */
.about-section > h2,
.about-section > p {
    color: rgb(255, 255, 255);
}

/*page 3*/
.trusted-brands {
    padding: 60px 20px;
    /* Reduced side padding makes the section feel wider */
    text-align: center;
    max-width: 1200px;
    /* Increase this number to make the whole block wider */
    margin: 0 auto;
    /* Keeps the section centered */
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    /* Gap between grid items */
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.logo-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    min-height: 140px;
    transition: 0.3s;
}

.logo-card img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}


/*page4*/
.services-section {
    padding: 60px 50px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns */
    gap: 20px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    /* Aligns content to left as in image */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card img {
    width: 40px;
    margin-bottom: 15px;
}

.service-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.service-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.explore-btn {
    background: #004a7c;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    align-self: flex-start;
}

.services-section {
    min-height: 500px;
    padding: 60px 50px;
    text-align: center;
    background-color: #f8fbff;
    /* Add a faint map image */
    background-image: url('images/bg4.jpg') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    /* Makes the map faint */
}

/*page5*/
.cta-section {
    display: flex;
    align-items: center;
    background-color: #1C14AB;
    color: white;
    padding: 60px 0;
    /* No side padding to let images hit the edges */
    overflow: hidden;
}

.cta-image {
    width: 350px;
    height: 300px;
    flex-shrink: 0;
}

/* Rounded only on the inner sides */
.left-img {
    border-top-right-radius: 60px;
    border-bottom-right-radius: 60px;
    overflow: hidden;
}

.right-img {
    border-top-left-radius: 60px;
    border-bottom-left-radius: 60px;
    overflow: hidden;
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.cta-content {
    flex: 1;
    text-align: center;
    padding: 0 40px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #191970;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
}

/*page6*/
/* The main container for the whole section */
.projects-section {
    padding: 60px 50px;
    text-align: center;
}

/* The Grid that holds the 6 items */
.projects-grid {
    display: grid;
    /* 3 columns as requested */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Very light shadow */
    display: flex;
    flex-direction: column;
    /* Stacks icon and text */
    align-items: center;
    /* Centers everything horizontally */
    justify-content: space-between;
    text-align: center;
    overflow: hidden;
    min-height: 280px;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-title {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    padding: 10px 0;
    text-align: center;
    width: 100%;
}

/* Hover effect to match professional sites */
.project-card:hover {
    transform: translateY(-5px);
    /* Lifts the card slightly on hover */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    /* Shadow gets bigger on hover */
}

.view-all-btn {
    margin-top: 40px;
    background: #191970;
    color: white;
    padding: 15px 60px;
    /* Increased padding for a larger look */
    font-size: 1.2rem;
    /* Larger text */
    border: none;
    border-radius: 8px;
    /* More rounded corners */
    cursor: pointer;
    font-weight: bold;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #0f0f4d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(25, 25, 112, 0.4);
}

/*page7*/

.awards-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1c14ab;
    /* Deep blue background */
    padding: 40px 40px;
    color: white;
}

.awards-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
}

.awards-content h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.awards-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #000000;
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.awards-phone-btn:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.phone-icon {
    font-size: 1.3rem;
}

/*page8*/
.process-section {
    padding: 60px 50px;
    text-align: center;
}

.section-title {
    margin-bottom: 40px;
    font-size: 2rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    padding: 25px;
    border-radius: 10px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 40px;
    margin-bottom: 15px;
}

.step-num {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.card h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.card p {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
}

/* Placeholder for the timeline connector */
.timeline-container {
    height: 80px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    margin-bottom: 30px;
}

/*page9*/
.engagement-section {
    background-color: #1C14AB;
    /* Roy Informatics dark blue */
    padding: 60px 40px;
    color: white;
    text-align: center;
}

.subtitle {
    max-width: 800px;
    margin: 20px auto 40px;
    line-height: 1.6;
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.model-card {
    background: white;
    color: #333;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: left;
}

.model-card img {
    width: 50px;
    margin-bottom: 15px;
}

.model-card h3 {
    margin: 0 0 15px;
}

.model-card p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.cta-button {
    background: white;
    color: #191970;
    padding: 12px 40px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

/*page10*/
.tech-section {
    padding: 60px 50px;
    text-align: center;
}

.tech-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    border: none;
    background: #c5d3de;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

.tab-btn.active {
    background: #004a7c;
    color: white;
}

.tech-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: left;
    padding: 40px 20px;
}

.tech-info {
    flex: 0 0 350px;
    /* Fixed width for description */
}

.tech-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.tech-info p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #666;
}

.tech-section .logo-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    grid-auto-rows: minmax(140px, auto);
}

.logo-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.logo-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 12px;
}

.logo-card p {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/*page11*/

.premium-services {
    background-color: #1C14AB;
    /* Dark Blue */
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.subtitle {
    max-width: 700px;
    margin: 20px auto 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 columns */
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    color: #333;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: left;
}

.service-card img {
    width: 80px;
    height: 80px;
}


/*page12*/
.success-matrix {
    background-color: #f4f9fd;
    /* Very light blue/grey */
    padding: 60px 20px;
    text-align: center;
}

.subtitle {
    max-width: 700px;
    margin: 20px auto 40px;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* 6 columns */
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.matrix-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.matrix-card img {
    width: 40px;
    height: 40px;
}

/*page13*/
/* Section and Container Styling */
.slider-section {
    text-align: center;
    padding: 40px;
    background-color: #1C14AB;
    /* Deep blue background */
    color: white;
    font-family: sans-serif;
}

.slider-wrapper {
    width: 90%;
    margin: 20px auto;
    overflow: hidden;
    /* This hides the cards that are off-screen */
    position: relative;
}

.slider-container {
    display: flex;
    gap: 20px;
    scroll-behavior: smooth;
    transition: transform 0.5s ease;
    width: max-content;
    /* ADD THIS LINE BELOW */
    will-change: transform;
}

/* Video Card Styling with Glassmorphism */
.video-card {
    flex: 0 0 350px;
    /* Fixed width prevents cards from squishing */
    height: 250px;
    /* Added fixed height to make them bigger */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
}

.video-card:hover {
    transform: scale(1.05);
    /* Professional zoom effect on hover */
}

.video-card img {
    width: 100%;
    /* Increase this value to make the image/card taller */
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

/* Control Buttons Styling */
.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

button {
    padding: 10px 20px;
    cursor: pointer;
    background: #ffffff;
    color: #004a70;
    border: none;
    border-radius: 5px;
    font-weight: bold;
}

button:hover {
    background: #e0e0e0;
}

/* View Insightful Videos Button */
.view-all {
    margin-top: 20px;
    padding: 12px 25px;
    background: white;
    color: #004a70;
    font-weight: bold;
    border-radius: 8px;
}

/*page14*/
.podcast-section {
    padding: 60px 10%;
    text-align: center;
}

.podcast-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.podcast-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Makes the shadow transition smooth on hover */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-align: left;
    transition: transform 0.3s;
    /* Increase this value to make the whole card taller */
    height: 500px;
    display: flex;
    flex-direction: column;

    .podcast-card {
        /* ... previous styles ... */
        padding: 20px;
        /* Gives the text more breathing room inside the larger card */
    }
}

.podcast-card:hover {
    transform: translateY(-10px);
}

.img-container {
    width: 100%;
    display: block;
    /* Increase this value to make the image taller */
    height: 300px;
    object-fit: cover;
}

.img-container img {
    width: 100%;
    display: block;
}

/* The Play Button Overlay */
.play-btn {
    display: none !important;
    /* This hides it completely */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

c .explore-link {
    color: #004a70;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

/*page14 - Podcast section view all button (inherits from main .view-all-btn) */

/*page15*/
.download-section {
    background-color: #f0f8ff;
    padding: 40px 20px;
    text-align: center;
}

.download-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

/* Updated inputs to have a fixed width */
.download-form input,
.phone-input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    width: 250px;
    /* Adjust this value to make them longer */
    box-sizing: border-box;
    /* Ensures padding doesn't break the width */
}

.phone-input {
    display: flex;
    align-items: center;
    gap: 5px;
}

.phone-input input {
    border: none;
    /* Removes the double border inside the phone box */
    width: 100%;
    padding: 0;
}

.captcha-box {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
}

.download-btn {
    padding: 12px 40px;
    background-color: #004a70;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/*page16*/
.blog-section {
    padding: 60px 10%;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
    /* Option: Set a minimum height for the entire card */
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-img img {
    width: 100%;
    /* Increase this value to make the top image area taller */
    height: 250px;
    object-fit: cover;
}

.blog-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.date {
    font-size: 0.9rem;
    color: #888;
    display: block;
    margin-bottom: 10px;
}

.details-link {
    color: #007bff;
    /* Use your brand blue */
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
}

/*page17*/
.testimonial-section {
    background-color: #1C14AB;
    /* Deep blue background */
    padding: 60px 0;
    text-align: center;
    color: white;
}

.testimonial-wrapper {
    width: 90%;
    margin: 30px auto;
    overflow-x: auto;
    overflow-y: hidden;
    /* This hides the cards that slide off-screen */
    position: relative;
    scroll-behavior: smooth;
}

.testimonial-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar for cleaner look */
}

.testimonial-container {
    display: flex;
    gap: 20px;
    scroll-behavior: smooth;
    width: max-content;
    overflow-x: auto;
}

/* Navigation buttons for testimonials */
.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.testimonial-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.testimonial-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: scale(1.1);
}

.testimonial-nav-btn:active {
    transform: scale(0.95);
}

/* Individual card styling */
.testimonial-card {
    flex: 0 0 400px;
    /* Fixed width for uniformity */
    background: white;
    color: #333;
    padding: 25px;
    border-radius: 20px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-header {
    margin-bottom: 20px;
}

.clutch-logo {
    width: 30px;
}

.rating-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.rating-box h3 {
    margin: 0;
    font-size: 1.5rem;
}

.stars {
    color: #ffc107;
}

.metrics p {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}


/*page18 - Map Location Section*/
.map-location-section {
    padding: 60px 10%;
    text-align: center;
    background: #f8f9fa;
}

.map-location-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
}

.map-location-section .section-desc {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
    display: block;
    width: 100%;
}

.location-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.info-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive for Map Location */
@media (max-width: 1024px) {
    .location-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .location-info {
        grid-template-columns: 1fr;
    }
    
    .map-container iframe {
        height: 350px;
    }
}

/*page18 - old featured section - REMOVED*/

/*page19*/
/* Unique class for your "Digital Project" CTA */
.cta-project {
    background-color: #1C14AB;
    color: white;
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta-project h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    max-width: 800px;
}

.cta-project p {
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Ensure the button class is specific too if needed */
.cta-project-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: white;
    color: #004a70;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cta-project-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
}

.hero-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 110px 50px 50px 50px;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    gap: 50px;
}

.hero-text {
    flex: 1;
    max-width: 620px;
    color: #ffffff;
    margin: 0;
    height: auto;
    opacity: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(8, 102, 255, 0.25);
    border: 1px solid rgba(8, 102, 255, 0.5);
    color: #60a5fa;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.18;
    color: #ffffff;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.sub-text {
    font-size: 1.05rem;
    color: #e2e8f0;
    margin-bottom: 24px;
    line-height: 1.6;
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-btn {
    background-color: #ffc107;
    color: #000000;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.cta-btn:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.form-container {
    width: 380px;
    max-width: 100%;
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 25px 28px;
    margin: 0;
    color: white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.form-header h3 {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    text-align: center;
    line-height: 1.4;
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-container input,
.form-container select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 14px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.form-container input:focus,
.form-container select:focus {
    outline: none;
    border-color: var(--brand-blue);
    background: rgba(255, 255, 255, 0.12);
}

.form-container select option {
    background: #0f172a;
    color: white;
}

.submit-btn {
    background: #0866ff;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: 4px;
}

.submit-btn:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(8, 102, 255, 0.4);
}

.dot,
.shield {
    color: #28a745;
}

.star {
    color: #ffc107;
}

/* -------------------------------------------------------------
   COMPREHENSIVE RESPONSIVE MEDIA QUERIES
   ------------------------------------------------------------- */

/* Large Tablets & Small Desktops (max-width: 1100px) */
@media (max-width: 1100px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .premium-services .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .matrix-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .engagement-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Devices (max-width: 991px) */
@media (max-width: 991px) {
    .navbar {
        padding: 15px 30px;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.96);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        padding: 40px 20px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.6);
        z-index: 99;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    .nav-links li {
        font-size: 1.1rem;
    }

    .nav-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .nav-buttons button {
        width: 100%;
        margin-right: 0 !important;
    }

    .hero-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 60px;
    }

    .hero-text {
        width: 100%;
    }

    .stats-container {
        justify-content: center;
    }

    .form-container {
        width: 100%;
        max-width: 420px;
        margin: 25px auto 0;
    }

    .cta-section {
        flex-direction: column;
        padding: 50px 20px;
    }

    .cta-image {
        display: none;
    }

    .cta-content {
        padding: 0;
    }

    .awards-section {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .awards-text {
        max-width: 100%;
    }

    .awards-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tech-content {
        flex-direction: column;
    }

    .podcast-grid,
    .blog-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-container {
        display: none;
    }
}

/* Mobile Phones (max-width: 768px) */
@media (max-width: 768px) {

    .about-section,
    .trusted-brands,
    .services-section,
    .projects-section,
    .process-section,
    .engagement-section,
    .tech-section,
    .premium-services,
    .success-matrix,
    .podcast-section,
    .download-section,
    .blog-section,
    .featured-section {
        padding: 40px 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card {
        padding: 15px;
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .engagement-grid {
        grid-template-columns: 1fr;
    }

    .premium-services .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .matrix-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .podcast-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .featured-section .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .download-form {
        flex-direction: column;
        width: 100%;
    }

    .download-form input,
    .phone-input,
    .captcha-box {
        width: 100% !important;
    }

    .testimonial-card {
        flex: 0 0 290px;
        padding: 20px;
    }

    .video-card {
        flex: 0 0 280px;
    }
}

/* Extra Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    .nav-logo {
        max-width: 160px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .premium-services .services-grid {
        grid-template-columns: 1fr;
    }

    .matrix-grid {
        grid-template-columns: 1fr;
    }

    .award-card {
        width: 120px;
        height: 120px;
    }

    .cta-project h2 {
        font-size: 1.8rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }
}


/* ==========================================
   FOOTER SECTION
   ========================================== */

.footer {
    background-color: #f8f9fa;
    padding: 60px 20px 0;
    color: #333;
    font-family: 'Segoe UI', sans-serif;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #ddd;
}

/* Column 1: Brand Info */
.footer-brand {
    padding-right: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo img {
    width: 200px;
    height: 40px;
    object-fit: contain;
}

.footer-logo h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2C3E9E;
    margin: 0;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.social-icon:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-company-info {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2C3E9E;
}

.footer-company-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #333;
}

.footer-company-info p {
    font-size: 0.85rem;
    margin: 6px 0;
    color: #666;
    line-height: 1.5;
}

/* Other Columns */
.footer-column h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #333;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: block;
}

.footer-column ul li a:hover {
    color: #2C3E9E;
    padding-left: 5px;
}

/* Contact Column */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        padding-right: 0;
    }
}


/* ==========================================
   MOBILE NAVIGATION & HAMBURGER MENU
   ========================================== */

/* Mobile Toggle Button (Hamburger) */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    position: relative;
}

.mobile-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Animation when Active */
.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

/* Tablets and Below (1024px) */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 30px;
    }

    .nav-links {
        gap: 20px;
        font-size: 0.9rem;
    }

    .megamenu-container {
        grid-template-columns: 1fr;
    }

    .megamenu-promo {
        border-radius: 20px 20px 0 0;
    }

    .hero-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .hero-text {
        text-align: center;
    }

    .form-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Mobile Devices (768px and below) */
@media (max-width: 768px) {
    /* Show Mobile Toggle */
    .mobile-toggle {
        display: flex;
    }

    /* Navbar Adjustments */
    .navbar {
        height: 70px;
        padding: 0 20px;
    }

    .nav-logo {
        height: 50px !important;
        max-width: 150px !important;
    }

    /* Hide Desktop Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 20px;
        transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        overflow-y: auto;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Mobile Navigation Links */
    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
    }

    .nav-links li:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    /* Mobile Mega Menu */
    .has-megamenu .megamenu {
        position: relative;
        top: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .has-megamenu.active .megamenu {
        opacity: 1;
        max-height: 2000px;
    }

    .megamenu-container {
        grid-template-columns: 1fr;
    }

    .megamenu-promo {
        padding: 30px 20px;
    }

    .megamenu-services {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .service-item {
        padding: 12px 15px;
    }

    /* Mobile Navigation Buttons */
    .nav-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }

    .nav-buttons button {
        width: 100%;
    }

    /* Hero Section Mobile */
    .hero-video-container {
        min-height: auto;
        padding: 70px 0 40px;
    }

    .background-video {
        height: 100%;
        top: 0;
    }

    .overlay {
        height: 100%;
        top: 0;
    }

    .hero-section {
        padding: 40px 20px;
    }

    .hero-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .sub-text {
        font-size: 0.95rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .stat-item {
        font-size: 0.85rem;
    }

    .form-container {
        max-width: 100%;
    }

    /* About Section Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    /* Brands Grid Mobile */
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Projects Grid Mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Process Section Mobile */
    .process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Engagement Models Mobile */
    .engagement-grid {
        grid-template-columns: 1fr;
    }

    /* Tech Tabs Mobile */
    .tech-tabs {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    /* Premium Services Mobile */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Success Matrix Mobile */
    .matrix-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Blog Grid Mobile */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Testimonials Mobile */
    .testimonial-container {
        flex-direction: column;
    }

    .testimonial-card {
        min-width: 100%;
    }

    /* CTA Section Mobile */
    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    /* Awards Section Mobile */
    .awards-content h2 {
        font-size: 1.8rem;
    }

    .awards-phone-btn {
        font-size: 1.2rem;
        padding: 12px 25px;
    }
}

/* Small Mobile Devices (480px and below) */
@media (max-width: 480px) {
    /* Navbar */
    .navbar {
        height: 60px;
        padding: 0 15px;
    }

    .nav-logo {
        height: 40px !important;
        max-width: 120px !important;
    }

    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
        padding: 30px 15px;
    }

    .nav-links li {
        padding: 12px 15px;
        font-size: 1rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 30px 15px;
    }

    .hero-text h1,
    .hero-title {
        font-size: 1.6rem !important;
        line-height: 1.3;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .cta-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    /* Form */
    .form-container {
        padding: 20px 15px;
    }

    .form-header h3 {
        font-size: 1rem;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card h3 {
        font-size: 1.8rem;
    }

    .stat-card p {
        font-size: 0.9rem;
    }

    /* Brands Grid */
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .logo-card {
        padding: 15px 10px;
    }

    /* Trusted Brands Section */
    .trusted-brands h2 {
        font-size: 1.6rem;
    }

    .trusted-brands p {
        font-size: 0.9rem;
    }

    /* Projects Section */
    .projects-section h2 {
        font-size: 1.8rem;
    }

    .project-card {
        min-height: 250px;
    }

    .project-title {
        font-size: 0.95rem;
    }

    /* Process Section */
    .process-section h2 {
        font-size: 1.8rem;
    }

    .card {
        padding: 20px 15px;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .card p {
        font-size: 0.85rem;
    }

    .step-num {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }

    /* Engagement Section */
    .engagement-section h2 {
        font-size: 1.8rem;
    }

    .model-card {
        padding: 25px 20px;
    }

    .model-card h3 {
        font-size: 1.2rem;
    }

    /* Tech Section */
    .tech-section h2 {
        font-size: 1.8rem;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tech-logo {
        width: 60px;
        height: 60px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card {
        padding: 20px;
    }

    .service-card img {
        width: 50px;
        height: 50px;
    }

    .service-card span {
        font-size: 0.9rem;
    }

    /* Success Matrix */
    .matrix-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .matrix-card {
        padding: 20px 15px;
    }

    .matrix-card img {
        width: 40px;
        height: 40px;
    }

    .matrix-card span {
        font-size: 0.85rem;
    }

    /* Blog Section */
    .blog-section h2 {
        font-size: 1.8rem;
    }

    .blog-card h3 {
        font-size: 1.1rem;
    }

    .blog-card p {
        font-size: 0.9rem;
    }

    /* Testimonials */
    .testimonial-section h2 {
        font-size: 1.8rem;
    }

    .testimonial-card {
        padding: 20px 15px;
    }

    .rating-box h3 {
        font-size: 2rem;
    }

    /* CTA Section */
    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    /* CTA Project */
    .cta-project h2 {
        font-size: 1.5rem;
    }

    .cta-project p {
        font-size: 0.9rem;
    }

    .cta-project-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    /* Mobile Toggle Button */
    .mobile-toggle {
        width: 28px;
        height: 22px;
    }

    .mobile-toggle .bar {
        height: 2.5px;
    }
}

/* Extra Small Devices (360px and below) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.4rem !important;
    }

    .section-title,
    .projects-section h2,
    .blog-section h2,
    .cta-section h2 {
        font-size: 1.5rem;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    .card h3 {
        font-size: 1rem;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links li {
        font-size: 0.95rem;
        padding: 10px 12px;
    }
}

/* Landscape Mobile Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-menu {
        height: calc(100vh - 60px);
        padding: 20px 15px;
    }

    .nav-links li {
        padding: 8px 15px;
    }

    .hero-video-container {
        min-height: 500px;
    }
}

/* Smooth Scrolling for Mobile */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
}

/* Touch-friendly button sizes */
@media (max-width: 768px) {
    button,
    .cta-btn,
    .cta-button,
    .tab-btn,
    .view-all-btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }

    a {
        touch-action: manipulation;
    }
}

/* Improve tap targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .nav-links a,
    .service-item,
    .project-card,
    .blog-card {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
