@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
    --primary-color: #0D1B2A; /* Oxford Blue */
    --primary-dark: #000000; /* Black */
    --secondary-color: #ffffff; /* White */
    --accent-color: #f0f4f8; /* Light Blue-Gray */
    --highlight-color: #3A86FF; /* Bright Blue */
    --warm-accent-color: #FFBE0B; /* Amber/Yellow for contrast */
    --text-color: #1B263B; /* Darker Blue-Gray for text */
    --text-light: #415A77; /* Independence Blue for secondary text */
    --border-color: #E0E1DD; /* Light Gray for borders */
    --shadow-color: rgba(27, 38, 59, 0.1); /* Subtle shadow based on text color */
    --font-family: 'Inter', sans-serif;
}



html {
    scroll-behavior: smooth;
}

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

/* Added styles for section-based canvas animations */
.animated-section {
    position: relative;
    overflow: hidden;
}

.section-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

/* New style for hero canvas, z-index -1 to be behind overlay */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5; /* Adjusted for tendril effect */
    pointer-events: none;
    z-index: 1 !important; /* Placed behind the hero::before overlay */
}

/* New style for footer canvas */
.footer-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1; /* Slightly lower opacity for footer */
    pointer-events: none;
    z-index: 0;
}

/* Added styles for section-based canvas animations */
.animated-section {
    position: relative;
    overflow: hidden;
}

.section-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.animated-section>* {
    position: relative;
    z-index: 1;
}
.footer-logo {
    width: 10rem;
    height: auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(248, 249, 250, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    width: 10rem;
    height: auto;
}

.footer-logo {
    width: 10rem;
    height: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
        margin-top: 65px;
    padding: 4rem 2rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative; /* This is needed for the canvas positioning */
    overflow: hidden;
    display: flex; /* Use flex to center the container vertically */
    align-items: center; /* Use flex to center the container vertically */
}

.hero-container {
    display: flex;    
    align-items: center;
    max-width: 1600px;
    gap: 2rem;    
    position: relative;
    overflow: hidden;
    justify-content: space-between;
    width: 100%; /* Ensure it takes full width within hero padding */
    margin: 0 auto;
}
.hero-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(
        255,
        255,
        255,
        0.7
    ); /* Semi-transparent white overlay */
    z-index: -1; /* Place it above the video but behind the content */
}

.hero-content,
.hero-visual {
    position: relative;
    z-index: 1; /* Ensure content is above the canvas */
}

.hero-content {
    flex: 0.9; /* Give less space to the content */
    animation: slideInLeft 0.8s ease;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Typing animation cursor */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.5rem; /* Match hero-title font-size */
    background-color: var(--primary-color);
    margin-left: 5px;
    animation: blink 0.7s infinite;
    vertical-align: middle;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-subtitle .typing-text {
    font-weight: 600;
    color: var(--primary-color);
    min-height: 1.8rem; /* Match line-height */
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;    
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;    
    box-shadow: 0 4px 15px var(--shadow-color);
}

.cta-button:hover {
    transform: translateY(-3px);    
    background: var(--warm-accent-color);
    color:var(--primary-color);
    box-shadow: 0 0 30px var(--warm-accent-color);
}

.hero-visual {
    flex: 1.1; /* Give more space to the visual/image */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 0.8s ease;
    position: relative;
    min-height: 400px;
}

.floating-cube {
    display: none;
}

/* About Preview Section */
.about-preview {
    padding: 6rem 2rem;

    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    margin: 0px auto;
    max-width: 1600px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.learn-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.learn-more:hover {
    transform: translateX(5px);
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.neural-network {
    
    border-radius: 5%;
    overflow: hidden; /* To keep the image corners rounded */
    position: relative;
}

.neural-network-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    display: block;
}

/* For image reveal animation */
.reveal-container {
    overflow: hidden;
    position: relative;
}

/* Generic Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Alternating background color for sections */
.bg-alt-color {
    background-color: var(--accent-color);
}

/* Services Section */
.services {
    padding: 6rem 2rem;
}

.services-grid {
    display: grid;
        grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

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

.service-icon {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(84, 84, 84, 0.1);
    border-radius: 12px;
}
.service-icon svg { color: white !important; }


.service-icon.icon-1{ background: var(--primary-color);}
.service-icon.icon-2{ background: var(--warm-accent-color);}
.service-icon.icon-3{ background: var(--warm-accent-color);}
.service-icon.icon-4{ background: var(--primary-color);}
.service-icon.icon-5{ background: var(--primary-dark);}
.service-icon.icon-6{ background: var(--text-light);}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;    
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

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

.services-section {
    text-align: center;
    padding: 100px 20px;
    background: radial-gradient(circle at top left, #f0f4ff, #ffffff);
    margin: 0px auto;
    position: relative;
    overflow: hidden;
}

/* Blurred gradient background effect */
.services-section::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(58, 134, 255, 0.25), transparent 70%); /* --highlight-color */
    filter: blur(80px);
    z-index: 0;
}

.services-section::after {
    content: "";
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 190, 11, 0.25), transparent 70%); /* --warm-accent-color */
    filter: blur(80px);
    z-index: 0;
}

.services-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.services-subtitle {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.services-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
}

.service-row {
    display: flex;
    gap: 25px;
}

.service-row.top,
.service-row.bottom {
    margin-right: 280px;
}

.service-row.middle {
    margin-left: 470px;
}

.service-card {
    display: flex;
    align-items: flex-start;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    padding: 28px 24px;
    gap: 1rem;
    width: 380px;
    text-align: left;    
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.service-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.service-text {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 768px) {

    .service-row,
    .service-row.middle,
    .service-row.bottom {
        flex-direction: column;
        margin: 0 !important;
    }

    .service-card {
        width: 100%;
    }
}

/* Use Cases Section */

.client-stories {
    max-width: 1300px;
    margin: 80px auto;
    padding: 0 20px;
}

.client-stories h2 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.stories-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}

.story-card {
   /* flex: 0 1 calc(33.333% - 30px); */
    /* 3 per row with gap adjustment */
    box-sizing: border-box;
}

.story-card {
    position: relative;
    width: 400px;
    transition: transform .6s ease-in-out 0s,
        box-shadow .4s ease-in-out 0s,
        color .3s linear 0s,
        -webkit-transform .6s ease-in-out 0s,
        -webkit-box-shadow .4s ease-in-out 0s;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.story-tag {
    position: absolute;
    bottom: 65px;
    left: 19px;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 3px;
    z-index: 1;
}
.story-tag, .story-content { transition: left 0.4s ease; }

.story-content {
display: flex;
    background: #fff;
    position: relative;
    top: -80px;
    left: 60px;
    height: 230px;
    width: calc(100% - 40px);
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    flex-direction: column;
    justify-content: space-around;
}

.story-card:hover .story-content {
    left: 40px;
}
.story-card:hover .story-tag {
    left: 0;
}
.story-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.5;
}

.story-content a {
    color: var(--highlight-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.story-content a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 900px) {
    .story-card {
        width: 100%;
    }

    .story-content {
        left: 0;
        width: 100%;
    }
}

/* Use Cases Slider */
.use-cases-slider {
    position: relative;
    padding: 2rem 0;
    margin-top: 2rem;
}

.use-cases-slider .swiper-slide {
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    transform: scale(0.85);
    opacity: 0.6;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto; /* Let slide height be determined by content */
}

.use-cases-slider .swiper-slide-active {
    transform: scale(1);
    opacity: 1;
    z-index: 1;
}

/* Adjust story card for slider context */
.use-cases-slider .story-card {
    width: 100%; /* Card takes full width of the slide */
    max-width: 400px; /* But not more than its original max-width */
    margin: 0 auto; /* Center it within the slide */
}

/* Slider Navigation and Pagination */
.use-cases-slider .swiper-button-next,
.use-cases-slider .swiper-button-prev {
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.use-cases-slider .swiper-button-next:hover,
.use-cases-slider .swiper-button-prev:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.use-cases-slider .swiper-button-next::after,
.use-cases-slider .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

.use-cases-slider .swiper-pagination-bullet {
    background-color: var(--primary-color);
    opacity: 0.5;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.use-cases-slider .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

.use-cases-slider .swiper-pagination {
    position: relative;
    bottom: -1rem;
}

.use-cases {
    padding: 6rem 2rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.use-case-card {
    background: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
}

.use-case-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px var(--shadow-color);
    transform: translateY(-5px);
}

.use-case-icon {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(84, 84, 84, 0.1);
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
}
.use-case-icon svg { color: var(--primary-color); }
.use-case-card:hover .use-case-icon svg {
    color: var(--highlight-color);
}

.use-case-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.use-case-card-image {
    max-width: 100px; /* Adjust size as needed */
    height: auto;
    border-radius: 8px;
    margin: 1rem auto; /* Center and add vertical space */
    display: block;
}

.use-case-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 0.8rem;
    line-height: 1.5;
}

/* Page Header */
.page-header {
    margin-top: 65px;
    padding: 6rem 2rem;
    text-align: center;    
    background-color: black !important;
    position: relative; /* Added for canvas positioning */
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 3rem;
    color: #FFBE0B !important;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.6rem;
    color: white !important;
}

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

.header-center-condensed {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}



.header-left-decorated {
    text-align: left;
    position: relative;
    padding-left: 2rem;
    margin-bottom: 3rem;
}

.header-left-decorated::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px; /* Adjust vertical alignment */
    bottom: 10px;
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}
.header-left-decorated p {
    color: var(--warm-accent-color) !important;
}

.header-center-decorated {
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
}

.header-center-decorated h2 {
    margin-bottom: 1.5rem;
}



/* About Content */
.about-content {
    padding: 4rem 2rem;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 4rem;
}

.about-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-section p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.expertise-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.expertise-card {
    background: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.expertise-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.expertise-icon {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(84, 84, 84, 0.1);
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
}
.expertise-icon svg { color: var(--highlight-color); }
.expertise-card:hover .expertise-icon svg {
    color: var(--highlight-color);
}

.expertise-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.expertise-card p {
    color: var(--text-light);
}

.benefits-list {
    list-style: none;
    margin-top: 2rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list svg {
    flex-shrink: 0;
}

/* Services Detail */
.services-detail {
    padding: 4rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.service-detail-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.service-detail-item:last-child {
    border-bottom: none;
}

.service-detail-icon {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.service-detail-icon svg {
    color: var(--warm-accent-color);
    width: 48px;
    height: 48px;
}

.service-detail-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-detail-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Case Studies */
.case-studies-section {
    padding: 4rem 2rem;
    max-width: 1600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 0 auto;
}

.case-study {
    background: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden; /* To contain the child elements */
}

.case-study:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    gap: 2.5rem;
}

/* Alternate layout for even-numbered case studies */
.case-study:nth-child(even) .case-study-grid {
    grid-template-columns: 1.5fr 1fr;
}

.case-study:nth-child(even) .case-study-visual {
    order: 2;
}

.case-study:nth-child(even) .case-study-text {
    order: 1;
}

.case-study-visual {
    height: 100%;
}

.case-study-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-study-text {
    padding: 2.5rem;
}

.case-study-text .cta-button {
  margin-top: 2rem;
}

.case-study-text h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.case-study-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.case-study-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.metric {
    background: rgba(84, 84, 84, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.metric-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    padding: 4rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: rgba(84, 84, 84, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.info-icon svg { color: var(--secondary-color); }

.info-item h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-item a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
}

.contact-form h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;    
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--shadow-color);
}

.form-group textarea {
    resize: vertical;
}

.contact-form button {
    margin-top: 1rem;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.form-message.error {
    display: block;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid #ff6464;
    color: #ff6464;
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    text-align: center;
    background: var(--accent-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Trusted Brands Section */
.trusted-brands {
    padding: 6rem 2rem;
}

/* Swiper Slider */

/**
 * Slider Instance
 */



.swiper {
    width: 100%;
}

.swiper-wrapper {
    transition-timing-function: linear !important;
}

.swiper-slide {
    height: fit-content;
}
.horizontal-ticker__slide {
    width: 15.625vw !important;
    
}
.horizontal-ticker {
    margin: 0 -20px;
    display: flex;
    flex-direction: column;
    row-gap: 2.85vw;
}

@media screen and (max-width: 767.9px) {
    .horizontal-ticker {
        row-gap: 15px;
    }
}

/**
 * Slider Slides
 */

.horizontal-ticker__slide {
    position: relative;
    width: 15.625vw;
    aspect-ratio: 300 / 205;
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(50px);
}

@media screen and (max-width: 767.9px) {
    .horizontal-ticker__slide {
        width: 150px !important;
    }
}

.horizontal-ticker__slide img {
    display: block;
    width: 100%;
    height: 100%;
    transition: opacity 0.6s ease-out;
}

.horizontal-ticker__slide img:first-child {
    filter: grayscale(100%);
    opacity: 0.6; /* Make the grayscale version slightly faded */
}


.horizontal-ticker__slide img:last-child {
    position: absolute;
    inset: 0;
    opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
    .horizontal-ticker__slide:hover img:last-child {
        opacity: 1;
    }
    .horizontal-ticker__slide:hover img:first-child {
        opacity: 0; /* Hide the grayscale image on hover */
    }
}

/* Footer */
.footer {
    background: var(--accent-color);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

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

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

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

.social-media-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-media-icons a {
    color: var(--primary-color);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-media-icons a:hover {
    color: var(--highlight-color);
    transform: translateY(-2px);
}

.social-media-icons svg {
    width: 24px;
    height: 24px;
}




/* ===== Section Styling ===== */
.rade-section {
    position: relative;
    overflow: hidden;
    background-color: var(--primary-dark) !important;
    color: #f0f0f0;
    transform: skewY(-3deg) !important;
    padding: 100px 0;
    z-index: 1;
}

.rade-container {
    transform: skewY(3deg);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
}

/* ===== Left Content ===== */
.rade-left {
    flex: 1;
}

.rade-left h2 {
    font-size: 1rem;
    color: #a0a0a0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.rade-left h1 {
    color: var(--highlight-color);
    font-size: 2.3rem;
    margin-top: 10px;
}

.rade-left p {
    font-size: 1rem;
    color: #d0d0d0;
    margin: 20px 0 30px;
    line-height: 1.6;
    max-width: 420px;
}

.rade-buttons {
    display: flex;
    gap: 15px;
}

.rade-btn-primary {
    background: var(--warm-accent-color);
    color: var(--primary-dark);
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.rade-btn-primary:hover {
    opacity: 0.85;
}

.rade-btn-secondary {
    border: 1px solid var(--warm-accent-color);
    color: var(--warm-accent-color);
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.rade-btn-secondary:hover {
    background-color: #444444;
}

/* ===== Tilted Stats Section ===== */
.rade-stats-wrapper {
    flex: 1;
    transform: rotate(-2deg);
}

.rade-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    transform: rotate(2deg);
    /* counter-tilt to keep text straight */
}

.rade-card {
    background: linear-gradient(135deg, #415A77, var(--primary-color));
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    border-radius: 20px;    
}

.rade-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 190, 11, 0.2);
}

.rade-card h3 {
    font-size: 2rem;
    margin: 0;
}

.rade-card p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
    .rade-container {
        flex-direction: column;
        text-align: center;
    }

    .rade-left p {
        margin: 20px auto;
    }

    .rade-stats-wrapper {
        transform: none;
    }

    .rade-stats {
        grid-template-columns: 1fr 1fr;
        justify-items: center;
        transform: none;
    }
}


/* Trust & Compliance Section */
.trust-compliance {
    padding: 6rem 2rem;
}

.trust-compliance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.trust-card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
}

.trust-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-color: var(--primary-color);
}

.trust-icon {
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(58, 134, 255, 0.1); /* Using highlight color */
    border-radius: 50%;
    color: var(--warm-accent-color);
}

.trust-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.trust-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 6rem 2rem;
}

.why-choose-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.why-card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-color: var(--primary-color);
}

.why-icon {
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(84, 84, 84, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
}

.why-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.why-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Keyframe Animations */
@keyframes background-pan {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* New Case Studies Page Styling */
.case-studies-section {
    padding: 4rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.cs-card {
    background: var(--secondary-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 94, 162, 0.08);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 94, 162, 0.15);
}

.cs-card-image {
    height: 220px;
    overflow: hidden;
}

.cs-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cs-card:hover .cs-card-image img {
    transform: scale(1.05);
}

.cs-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cs-card-content h2 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.cs-card-content p {
    color: var(--text-light);
    line-height: 1.6;
    flex-grow: 1;
    height: 7rem;
    margin-bottom: 1.5rem;
}

.cs-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
}

.cs-card-link svg {
    transition: transform 0.3s ease;
}

.cs-card:hover .cs-card-link svg {
    transform: translateX(4px);
}

.cs-detail-content {
    padding: 4rem 2rem;
    margin: 0 auto;
}

.cs-detail-section {
    margin-bottom: 4rem;
}

.cs-detail-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.cs-detail-section p, .cs-detail-section ul {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.cs-detail-section ul {
    list-style-position: inside;
    padding-left: 0.5rem;
}

.cs-detail-section li {
    margin-bottom: 0.75rem;
}

.cs-detail-image-wrapper {
    margin: 2.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px var(--shadow-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cs-detail-image-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.cs-detail-image-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.cs-detail-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    text-align: center;
}

.cs-metric {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid transparent;
    box-shadow: 0 8px 25px var(--shadow-color);
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.cs-metric:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 35px var(--shadow-color);
    border-color: var(--highlight-color);
}

.cs-metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    transition: color 0.3s ease;
}

.cs-metric-label {
    font-size: 1rem;
    color: var(--text-light);
}

/* Creative CTA Section */
.creative-cta {
    padding: 6rem 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.creative-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 27, 42, 0.7); /* Dark blue overlay from --primary-color */
    z-index: 1;
}

.creative-cta-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.creative-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.creative-cta-text {
    flex: 1.5;
}

.creative-cta-text h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.creative-cta-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.creative-cta-text .cta-button {
    background: var(--warm-accent-color);
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(255, 190, 11, 0.3);
}

.creative-cta-text .cta-button:hover {
    background: #fff;
    box-shadow: 0 6px 25px rgba(255, 190, 11, 0.5);
}

.creative-cta-visual {
    flex: 1;
    position: relative;
    min-height: 250px;
}

/* Animations */

/* Creative Contact Section */
.creative-contact {
    padding: 6rem 2rem;
    background: linear-gradient(270deg, var(--accent-color), #f5f5f5, var(--accent-color));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.creative-contact .section-header {
    text-align: left;
    margin-bottom: 2rem;
}

.creative-contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--secondary-color);
    padding: 4rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--shadow-color);
    position: relative;
    z-index: 1;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.contact-info-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: rgba(84, 84, 84, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-info-icon svg { color: var(--primary-color); }

.contact-info-item h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-info-item p, .contact-info-item a {
    color: var(--text-light);
}

.contact-subscribe {
    border-left: 1px solid var(--border-color);
    padding-left: 4rem;
}

.contact-subscribe h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-subscribe p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--primary-color);
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

@keyframes gradientBG {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 60px rgba(255, 190, 11, 0.3);
    }

    50% {
        box-shadow: 0 0 100px rgba(255, 190, 11, 0.6);
    }
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-visual {
        order: -1; /* Move the image above the text on mobile */
    }
}
@media (max-width: 992px) {
    .creative-cta-content {
        flex-direction: column;
        text-align: center;
    }
    .creative-contact-content {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        gap: 3rem;
    }
    .contact-subscribe {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 3rem;
    }
    .contact-connect .section-header {
        text-align: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .container {
        padding: 0;
    }
    .expertise-grid{
        grid-template-columns:auto;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;        
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;        
        background: rgba(248, 249, 250, 0.98);
        padding: 2rem;
        gap: 1rem;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .trust-compliance-grid {
        grid-template-columns: 1fr;
    }

    .why-choose-us-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .case-study-grid,
    .case-study:nth-child(even) .case-study-grid {
        grid-template-columns: 1fr !important;
    }
    .case-study:nth-child(even) .case-study-visual {
        order: -1; /* Image on top on mobile */
    }

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

    .feature-list {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .case-study-metrics {
        grid-template-columns: 1fr;
    }
}



.agency-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 100px 20px;
    font-family: 'Poppins', 'Geist', sans-serif;
}

/* Background animation */
.agency-bg-animation {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.agency-shape {
    position: absolute;
    opacity: 0.08;
    animation: agency-float 20s infinite ease-in-out;
}

.agency-circle-1 {
    width: 200px;
    height: 200px;
    background: #000;
    border-radius: 50%;
    top: 10%;
    left: 5%;
}

.agency-circle-2 {
    width: 150px;
    height: 150px;
    background: #000;
    border-radius: 50%;
    top: 60%;
    right: 10%;
    animation-duration: 30s;
}

.agency-line-1 {
    width: 300px;
    height: 4px;
    background: #000;
    top: 30%;
    right: 5%;
    transform: rotate(45deg);
}

.agency-line-2 {
    width: 250px;
    height: 4px;
    background: #000;
    bottom: 20%;
    left: 10%;
    transform: rotate(-30deg);
}

.agency-dot-1 {
    width: 12px;
    height: 12px;
    background: #000;
    border-radius: 50%;
    top: 50%;
    left: 15%;
}

.agency-dot-2 {
    width: 16px;
    height: 16px;
    background: #000;
    border-radius: 50%;
    top: 25%;
    right: 20%;
}

@keyframes agency-float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(20px, -30px);
    }

    50% {
        transform: translate(-20px, -60px);
    }

    75% {
        transform: translate(30px, -30px);
    }
}

/* Content container */
.agency-container {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Hero section */
.agency-hero h1 {
    font-size: 3.2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.agency-highlight {
    background: var(--highlight-color);
    color: var(--primary-dark);
    padding: 4px 12px;
    transform: rotate(-3deg);
    display: inline-block;
    font-style: italic;
    border-radius: 20px;
}

.agency-hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.agency-cta {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.agency-cta:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
}

/* Cards */
.agency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.agency-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}



.agency-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.agency-card:hover::before {
    transform: scaleX(1);
}

.agency-icon {
    width: 70px;
    height: 70px;
    background: #f5f5f5;
    margin: 0 auto 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
}

.agency-card:hover .agency-icon {
    background: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

.agency-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    transition: 0.4s;
}

.agency-card:hover .agency-icon svg {
    filter: brightness(0) invert(1);
}

.agency-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.agency-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive */
@media (max-width:768px) {
    .agency-hero h1 {
        font-size: 2.2rem;
    }
}

/* New Services Page Grid */
.services-page-grid {
    padding: 6rem 2rem;
}

.sp-grid {
    display: grid;
    gap: 2.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.sp-card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.sp-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--primary-color);
}

.sp-card-icon {
    width: 70px;
    height: 70px;
    background: rgba(84, 84, 84, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.sp-card:hover .sp-card-icon {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1) rotate(-10deg);
}

.sp-card-title {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.sp-card-description {
    color: var(--text-light);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}
/* New Products Page Grid - Alternative Layout */
.sp-grid-alt {
    display: grid;
    gap: 3.5rem;
    /* Increased gap for a more spacious layout */
    max-width: 1600px;
    margin: 0 auto;
}

.sp-card-alt {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two equal columns */
    align-items: center;
    gap: 2rem;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sp-card-alt:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px var(--shadow-color);
}

/* Alternating layout for odd-numbered cards */
.sp-card-alt:nth-child(odd) .sp-card-alt-img {
    order: 2;
    /* Move image to the second column */
}

.sp-card-alt:nth-child(odd) .sp-card-alt-content {
    order: 1;
    /* Move content to the first column */
}

.sp-card-alt-img {
    height: 100%;
}

.sp-card-alt-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-card-alt-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sp-card-alt-content .cta-button {
    align-self: flex-start;
    /* Align button to the left */
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .sp-card-alt {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }

    .sp-card-alt:nth-child(odd) .sp-card-alt-img,
    .sp-card-alt:nth-child(odd) .sp-card-alt-content {
        order: initial;
        /* Reset order for mobile */
    }
}
.sp-card-features {
    list-style: none;
    padding-left: 1.5rem;
}

.sp-card-features h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.sp-card-features li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    position: relative;
}

.agency-hero{
    max-width: 800px;
    margin: 0 auto;
}

/* ===== Article Hero Section ===== */
.article-hero-section {
  position: relative;
  height: 60vh; /* Adjusted height for better balance */
  background-size: cover;
  background-position: center;
  justify-content: center;
  align-items: center;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 65px; /* Account for navbar */
}

.article-hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.55); /* Darker overlay from --primary-color */
  z-index: 0;
}

.article-hero-card {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  margin: 0 2rem; /* Use margin instead of fixed left */
  border-radius: 10px;
  max-width: 550px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  z-index: 1;
}

.article-hero-category {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.article-hero-title {
    font-size: 3rem;
        font-weight: 800;
        color: white;
        z-index: 1;
        max-width: 1200px;
        text-align: center;
        margin-bottom: 1rem;
        line-height: 1.3;
}

.article-hero-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.article-hero-icons {
  display: flex;
  gap: 1rem;
}

.article-hero-icons a {
  color: var(--text-light);
  font-size: 1.2rem;
  transition: color 0.3s;
}

.article-hero-icons a:hover {
  color: var(--primary-color);
}
.cs-detail-content {
     max-width: 1000px;
     margin: 4rem auto;
     padding: 0 1.5rem;
     color: var(--text-light);
 }

.cs-detail-content a {
     color: var(--primary-color);
     text-decoration: none;
     font-weight: 500;
 }

.cs-detail-content a:hover {
     text-decoration: underline;
 }
@media (max-width: 768px) {
  .article-hero-section {
    height: 70vh;
    align-items: flex-end; /* Align card to bottom on mobile */
    padding-bottom: 2rem;
  }
  .article-hero-card {
    max-width: 90%;
    padding: 1.5rem;
    margin: 0 auto; /* Center the card */
  }
  .article-hero-title {
    font-size: 1.5rem;
  }
}


.unicornis-design-section {
    font-family: "Poppins", sans-serif;
    background: radial-gradient(circle at top left, var(--accent-color), #ffffff);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.unicornis-design-section::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(58, 134, 255, 0.1), transparent 70%); /* --highlight-color */
    filter: blur(80px);
    z-index: 0;
}

.unicornis-design-section::after {
    content: "";
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 190, 11, 0.15), transparent 70%); /* --warm-accent-color */
    filter: blur(80px);
    z-index: 0;
}

.uds-container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: auto;
}

.unicornis-design-section h2 {
    color: var(--text-light);
    font-weight: 400;
    font-size: 1.8rem;
}

.unicornis-design-section h1 {
    color: var(--text-color);
    font-size: 2.8rem;
    font-weight: 700;
    margin-top: 10px;
}

.uds-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    max-width: 600px;
    margin: 20px auto 50px;
}

.uds-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.uds-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    width: 380px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.uds-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.uds-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.uds-icon svg {
    width: 28px;
    height: 28px;
}

.uds-icon-1 {
    background: var(--primary-color);
}

.uds-icon-2 {
    background: var(--warm-accent-color);
}

.uds-icon-3 {
    background: var(--primary-dark);
}

.uds-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.uds-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.uds-cta {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.uds-btn-primary {
    background: var(--warm-accent-color);
    color: var(--primary-color);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.uds-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 190, 11, 0.4);
}

.uds-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    align-self: center;
    transition: color 0.3s ease;
}

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

/* FAQ Section */
.faq-section {
    padding: 6rem 2rem;
    background-color: var(--accent-color);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust as needed */
}


/* ===== insights Section ===== */

.aiinsights-section {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;    
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    padding: 6rem 2rem;
    position: relative;    
    overflow: hidden;
}

.aiinsights-section::before,
.aiinsights-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%);
    filter: blur(100px);
    animation: agency-float 25s infinite ease-in-out;
    z-index: 0;
}
.aiinsights-section::before { top: -100px; left: -100px; }
.aiinsights-section::after { bottom: -100px; right: -100px; animation-duration: 35s; }

  .aiinsights-container {
      max-width: 1600px;
      margin: 0 auto;
  }

  .aiinsights-header {
      margin-bottom: 50px;
      text-align: left;
  }

  .aiinsights-header .header-left-decorated h2 {
      color: #fff;
  }

  .aiinsights-header .header-left-decorated p {
      color: #e0e0e0;
      opacity: 0.9;
  }

  .aiinsights-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: #fff;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 14px;
      margin-bottom: 20px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .aiinsights-badge svg {
      width: 16px;
      height: 16px;
      color: var(--warm-accent-color);
  }

  .aiinsights-header h1 {
      font-size: 48px;
      font-weight: 600;
      margin-bottom: 20px;
      color: #fff;
  }

  .aiinsights-subtitle {
      font-size: 18px;
      color: #e0e0e0;
      line-height: 1.6;
      max-width: 800px;
  }

  .aiinsights-main-grid {
      display: grid;
      grid-template-columns: 1.5fr 1fr 1fr;
      gap: 24px;
  }

  .aiinsights-profile-card {
      grid-row: span 2;
      background: #111;
      border-radius: 16px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      opacity: 0;
      transform: translateY(50px) rotate(-2deg) scale(0.95);
      transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease-out;
  }

  .aiinsights-profile-card:hover, .aiinsights-feature-card:hover, .aiinsights-benefit-card:hover {
      transform: translateY(-12px) rotate(1deg) scale(1.02);
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  }

  .aiinsights-profile-card.visible {
      opacity: 1;
      transform: translateY(0);
  }

  .aiinsights-profile-image {
      width: 100%;
      height: 320px;
      display: flex;
      border-radius: 1rem;
      align-items: center;
      justify-content: center;
      overflow: hidden;
  }

  .aiinsights-profile-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: opacity 0.6s ease;
  }

  .aiinsights-profile-info {
      padding: 20px;
      transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .fade-change {
      opacity: 0;
      transform: translateY(10px);
  }

  .aiinsights-profile-name {
      font-weight: 600;
        color: #fff;
      font-size: 16px;
      margin-bottom: 4px;
  }

  .aiinsights-profile-title {
      font-size: 13px;
      color: #bbbbbb;
      margin-bottom: 8px;
  }

  .aiinsights-profile-quote {
      font-size: 13px;
      color: #f0f0f0;
      font-style: italic;
      margin-bottom: 16px;
  }

  .aiinsights-social-icons {
      display: flex;
      gap: 12px;
  }

  .aiinsights-social-icon {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: var(--text-light);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s;
      cursor: pointer;
  }

  .aiinsights-social-icon:hover {
      background: var(--highlight-color);
      transform: scale(1.15);
  }

  .aiinsights-feature-card,
  .aiinsights-benefit-card {
      opacity: 0;
      transform: translateY(40px) rotate(-2deg) scale(0.95);
      transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease-out;
  }

  .visible {
      opacity: 1 !important;
      transform: translateY(0) !important;
  }

  .aiinsights-feature-card {
      background: #fff;
      border-radius: 16px;
      padding: 24px;
      overflow: hidden;
      color: var(--text-color);
  }
.aiinsights-feature-card h3 {
    color: var(--primary-color);
}
  .aiinsights-feature-card h3 {
      font-size: 18px;
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--primary-color); /* Changed for white background */
  }

  .aiinsights-feature-card p {
      font-size: 14px;
      color: var(--text-light); /* Changed for white background */
      line-height: 1.6;
      margin-bottom: 16px;
  }

  .aiinsights-feature-card h3 svg { color: var(--primary-color); }

  .aiinsights-feature-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
  }

  .aiinsights-tag {
      background: var(--accent-color);
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 12px;
      color: var(--text-light); /* Changed for white background */
  }

  .aiinsights-benefit-card {
      background: #fff;
      border-radius: 16px;
      padding: 24px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .aiinsights-benefit-title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 8px;
      color: var(--primary-color);
  }

  .aiinsights-benefit-description {
      font-size: 14px;
      color: var(--text-light);
      line-height: 1.6;
  }

  @media (max-width: 1024px) {
      .aiinsights-main-grid {
          grid-template-columns: 1fr 1fr;
      }

      .aiinsights-profile-card {
          grid-row: span 1;
      }
  }

  @media (max-width: 768px) {
      .aiinsights-header h1 {
          font-size: 32px;
      }

      .aiinsights-main-grid {
          grid-template-columns: 1fr;
      }
  }