@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #3a86ff;
    --secondary-color: #ff006e;
    --background-color: #ffffff;
    --card-background: #f8fafc;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --link-color: #2563eb;
}

.dark-mode {
    --background-color: #0f172a;
    --card-background: #1e293b;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --link-color: #60a5fa;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

header {
    background-color: var(--background-color);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

nav ul {
    display: flex;
    list-style-type: none;
    align-items: center;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
}

.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1352&q=80');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 8rem 0 4rem;
    margin-top: 60px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

.search-filter-container {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 2rem;
    margin-top: -3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.search-box {
    display: flex;
    margin-bottom: 1rem;
    position: relative;
}

#search-input {
    flex-grow: 1;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
    color: var(--text-color);
    border-radius: 5px;
    font-size: 1rem;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

#search-button {
    padding: 0.7rem 1.5rem;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#search-button:hover {
    background-color: #2563eb;
}

.filter-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.filter-group {
    flex-basis: calc(50% - 0.5rem);
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.filter-group select {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
    color: var(--text-color);
    border-radius: 5px;
    font-size: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.feature-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hosting-card, .featured-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.hosting-card:hover, .featured-card:hover {
    transform: translateY(-5px);
}

.hosting-card h3, .featured-card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.hosting-card a, .featured-card a {
    color: var(--link-color);
    text-decoration: none;
}

.hosting-card a:hover, .featured-card a:hover {
    text-decoration: underline;
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    display: none;
    transition: background-color 0.3s ease;
}

#back-to-top:hover {
    background-color: #2563eb;
}

footer {
    background-color: var(--card-background);
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.about-section {
    background-color: var(--card-background);
    padding: 3rem 0;
    margin: 3rem 0;
}

.about-section h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.about-section p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: var(--card-background);
    margin: 30px auto;
    padding: 20px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.close {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--text-color);
    text-decoration: none;
}

.modal-content h2 {
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 10px;
}

.modal-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.email-link {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

#close-modal {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    text-align: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        margin-bottom: 1rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        margin-top: 1rem;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .search-filter-container {
        padding: 1rem;
        margin-top: -2rem;
    }

    .search-box {
        flex-direction: column;
    }

    #search-input {
        width: 100%;
        margin-bottom: 0.5rem;
        border-radius: 5px;
    }

    #search-button {
        width: 100%;
        border-radius: 5px;
    }

    .filter-box {
        flex-direction: column;
    }

    .filter-group {
        flex-basis: 100%;
        margin-bottom: 1rem;
    }

    .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Additional styles for better mobile experience */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0.5rem;
    }

    .hero {
        padding: 5rem 0 2rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .search-filter-container {
        margin-top: -1.5rem;
    }

    .feature-card {
        padding: 1rem;
    }
}