:root {
    --primary-accent: #8c4f4c;
    --primary-accent-hover: #7a4441;
    --secondary-text: #6c6868;
    --bg-light: #ffffff;
    --bg-off-white: #efedec;
    --text-main: #333333;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--secondary-text);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #2d2d2d;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

p {
    margin-bottom: 1rem;
    color: var(--secondary-text);
}

/* Sections */
section {
    padding: 8rem 0;
}

.section-bg {
    background-color: var(--bg-off-white);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary-text);
}

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

/* Hero */
.hero {
    padding-top: 8rem;
    padding-bottom: 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 90vh;
}

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

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--primary-accent);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

/* Code Demo Section */
.code-demo {
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 2rem;
    color: #d4d4d4;
    font-family: 'Fira Code', monospace;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

#demo {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

#docs {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background-color: #ff5f56;
}

.yellow {
    background-color: #ffbd2e;
}

.green {
    background-color: #27c93f;
}

pre {
    white-space: pre-wrap;
    font-size: 0.9rem;
}

.keyword {
    color: #c586c0;
}

.string {
    color: #ce9178;
}

.property {
    color: #9cdcfe;
}

.number {
    color: #b5cea8;
}

/* Footer */
footer {
    background-color: #2d2d2d;
    color: #efedec;
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.footer-links a {
    color: #aaa;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #888;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 6rem;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    .nav-links {
        display: none;
        /* Mobile menu to be implemented */
    }
}

/* Documentation Section */
.docs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.endpoint-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.2s ease;
    border: 1px solid #eee;
}

.endpoint-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-accent);
}

.method {
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    text-transform: uppercase;
    min-width: 80px;
    text-align: center;
}

.method.get {
    background-color: #e3f2fd;
    color: #1565c0;
}

.method.post {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.url {
    font-family: 'Fira Code', monospace;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
}

.desc {
    color: var(--secondary-text);
    margin-bottom: 0;
    margin-left: auto;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .endpoint-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .desc {
        margin-left: 0;
    }
}

/* Interactive Documentation Styles */
.endpoint-item {
    cursor: pointer;
    flex-wrap: wrap;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.endpoint-details {
    display: none;
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    animation: fadeIn 0.3s ease;
}

.endpoint-item.active .endpoint-details {
    display: block;
}

.endpoint-item.active {
    border-color: var(--primary-accent);
    box-shadow: var(--shadow-md);
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.params-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.params-table th,
.params-table td {
    text-align: left;
    padding: 0.8rem;
    border-bottom: 1px solid #eee;
}

.params-table th {
    color: var(--secondary-text);
    font-weight: 600;
}

.params-table td {
    color: var(--text-main);
}

.code-block {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    color: #333;
    border: 1px solid #eee;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}