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

/* fix for scrolling issue on desktop */
:root {
    --header-height: 64px;
}

html {
    scroll-padding-top: var(--header-height);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    /* fix for scrolling issue on mobile */
    :root {
        --header-height: 88px;
    }
    
    nav h1 {
        font-size: 1.2rem;
    }
    
    nav ul {
        gap: 1rem;
        justify-content: center;
    }
}

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.services {
    padding: 4rem 0;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

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

@media (max-width: 768px) {
    .services {
        padding: 2rem 0;
    }
    
    .services h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

.service-card {
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    transition: box-shadow 0.3s;
}

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

.service-card h3 {
    margin-bottom: 1rem;
    color: #667eea;
}

footer {
    background: linear-gradient(135deg, #4a3555 0%, #1a1018 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:visited {
    color: white;
    text-decoration: none;
}

.contact-info {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.contact-info h3 {
    margin: 0;
}

.contact-info h3:not(:last-child)::after {
    content: " |";
    margin-left: 2rem;
}

@media (max-width: 768px) {
    footer {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    footer h1 {
        font-size: 1.3rem;
    }
    
    footer h3 {
        font-size: 0.95rem;
        word-break: break-word;
    }
    
    footer p {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-info h3:not(:last-child)::after {
        content: "";
        margin-left: 0;
    }
}

/* About page styles */

@media (max-width: 768px) {
    .about {
        padding: 2rem 1.5rem;
    }
}

.about {
    padding: 4rem 2rem;
    background: #f9f9fb;
    color: #333;
}


@media (max-width: 768px) {
    .about h2 {
        font-size: 1.5rem;
    }
}

.about h2 {
    font-size: 2rem;
    margin: 0 0 1rem;
    color: #222;
    text-align: left;
}

.about p {
    max-width: 100ch;
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #444;
}

.about .lead {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 1rem;
    max-width: 100ch;
}

@media (max-width: 768px) {
    .about .profile {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.about .profile {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 2rem 0;
    flex-wrap: wrap;
}


.about ul {
    margin: 1rem 0 0 1.25rem;
    color: #444;
}


.about h3 {
    max-width: 100ch;
    margin-bottom: 1rem;
    line-height: 1.8;
}