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

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --background-color: #ffffff;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    background-color: var(--background-color);
    color: var(--dark-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 80px; /* Space for fixed header */
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
    overflow: hidden; /* Contains floats */
}

header {
    background: var(--light-color);
    color: var(--dark-color);
    padding: 1rem 0;
    text-align: center;
    border-bottom: 1px solid #eee;
    position: fixed; /* Keep header fixed */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header h1 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

header h1:hover {
    color: var(--primary-color);
}


nav ul {
    list-style: none;
    padding: 0;
    display: flex; /* Make nav horizontal */
    justify-content: center;
    gap: 1.5rem; /* Space between nav items */
}

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

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

main {
    flex-grow: 1; /* Allow main content to fill space */
    padding: 2rem 0;
}

section {
    padding: 3rem 0;
    border-bottom: 1px solid #eee;
    opacity: 0; /* Start hidden for fade-in */
    transform: translateY(20px); /* Start slightly lower */
    animation: fadeIn 0.8s ease-out forwards;
}

/* Add staggered delays for sections */
section#hero { animation-delay: 0.2s; }
section#about { animation-delay: 0.4s; }
section#apps { animation-delay: 0.6s; }
section#contact { animation-delay: 0.8s; }


section:last-child {
    border-bottom: none;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

/* Underline effect for section titles */
section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0.5rem auto 0;
    opacity: 0.7;
}


#hero {
    text-align: center;
    background: linear-gradient(to right, rgba(0, 123, 255, 0.1), rgba(108, 117, 125, 0.1));
    padding: 4rem 0;
    margin-top: -2rem; /* Overlap slightly with header bottom */
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

#hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}
#hero h2::after { display: none; } /* No underline for hero title */

#hero p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 2rem;
}

.app-card {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.app-card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

.app-card p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.app-card a.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.app-card a.btn:hover {
    background: #0056b3;
}

footer {
    background: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto; /* Push footer to bottom */
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


/* Simple Fade-in Animation */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header {
        padding: 0.8rem 0;
    }
    header h1 {
        font-size: 1.8rem;
    }
    nav ul {
        gap: 1rem;
    }
    section {
        padding: 2rem 0;
    }
    #hero h2 {
        font-size: 2rem;
    }
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 100px; /* Adjust for potentially wrapped header */
    }
    header {
        text-align: center;
    }
    nav ul {
       flex-direction: column;
       gap: 0.5rem;
       margin-top: 0.5rem;
    }
     .app-card {
        padding: 1rem;
    }
} 