/* styles.css */

/* Base Styles and Variables */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #4cc9f0;
    --text-color: #333333;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --background-dark: #222639;
    --white: #ffffff;
    --black: #000000;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 80px;
    --section-padding: 80px 0;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-display: swap;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul, ol {
    list-style-position: inside;
    padding-left: 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

h1 {
    font-size: 4.2rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 2.5rem;
}

h2 {
    font-size: 3.2rem;
    position: relative;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 8rem;
    height: 0.4rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
}

h3 {
    font-size: 2.4rem;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1.6rem;
}

section {
    padding: var(--section-padding);
}

.section-alt {
    background-color: var(--background-light);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Header and Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.desktop-nav ul {
    display: flex;
    gap: 2.5rem;
    padding: 0;
    list-style: none;
}

.desktop-nav a {
    font-weight: 600;
    color: var(--text-color);
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus::after {
    width: 100%;
}

/* Language Selector Styles */
.lang-container {
    position: relative;
    margin-left: 2rem;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    transition: var(--transition);
}

.lang-selector:hover {
    background-color: var(--gray-100);
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
}

.dropdown-arrow {
    transition: var(--transition);
}

.lang-selector[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 160px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    max-height: 300px;
    overflow-y: auto;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    list-style: none;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

.lang-dropdown a:hover {
    background-color: var(--gray-100);
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: var(--transition);
    z-index: 999;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 1.5rem;
}

.mobile-nav a {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    display: block;
    padding: 1rem 0;
}

/* CTA Button Styles */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.4rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font-weight: 600;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 
        transform 0.3s ease, 
        box-shadow 0.3s ease, 
        background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    border: none;
    outline: none;
    cursor: pointer;
}

.cta-button:hover, 
.cta-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    color: var(--white);
}

.cta-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(67, 97, 238, 0.2);
}

.cta-container {
    margin-top: 4rem;
    text-align: center;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: var(--white);
    padding: 10rem 0;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

.hero-text h1 {
    color: var(--white);
    background: linear-gradient(90deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
}

.subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.credibility {
    font-size: 1.6rem;
    opacity: 0.8;
    margin-bottom: 3rem;
}

.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Content Sections */
.content-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-top: 4rem;
}

.table-container {
    margin: 2.5rem 0;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
    overflow: hidden;
}

th, td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-300);
}

th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: var(--gray-100);
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1), 
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: -1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1), 
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed var(--gray-300);
}

.card ul {
    margin-top: 1.5rem;
}

.card li {
    margin-bottom: 1rem;
}

.card img {
    border-radius: var(--border-radius);
    transition: var(--transition);
    width: 100%;
    height: auto;
}

.card:hover img {
    transform: scale(1.03);
}

/* Testimonials Section */
.testimonials {
    padding: 10rem 0;
    background-color: var(--white);
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05), 
        0 10px 15px rgba(0, 0, 0, 0.03);
    text-align: left;
    position: relative;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.08), 
        0 5px 10px rgba(0, 0, 0, 0.06);
}

.quote-icon {
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 1.5rem;
}

.testimonial-card h3 {
    margin-bottom: 0.5rem;
    margin-top: 2rem;
}

.testimonial-title {
    color: var(--text-light);
    font-size: 1.4rem;
    margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
    padding: 8rem 0;
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 4rem auto 0;
}

details {
    margin-bottom: 2rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

details:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

summary {
    padding: 2rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    background-color: var(--gray-100);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

summary:hover {
    background-color: var(--gray-200);
}

summary::after {
    content: '+';
    position: absolute;
    right: 2rem;
    font-size: 2.4rem;
    color: var(--primary-color);
    transition: var(--transition);
}

details[open] summary::after {
    content: '−';
}

details p {
    padding: 2rem;
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--background-dark);
    color: var(--white);
    padding: 6rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1rem;
    width: 4rem;
    height: 0.3rem;
    background-color: var(--primary-color);
}

footer a {
    color: var(--gray-300);
    transition: var(--transition);
}

footer a:hover {
    color: var(--white);
}

.footer-col nav ul {
    list-style: none;
    padding: 0;
}

.footer-col nav li {
    margin-bottom: 1rem;
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 1.4rem;
}

.disclaimer {
    margin-bottom: 2rem;
    opacity: 0.7;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Utilities */
.desktop-only {
    display: block;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    :root {
        --container-width: 960px;
        --section-padding: 70px 0;
    }

    h1 {
        font-size: 3.8rem;
    }

    h2 {
        font-size: 3rem;
    }

    h3 {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 992px) {
    :root {
        --container-width: 720px;
        --section-padding: 60px 0;
    }

    .desktop-nav {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .desktop-only {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 3.6rem;
    }

    .hero-image {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .content-columns {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --container-width: 540px;
        --section-padding: 50px 0;
    }

    html {
        font-size: 58%;
    }

    h1 {
        font-size: 3.2rem;
        word-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
    }

    h2 {
        font-size: 2.8rem;
    }

    h3 {
        font-size: 2rem;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 2.5rem;
    }

    .testimonial-card {
        padding: 2.5rem;
    }
}

@media screen and (max-width: 576px) {
    :root {
        --container-width: 100%;
        --section-padding: 40px 0;
    }

    .container {
        padding: 0 2.5rem;
    }

    html {
        font-size: 55%;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.4rem;
    }

    .hero-section {
        padding: 6rem 0;
    }

    .subtitle {
        font-size: 1.8rem;
    }

    .hero-image img {
        max-width: 300px;
        margin: 0 auto;
    }

    .card, .testimonial-card {
        padding: 2rem;
    }

    summary {
        padding: 1.5rem;
    }

    details p {
        padding: 1.5rem;
    }
}

/* Accessibility & Performance Optimizations */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Frosted glass effect */
.frosted-glass {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.7);
}

/* Add shimmer loading effect for images */
.shimmer {
    position: relative;
    overflow: hidden;
    background: #f6f7f8;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Clip-path decorative elements */
.clip-path-shape {
    clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 75% 100%, 0% 100%);
}

/* 3D Transform on hover */
.transform-3d {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.transform-3d:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

/* Neumorphism effect */
.neumorphic {
    border-radius: 15px;
    background: #f0f0f0;
    box-shadow: 
        10px 10px 20px rgba(166, 166, 166, 0.2),
        -10px -10px 20px rgba(255, 255, 255, 0.7);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-500);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}