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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Layout */

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

main {
    min-height: 80vh;
    padding: 2rem 0;
}

footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #343a40;
    color: white;
}

/* Home page styles */
h1 {
    color: #17a2b8;
    margin-bottom: 1rem;
    text-align: center;
}

p {
    margin-bottom: 1.5rem;
}

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

.feature-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-card h2 {
    color: #17a2b8;
    margin-bottom: 0.5rem;
}

/* About page styles */
.about-content {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    color: #17a2b8;
    margin: 1rem 0;
}

.about-content ul {
    margin-left: 2rem;
}

.about-content li {
    margin-bottom: 0.5rem;
}

/* API documentation links */
.api-link {
    display: inline-block;
    color: #17a2b8;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: rgba(23, 162, 184, 0.1);
    margin: 5px 0;
    transition: background-color 0.3s;
}

.api-link:hover {
    background-color: rgba(23, 162, 184, 0.2);
    text-decoration: underline;
}

/* Responsive Design */

/* Mobile Styles (up to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 1rem 0.5rem;
    }

    main {
        padding: 1rem 0;
    }

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

    .feature-card {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .btn {
        padding: 8px 12px;
        font-size: 0.875rem;
    }

    footer {
        padding: 0.5rem 0;
        font-size: 0.875rem;
    }
}

/* Tablet Styles (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 2rem 1rem;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }
}

/* Large Tablet/Small Desktop (1025px to 1199px) */
@media (min-width: 1025px) and (max-width: 1199px) {
    .container {
        max-width: 1000px;
    }

    .features {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop Styles (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

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

/* Navigation Responsive Adjustments */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-nav {
        width: 100%;
    }

    .nav-item.dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }
}