/* styles.css */

/* ===== Base Styles ===== */
:root {
    --primary-color: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #4338CA;
    --secondary-color: #9333EA;
    --text-color: #1F2937;
    --text-light: #6B7280;
    --background-color: #FFFFFF;
    --background-alt: #F9FAFB;
    --border-color: #E5E7EB;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    --neutral-50: #F9FAFB;
    --neutral-100: #F3F4F6;
    --neutral-200: #E5E7EB;
    --neutral-300: #D1D5DB;
    --neutral-400: #9CA3AF;
    --neutral-500: #6B7280;
    --neutral-600: #4B5563;
    --neutral-700: #374151;
    --neutral-800: #1F2937;
    --neutral-900: #111827;
    --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-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;
}

* {
    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;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--neutral-900);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
    background: linear-gradient(to right, var(--primary-dark), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin-top: 0.5rem;
    border-radius: var(--radius-full);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--neutral-700);
    margin-bottom: 1rem;
}

.credibility {
    font-size: 1rem;
    color: var(--neutral-500);
    font-style: italic;
    margin-bottom: 2rem;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Container and Grid Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .two-column {
        grid-template-columns: 1fr 1fr;
    }
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Header Styles */
header {
    background-color: var(--background-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Navigation */
.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: block;
    }
    
    .desktop-nav ul {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 1.5rem;
    }
    
    .desktop-nav a {
        color: var(--neutral-700);
        font-weight: 500;
        padding: 0.5rem 0;
        position: relative;
    }
    
    .desktop-nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
        transition: width 0.3s ease;
    }
    
    .desktop-nav a:hover::after, .desktop-nav a:focus::after {
        width: 100%;
    }
}

/* Mobile Navigation */
.hamburger {
    display: block;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 102;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--neutral-800);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger span:first-child {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:last-child {
    bottom: 0;
}

.hamburger.active span:first-child {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:last-child {
    transform: translateY(-11px) rotate(-45deg);
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
}

.mobile-nav {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background: var(--background-color);
    padding: 80px 0 2rem;
    z-index: 101;
    box-shadow: var(--shadow-md);
    transition: top 0.3s ease;
}

.mobile-nav.active {
    top: 0;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    margin: 0;
}

.mobile-nav a {
    display: block;
    padding: 1rem 0;
    text-align: center;
    font-size: 1.2rem;
    color: var(--neutral-800);
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a:hover, .mobile-nav a:focus {
    color: var(--primary-color);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--neutral-700);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.lang-btn:hover {
    color: var(--primary-color);
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    background: var(--background-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--neutral-700);
    transition: background-color 0.3s ease;
    font-size: 0.875rem;
}

.dropdown-menu a:hover {
    background-color: var(--neutral-100);
    color: var(--primary-color);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
}

.cta-button:hover, .cta-button:focus {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: white;
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .desktop-only {
        display: inline-block;
    }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background-color: var(--background-alt);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    padding: 6rem 0;
    color: white;
}

.hero-section h1,
.hero-section .subtitle,
.hero-section .credibility {
    color: white;
}

.hero-section h1 {
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Card Styles */
.card {
    background-color: var(--background-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

/* Image-Text Block */
.image-text-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.image-text-block:last-child {
    margin-bottom: 0;
}

.image-text-block .image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

@media (min-width: 768px) {
    .image-text-block {
        grid-template-columns: 1fr 1fr;
    }
    
    .image-text-block.reverse {
        grid-template-columns: 1fr 1fr;
    }
    
    .image-text-block.reverse .image {
        order: -1;
    }
}

/* Benefits Cards */
.benefit-card {
    background-color: var(--background-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.benefit-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.benefit-card .icon {
    margin-bottom: 1.5rem;
}

/* Pricing Table */
.pricing-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 768px) {
    .pricing-content {
        grid-template-columns: 1fr 1fr;
    }
}

.pricing-table {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

table tr:last-child td {
    border-bottom: none;
}

table tbody tr {
    background-color: white;
    transition: background-color 0.3s ease;
}

table tbody tr:hover {
    background-color: var(--neutral-100);
}

.pricing-cta {
    margin-top: 2rem;
    text-align: center;
    grid-column: 1 / -1;
}

/* Testimonial Cards */
.testimonial-card {
    background-color: var(--background-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.testimonial-icon {
    margin-bottom: 1.5rem;
}

.testimonial-content {
    flex: 1;
}

.testimonial-content p {
    font-style: italic;
    color: var(--neutral-700);
    margin-bottom: 1.5rem;
}

.testimonial-content h3 {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.testimonial-content .location {
    color: var(--neutral-500);
    font-size: 0.875rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background-color: white;
}

summary {
    cursor: pointer;
    padding: 1.25rem;
    font-weight: 600;
    color: var(--neutral-800);
    background-color: white;
    position: relative;
    list-style: 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%);
    transition: transform 0.3s ease;
}

details[open] summary {
    background-color: var(--neutral-50);
}

details[open] summary::after {
    content: '−';
}

.faq-content {
    padding: 0 1.25rem 1.25rem;
}

/* Conclusion Section */
.conclusion-content {
    max-width: 800px;
    margin: 0 auto;
}

.final-cta {
    margin-top: 2.5rem;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--neutral-900);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-col h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-col p {
    color: var(--neutral-400);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--neutral-400);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--neutral-800);
}

.disclaimer {
    font-size: 0.875rem;
    color: var(--neutral-500);
    margin-bottom: 1rem;
}

.copyright {
    font-size: 0.875rem;
    color: var(--neutral-500);
    text-align: center;
}

/* Animations and Effects */
@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .benefit-card, .testimonial-card {
    animation: fadeIn 0.5s ease forwards;
}

.card:nth-child(2), .benefit-card:nth-child(2), .testimonial-card:nth-child(2) {
    animation-delay: 0.1s;
}

.card:nth-child(3), .benefit-card:nth-child(3), .testimonial-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.3;
    }
    
    h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    h3 {
        font-size: clamp(1.125rem, 3vw, 1.5rem);
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-image img {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .card, .benefit-card, .testimonial-card {
        padding: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility Enhancements */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Advanced Visual Effects */
.lang-btn:hover, .dropdown-menu a:hover {
    transform: translateY(-1px);
}

.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cta-button:hover::before {
    transform: translateX(100%);
}

/* Frosted Glass Effect */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

/* Clip Path Effects */
.hero-section {
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* GPU Acceleration */
.card, .benefit-card, .testimonial-card, .cta-button, .hero-image img {
    will-change: transform;
    backface-visibility: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-400);
}