/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
}

/* Links */
a {
    text-decoration: none;
    color: #0066cc;
}

a:hover {
    color: #004999;
}

/* Maintain Section Text Color for Links */
section, header, footer, .services, .hero {
    color: inherit;
}

section a, header a, footer a, .services a, .hero a {
    color: inherit;
}

section a:hover, header a:hover, footer a:hover, .services a:hover, .hero a:hover {
    color: #0066cc;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #0066cc;
}

/* Hero Section */
.hero {
    background-color: #f5f7fa;
    padding: 80px 5%;
    text-align: center;
}

.hero img {
    max-width: 250px;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

/* Services/Projects Section */
.services {
    padding: 80px 5%;
}

.services h2 {
    text-align: center;
    margin-bottom: 50px;
    font-weight: 300;
    font-size: 2rem;
    color: #2c3e50;
}

.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-box {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 30px;
    width: calc(33.333% - 20px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-box h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.service-box p {
    margin-bottom: 20px;
    color: #7f8c8d;
}

.service-box a {
    display: inline-block;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 50px 5% 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-weight: 500;
    color: white;
}

.footer-section p {
    margin-bottom: 10px;
    color: #bdc3c7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .service-box {
        width: calc(50% - 15px);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .service-box {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}