:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-color: #555;
}
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    font-weight: 600;
    color: var(--secondary-color);
}
main > section {
    padding: 60px 0;
}
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.cta-button:hover { background: #2980b9; }

/* --- Header & Navigation (Desktop) --- */
.main-header {
    background: var(--card-background);
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-header .logo { 
    font-size: 1.5em; 
    margin: 0; 
    font-weight: 600; 
    color: var(--secondary-color); 
}
.main-header .main-nav a { 
    text-decoration: none; 
    color: var(--text-color); 
    margin: 0 15px; 
    font-weight: 500; 
}
.header-right { 
    display: flex; 
    align-items: center; 
}
.hamburger-button { 
    display: none; 
}

/* --- Page Sections --- */
.about-me { background: var(--card-background); }
.about-me-container { display: flex; align-items: center; gap: 40px; }
.profile-image { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 5px solid var(--primary-color); }
.about-me-text { flex: 1; }
.about-me-text h2 { text-align: left; margin: 0 0 5px 0; font-size: 2.2em; }
.about-me-text h3 { margin-top: 0; color: var(--primary-color); font-weight: 500; font-size: 1.2em; }
.social-links { margin-top: 20px; }
.social-links a { color: var(--secondary-color); font-size: 1.5em; margin-right: 20px; transition: color 0.3s ease; }
.social-links a:hover { color: var(--primary-color); }
.services-grid, .testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: var(--card-background); padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.service-card h3 { margin-top: 0; color: var(--primary-color); }
.testimonials { background: #eaf4fc; }
.testimonial-card { background: var(--card-background); padding: 25px; border-radius: 8px; border-left: 5px solid var(--primary-color); }
.testimonial-card p { font-style: italic; margin: 0 0 15px 0; }
.testimonial-card cite { font-weight: bold; font-style: normal; color: var(--secondary-color); }
.blog-list { max-width: 800px; margin: auto; }
.blog-post { background: var(--card-background); padding: 20px; border-radius: 8px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; transition: box-shadow 0.3s ease; }
.blog-post:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.blog-post a { text-decoration: none; color: var(--primary-color); font-size: 1.2em; font-weight: 600; }
.blog-post .date { color: #777; }
.contact p { text-align: center; }
.contact-form { max-width: 600px; margin: 30px auto 0 auto; }
.form-group { margin-bottom: 20px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; font-size: 1em; }
.main-footer { background: var(--secondary-color); color: #fff; text-align: center; padding: 20px 0; }

/* =======================================
   MOBILE RESPONSIVE STYLES
   ======================================= */
@media (max-width: 768px) {
    /* --- General Layout --- */
    .about-me-container {
        flex-direction: column;
        text-align: center;
    }
    .about-me-text h2 {
        text-align: center;
    }
    
    /* --- Header Layout --- */
    .main-header .main-nav {
        display: none;
    }
    .hamburger-button {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin-left: 20px;
    }
    .main-header .container {
        display: grid;
        grid-template-columns: 1fr auto; /* Use a 2-column grid for this layout */
    }
    .main-header .logo {
        justify-self: start;
    }
    .main-header .header-right {
        justify-self: end;
    }

    /* --- Hamburger Icon & Pop-out Menu --- */
    .hamburger-line { display: block; width: 30px; height: 3px; background-color: var(--secondary-color); border-radius: 5px; transition: all 0.3s ease-in-out; margin: 5px 0; }
    .main-nav {
        display: none; /* Initially hidden */
        flex-direction: column;
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        background: var(--card-background);
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }
    .main-nav.is-active {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .main-nav a { 
        margin: 15px 0; 
        text-align: center; 
        font-size: 1.2rem; 
    }
}