/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --border-radius: 5px;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

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

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

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

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Navigation Styles */
nav {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
}

nav li {
    margin: 0 15px;
}

nav a {
    display: block;
    padding: 15px 10px;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Main Content Styles */
main {
    padding: 40px 0;
}

section {
    margin-bottom: 60px;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Introduction Section */
.intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.intro-image {
    flex: 1;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Components Section */
.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.component-card {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.component-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.component-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-align: center;
}

.component-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Documentation Section */
.doc-container {
    display: flex;
    gap: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.doc-sidebar {
    width: 250px;
    background-color: var(--light-color);
    padding: 20px 0;
}

.doc-sidebar ul li {
    margin-bottom: 5px;
}

.doc-sidebar ul li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.doc-sidebar ul li a:hover,
.doc-sidebar ul li a.active {
    background-color: rgba(52, 152, 219, 0.1);
    border-left-color: var(--secondary-color);
    color: var(--secondary-color);
}

.doc-content {
    flex: 1;
    padding: 30px;
}

.doc-preview h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.doc-preview h4 {
    margin: 20px 0 10px;
    color: var(--dark-color);
}

.doc-preview p {
    margin-bottom: 15px;
}

.doc-preview ul {
    margin-left: 20px;
    margin-bottom: 20px;
    list-style-type: disc;
}

.doc-preview ul li {
    margin-bottom: 5px;
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.resource-card {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.resource-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.resource-card p {
    margin-bottom: 15px;
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
}

footer a {
    color: var(--light-color);
}

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

/* Documentation Pages */
.doc-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

.doc-page h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.doc-page h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: var(--primary-color);
}

.doc-page h3 {
    font-size: 1.4rem;
    margin: 25px 0 15px;
    color: var(--dark-color);
}

.doc-page p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.doc-page ul, .doc-page ol {
    margin: 15px 0 15px 20px;
}

.doc-page li {
    margin-bottom: 8px;
}

.doc-page code {
    background-color: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.doc-page pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 15px 0;
}

.doc-page pre code {
    background-color: transparent;
    padding: 0;
}

.doc-page .note {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.doc-page .warning {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.doc-page .tip {
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 4px solid #2ecc71;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .intro-content {
        flex-direction: column;
    }
    
    .doc-container {
        flex-direction: column;
    }
    
    .doc-sidebar {
        width: 100%;
    }
    
    .doc-sidebar ul {
        display: flex;
        flex-wrap: wrap;
    }
    
    .doc-sidebar ul li {
        margin-right: 10px;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 5px 0;
    }
    
    .component-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
}
