/* Base Styles & Variables */
:root {
    /* Light Theme Variables - Elegant Design */
    --primary-color: #4361ee;
    --secondary-color: #3a86ff;
    --accent: #06d6a0;
    --text-color: #2b2d42;
    --text-light: #6c757d;
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fd;
    --border-color: #e6e9f0;
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --error: #ef476f;
    --success: #06d6a0;
    --gradient-primary: linear-gradient(135deg, #4361ee, #3a86ff);
    --gradient-accent: linear-gradient(135deg, #06d6a0, #4cc9b0);
}

/* Dark Theme Variables */
.dark-theme {
    --primary-color: #4f84ff;
    --secondary-color: #4cd47c;
    --text-color: #f0f2f5;
    --text-light: #c0c5d0;
    --bg-color: #121418;
    --bg-secondary: #1c1f26;
    --border-color: #2a2e39;
    --card-bg: #1c1f26;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.accent {
    color: var(--accent);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
    font-size: 1rem;
}

.primary-btn {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.primary-btn:hover {
    background: transparent;
    color: var(--primary-color);
}

.secondary-btn {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: white;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 2rem 0;
}

.cta-content .cta-buttons {
    justify-content: center;
}

/* Header Styles */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 2px 0;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    nav ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-color);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 30px;
        z-index: 1000;
        transition: right 0.3s ease;
        align-items: flex-start;
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        margin: 1.5rem 0;
        width: 100%;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.theme-toggle .fa-sun {
    display: none;
}

.dark-theme .theme-toggle .fa-moon {
    display: none;
}

.dark-theme .theme-toggle .fa-sun {
    display: block;
    color: #ffd700;
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, rgba(55, 114, 255, 0.1), rgba(69, 179, 107, 0.05));
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Security Badges */
.security-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.security-badge:hover {
    transform: translateY(-3px);
}

.security-badge i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.security-badge span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.hero-stats {
    display: flex;
    margin-top: 2rem;
    text-align: center;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 120px;
    margin: 1rem 0;
}

.stat-item h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.stat-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* Trust Badges */
.trust-badges {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.badges-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.badge {
    text-align: center;
}

.badge img {
    height: 80px;
    margin-bottom: 10px;
    filter: grayscale(10%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.badge:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.badge p {
    font-weight: 600;
    margin: 0;
}

/* Partners Section */
.partners {
    padding: 4rem 0;
    background: var(--bg-color);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.partner img {
    max-width: 130px;
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--bg-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* How It Works */
.how-it-works {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-btn {
    width:50%;
    background: transparent;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active:after {
    width: 100%;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

.step-content p {
    margin-bottom: 0;
}

.infographic {
    text-align: center;
    margin-top: 2rem;
}

.infographic img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Use Cases */
.use-cases {
    padding: 5rem 0;
    background: var(--bg-color);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.use-case-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.use-case-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.use-case-card h3, 
.use-case-card p,
.use-case-card .user {
    padding: 0 1.5rem;
}

.use-case-card h3 {
    margin-top: 1.5rem;
}

.use-case-card .user {
    display: block;
    font-style: italic;
    color: var(--text-light);
    padding-bottom: 1.5rem;
}

/* Statistics Section */
.statistics {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.testimonial-carousel {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.testimonial-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 300px; /* Fixed height for consistency */
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.testimonial-item {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background: var(--card-bg);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 10px;
    transform: translateX(100%);
}

.testimonial-item.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 10;
}

.testimonial-item.prev {
    opacity: 0;
    transform: translateX(-100%);
}

.testimonial-item.next {
    opacity: 0;
    transform: translateX(100%);
}

.rating {
    color: #ffc107;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    overflow-y: auto;
    max-height: 150px;
    padding-right: 10px;
}

.testimonial-text::-webkit-scrollbar {
    width: 6px;
}

.testimonial-text::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.testimonial-text::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.author-details h4 {
    margin-bottom: 0.2rem;
}

.author-details p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

.testimonial-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.testimonial-prev, 
.testimonial-next {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin: 0 1rem;
}

.testimonial-prev:hover, 
.testimonial-next:hover {
    transform: scale(1.1);
    background-color: var(--secondary-color);
}

.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.testimonial-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.testimonial-indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .testimonial-wrapper {
        height: 350px;
    }
    
    .testimonial-text {
        max-height: 180px;
    }
}

@media (max-width: 480px) {
    .testimonial-wrapper {
        height: 400px;
    }
    
    .testimonial-text {
        max-height: 220px;
    }
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://placehold.co/1920x1080?text=DeFi') no-repeat center/cover;
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-light);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-info li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.newsletter h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    background: var(--bg-color);
    color: var(--text-color);
}

.newsletter-form button {
    padding: 0.8rem 1.2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /*nav ul {
        display: none;
    }*/
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 1rem;
    }
    
    .testimonial-slide {
        padding: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-author img {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

.faq-section {
    background: var(--bg-secondary);
    padding: 5rem 0;
    margin: 1.5rem 0;

}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.hidden{
    display: none!important;
}