:root {
    --primary-color: #2563eb; /* Royal Blue */
    --primary-dark: #1e40af;
    --accent-color: #06b6d4; /* Cyan */
    --dark-bg: #0f172a; /* Slate 900 */
    --light-bg: #f8fafc; /* Slate 50 */
    --white: #ffffff;
    --text-main: #334155; /* Slate 700 */
    --text-heading: #0f172a;
    --text-light: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
}

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

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Rubik', sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--light-bg);
    overflow-x: hidden;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Heebo', sans-serif;
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.bg-light {
    background-color: #ffffff;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1e3a8a 50%, #0f172a 100%);
    color: var(--white);
    padding: 8rem 0 25rem; /* Increased bottom padding greatly to prevent overlap */
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Animated gradient orbs */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
    animation: pulse-glow 8s ease-in-out infinite alternate;
    z-index: 1; /* Ensure background is low */
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    animation: pulse-glow 10s ease-in-out infinite alternate-reverse;
    z-index: 1;
}

@keyframes pulse-glow {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

.hero-container {
    position: relative;
    z-index: 20; /* High z-index to stay above the wave */
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 20; /* High z-index to stay above the wave */
}

.hero-section h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 900;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-section h1 .highlight {
    background: linear-gradient(120deg, var(--accent-color), #60a5fa, #a78bfa);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-top: 0.5rem;
    animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-section h2 {
    font-size: 1.4rem;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-intro {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    opacity: 0.85;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
    font-family: inherit;
}

.btn-lg {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.6);
}

/* Pulse animation for CTA */
.pulse {
    animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {
    0% { box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5); }
    50% { box-shadow: 0 4px 30px rgba(37, 99, 235, 0.8), 0 0 0 10px rgba(37, 99, 235, 0.1); }
    100% { box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5); }
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark-bg);
}

.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 10;
    overflow: hidden;
}

.wave-bottom svg {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Tech Visuals (Abstract) --- */
.hero-visual {
    display: none;
}

.tech-graphic {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.95rem;
    display: none; /* Hidden by default (mobile) */
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
    white-space: nowrap;
}

.floating-card i {
    font-size: 1.3rem;
    color: var(--accent-color);
}

.card-1 { top: 10%; right: 10%; animation-delay: 0s; }
.card-2 { bottom: 35%; left: 5%; animation-delay: 2s; }
.card-3 { top: 50%; right: 20%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(1deg); }
    75% { transform: translateY(10px) rotate(-1deg); }
}

/* --- Pain Section --- */
.pain-section {
    background: var(--white);
}

.pain-intro {
    text-align: center;
    font-size: 1.25rem;
    color: #64748b;
    margin-top: -2rem;
    margin-bottom: 3.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.pain-card {
    border: 1px solid rgba(244, 63, 94, 0.08);
}

.pain-card::before {
    background: linear-gradient(90deg, #f43f5e, #f97316) !important;
}

.pain-icon-box {
    font-size: 2.2rem;
    color: #f43f5e;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    width: 85px;
    height: 85px;
    line-height: 85px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    transition: var(--transition);
}

.pain-card:hover .pain-icon-box {
    background: linear-gradient(135deg, #f43f5e, #f97316);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}



.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

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

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}



.card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card p {
    color: #64748b;
    font-size: 0.95rem;
}

/* --- Services Section --- */
.services-section {
    position: relative;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-image i {
    font-size: 4rem;
    color: rgba(255,255,255,0.9);
    z-index: 2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Beautiful gradients for service cards */
.img-lp { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
}
.img-sys { 
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); 
}
.img-auto { 
    background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%); 
}
.img-crm { 
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%); 
}
.img-forms { 
    background: linear-gradient(135deg, #0d9488 0%, #115e59 100%); 
}
.img-dash { 
    background: linear-gradient(135deg, #f97316 0%, #d97706 100%); 
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--text-heading);
}

.service-content p {
    color: #64748b;
    line-height: 1.7;
}

/* --- Projects Section --- */
.projects-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
}

.projects-intro {
    text-align: center;
    font-size: 1.15rem;
    color: #64748b;
    margin-top: -2rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

@media (min-width: 640px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.project-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 480px; /* Ensure consistency across different rows */
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    width: 100%;
    height: 220px; /* Standardized height */
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Uniform crop for all images */
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 50%, rgba(0,0,0,0.6) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-tag {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.35rem;
    color: var(--text-heading);
}

.project-content p {
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex: 1;
}

.project-meta {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.project-meta-item i {
    color: var(--primary-color);
    margin-top: 5px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.project-meta-item strong {
    color: var(--text-heading);
    font-weight: 700;
    white-space: nowrap;
}

.project-cta {
    margin-top: auto;
    text-align: center;
}

.project-cta .btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 14px;
}

.project-card.project-collapsed {
    display: none !important;
}

/* Project Image Gallery */
.project-image-gallery {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.project-image-gallery .gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
}

.project-image-gallery .gallery-img.active {
    opacity: 1;
    z-index: 2;
}

.project-image-gallery .gallery-controls {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 15;
    background: rgba(15, 23, 42, 0.65);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-image-gallery .gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.project-image-gallery .gallery-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.project-image-gallery .gallery-dot.active {
    background: var(--white);
    transform: scale(1.25);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}


.projects-toggle-container {
    text-align: center;
    margin-top: 3rem;
}

#toggle-projects-btn {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

#toggle-projects-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* --- Benefits Section --- */
.benefits-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #f0fdf4 100%);
}

.benefits-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

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

.benefits-content h2 {
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.benefits-list li {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefits-list li:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.benefits-list i {
    color: #10b981;
    margin-left: 15px;
    margin-top: 3px;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.benefits-visual {
    flex: 1;
    min-width: 300px;
    height: 350px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    position: relative;
    overflow: hidden;
}

.benefits-visual::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.big-icon {
    font-size: 6rem;
    color: rgba(255,255,255,0.9);
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

/* --- Process Section --- */
.process-section {
    background: var(--white);
}

.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 4rem;
    gap: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    right: 60px;
    left: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 0;
    display: none;
    border-radius: 2px;
}

@media (min-width: 900px) {
    .timeline::before {
        display: block;
    }
}

.timeline-item {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    min-width: 200px;
    background: transparent;
    padding: 0 1rem;
}

.timeline-item .number {
    width: 70px;
    height: 70px;
    background: var(--white);
    border: 4px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 900;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.timeline-item:hover .number {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: transparent;
    color: var(--white);
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.timeline-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-item p {
    color: #64748b;
    font-size: 0.95rem;
}

/* --- About Section --- */
.about-section {
    background: var(--light-bg);
}

.about-card {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 100%);
    color: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-text {
    flex: 1;
    padding: 4rem;
    min-width: 300px;
}

.about-text h2 {
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    opacity: 0.9;
}

.about-img {
    flex: 0 0 350px;
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image-container {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2) translate(5px, 0px);
    display: block;
}



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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.privacy-note {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.privacy-note i {
    color: #10b981;
}

.btn-block {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.form-message {
    margin-top: 1.25rem;
    text-align: center;
    font-weight: 600;
    min-height: 1.5rem;
    padding: 0.75rem;
    border-radius: 8px;
}

.form-message.success { 
    color: #065f46; 
    background: #d1fae5;
}
.form-message.error { 
    color: #991b1b; 
    background: #fee2e2;
}

/* --- FAQ Section --- */
.faq-section {
    background: var(--white);
}

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

.accordion-item {
    background: var(--light-bg);
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.accordion-header {
    width: 100%;
    text-align: right;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    font-family: inherit;
}

.accordion-header:hover {
    background: rgba(37, 99, 235, 0.05);
}

.accordion-header::after {
    content: '+';
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    content: '−';
    transform: rotate(180deg);
}

.accordion-body {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: var(--white);
    color: var(--text-main);
}

.accordion-body p {
    line-height: 1.8;
}

.accordion-item.active .accordion-body {
    padding: 1.5rem 2rem;
    max-height: 1000px; /* Increased to prevent clipping */
}

/* --- Footer --- */
.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 100%);
    color: var(--white);
    padding: 5rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.footer > .container > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.footer-cta {
    margin-bottom: 3rem;
}

.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* --- Utilities & Animations --- */
.center-text { text-align: center; }
.hidden { display: none !important; }

/* Fade In Up Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { animation-delay: 0.15s; transition-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; transition-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; transition-delay: 0.45s; }

.loader {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid #ffffff;
    width: 22px;
    height: 22px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Desktop Layout - Large screens only */
@media (min-width: 1400px) {
    .hero-container {
        text-align: right;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6rem; /* Increased gap */
    }
    .hero-content {
        max-width: 50%; /* Reduced width to prevent overlap */
        margin: 0;
    }
    .hero-intro {
        margin-right: 0;
    }
    .hero-visual {
        display: block;
        flex: 1;
    }
    .tech-graphic {
        width: 100%;
        height: 400px;
    }
    .floating-card {
        display: flex; /* Show cards only on desktop */
    }
}

/* Tablet & Mobile */
@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .section-title { font-size: 1.9rem; }
    .hero-section { padding: 5rem 0 8rem; }
    .hero-section h1 { font-size: 2.2rem; }
    .hero-section h2 { font-size: 1.15rem; }
    .hero-intro { font-size: 1rem; }
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .timeline::before { display: none; }
    .timeline { gap: 1.5rem; }
    .timeline-item { margin-bottom: 1rem; }
    .about-card { flex-direction: column; }
    .about-img { 
        min-height: 200px; 
        flex: none; 
        width: 100%; 
        order: -1; 
        padding: 3rem; 
    }
    .about-text { padding: 2.5rem 2rem; }
    .benefits-wrapper { gap: 2rem; }
    .benefits-visual { height: 250px; }
    .glass-form { padding: 2rem; }
    .btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
    
    .projects-grid {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }
    
    .project-image {
        flex: none;
        height: 220px;
    }

    .project-overlay {
        opacity: 1; /* Always show tags on mobile */
        background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
        padding: 1rem;
    }

    .project-tag {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .project-content {
        padding: 1.5rem;
    }
    
    .project-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .project-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .project-meta {
        font-size: 0.9rem;
        gap: 0.4rem;
    }
    
    .project-cta .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Small mobile */
@media (max-width: 400px) {
    .hero-section h1 { font-size: 1.8rem; }
    .card { padding: 1.5rem; }
    .glass-form { padding: 1.5rem; }
}

/* Scroll Down Arrow */
.scroll-down-arrow {
    position: absolute;
    bottom: 18vw; /* Positioned above the white wave (approx 15vw high) */
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* --- Digital Diagnosis Section --- */
.diagnosis-section {
    background: linear-gradient(180deg, var(--white) 0%, #f1f5f9 50%, var(--white) 100%);
    position: relative;
}

.diagnosis-header {
    text-align: center;
    margin-bottom: 4rem;
}

.diagnosis-header h2 {
    color: var(--primary-dark);
}

.diagnosis-intro {
    font-size: 1.2rem;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto 0.75rem;
    font-weight: 500;
}

.diagnosis-subtext {
    font-size: 0.95rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.diagnosis-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

/* Right Side: Benefits */
.diagnosis-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.benefit-item {
    display: flex;
    gap: 1.25rem;
    background: var(--white);
    padding: 1.75rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    align-items: flex-start;
}

.benefit-item:hover {
    transform: translateY(-5px) translateX(-4px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.benefit-item:hover .benefit-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    transform: scale(1.05) rotate(-5deg);
}

.benefit-text h3 {
    font-size: 1.2rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    text-align: right;
}

.benefit-text p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    text-align: right;
}

/* Left Side: Interactive Questionnaire Card */
.diagnosis-card-wrapper {
    position: relative;
    width: 100%;
}

.diagnosis-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    transition: var(--transition);
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

/* Progress Bar */
.diagnosis-progress-container {
    margin-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1.5rem;
}

.diagnosis-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.diagnosis-progress-text .step-indicator {
    color: var(--primary-color);
}

.progress-bar-bg {
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Step content transitions */
.diagnosis-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    flex: 1;
}

.diagnosis-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.step-question {
    font-size: 1.35rem;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
    font-weight: 700;
    text-align: right;
    line-height: 1.4;
}

.step-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
    text-align: right;
}

/* Chips Selection */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: flex-start;
}

.chip-btn {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 0.65rem 1.2rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    user-select: none;
}

.chip-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--text-heading);
}

.chip-btn.selected {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

/* Textarea customization */
.diagnosis-step textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    resize: none;
    line-height: 1.6;
}

.diagnosis-step textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Contact step layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-grid label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-heading);
    font-size: 0.9rem;
    text-align: right;
}

.form-grid input {
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}

.form-grid input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Controls */
.diagnosis-controls {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

.diag-next-btn,
.diag-submit-btn {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.diag-prev-btn {
    flex-shrink: 0;
    min-width: 100px;
    background: transparent;
    color: var(--text-main) !important;
    border: 2px solid #cbd5e1 !important;
}

.diag-prev-btn:hover {
    background: #f1f5f9 !important;
    color: var(--text-heading) !important;
    border-color: #94a3b8 !important;
}

/* Success Card Styling */
.diagnosis-success-card {
    background: var(--white);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.03);
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-icon {
    font-size: 4.5rem;
    color: #10b981;
    margin-bottom: 1.5rem;
}

.diagnosis-success-card h2 {
    font-size: 1.8rem;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

.diagnosis-success-card p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
    max-width: 500px;
}

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
    .diagnosis-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .diagnosis-benefits {
        order: 2; /* Put value cards below questionnaire on smaller screens */
    }
}

@media (max-width: 768px) {
    .diagnosis-section {
        padding: 4rem 0;
    }
    
    .diagnosis-card {
        padding: 2.25rem 1.5rem;
        min-height: auto;
    }
    
    .step-question {
        font-size: 1.2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .chip-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .benefit-item {
        padding: 1.5rem;
    }
}

/* --- Clean Dual CTA Section --- */
.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-main);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
}

.cta-buttons-wrapper {
    margin-top: 3rem;
}

.cta-buttons-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.45);
    color: var(--white);
}

.btn-whatsapp i {
    font-size: 1.4rem;
}

/* Tablet & Mobile Styles for the Dual CTA */
@media (max-width: 768px) {
    .cta-buttons-container {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        gap: 1.25rem;
    }
    
    .cta-diag-btn,
    .cta-wa-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Segmented Lead Modal Styles */
.lead-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6); /* Slate 900 overlay with transparency */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lead-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lead-modal-container {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    text-align: center;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    direction: rtl; /* Ensure RTL layout inside modal */
}

.lead-modal-overlay.active .lead-modal-container {
    transform: translateY(0) scale(1);
}

.lead-modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #94a3b8;
    transition: var(--transition);
    line-height: 1;
}

.lead-modal-close-btn:hover {
    color: var(--text-heading);
}

.lead-modal-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: wave-hand 2.5s infinite;
    transform-origin: 70% 70%;
    display: inline-block;
}

@keyframes wave-hand {
    0% { transform: rotate( 0.0deg) }
    10% { transform: rotate(14.0deg) }
    20% { transform: rotate(-8.0deg) }
    30% { transform: rotate(14.0deg) }
    40% { transform: rotate(-4.0deg) }
    50% { transform: rotate(10.0deg) }
    60% { transform: rotate( 0.0deg) }
    100% { transform: rotate( 0.0deg) }
}

.lead-modal-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-heading);
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.lead-modal-body {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.lead-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lead-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1.1rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    width: 100%;
}

.lead-modal-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.lead-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

.lead-modal-btn-secondary {
    background: #f1f5f9;
    color: var(--text-heading);
    border: 1px solid #e2e8f0;
}

.lead-modal-btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.lead-modal-btn i {
    font-size: 1.2rem;
}


