/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

body {
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation --- */
header {
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.logo span {
    color: #3498db;
}

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

nav ul li {
    margin-left: 20px;
}

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

nav ul li a:hover {
    color: #3498db;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-nav {
    background-color: #2c3e50;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 5px;
}

.btn-nav:hover {
    background-color: #3498db;
    color: #fff !important;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), 
                url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    padding-top: 70px; /* Offset for fixed header */
}

.hero-container h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-container p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

/* --- Global Section Styles --- */
section {
    padding: 100px 0;
}

section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* --- About Section --- */
.about {
    background-color: #fff;
    text-align: center;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: #666;
}

/* --- Services Section --- */
.services {
    background-color: #f4f7f6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.service-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.service-card p {
    color: #777;
    font-size: 15px;
}

/* --- Contact Section --- */
.contact {
    background-color: #fff;
    text-align: center;
}

.contact p {
    margin-bottom: 40px;
    color: #666;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #3498db;
}

/* --- Footer --- */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    font-size: 14px;
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    .hero-container h1 {
        font-size: 36px;
    }
    
    .header-container {
        flex-direction: column;
        justify-content: center;
        height: auto;
        padding: 15px 0;
    }

    nav ul {
        margin-top: 15px;
    }

    nav ul li {
        margin: 0 10px;
    }
    
    section {
        padding: 60px 0;
    }
}
