/* Base Styles and Variables */
:root {
    --primary-color: #4a66e0;
    --primary-dark: #3148c0;
    --secondary-color: #34d399;
    --accent-color: #f59e0b;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-alt: #f9fafb;
    --bg-dark: #1f2937;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 0.375rem;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-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 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Header and Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.desktop-nav ul {
    display: flex;
}

.desktop-nav li {
    margin-left: 2rem;
}

.desktop-nav a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.lang-selector {
    position: relative;
    margin-left: 1.5rem;
}

#lang-dropdown-btn {
    display: flex;
    align-items: center;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

#lang-dropdown-btn:hover {
    background-color: var(--bg-alt);
}

#lang-dropdown-btn img {
    margin-right: 0.5rem;
    display: inline-block;
}

#lang-dropdown-btn svg {
    margin-left: 0.5rem;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    padding: 0.5rem 0;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.lang-dropdown a:hover {
    background-color: var(--bg-alt);
}

.lang-dropdown img {
    margin-right: 0.5rem;
    display: inline-block;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 80%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.desktop-only {
    display: inline-flex;
}

/* Mobile Navigation */
#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-icon {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

.hamburger-icon::before {
    transform: translateY(-8px);
}

.hamburger-icon::after {
    transform: translateY(8px);
}

#mobile-menu-toggle.active .hamburger-icon {
    background-color: transparent;
}

#mobile-menu-toggle.active .hamburger-icon::before {
    transform: rotate(45deg);
}

#mobile-menu-toggle.active .hamburger-icon::after {
    transform: rotate(-45deg);
}

.mobile-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 300px;
}

.mobile-menu ul {
    padding: 1rem 0;
}

.mobile-menu li {
    padding: 0.5rem 1.5rem;
}

.mobile-menu a {
    color: var(--text-color);
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 500;
}

.credibility {
    font-size: 1rem;
    opacity: 0.9;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0);
}

/* Abstract Section */
.abstract-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.card-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: var(--bg-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(74, 102, 224, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
    color: var(--primary-color);
}

/* Research Section */
.research-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.research-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.research-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.5s ease;
}

.research-image:hover img {
    transform: scale(1.03);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background-color: var(--bg-alt);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Application Section */
.application-section {
    padding: 5rem 0;
    background-color: var(--bg-alt);
}

.application-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.application-list {
    margin: 1.5rem 0;
}

.application-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.application-list li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.application-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.5s ease;
}

.application-image:hover img {
    transform: perspective(1000px) rotateY(10deg);
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(74, 102, 224, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
    color: var(--primary-color);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-title {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: -0.5rem;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background-color: var(--bg-alt);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: white;
    box-shadow: var(--shadow-sm);
}

summary {
    padding: 1.25rem;
    position: relative;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    outline: none;
    transition: background-color 0.3s ease;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    content: '−';
}

details[open] summary {
    background-color: rgba(74, 102, 224, 0.05);
}

.faq-content {
    padding: 0 1.25rem 1.25rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-section .cta-button {
    background: white;
    color: var(--primary-color);
}

.cta-section .cta-button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.disclaimer {
    margin-bottom: 1.5rem;
}

.disclaimer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    text-align: center;
}

/* Animations and Effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text, .abstract-section .content-card, .feature-card, .research-content, .application-text, .testimonial-card {
    animation: fadeIn 0.8s ease-out forwards;
}

.hero-text {
    animation-delay: 0.2s;
}

/* Shimmer loading effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-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;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Frosted glass effect */
.frosted-glass {
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-content, .research-grid, .application-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }
    
    h1 {
        font-size: 2rem;
        word-break: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.3;
    }
    
    .desktop-nav, .desktop-only {
        display: none;
    }
    
    #mobile-menu-toggle {
        display: block;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .feature-card, .testimonial-card, .content-card {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .lang-selector {
        margin-left: 0.5rem;
    }
    
    #lang-dropdown-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .section-title::after {
        width: 60px;
    }
}