@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

:root {
    --primary-bg: #0a0e14;
    --accent-red: #f90000;
    --text-white: #ffffff;
    --nav-gray: #b0b0b0;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 50px !important;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 20, 0.9);
    backdrop-filter: blur(10px);
}

.logo img {
    height: auto;
}

.nav-container {
    margin-left: auto; 
    margin-right: 20px; 
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    text-transform: uppercase;
}

.nav-links a {
    text-decoration: none;
    color: var(--nav-gray);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.contact-info a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../images/chat-with-ai.png') no-repeat center center/cover; /* Replace with your image */
    position: relative;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    padding: 50px;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: radial-gradient(circle, rgba(10,14,20,0.4) 0%, rgba(10,14,20,0.9) 100%); */
}

.hero-content {
   padding-top: 10px;
}

.hero-content h2 {
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 48px;
}


.highlight {
    color: var(--accent-red);
}

/* --- Animations & AI Visual --- */
.ai-visual-container {
    margin-top: 50px;
    position: relative;
    animation: float 4s ease-in-out infinite;
}

.ai-core {
    font-size: 4rem;
    font-weight: 800;
    border: 2px solid rgba(255,255,255,0.2);
    display: inline-block;
    padding: 20px 40px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
}

.search-bar-mockup {
    margin: 30px auto;
    width: 300px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    background: rgba(0,0,0,0.5);
    font-size: 0.8rem;
    text-align: left;
    color: #888;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.fade-in {
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Info Sections --- */
.info-container {
    padding: 20px 10%;
    background-color: var(--text-white); /* Transitioning to white for this section as per image */
    color: #333;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    margin: 80px 0px;
}

.info-row.reverse {
    flex-direction: row-reverse;
}

.info-image {
    flex: 1;
}

.rounded-img {
    width: 100%;
    max-width: 550px;
    border-radius: 40px; /* Matching the rounded aesthetic in your image */
    display: block;
}

.info-text {
    flex: 1;
}

.section-title {
    font-size: 2rem;
    color: var(--accent-red);
    margin-bottom: 25px;
    line-height: 1.3;
}


.info-text p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
}

/* --- Scroll Reveal Animations --- */
.reveal-left, .reveal-right {
    opacity: 0;
    transition: all 1s ease-out;
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}
.reveal-right img{
    margin-left: 77px;
}
.active {
    opacity: 1;
    transform: translateX(0);
}

/* --- Common Headings --- */
.section-heading-red {
    text-align: center;
    color: var(--accent-red);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-subtext {
    text-align: center;
    margin: 20px auto 30px;
    color: #000;
}

/* --- Benefits Section --- */
.benefits-section {
    padding: 15px 10%;
    background: #fff;
}

.benefits-container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.benefits-image {
    flex: 1;
    min-width: 300px;
}

.benefits-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.benefits-list {
    flex: 1.2;
    min-width: 300px;
}

.benefits-list ul {
    list-style: none;
}

.benefits-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.5;
    color: #a0a0a0; /* Neutral grey */
    /* transition: all 0.4s ease; */
    list-style-type: none; /* Assuming you are using custom icons */
    position: relative;
    margin-bottom: 15px;
}
.benefits-list li.reveal-item {
    opacity: 1;
    transform: translateY(0);
}
.benefits-list li.active {
    color: #000000; /* Solid black */
    opacity: 1;
}
.benefits-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    background-color: rgb(247, 109, 109);
    border-radius: 50%;
}
.benefits-list li.active::before {
    background-color: var(--accent-red); /* Icon turns red (or black) when active */
}

/* --- Services Carousel --- */
.services-section {
    padding: 15px 5%;
    background: #fff;
    overflow: hidden; /* Keeps the arrows from causing layout shifts */
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    /*max-width: 1300px;*/
    margin: 0 auto;
    padding: 0 40px;
}

.carousel-viewport {
    width: 100%;
    overflow: hidden; /* This hides the 5th, 6th cards */
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 20px 0;
}

.service-card {
    /* (100% / 4 cards) - (gaps / 4) */
    flex: 0 0 calc(25% - 15px); 
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 60px; /* High rounding like the image */
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.card-icon img {
    width: 70px;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: #1a1a1a;
    min-height: 3rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Arrows */
.nav-btn {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #333;
    transition: all 0.3s;
}

.nav-btn:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.prev { left: -20px; }
.next { right: -20px; }

/* Responsive */
@media (max-width: 1100px) {
    .service-card { flex: 0 0 calc(50% - 10px); } /* Show 2 cards */
}
@media (max-width: 650px) {
    .service-card { flex: 0 0 100%; } /* Show 1 card */
}

/* --- Framework Section (Accordion) --- */
.framework-container {
    display: flex;
    justify-content: space-between;
    gap: 100px;
    padding: 30px 10%;
    background-color: #fff;
    color: #333;
}

.framework-left {
    flex: 1;
    position: sticky; /* Keeps the left title visible as you scroll the accordion */
    top: 150px;
    align-self: center;
}

.framework-left .section-title {
    color: var(--accent-red);
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 30px;
}

.framework-left p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
}

.framework-right {
    flex: 1.5;
}

.accordion {
    width: 100%;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    cursor: pointer;
    user-select: none;
}

.accordion-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.arrow-icon {
    transition: transform 0.4s ease;
}

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

.accordion-content p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* --- Active State (Open Accordion) --- */
.accordion-item.active .arrow-icon {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
    max-height: 300px; /* Adjust based on maximum expected content height */
    padding: 0 0 30px 0; /* Add bottom padding when open */
}

/* --- Responsive Layout --- */
@media (max-width: 900px) {
    .framework-container {
        flex-direction: column;
        gap: 50px;
    }
    .framework-left {
        position: static;
    }
}

/* --- Why Choose Us Section --- */
.why-choose-section {
    padding: 70px 10%;
    background-color: var(--primary-bg); /* Dark background matching the image */
    background-image: url('../images/abstract-tech-bg.jpg'); /* Replace with the abstract background image from your file */
    background-size: cover;
    background-position: center;
    color: var(--text-white);
    text-align: center;
    position: relative;
}

/* Add an overlay to match the image opacity */
.why-choose-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 14, 20, 0.85); /* Deep dark blue overlay */
    z-index: 1;
}

.why-content {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
}

.section-title-white {
    font-size: 2.2rem;
    color: var(--text-white);
    margin-bottom: 30px;
    font-weight: 600;
}

.why-paragraphs p {
    font-size: 16px;
    line-height: normal;
    color: #fff; /* Light gray text for readability on dark */
    margin-bottom: 5px;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 30px 10%;
    background-color: #fff;
    color: #333;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); /* Use grid for two columns, automatic break */
    gap: 20px;
    align-items: flex-start; /* Keeps columns from stretching vertically */
}

.faq-col {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing between boxed items in the same column */
}

/* Style the details boxed container */
.faq-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden; /* Important for the answer animation */
    transition: var(--transition);
}

/* Box styling for the open state matching the image */
.faq-item[open] {
    background-color: #f9f9f9;
    border-color: #f0f0f0;
}

/* Hide the default summary arrow marker */
.faq-item summary::-webkit-details-marker {
    display: none;
}

/* Style the question/header */
.faq-question {
    font-size: 1rem;
    font-weight: 500;
    color: #222;
    padding: 20px 50px 20px 20px; /* Right padding makes room for the arrow */
    cursor: pointer;
    position: relative;
    list-style: none; /* For non-webkit browsers */
}

/* The arrow icon - we use CSS pseudo-elements for clean code */
.faq-question::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #444; /* Upward facing triangle when closed */
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
}

/* Rotate the arrow when open */
.faq-item[open] .faq-question::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Style the answer container */
.faq-answer {
    padding: 0 20px 20px 20px; /* Add padding for content inside the box */
}

.faq-answer p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Smooth content sliding effect */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* Open state for the content to slide down */
.faq-item[open] .faq-answer {
  max-height: 300px; /* Adjust based on maximum content height */
  transition: max-height 0.4s ease;
}

/* --- Common Headings --- */
.section-heading-red {
    text-align: center;
    color: var(--accent-red);
    font-size: 2.2rem;
}

/* --- Footer Styling --- */
.main-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 30px 5% 20px;
    font-size: 0.85rem;
}

.footer-cta {
    text-align: center;
    margin-bottom: 60px;
}

.footer-cta p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.cta-btn {
    display: inline-block;
    background-color: var(--accent-red);
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}
.cta-btn:hover{
    background-color: #fff;
    color: var(--accent-red);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 3fr 1.5fr;
    gap: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}
.footer-brand{
    display: flex;
}
.footer-brand .simple-links {
    list-style: none;
    margin-bottom: 20px;
    margin-right: 50px;
}

.footer-brand .simple-links li { margin-bottom: 10px; }
.social-icon{
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 50px;
}
.social-icon img{
    width: 20px;
    height: 20px;
    align-items: center;
    margin-left: 5px;
    margin-top: 5px;
}
.footer-services h3, .footer-contact h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.main-footer ul { list-style: none; }
.main-footer a { color: #fff; text-decoration: none; transition: 0.3s; }
.main-footer a:hover { color: var(--accent-red); }

.contact-block { margin-bottom: 25px; }
.contact-block strong { display: block; margin-bottom: 5px; color: #fff; }
.contact-block p { color: #b0b0b0; line-height: 1.5; margin-bottom: 5px; }

.footer-bottom {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    color: #666;
}

/* Enquire Now Sidebar Tab */
.enquire-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: right bottom;
    background-color: var(--accent-red);
    color: white;
    padding: 10px 25px;
    font-weight: bold;
    cursor: pointer;
    z-index: 9999;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
    .footer-services { grid-column: span 2; }
}

@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
}

/* --- High-End Responsiveness --- */

/* 1. Large Desktops & Laptops (Already mostly covered by your base CSS) */
@media (min-width: 1440px) {
    .info-container, .benefits-section, .framework-container, .why-choose-section, .faq-section {
        padding-left: 15%;
        padding-right: 15%;
    }
}

/* 2. Tablets & Small Laptops (Max-width: 1024px) */
@media (max-width: 1024px) {
   .navbar {
        display: flex;
        justify-content: space-between; /* Pushes logo left and toggle right */
        align-items: center;
        padding: 15px 20px;
        width: 100%;
    }

    /* Fix: Reduce top distance and align links */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: #0a0e14;
        flex-direction: column;
        justify-content: flex-start; /* Change from center to start at the top */
        align-items: center;
        padding-top: 80px; /* Space for the 'X' close button */
        transition: 0.4s ease-in-out;
        z-index: 1000;
    }

    /* Ensure links have consistent spacing */
    .nav-links li {
        width: 100%;
        text-align: center;
    }

    /* Keep the 'X' button visible and in place when menu is open */
    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 1001;
        margin-left: auto; /* Extra insurance to keep it right-aligned */
    }

    /* Simple Hamburger Animation to 'X' */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .info-row, .info-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .reveal-right img{
        margin-left: 0px;
    }
    .info-image, .info-text {
        width: 100%;
    }

    .benefits-container {
        flex-direction: column;
    }

    .framework-container {
        flex-direction: column;
        gap: 40px;
        padding: 60px 5%;
    }

    .framework-left {
        position: static;
        text-align: center;
    }

    .faq-grid {
        grid-template-columns: 1fr; /* Stack FAQ into one column */
    }

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

/* 3. Mobile Devices (Max-width: 768px) */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 20px; /* Smaller headings for mobile */
    }

    .section-heading-red, .section-title, .section-title-white {
        font-size: 1.8rem;
    }

    .service-card {
        flex: 0 0 100%; /* Show only 1 card at a time in the carousel */
    }

    .carousel-container {
        padding: 0 10px;
    }

    .nav-btn {
        display: none; /* Hide arrows on mobile to favor touch swiping */
    }

    .carousel-viewport {
        overflow-x: auto; /* Enable native touch scrolling */
        scroll-snap-type: x mandatory;
    }

    .service-card {
        scroll-snap-align: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        align-items: center;
    }
    .social-icon img{
        margin-left: 0px;
    }
    .footer-brand .simple-links {
        margin-right: 0;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Stack service links */
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* 4. Small Mobile (Max-width: 480px) */
@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 22px;
    }

    .ai-core {
        padding: 15px 25px;
        font-size: 2.5rem;
    }

    .info-container, .benefits-section, .faq-section {
        padding: 40px 5%;
    }

    .accordion-header h3 {
        font-size: 1rem; /* Prevent text overlap on tiny screens */
    }
}

/* Hamburger Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    transition: 0.3s;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: -100%; /* Hidden off-screen */
        flex-direction: column;
        background: var(--primary-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 40px 0;
    }

    .nav-links.active {
        left: 0; /* Slide in */
    }
    
    .contact-info {
        display: none; /* Hide phone number in main bar on small screens */
    }
}

/* Fix for Carousel cards on small screens */
@media (max-width: 768px) {
    .service-card {
        flex: 0 0 100%; /* Full width cards on mobile */
    }
    .nav-btn {
        width: 35px;
        height: 35px;
    }
}