html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    overflow-y: scroll;
    position: static;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: transparent;
    padding: 15px;
    width: 100%;
    transition: background 0.5s ease-in-out, backdrop-filter 0.5s ease-in-out, -webkit-backdrop-filter 0.5s ease-in-out;
}

header.scrolled {
    background: linear-gradient(125deg, rgba(2, 6, 23, 0.8), rgba(15, 23, 42, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header .container {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0;
    margin: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.logo img {
    height: 50px;
    width: auto;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

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

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

.btn-outline {
    border: 2px solid var(--light);
    color: var(--light);
}

.btn-outline:hover {
    background-color: var(--light);
    color: var(--dark);
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 0 4rem;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--light), #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--light-gray);
    margin-bottom: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero-image {
    flex: 1;
    max-width: 550px;
    position: relative;
}

.certificate-mockup {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.3s ease;
}

.certificate-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0) 70%);
    top: 0;
    left: 0;
    z-index: -1;
}

.features {
    padding: 6rem 0;
    position: relative;
}

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

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

.section-title p {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

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

.feature-card {
    padding: 2rem;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

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

.feature-card p {
    color: var(--light-gray);
    line-height: 1.6;
}

.how-it-works {
    padding: 6rem 0;
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.9), transparent);
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    position: relative;
}

.steps::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.step-content {
    text-align: center;
}

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

.step-content p {
    color: var(--gray);
    font-size: 0.875rem;
}

.testimonials {
    padding: 6rem 0;
    text-align: center;
}

.testimonial-wrapper {
    position: relative;
    max-width: 600px;
    margin: 3rem auto 2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    padding: 2rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    max-height: 350px;
    box-sizing: border-box;
}

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

.testimonial-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    z-index: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--light-gray);
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow-y: auto;
    flex: 1;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.author-info h4 {
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--gray);
    font-size: 0.875rem;
}

.pricing {
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

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

.pricing-card {
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    position: relative;
}

.pricing-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-bottom-left-radius: 0.5rem;
}

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

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light);
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray);
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-card ul li {
    margin-bottom: 0.75rem;
    color: var(--light-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-card ul li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

.cta {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(to top, transparent, rgba(15, 23, 42, 0.9), transparent);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta p {
    font-size: 1.25rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Left-align buttons in hero section on desktop */
.hero .btn-group {
    justify-content: flex-start;
}

/* Center buttons in hero section on mobile */
@media (max-width: 960px) {
    .hero .btn-group {
        justify-content: center;
    }
}

footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .container {
    max-width: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo p {
    margin-top: 1rem;
    color: var(--gray);
    max-width: 300px;
}

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

.footer-links-column h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links-column ul {
    list-style: none;
}

.footer-links-column ul li {
    margin-bottom: 0.5rem;
}

.footer-links-column ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links-column ul li a:hover {
    color: var(--primary);
}

.copyright {
    margin-top: 3rem;
    text-align: center;
    color: var(--gray);
    font-size: 0.875rem;
}

.testimonial-navigation {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

.testimonial-navigation button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-navigation button:hover {
    background-color: var(--primary);
    transform: scale(1.1);
}

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

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background-color: var(--primary);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
    }
    .hero-image {
        max-width: 100%;
        margin-top: 2rem;
    }
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-links-column {
        width: 100%;
    }
    .testimonials-carousel {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overflow: hidden;
        display: flex;
        gap: 0;
        padding: 0;
    }
    .testimonial-card {
        flex: 0 0 100%;
        scroll-snap-align: start;
        box-sizing: border-box;
        max-height: 350px;
        overflow-y: auto;
    }
    nav {
        display: none;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 4rem 0;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .steps {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    .steps::before {
        display: none;
    }
    .footer-content {
        flex-direction: column;
    }
}
