/* Base styles and CSS reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2d5bff;
    --secondary: #ff6b35;
    --dark: #1a2238;
    --light: #f4f7ff;
    --gray: #6b7280;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.24rem; /* Reduced from 1.8rem */
    color: var(--primary);
}


.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.active {
    color: var(--primary) !important;
}

.active::after {
    width: 100% !important;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 70px;
    right: 5%;
    width: 50%;
    background-color: white;
    /* padding: 20px; */
    box-shadow: 12px 12px 15px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 999;
    border-radius: 30px;
}

.mobile-nav.active {
    display: block;
    animation: slideDown 0.3s ease;
    line-height: 1;
    min-width: 250px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
}
.mobile-nav-links > a{
    font-size: 1rem;
}

/* .mobile-nav-links li {
    margin: 10px 0;
} */

.mobile-nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 1.05rem;
    display: block;
    padding: 10px;
    transition: all 0.3s;
}

.mobile-nav-links a:hover {
    color: var(--primary);
    background-color: var(--light);
    border-radius: 8px;
}

/* Page content */
.page {
    display: none;
    animation: fadeIn 0.5s ease forwards;
    padding-top: 100px;
    min-height: calc(100vh - 200px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Home Page */
#home {
    display: block;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero h1 {
    font-size: 2.6rem; /* Reduced from 3.5rem */
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeIn 1s ease;
}

.hero p {
    font-size: 1.1rem; /* Reduced from 1.2rem */
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 25px; /* Slightly reduced */
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(45, 91, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(45, 91, 255, 0.6);
}

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

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    margin-top: 20px;
    flex: 1;
    text-align: center;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features {
    padding: 80px 30px; /* Reduced from 100px */
    background-color: white;
    border-radius: 20px;
    margin: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 1.85rem; /* Reduced from 2.5rem */
    margin-bottom: 50px; /* Reduced from 60px */
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

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

.feature-card {
    background-color: var(--light);
    border-radius: 15px;
    padding: 25px; /* Reduced from 30px */
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: calc(var(--delay) * 0.2s);
}

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

.feature-icon {
    font-size: 2rem; /* Reduced from 3rem */
    margin-bottom: 15px; /* Reduced from 20px */
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.3rem; /* Reduced from 1.5rem */
    margin-bottom: 12px; /* Reduced from 15px */
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem; /* Slightly reduced */
}


/* Documentation Page */
.doc-container {
    display: flex;
    gap: 30px; /* Reduced from 40px */
    margin: 30px 0; /* Reduced from 40px */
}

.doc-sidebar {
    flex: 1;
    background: white;
    padding: 25px; /* Reduced from 30px */
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    align-self: flex-start;
}

.doc-content {
    flex: 3;
    background: white;
    padding: 30px; /* Reduced from 40px */
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.doc-sidebar h3 {
    margin-bottom: 15px; /* Reduced from 20px */
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light);
    font-size: 1.2rem; /* Added */
}

.doc-sidebar ul {
    list-style: none;
}

.doc-sidebar li {
    margin-bottom: 8px; /* Reduced from 10px */
}

.doc-sidebar a {
    text-decoration: none;
    color: var(--dark);
    transition: color 0.3s;
    display: block;
    padding: 6px 0; /* Reduced from 8px */
    font-size: 0.95rem; /* Added */
}

.doc-sidebar a:hover {
    color: var(--primary);
}

.doc-content h2 {
    margin: 20px 0 12px; /* Reduced from 25px 0 15px */
    color: var(--primary);
    font-size: 1.5rem; /* Added */
}

.doc-content p {
    margin-bottom: 15px; /* Reduced from 20px */
    line-height: 1.7; /* Slightly reduced */
    font-size: 0.95rem; /* Added */
}

.doc-content code {
    background-color: var(--light);
    padding: 15px; /* Reduced from 20px */
    border-radius: 8px;
    display: block;
    margin: 15px 0; /* Reduced from 20px */
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    font-size: 0.9rem; /* Added */
}


/* About Page */
.about-content {
    background: white;
    padding: 30px; /* Reduced from 40px */
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin: 30px 0; /* Reduced from 40px */
}

.about-content h2 {
    margin: 20px 0 12px; /* Reduced from 25px 0 15px */
    color: var(--primary);
    font-size: 1.4rem; /* Added */
}

.about-content h4 {
    margin: 15px 0 10px;
    color: var(--secondary);
    font-size: 1.2rem; /* Added */
}

.about-content p {
    margin-bottom: 15px; /* Reduced from 20px */
    line-height: 1.7; /* Slightly reduced */
    font-size: 0.95rem; /* Added */
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding-bottom: 10px;
}


.copyright {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .doc-container {
        flex-direction: column;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem; /* Reduced from 2.5rem */
    }
    
    .section-title {
        font-size: 1.75rem; /* Added for mobile */
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        padding-right: 7%;
        padding-left: 7%;
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem; /* Further reduced for very small screens */
    }
    
    .section-title {
        font-size: 1.75rem; /* Further reduced for very small screens */
    }
}