@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/*==================================================
ROOT VARIABLES
==================================================*/
:root {
    --primary: #2563eb;
    --secondary: #0f172a;
    --accent: #14b8a6;
    --neon-glow: #7c3aed; /* New premium violet accent color */

    --white: #ffffff;
    --light: #f8fafc;
    --dark: #020617;

    --heading: #0f172a;
    --text: #64748b;

    /* Ultra-smooth organic shadows */
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 30px 60px rgba(37, 99, 235, 0.12);
    --card-glow: 0 0 40px rgba(20, 184, 166, 0.08);

    --radius: 24px; /* Slightly rounder, softer modern corners */
    --transition: .4s cubic-bezier(0.16, 1, 0.3, 1); /* Premium "snappy" easing function */
}

/*==================================================
RESET
==================================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 85px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/*==================================================
CONTAINER & SECTIONS
==================================================*/
.container {
    width: min(92%, 1320px);
    margin: auto;
}

section {
    padding: 100px 0;
}

/*==================================================
HEADINGS & TITLES
==================================================*/
h1, h2, h3, h4 {
    color: var(--heading);
    line-height: 1.2;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: "";
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    display: block;
    margin: 18px auto 0;
    border-radius: 50px;
}

.section-title p {
    max-width: 700px;
    margin: auto;
    color: #64748b;
}

/*==================================================
BUTTONS
==================================================*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    transition: .35s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(37,99,235,.35);
}

.secondary-btn {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.secondary-btn:hover {
    background: var(--primary);
    color: white;
}

/*==================================================
NAVBAR
==================================================*/
.navbar {
    position: fixed;
    top: 20px; /* Floats it down slightly off the browser roof */
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, 1320px);
    border-radius: 50px; /* Pill-shaped navigation */
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}
.navbar .container {
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800; 
    letter-spacing: -0.5px;
    color: var(--heading);
    transition: var(--transition);
}

.logo a:hover img {
    transform: scale(1.1) rotate(-6deg); /* Playful responsive tech tilt */
}

.logo a:hover span {
    background: linear-gradient(135deg, var(--primary), var(--neon-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo a span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

.logo img {
    width: 45px; 
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.15)); /* Soft shadow color pop */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    color: var(--heading);
    font-weight: 500;
    transition: .3s;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: .35s ease;
    transform: translateX(-50%);
    border-radius: 50px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.quote-btn {
    background: var(--primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: .3s;
}

.quote-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37,99,235,.35);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--heading);
}

/*==================================================
HERO SECTION
==================================================*/
.hero {
    position: relative;
    min-height: calc(100vh - 85px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fbff, #eef8ff);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .35;
    animation: floatBlob 10s ease-in-out infinite;
}

.blob1 {
    width: 320px;
    height: 320px;
    background: #2563eb;
    top: -100px;
    left: -80px;
}

.blob2 {
    width: 260px;
    height: 260px;
    background: #14b8a6;
    right: -80px;
    top: 120px;
    animation-delay: 2s;
}

.blob3 {
    width: 240px;
    height: 240px;
    background: #7c3aed;
    bottom: -100px;
    left: 45%;
    animation-delay: 4s;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.hero-text {
    animation: fadeLeft 1s ease;
}

.hero-tag {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 50px;
    background: #dbeafe;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 25px;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 25px;
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    max-width: 560px;
    font-size: 1.15rem;
    margin-bottom: 40px;
    color: #64748b;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    animation: fadeRight 1s ease;
}

.hero-image img {
    width: 100%;
    max-width: 560px;
    margin: auto;
    animation: floatImage 5s ease-in-out infinite;
}

.hero-image-wrapper {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px; /* Creates a clean floating frame effect */
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-hover);
    display: inline-block;
    width: 100%;
    max-width: 560px;
    animation: floatImage 5s ease-in-out infinite;
}

/* Adjust the inner image inside the frame container */
.hero-image-wrapper img {
    width: 100%;
    border-radius: 20px;
    animation: none; /* Disables animation on inner image so it moves smoothly with the container frame */
}

/*==================================================
STATS SECTION
==================================================*/
.stats {
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius) !important;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: var(--shadow);
    transition: var(--transition) !important;
    position: relative;
    overflow: hidden;
    
    /* This fixes the bottom clipping bug by giving the content plenty of room */
    padding: 45px 35px !important; 
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns card content cleanly to the left */
    text-align: left;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: var(--shadow-hover);
    border-color: rgba(37, 99, 235, 0.15);
}

.stat-card i {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.stat-card h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-card p {
    color: #64748b;
    font-weight: 500;
}

/*==================================================
SERVICES SECTION
==================================================*/
.services-page {
    padding: 120px 0;
    background: #f8fafc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 60px 0;
}

.services-grid.three-col-grid {
    grid-template-columns: repeat(3, 1fr); /* Forces a perfect 3+3 grid balance */
}

.service-card {
    background: var(--white);
    border-radius: var(--radius) !important;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: var(--shadow);
    transition: var(--transition) !important;
    position: relative;
    overflow: hidden;
    
    /* This fixes the bottom clipping bug by giving the content plenty of room */
    padding: 45px 35px !important; 
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns card content cleanly to the left */
    text-align: left;
}

.service-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 5px;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: .35s;
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: var(--shadow-hover);
    border-color: rgba(37, 99, 235, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: #eff6ff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    flex-shrink: 0; /* Prevents the circle from distorting */
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--primary);
}

/* Spacing fixes inside the cards to prevent text overlap */
.service-card h3, .portfolio-card h3 {
    margin-bottom: 15px;
    font-size: 1.45rem;
    font-weight: 700;
}

.service-card p, .portfolio-card p {
    margin-bottom: 25px;
    color: var(--text);
    line-height: 1.7;
}

.service-card a {
    margin-top: auto; /* Pushes "Learn More" perfectly to the bottom of the card */
    font-weight: 600;
    color: var(--primary);
    transition: color 0.3s ease;
}

.service-card a:hover {
    color: var(--accent);
}
/*==================================================
PROCESS SECTION
==================================================*/
.process {
    padding: 100px 0;
    background: #fff;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-card {
    background: var(--white);
    border-radius: var(--radius) !important;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: var(--shadow);
    transition: var(--transition) !important;
    position: relative;
    overflow: hidden;
    
    /* This fixes the bottom clipping bug by giving the content plenty of room */
    padding: 45px 35px !important; 
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns card content cleanly to the left */
    text-align: left;
}

.process-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: var(--shadow-hover);
    border-color: rgba(37, 99, 235, 0.15);
}
.process-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.process-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.process-card h3 {
    margin-bottom: 15px;
    color: var(--heading);
}

.process-card p {
    color: #64748b;
}

/*==================================================
TECHNOLOGIES SECTION
==================================================*/
.technologies {
    padding: 100px 0;
    background: #ffffff;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.tech-card {
    background: white;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
    transition: .35s;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(37,99,235,.15);
}

.tech-card i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: .35s;
}

.tech-card:hover i {
    transform: scale(1.15) rotate(8deg);
}

.tech-card h3 {
    font-size: 1.1rem;
    color: var(--secondary);
}

/*==================================================
WHY CHOOSE US (ABOUT PREVIEW)
==================================================*/
.about-preview {
    background: #ffffff;
}

.about-preview .services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.about-preview .service-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: .35s;
}

.about-preview .service-card:hover {
    transform: translateY(-12px);
}

.about-preview .service-card h3 {
    margin-bottom: 15px;
    color: var(--heading);
}

.about-preview .service-card p {
    color: #64748b;
}

/*==================================================
PORTFOLIO SECTION
==================================================*/
.portfolio-preview, .portfolio-section {
    padding: 120px 0;
    background: #f8fafc;
}

.filter-buttons, .portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
}

.filter-buttons button, .portfolio-filter button {
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    background: #ffffff;
    color: var(--heading);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.filter-buttons button:hover,
.filter-buttons button.active,
.portfolio-filter button.active,
.portfolio-filter button:hover {
    background: var(--primary);
    color: #ffffff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.portfolio-card {
    background: var(--white);
    border-radius: var(--radius) !important;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: var(--shadow);
    transition: var(--transition) !important;
    position: relative;
    overflow: hidden;
    
    /* This fixes the bottom clipping bug by giving the content plenty of room */
    padding: 45px 35px !important; 
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns card content cleanly to the left */
    text-align: left;
}
.portfolio-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: var(--shadow-hover);
    border-color: rgba(37, 99, 235, 0.15);
}

.portfolio-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.portfolio-image img, .portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s ease;
}

.portfolio-card:hover .portfolio-image img,
.portfolio-card:hover img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37,99,235,.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: .35s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay a {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    transition: .3s ease;
}

.portfolio-overlay a:hover {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 30px;
}

.portfolio-tag {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    background: #dbeafe;
    color: var(--primary);
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.portfolio-content h3 {
    margin-bottom: 15px;
    color: var(--heading);
    font-size: 1.45rem;
}

.portfolio-content p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 25px;
}

/*==================================================
TESTIMONIALS SECTION
==================================================*/
.testimonials {
    background: #f8fafc;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
}

.testimonial-card {
    background: #fff;
    border-radius: 22px;
    padding: 35px;
    box-shadow: 0 15px 40px rgba(15,23,42,.08);
    transition: .35s;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,.12);
}

.stars {
    color: #fbbf24;
    margin-bottom: 20px;
}

.stars i {
    margin-right: 3px;
}

.testimonial-card p {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 30px;
}

.client {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.client h4 {
    color: #0f172a;
}

.client span {
    color: #64748b;
    font-size: .9rem;
}

/* ==================================================
   PREMIUM FAQ ACCORDION LAYOUT
================================================== */
.faq {
    background: var(--light);
    padding: 120px 0;
}

.faq-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Separates the cards beautifully */
}

.faq-item {
    background: var(--white);
    border-radius: 16px !important;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

/* Question Button Box Styling */
.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 28px 35px;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--heading);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    gap: 20px;
    transition: var(--transition);
}

.faq-question span {
    position: relative;
    z-index: 2;
}

/* Interactive Icon Frame */
.faq-question i {
    font-size: 1.1rem;
    color: var(--primary);
    width: 36px;
    height: 36px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
    flex-shrink: 0;
}

/* Item Hover States */
.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(37, 99, 235, 0.1);
}

.faq-item:hover .faq-question i {
    background: var(--primary);
    color: var(--white);
}

/* Hidden Panel Setup for Smooth Slide-Down Heights */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
    padding: 0 35px 30px 35px; /* Aligns content spacing cleanly with button text */
    color: var(--text);
    line-height: 1.8;
    font-size: 1rem;
}

/* ==================================================
   ACTIVE EXPANDED STATE (Controlled via script.js)
================================================== */
.faq-item.active {
    border-color: rgba(37, 99, 235, 0.15);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.05);
}

.faq-item.active .faq-question {
    color: var(--primary);
}

/* Rotates the '+' icon into an 'x' symbol when open */
.faq-item.active .faq-question i {
    transform: rotate(45deg);
    background: var(--secondary);
    color: var(--white);
}

.faq-item.active .faq-answer {
    max-height: 250px; /* Sets safe maximum open boundary layout constraints */
}
/*==================================================
TEAM SECTION
==================================================*/
.team {
    padding: 100px 0;
    background: #fff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius) !important;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: var(--shadow);
    transition: var(--transition) !important;
    position: relative;
    overflow: hidden;
    
    /* This fixes the bottom clipping bug by giving the content plenty of room */
    padding: 45px 35px !important; 
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns card content cleanly to the left */
    text-align: left;
}

.team-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
}

.team-image {
    width: 170px;
    height: 170px;
    margin: auto;
    margin-bottom: 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #eff6ff;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.team-card:hover img {
    transform: scale(1.08);
}

.team-card h3 {
    color: #0f172a;
    margin-bottom: 8px;
}

.team-card span {
    display: block;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.team-card p {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 25px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: .3s;
}

.team-social a:hover {
    background: var(--primary);
    color: #fff;
}

/*==================================================
CONTACT PAGE
==================================================*/
.contact-page {
    padding: 100px 0;
    background: #f8fafc;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.contact-info > p {
    margin-bottom: 35px;
    color: #64748b;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    width: 55px;
    height: 55px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    margin-bottom: 5px;
}

.contact-item p {
    color: #64748b;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    transition: .3s;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
}

.input-group {
    margin-bottom: 20px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: .3s;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary);
}

.contact-form .btn {
    width: 100%;
}

.map-section iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/*==================================================
ABOUT PAGE COMPONENTS
==================================================*/
.page-hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(rgba(15,23,42,.70), rgba(15,23,42,.70)), url("../images/about-hero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: zoomBg 20s ease-in-out infinite;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    color: #fff;
    font-size: 3.6rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-hero p {
    color: #e2e8f0;
    font-size: 1.2rem;
    max-width: 760px;
    margin: auto;
}

.about-story {
    padding: 120px 0;
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.8rem;
    color: var(--heading);
    margin-bottom: 25px;
    position: relative;
}

.about-text h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    margin-top: 15px;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.about-text p {
    color: var(--text);
    line-height: 1.9;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.03);
}

.experience-box {
    position: absolute;
    bottom: -25px;
    right: -25px;
    background: white;
    padding: 25px 35px;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0,0,0,.12);
    text-align: center;
}

.experience-box h3 {
    color: var(--primary);
    font-size: 2.2rem;
}

.experience-box p {
    color: var(--text);
    margin: 0;
}

.mission-vision {
    padding: 120px 0;
    background: #f8fafc;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.mv-card {
    background: white;
    border-radius: 22px;
    padding: 45px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 5px solid var(--primary);
}

.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.mv-card h3 {
    font-size: 1.7rem;
    margin-bottom: 20px;
}

.mv-card p {
    color: var(--text);
    line-height: 1.8;
}

.mv-card i {
    font-size: 2.7rem;
    color: var(--primary);
    margin-bottom: 25px;
}

/*==================================================
INDUSTRIES & CTA
==================================================*/
.industries {
    padding: 100px 0;
    background: #ffffff;
}

.cta {
    background: radial-gradient(circle at top right, var(--secondary), var(--dark));
    color: #fff;
    text-align: center;
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: var(--radius);
    width: min(92%, 1320px);
    margin: 40px auto; /* Embeds the CTA card cleanly inside the background */
}

.cta h2 {
    color: #fff;
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.cta p {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.15rem;
}

.cta .btn {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.cta .btn:hover {
    background: var(--light);
    color: var(--secondary);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}
/*==================================================
FOOTER
==================================================*/
.footer {
    background: #0f172a;
    color: #e2e8f0;
    padding-top: 80px;
}

.footer-container {
    width: min(92%, 1320px);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    padding-bottom: 60px;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section li {
    color: #cbd5e1;
    margin-bottom: 12px;
    line-height: 1.8;
}

.footer-section a {
    color: #cbd5e1;
    transition: .3s;
}

.footer-section a:hover {
    color: #3b82f6;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center;
    padding: 25px;
    color: #94a3b8;
}

/*==================================================
INTERACTIVE / UTILITY CLASSES
==================================================*/
.reveal {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

#backToTop {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: .35s;
    box-shadow: 0 15px 35px rgba(37,99,235,.35);
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-5px);
}

/*==================================================
ANIMATIONS
==================================================*/
@keyframes floatBlob {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-35px) scale(1.08); }
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomBg {
    0%, 100% { background-size: 100%; }
    50% { background-size: 110%; }
}

/* ==================================================
   ULTRA-CLEAN MOBILE RESPONSIVE REBOOT (max-width: 768px)
================================================== */
@media (max-width: 768px) {
   
    /* 1. Global Viewport Adjustments */
    .container {
        width: 90% !important;
        padding: 0 15px !important;
        margin: 0 auto !important;
        overflow: hidden;
        box-sizing: border-box !important;
    }
   
    section {
        padding: 60px 0 !important; /* Softens massive desktop height margins */
    }

    /* 2. Global Grid Un-Jammer (Universal Catch-All) */
    [class*="grid"],
    .services-grid, 
    .services-grid.three-col-grid, 
    .portfolio-grid, 
    .stats-grid, 
    .team-grid, 
    .contact-grid {
        display: grid !important;
        grid-template-columns: 1fr !important; /* Forces strict single-column stacking */
        gap: 30px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* 3. Hero Welcome Section Adjustment */
    .hero .container {
        display: flex !important;
        flex-direction: column !important; /* Pushes graphic underneath headings */
        text-align: center !important;
        gap: 40px;
    }

    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero h1 {
        font-size: 2.2rem !important; /* Prevents text from warping */
        line-height: 1.3 !important;
    }

    /* 4. Button & Tap-Target Optimization */
    .hero .btn-group, 
    .cta .btn-group {
        display: flex !important;
        flex-direction: column !important; /* Stacks links safely line-by-line */
        width: 100% !important;
        gap: 15px !important;
    }

    .hero .btn, 
    .cta .btn {
        width: 100% !important; /* Native pill width */
        justify-content: center !important;
    }

    /* 5. Uniform Global Card Layout Adjustments */
    .service-card, 
    .portfolio-card, 
    .stat-card, 
    .faq-item, 
    .team-card, 
    .process-card,
    [class*="grid"] > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important; /* Halts right-side viewport bleedouts */
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }

    .service-icon {
        margin: 0 auto 20px auto !important; /* Center icon elements cleanly over center text */
    }
   
    .service-card,
    .service-card h3 {
        text-align: center !important;
        width: 100% !important;
    }

    /* 6. Fixed Header & Mobile Navigation Drawer */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        border-radius: 0 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
        padding: 10px 0 !important;
        z-index: 1000 !important;
    }

    .navbar .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
    }

    .logo a {
        font-size: 1.3rem !important; /* Aligns text neatly beside button elements */
        gap: 8px !important;
    }

    .logo img {
        width: 32px !important;
        height: 32px !important;
    }

    #menu-toggle {
        display: block !important; /* Restores missing hamburger toggle */
        background: transparent !important;
        border: none !important;
        font-size: 1.5rem !important;
        color: var(--secondary) !important;
        cursor: pointer !important;
        order: 3 !important; /* Shoves icon to the right margin */
    }

    .nav-links {
        position: fixed !important;
        top: 60px; /* Aligns smoothly under the mobile nav header height bar */
        left: -100%; /* Hides tray array off-screen */
        width: 100% !important;
        height: calc(100vh - 60px) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding-top: 50px !important;
        gap: 30px !important;
        transition: var(--transition) !important;
        z-index: 999 !important;
    }

    .nav-links.active {
        left: 0 !important; /* Slides into active screen view space */
    }

    /* 7. FAQ Block Spacing Optimization */
    .faq-question {
        padding: 20px !important;
        font-size: 1rem !important;
    }

    .faq-answer p {
        padding: 0 20px 20px 20px !important;
    }

    /* 8. Footer Organization Layout */
    .footer-grid, 
    .footer-container {
        display: flex !important;
        flex-direction: column !important; /* Stacks column sections */
        text-align: left !important;
        gap: 35px !important; /* Splits overlaps instantly */
        padding: 40px 20px !important;
    }

    .footer-column {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .footer-column h3, 
    .footer-column h4 {
        margin-bottom: 5px !important;
        font-size: 1.25rem !important;
        color: var(--white, #fff) !important;
        font-weight: 700 !important;
    }

    .footer-column ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .footer-column ul li a, 
    .footer-column p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        display: block !important;
    }
}

/* ==================================================
   PREMIUM UI/UX ACCENT LIGHT STRIPS
================================================== */
.service-card::after, .portfolio-card::after, .stat-card::after, .process-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--neon-glow));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

/* Reveal the gradient light strip on hover */
.service-card:hover::after, .portfolio-card:hover::after, .stat-card:hover::after, .process-card:hover::after {
    opacity: 1;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--neon-glow));
    width: 0%;
    z-index: 2000;
    transition: width 0.1s ease-out;
}

