/* API Page Styles - Based on Company Websites */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0091ff;
    --dark: #000000;
    --light: #ffffff;
    --gray: #666;
    --card-bg: #fafafa;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter Tight', sans-serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    background: var(--dark);
}

/* Hero Section */
.api-hero {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--dark);
    background-image: 
        radial-gradient(circle at center, transparent 0%, var(--dark) 70%),
        linear-gradient(rgba(41, 43, 41, 0.7) .1em, transparent .1em), 
        linear-gradient(90deg, rgba(40, 43, 40, 0.7) .1em, transparent .1em);
    background-size: 100% 100%, 3em 3em, 3em 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
}

.api-hero-container {
    max-width: 1400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.api-hero-header {
    text-align: center;
    max-width: 900px;
}

.api-hero-subtitle {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.api-hero-title {
    font-size: 5rem;
    font-weight: 400;
    color: var(--light);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.api-hero-subtext {
    font-size: 1.3rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.api-hero-subtext span {
    font-weight: 600;
    color: var(--primary);
}

.api-hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.api-cta {
    background: var(--light);
    color: var(--dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.api-cta:hover {
    transform: scale(1.05);
}

.api-learn-more {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--light);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: color 1s ease;
    overflow: hidden;
    will-change: transform;
    cursor: pointer;
}

.api-learn-more::before {
    content: '';
    inset: 0;
    height: 100%;
    width: 100%;
    background: white;
    position: absolute;
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 1s ease;
    z-index: -1;
    will-change: clip-path;
}

.api-learn-more:hover::before {
    clip-path: circle(100% at 50% 50%);
}

.api-learn-more:hover {
    color: black;
}

        .main {
            min-height: 100vh;
            width: 100%;
            display: grid;
            place-items: center;
            background:rgb(9,9,9);
            position: relative;
        }
        .line-1 {
            height:1px;
            width: 100%;
            position: absolute;
            top:25%;
            background:#202020;
            z-index: 0;
        }
        .line-2 {
            height:100%;
            width: 1px;
            position: absolute;
            left:10%;
            background:#202020;
        }
        .line-3 {
            height:100%;
            width: 1px;
            position: absolute;
            right:10%;
            background:#202020;
        }

/* Code Demo Section */
.code-demo-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(100px);
}

.code-demo-header {
    background: #2d2d2d;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3d3d3d;
}

.code-demo-label {
    color: #808080;
    font-size: 0.875rem;
    font-weight: 500;
}

.code-demo-filename {
    color: #0091ff;
    font-size: 0.875rem;
}

.code-demo {
    margin: 0;
    padding: 0;
    max-height: 600px;
    overflow-y: auto;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-demo::-webkit-scrollbar {
    width: 8px;
}

.code-demo::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.code-demo::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
}

.code-demo::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

/* API Features Section */
.api-features-section {
    background: var(--light);
    padding: 8rem 5%;
}

.api-features-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.api-features-content h2 {
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.api-features-content p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.api-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.api-feature-item {
    font-size: 1.05rem;
    color: var(--dark);
    padding-left: 2rem;
    position: relative;
}

.api-feature-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.api-features-image {
    position: relative;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:  5px 5px 10px #bebebe,
    -5px -5px 10px #ffffff;
}

.api-features-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    will-change: transform;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.api-features-image:hover img {
    transform: scale(1.02);
}

.api-features-image p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    margin: 0;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

/* Reviews Section */
.api-reviews-section {
    background: var(--dark);
    padding: 8rem 5%;
}

.api-reviews-heading {
    font-size: 4rem;
    font-weight: 500;
    color: var(--light);
    text-align: center;
    margin-bottom: 4rem;
    line-height: 1.2;
}

.api-reviews-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.api-reviews-track {
    display: flex;
    transition: transform 0.5s ease;
}

.api-review-card {
    min-width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.api-review-stars {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.api-review-text {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.api-review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.api-review-author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.api-review-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.api-review-author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light);
}

.api-review-author-company {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

/* FAQ Section */
.api-faq-section {
    background: var(--light);
    padding: 8rem 5%;
    position: relative;
    min-height: 110vh;
}

.api-faq-heading {
    font-size: 4rem;
    font-weight: 500;
    color: var(--dark);
    text-align: center;
    margin-bottom: 4rem;
    line-height: 1.2;
}

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

.api-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.api-faq-item {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s ease;
    border: 1px solid #e0e0e0;
}

.api-faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.api-faq-question {
    width: 100%;
    padding: 1.5rem 2rem 0.5rem 2rem;
    background: transparent;
    border: none;
    text-align: left;
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.api-faq-answer {
    max-height: none;
    opacity: 1;
}

.api-faq-item.active .api-faq-answer {
    max-height: none;
    opacity: 1;
}

.api-faq-answer p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray);
    margin: 0;
    padding: 0 2rem 1.5rem 2rem;
}

/* Responsive */
@media (max-width: 943px) {
    .api-hero {
        padding: 8rem 5% 4rem;
        min-height: auto;
    }

    .api-hero-title {
        font-size: 3rem;
    }

    .api-hero-subtext {
        font-size: 1.1rem;
    }

    .api-hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .api-cta,
    .api-learn-more {
        width: 100%;
        text-align: center;
    }

    .api-features-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .api-features-content h2 {
        font-size: 2.5rem;
    }

    .api-reviews-heading,
    .api-faq-heading {
        font-size: 2.5rem;
    }

    .api-review-text {
        font-size: 1.1rem;
    }

    .api-faq-section {
        padding: 4rem 5%;
    }

    .api-faq-heading {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .api-faq-question {
        padding: 1.2rem 1.5rem 0.4rem 1.5rem;
        font-size: 1rem;
    }

    .api-faq-answer p {
        font-size: 0.95rem;
        padding: 0 1.5rem 1.2rem 1.5rem;
    }

    .code-demo {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .api-hero-title {
        font-size: 2rem;
    }

    .api-reviews-heading,
    .api-faq-heading {
        font-size: 2rem;
    }

    .api-review-text {
        font-size: 1rem;
    }

    .api-faq-question {
        padding: 1rem 1.2rem 0.3rem 1.2rem;
        font-size: 0.95rem;
    }

    .api-faq-answer p {
        font-size: 0.9rem;
        padding: 0 1.2rem 1rem 1.2rem;
    }
}
