/* Custom CSS for Cognitive RPA Landing Page */

:root {
    --primary-color: #1A584F;
    --secondary-color: #E8EBE5;
    --text-dark: #1A584F;
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.9);
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.2);
    --border-radius: 10px;
    --transition-smooth: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.background-pattern {
    background-image: radial-gradient(circle at 25% 25%, white 2px, transparent 2px), 
                      radial-gradient(circle at 75% 75%, white 2px, transparent 2px);
    background-size: 60px 60px;
    opacity: 0.05;
    z-index: 1;
}

.hero-content {
    z-index: 10;
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.7;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.btn-hero {
    background-color: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.btn-hero:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    box-shadow: var(--shadow-heavy);
}

.hero-image {
    z-index: 10;
    position: relative;
    opacity: 0;
    transform: translateX(60px);
    animation: fadeInLeft 0.8s ease-out 0.3s forwards;
}

.image-container {
    position: relative;
    transition: var(--transition-smooth);
}

.hero-img {
    max-width: 500px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hover-scale {
    transition: var(--transition-smooth);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-3d {
    transition: var(--transition-smooth);
}

.hover-3d:hover {
    transform: scale(1.05) rotateY(5deg);
}

/* Keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
        min-height: auto;
    }
    .hero-section .container .row
    {
        min-height: auto !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 300px;
    }
}

/* Utility Classes */
.section-padding {
    padding: 80px 0;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-light);
}

.shadow-heavy-custom {
    box-shadow: var(--shadow-heavy);
}

.rounded-custom {
    border-radius: var(--border-radius);
}

.transition-smooth {
    transition: var(--transition-smooth);
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Section Styles */
.section-title {
    font-size: clamp(2rem, 5vw, 2rem);
    font-weight: 700;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.content-text p:nth-child(1) {
    animation-delay: 0.1s;
}

.content-text p:nth-child(2) {
    animation-delay: 0.2s;
}

.content-text p:nth-child(3) {
    animation-delay: 0.3s;
}

.content-img {
    max-width: 500px;
    height: auto;
    opacity: 0;
    transform: translateX(-60px);
    animation: fadeInRight 0.8s ease-out 0.3s forwards;
}

.hover-3d-reverse {
    transition: var(--transition-smooth);
}

.hover-3d-reverse:hover {
    transform: scale(1.05) rotateY(-5deg);
}

/* Why Cognitive RPA Section */
#why-cognitive-rpa {
    position: relative;
    overflow: hidden;
}

#why-cognitive-rpa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(26, 88, 79, 0.03) 50%, transparent 100%);
    pointer-events: none;
}

/* Our Capabilities Section */
#our-capabilities {
    position: relative;
}

.capabilities-pattern {
    background-image: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.02) 50%, transparent 60%);
    background-size: 200px 200px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.section-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* Capability Cards */
.capability-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

.capability-card:hover::before {
    left: 100%;
}

.capability-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.capability-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    animation: numberPop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    position: relative;
    z-index: 2;
}

.capability-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.capability-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* Card Animation Delays */
.capability-card:nth-child(1) .capability-number { animation-delay: 0.1s; }
.capability-card:nth-child(2) .capability-number { animation-delay: 0.2s; }
.capability-card:nth-child(3) .capability-number { animation-delay: 0.3s; }
.capability-card:nth-child(4) .capability-number { animation-delay: 0.4s; }
.capability-card:nth-child(5) .capability-number { animation-delay: 0.5s; }
.capability-card:nth-child(6) .capability-number { animation-delay: 0.6s; }

/* Keyframes for number animation */
@keyframes numberPop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.2) rotate(-90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Card glow effect on hover */
.capability-card:hover .capability-number {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite;
}

/* Responsive design for cards */
@media (max-width: 768px) {
    .capability-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .capability-number {
        font-size: 1.5rem;
    }
    
    .capability-title {
        font-size: 1.1rem;
    }
}

/* CTA Sections */
.cta-title {
    font-size: clamp(2rem, 4vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.btn-cta {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.btn-cta::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-in-out;
}

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

.btn-cta:hover {
    background-color: #0F766E;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(26, 88, 79, 0.4);
}

.btn-cta:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(26, 88, 79, 0.3);
}

.cta-button-container {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

/* CTA Section specific styles */
#cta-section-1 {
    position: relative;
    overflow: hidden;
}

#cta-section-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(26, 88, 79, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* CTA Section 2 - Dark Theme */
#cta-section-2 {
    position: relative;
    overflow: hidden;
}

#cta-section-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

#cta-section-2 .cta-title {
    color: white;
}

/* Enhanced Hero Button for Dark Background */
.btn-hero {
    background-color: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26, 88, 79, 0.1), transparent);
    transition: left 0.5s ease-in-out;
}

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

.btn-hero:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn-hero:active {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Industry Applications Section */
#industry-applications {
    position: relative;
    overflow: hidden;
}

#industry-applications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(26, 88, 79, 0.03) 50%, transparent 100%);
    pointer-events: none;
}

/* Industry Cards */
.industry-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(26, 88, 79, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26, 88, 79, 0.05), transparent);
    transition: left 0.5s ease-in-out;
}

.industry-card:hover::before {
    left: 100%;
}

.industry-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(26, 88, 79, 0.15);
    border-color: rgba(26, 88, 79, 0.2);
}

.industry-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    animation: numberPop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    position: relative;
    z-index: 2;
}

.industry-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.industry-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* Industry Card Animation Delays */
.industry-card:nth-child(1) .industry-number { animation-delay: 0.1s; }
.industry-card:nth-child(2) .industry-number { animation-delay: 0.2s; }
.industry-card:nth-child(3) .industry-number { animation-delay: 0.3s; }
.industry-card:nth-child(4) .industry-number { animation-delay: 0.4s; }
.industry-card:nth-child(5) .industry-number { animation-delay: 0.5s; }
.industry-card:nth-child(6) .industry-number { animation-delay: 0.6s; }

/* Card glow effect on hover */
.industry-card:hover .industry-number {
    text-shadow: 0 0 15px rgba(26, 88, 79, 0.3);
    animation: pulse 2s infinite;
}

.industry-card:hover .industry-title {
    color: #0F766E;
    transform: translateY(-2px);
}

/* Industry Card Border Animation */
.industry-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    background: linear-gradient(45deg, rgba(26, 88, 79, 0.2), transparent, rgba(26, 88, 79, 0.2)) border-box;
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    animation: borderRotate 3s linear infinite;
}

.industry-card:hover::after {
    opacity: 1;
}

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

/* Responsive design for industry cards */
@media (max-width: 768px) {
    .industry-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .industry-number {
        font-size: 1.5rem;
    }
    
    .industry-title {
        font-size: 1rem;
    }
    
    .industry-description {
        font-size: 0.9rem;
    }
}

/* Why Choose Us Section */
#why-choose-us {
    position: relative;
}

/* Reason Cards */
.reason-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
}

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

.reason-card:hover::before {
    left: 100%;
}

.reason-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.reason-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    animation: numberPop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    position: relative;
    z-index: 2;
}

.reason-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.reason-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* Reason Card Animation Delays */
.reason-card:nth-child(1) .reason-number { animation-delay: 0.1s; }
.reason-card:nth-child(2) .reason-number { animation-delay: 0.2s; }
.reason-card:nth-child(3) .reason-number { animation-delay: 0.3s; }
.reason-card:nth-child(4) .reason-number { animation-delay: 0.4s; }
.reason-card:nth-child(5) .reason-number { animation-delay: 0.5s; }
.reason-card:nth-child(6) .reason-number { animation-delay: 0.6s; }

/* Card glow effect on hover */
.reason-card:hover .reason-number {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite;
}

/* Advanced card effects */
.reason-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.3s ease;
    animation: cornerGlow 3s ease-in-out infinite;
}

.reason-card:hover::after {
    opacity: 0.3;
    width: 80px;
    height: 80px;
}

@keyframes cornerGlow {
    0%, 100% { 
        opacity: 0.1; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.2; 
        transform: scale(1.2); 
    }
}

/* Pulsing border effect */
.reason-card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.reason-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { 
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }
    50% { 
        border-color: rgba(255, 255, 255, 0.6);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    }
}

/* Responsive design for reason cards */
@media (max-width: 768px) {
    .reason-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .reason-number {
        font-size: 1.5rem;
    }
    
    .reason-title {
        font-size: 1rem;
    }
    
    .reason-description {
        font-size: 0.9rem;
    }
}

/* FAQ Section */
#faq {
    position: relative;
}

.faq-container {
    max-width: 100%;
}

/* FAQ Items */
.faq-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.faq-item.loaded {
    opacity: 1;
    transform: translateY(0);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* FAQ Question */
.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
    position: relative;
    user-select: none;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    padding-right: 1rem;
}

.faq-question:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* FAQ Icon */
.faq-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.faq-icon i {
    color: white;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.faq-item.active .faq-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
}

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

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background: rgba(255, 255, 255, 0.05);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    padding-top: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.faq-item.active .faq-answer p {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ Item Animation Delays */
.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }

/* FAQ Hover Effects */
.faq-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease-in-out;
}

.faq-question:hover::before {
    left: 100%;
}

/* Accordion Animation */
.faq-item.active {
    border-color: rgba(255, 255, 255, 0.3);
}

.faq-item.active .faq-question {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design for FAQ */
@media (max-width: 768px) {
    .faq-question {
        padding: 1.2rem 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.2rem 1.5rem;
    }
    
    .faq-icon {
        width: 25px;
        height: 25px;
    }
    
    .faq-icon i {
        font-size: 12px;
    }
}

/* Business Benefits Section */
#business-benefits {
    position: relative;
}

/* Benefit Cards */
.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 1.8rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
}

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

.benefit-card:hover::before {
    left: 100%;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.benefit-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    animation: numberPop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    position: relative;
    z-index: 2;
}

.benefit-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.benefit-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* Benefit Card Animation Delays */
.benefit-card:nth-child(1) .benefit-number { animation-delay: 0.1s; }
.benefit-card:nth-child(2) .benefit-number { animation-delay: 0.2s; }
.benefit-card:nth-child(3) .benefit-number { animation-delay: 0.3s; }
.benefit-card:nth-child(4) .benefit-number { animation-delay: 0.4s; }

/* Benefits Image */
.benefits-img {
    max-width: 400px;
    height: auto;
    opacity: 0;
    transform: translateX(60px);
    animation: fadeInLeft 0.8s ease-out 0.5s forwards;
}

/* Card glow effect on hover */
.benefit-card:hover .benefit-number {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite;
}

/* Responsive design for benefit cards */
@media (max-width: 768px) {
    .benefit-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .benefit-number {
        font-size: 1.5rem;
    }
    
    .benefit-title {
        font-size: 1rem;
    }
    
    .benefit-description {
        font-size: 0.9rem;
    }
}

/* Technology Stack Section */
#technology-stack {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Floating Particles Background */
.floating-particles {
    pointer-events: none;
    z-index: 1;
}

.floating-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: rgba(26, 88, 79, 0.2);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-particle:nth-child(odd) {
    animation-direction: reverse;
}

/* Gradient Overlay */
.gradient-overlay {
    background: radial-gradient(circle at 20% 80%, rgba(26, 88, 79, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(26, 88, 79, 0.1) 0%, transparent 50%);
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background: radial-gradient(circle at 20% 80%, rgba(26, 88, 79, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(26, 88, 79, 0.1) 0%, transparent 50%);
    }
    50% {
        background: radial-gradient(circle at 80% 80%, rgba(26, 88, 79, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 20% 20%, rgba(26, 88, 79, 0.1) 0%, transparent 50%);
    }
}

/* Tech Title with Gradient Text */
.tech-title {
    font-size: clamp(2rem, 5vw, 2rem);
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.gradient-text {
    background: linear-gradient(90deg, #1A584F 40%, rgba(26, 88, 79, 0.7) 50%, #1A584F 60%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 3s linear infinite;
}

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

/* Tech Cards */
.tech-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    perspective: 1000px;
}

.tech-card:hover {
    transform: translateY(-10px) rotateY(5deg) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(26, 88, 79, 0.2);
}

/* Tech Card Glow Effect */
.tech-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(26, 88, 79, 0.3), rgba(26, 88, 79, 0.1), rgba(26, 88, 79, 0.3));
    border-radius: var(--border-radius);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    filter: blur(4px);
    animation: glowPulse 2s ease-in-out infinite;
}

.tech-card:hover .tech-glow {
    opacity: 1;
}

@keyframes glowPulse {
    0%, 100% {
        background: linear-gradient(45deg, rgba(26, 88, 79, 0.3), rgba(26, 88, 79, 0.1), rgba(26, 88, 79, 0.3));
    }
    50% {
        background: linear-gradient(45deg, rgba(26, 88, 79, 0.1), rgba(26, 88, 79, 0.3), rgba(26, 88, 79, 0.1));
    }
}

/* Animated Border */
.tech-border {
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 2px;
    background: linear-gradient(45deg, transparent, rgba(26, 88, 79, 0.1), transparent);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: borderMove 3s linear infinite;
}

.tech-card:hover .tech-border {
    opacity: 1;
}

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

/* Tech Card Content */
.tech-content {
    padding: 2rem;
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tech-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    animation: numberPop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    position: relative;
}

.tech-number::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 88, 79, 0.3) 0%, transparent 70%);
    opacity: 0;
    animation: numberGlow 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes numberGlow {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.5); }
}

.tech-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    position: relative;
}

.tech-card-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transition: width 0.3s ease;
}

.tech-card:hover .tech-card-title::after {
    width: 100%;
}

/* Tech List */
.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.tech-list li {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInFromLeft 0.5s ease-out forwards;
    transition: var(--transition-smooth);
}

.tech-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.tech-list li:hover {
    transform: translateX(5px);
    letter-spacing: 0.02em;
}

.tech-list li:hover::before {
    background-color: #0F766E;
    transform: translateY(-50%) scale(1.5);
}

/* Animation delays for list items */
.tech-list li:nth-child(1) { animation-delay: 0.1s; }
.tech-list li:nth-child(2) { animation-delay: 0.2s; }
.tech-list li:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInFromLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Corner Accent */
.tech-corner-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(26, 88, 79, 0.3) 0%, transparent 70%);
    opacity: 0.1;
    transition: opacity 0.3s ease;
    animation: cornerPulse 3s ease-in-out infinite;
}

.tech-card:hover .tech-corner-accent {
    opacity: 0.2;
}

@keyframes cornerPulse {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.2); }
}

/* Tech Card Animation Delays */
.tech-card:nth-child(1) .tech-number { animation-delay: 0.1s; }
.tech-card:nth-child(2) .tech-number { animation-delay: 0.2s; }
.tech-card:nth-child(3) .tech-number { animation-delay: 0.3s; }
.tech-card:nth-child(4) .tech-number { animation-delay: 0.4s; }

/* Bottom Accent Line */
.accent-line {
    height: 4px;
    width: 60%;
    background-color: rgba(26, 88, 79, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: scaleX(0);
    animation: lineExpand 1.5s ease-out 0.5s forwards;
}

@keyframes lineExpand {
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

.accent-line-fill {
    height: 100%;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    transform: translateX(-100%);
    animation: lineFill 3s ease-in-out infinite;
}

@keyframes lineFill {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Responsive Design for Tech Cards */
@media (max-width: 768px) {
    .tech-card {
        margin-bottom: 1.5rem;
    }
    
    .tech-content {
        padding: 1.5rem;
    }
    
    .tech-number {
        font-size: 2rem;
    }
    
    .tech-card-title {
        font-size: 1rem;
    }
    
    .tech-list li {
        font-size: 0.9rem;
    }
    
    .accent-line {
        width: 80%;
    }
}
