/* Reset & Basic Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #0066cc; /* Blue accent color */
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,102,204,0.8), rgba(0,102,204,0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 0;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background: #ff6600; /* Orange accent color */
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #e55a00;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #0066cc;
}

/* Services Preview */
.services-preview {
    padding: 80px 0;
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-item h3 {
    color: #0066cc;
    margin-bottom: 15px;
}

/* Page Headers */
.page-header {
    background: #0066cc;
    color: white;
    text-align: center;
    padding: 60px 0;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* About Page */
.about-content {
    padding: 80px 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    max-width: 100%;
    border-radius: 10px;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member h3 {
    color: #0066cc;
    margin-bottom: 5px;
}

/* Services Page */
.services-section {
    padding: 80px 0;
    background: white;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.service-detail.reverse {
    direction: rtl;
}

.service-detail.reverse > * {
    direction: ltr;
}

.service-content h2 {
    color: #0066cc;
    margin-bottom: 20px;
}

.service-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #0066cc;
}

.service-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* API Documentation */
.docs-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.docs-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.docs-sidebar {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.docs-sidebar h3 {
    color: #0066cc;
    margin-bottom: 20px;
}

.docs-sidebar ul {
    list-style: none;
}

.docs-sidebar ul li {
    margin-bottom: 10px;
}

.docs-sidebar ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.docs-sidebar ul li a:hover {
    color: #0066cc;
}

.docs-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.docs-content section {
    margin-bottom: 60px;
}

.docs-content h2 {
    color: #0066cc;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.docs-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #0066cc;
}

.docs-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.code-block {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.api-table th, .api-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.api-table th {
    background-color: #0066cc;
    color: white;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-content h3 {
    margin-bottom: 15px;
    color: #0066cc;
}

.read-more {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
}

/* Contact Page */
.contact-section {
    padding: 80px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    margin-bottom: 25px;
    color: #0066cc;
}

.contact-info p {
    margin-bottom: 20px;
}

.contact-form h2 {
    margin-bottom: 25px;
    color: #0066cc;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

/* Support Section */
.support-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.support-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.support-item h3 {
    color: #0066cc;
    margin-bottom: 15px;
}

/* Alert for form */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Article Page */
.article-header {
    background: #0066cc;
    color: white;
    text-align: center;
    padding: 60px 0;
}

.article-meta {
    margin-top: 10px;
    opacity: 0.8;
}

.article-content {
    padding: 80px 0;
    background: white;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.article-img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 30px;
}

.article-body h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #0066cc;
}

.article-body h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #0066cc;
}

.article-body ol, .article-body ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-navigation {
    margin-top: 40px;
    text-align: center;
}

/* Footer */
footer {
    background: #0066cc;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .about-grid,
    .contact-grid,
    .service-detail,
    .docs-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .docs-sidebar {
        position: static;
    }
}