/* styles.css */
:root {
    --primary-color: #2a86e5;
    --primary-dark: #1c6abf;
    --primary-light: #5aa3ff;
    --secondary-color: #19b88d;
    --accent-color: #f56565;
    --dark-color: #1a202c;
    --light-color: #f7fafc;
    --gray-color: #718096;
    --light-gray: #e2e8f0;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-hover: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Button Styles */
.cta-button {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hover);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:active {
    transform: translateY(-1px);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(42, 134, 229, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(42, 134, 229, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(42, 134, 229, 0);
    }
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    padding-left: 0.5rem;
}

.logo::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    background: var(--gradient);
    border-radius: 2px;
}

.header-right {
    display: flex;
    align-items: center;
}

.desktop-nav {
    margin-right: 2rem;
}

.desktop-nav ul {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* Language Selector */
.language-selector {
    position: relative;
    margin-right: 2rem;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--dark-color);
    font-family: inherit;
    font-weight: 500;
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 180px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 0.5rem 0;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.language-dropdown.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.language-dropdown li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.language-dropdown li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1010;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--dark-color);
    position: absolute;
    transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: white;
    z-index: 1000;
    overflow: hidden;
    transition: height 0.4s ease;
}

.mobile-menu.active {
    height: 100vh;
    overflow-y: auto;
    padding-top: 100px;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-menu a {
    font-size: 1.25rem;
    font-weight: 600;
}

.mobile-menu .cta-button {
    margin-top: 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2a86e5, #19b88d);
    color: white;
    padding: 5rem 0;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1, .hero-text .subtitle, .hero-text .credibility {
    color: white;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.hero-text h1::after {
    display: none;
}

.subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.credibility {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: white;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    perspective: 1000px;
    height: 300px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: var(--border-radius);
}

.card-front {
    background-color: white;
}

.card-back {
    background: var(--gradient);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back p {
    margin-bottom: 0;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.feature-grid {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.feature {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.feature-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-image:hover img {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.reverse {
    direction: rtl;
}

.reverse .feature-content {
    direction: ltr;
}

.reverse .feature-image {
    direction: ltr;
}

.progress-container {
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.progress-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-item span {
    flex: 0 0 110px;
}

.progress-item span:last-child {
    flex: 0 0 50px;
    text-align: right;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 1rem;
}

.progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    animation: progressAnimation 2s ease-out;
}

@keyframes progressAnimation {
    from {
        width: 0;
    }
}

/* Benefits Section */
.benefits {
    padding: 5rem 0;
    background-color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.benefit-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-card:hover::before {
    height: 8px;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background: rgba(42, 134, 229, 0.1);
    color: var(--primary-color);
}

.benefit-card h3 {
    margin-bottom: 1rem;
}

.benefit-card p {
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: rgba(42, 134, 229, 0.15);
}

.testimonial-content {
    margin-top: 1.5rem;
}

.testimonial h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.testimonial-location {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Comparison Section */
.comparison {
    padding: 5rem 0;
    background-color: white;
}

.comparison-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.comparison-text h3 {
    margin-top: 2rem;
}

.comparison-text h3:first-child {
    margin-top: 0;
}

.comparison-chart {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

thead {
    background: var(--gradient);
    color: white;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

tr:last-child td {
    border-bottom: none;
}

th {
    font-weight: 600;
}

tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.cta-container {
    text-align: center;
    margin-top: 3rem;
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1rem;
    overflow: hidden;
}

summary {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    list-style: none;
    transition: var(--transition);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

details[open] summary::after {
    content: "-";
}

details[open] summary {
    background-color: #f9fafb;
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
}

/* Conclusion Section */
.conclusion {
    padding: 5rem 0;
    background-color: white;
}

.conclusion-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.final-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Footer Section */
footer {
    background-color: var(--dark-color);
    color: white;
    padding-top: 3rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-column h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.copyright {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Media Queries */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .desktop-nav, .desktop-only {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .language-selector {
        margin-right: 1rem;
    }
    
    .feature-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .reverse {
        direction: ltr;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .card {
        height: auto;
    }
    
    .card-inner {
        transform-style: flat;
    }
    
    .card:hover .card-inner {
        transform: none;
    }
    
    .card-front, .card-back {
        position: relative;
        height: auto;
    }
    
    .card-back {
        display: none;
    }
    
    .progress-item span:first-child {
        flex: 0 0 90px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        line-height: 1.3;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .benefit-card, .testimonial {
        padding: 1.5rem;
    }
    
    .hero-content, .feature {
        gap: 2rem;
    }
}

/* Animation & Effects */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer-effect {
    background: linear-gradient(to right, #f6f7f8 8%, #edeef1 18%, #f6f7f8 33%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* Frosted Glass Effect */
.frosted-glass {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Clip Path Animation */
.clip-path-animation {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    animation: revealAnimation 1s forwards;
}

@keyframes revealAnimation {
    to {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

/* Neumorphism Effect */
.neumorphic {
    border-radius: 15px;
    background: #f0f0f0;
    box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
}

/* Text Gradient Animation */
.animated-gradient-text {
    background-size: 200% auto;
    background-image: linear-gradient(to right, #2a86e5 0%, #19b88d 50%, #2a86e5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientText 3s linear infinite;
}

@keyframes gradientText {
    to {
        background-position: 200% center;
    }
}

/* 3D Transform on Hover */
.transform-3d {
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.transform-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* Accessibility Improvements */
.cta-button:focus, a:focus, button:focus {
    outline: 3px solid rgba(42, 134, 229, 0.5);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}