/* styles.css */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #6c63ff;
    --accent-color: #ff6b6b;
    --text-color: #333333;
    --text-light: #666666;
    --background-light: #f9f9f9;
    --background-dark: #2c3e50;
    --white: #ffffff;
    --light-gray: #eeeeee;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --gradient-primary: linear-gradient(135deg, #6c63ff 0%, #4a6fa5 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

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(--text-color);
    overflow-x: hidden;
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-display: swap;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    background: var(--gradient-primary);
    -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.5rem, 4vw, 2.25rem);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 5rem 0;
    position: relative;
}

section:nth-child(odd) {
    background-color: var(--background-light);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    z-index: 101;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Navigation Styles */
.desktop-nav {
    display: flex;
}

.desktop-nav ul {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    font-weight: 600;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 101;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: auto;
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: top 0.3s ease;
    padding: 5rem 2rem 2rem;
}

.mobile-nav.active {
    top: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-nav a {
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    padding: 0.5rem 0;
}

.mobile-cta {
    margin-top: 1rem;
}

body.menu-open {
    overflow: hidden;
}

/* Language Selector Styles */
.language-selector {
    position: relative;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.language-button:hover {
    background-color: var(--light-gray);
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.language-button[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    width: 200px;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    z-index: 102;
}

.language-dropdown.active {
    max-height: 400px;
    visibility: visible;
    opacity: 1;
    overflow-y: auto;
}

.language-dropdown li {
    border-bottom: 1px solid var(--light-gray);
}

.language-dropdown li:last-child {
    border-bottom: none;
}

.language-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.language-dropdown a:hover {
    background-color: var(--light-gray);
}

.language-dropdown .flag-icon {
    width: 24px;
    height: 18px;
}

/* CTA Button Styles */
.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-accent);
    color: var(--white) !important;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.cta-button:active {
    transform: translateY(-1px);
}

.desktop-only {
    display: inline-block;
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 5rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    max-width: 550px;
}

.hero h1, .hero p, .hero .subtitle {
    color: var(--white);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.hero .subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-image img {
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateZ(0);
    width: 100%;
    max-width: 500px;
    height: auto;
    z-index: 1;
}

/* Card Styles */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Feature Styles */
.feature-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.feature-container:last-child {
    margin-bottom: 0;
}

.feature-container.reverse {
    grid-template-columns: 1fr 1fr;
}

.feature-content {
    max-width: 500px;
}

.feature-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.feature-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.feature-image:hover img {
    transform: scale(1.05);
}

/* Benefits Styles */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    transition: transform 0.3s ease;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
    transition: transform 0.5s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card:hover::before {
    transform: scale(3);
}

.benefit-icon {
    margin: 0 auto 1.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--primary-color);
}

/* Testimonial Styles */
.testimonial-container {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    flex: 1;
    position: relative;
}

.testimonial-card::before {
    content: """;
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: var(--light-gray);
    z-index: 0;
    line-height: 1;
    opacity: 0.3;
}

.testimonial-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-info {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* FAQ Styles */
.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

details {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: var(--white);
}

summary {
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
    list-style: none;
    font-weight: 600;
    display: flex;
    align-items: center;
}

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: transform 0.3s ease;
}

details[open] summary::after {
    content: '−';
}

details[open] summary {
    border-bottom: 1px solid var(--light-gray);
}

details p {
    padding: 1.5rem;
    margin: 0;
}

details h3 {
    margin: 0;
    padding-right: 1.5rem;
}

/* Conclusion Styles */
.conclusion-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-container {
    margin: 2rem 0;
    text-align: center;
}

/* Footer Styles */
footer {
    background-color: var(--background-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.disclaimer {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Visual Effects */
.shimmer-container {
    position: relative;
    overflow: hidden;
}

.shimmer-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(0%); }
    100% { transform: translateX(200%); }
}

.frosted-glass {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.frosted-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: inherit;
    z-index: 0;
}

.frosted-glass img {
    position: relative;
    z-index: 1;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    section {
        padding: 4rem 0;
    }
    
    .feature-container, .feature-container.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-content {
        max-width: 100%;
    }
    
    .testimonial-container {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .container {
        width: 95%;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .card-container, .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        line-height: 1.3;
    }
    
    h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    h3 {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
    }
}

@media screen and (max-width: 480px) {
    section {
        padding: 3rem 0;
    }
    
    .container {
        width: 90%;
    }
    
    .card, .benefit-card, .testimonial-card {
        padding: 1.5rem;
    }
    
    .header-container {
        padding: 0 0.5rem;
    }
    
    .hero {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Additional Accessibility Improvements */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.cta-button:focus, .language-button:focus, .hamburger-menu:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* GPU Acceleration for Animations */
.card, .benefit-card, .feature-image, .testimonial-card, .hero-image, .frosted-glass {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}