:root {
    --bg-color: #f8f9fa;       /* Soft Light Gray */
    --text-main: #2c3e50;      /* Dark Navy */
    --text-muted: #6c757d;     /* Soft Gray */
    --accent: #007bff;         /* Trustworthy Blue */
    --accent-hover: #0056b3;   /* Darker Blue */
    --card-bg: #ffffff;        /* Pure White */
    --font-sans: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    margin: 0;
    line-height: 1.8;
}

/* --- HEADER & BRANDING --- */
header {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 3rem 1rem;
    text-align: center; /* Forces everything to center */
}

.header-content {
    display: flex;
    flex-direction: column; /* Stacks Logo on top of Tagline */
    align-items: center;    /* Centers them horizontally */
    gap: 1.5rem;            /* Space between Logo and Tagline */
}

/* The "Hero" Logo */
.brand-logo {
    max-width: 650px; /* Big and bold */
    width: 90%;       /* Responsive on mobile */
    height: auto;
    display: block;
}

/* Tagline Subtitle */
.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
    max-width: 700px;
    
    /* The Fix: Add 2rem (approx 32px) of space above the text */
    margin: 0rem auto 0 auto; 
}

/* --- LAYOUT & GRID --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.intro-text {
    text-align: center;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: #495057;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* This is the magic that centers the bottom row! */
    gap: 4rem; /* Adjusted slightly for a cleaner look */
    align-items: stretch;
    padding-bottom: 2rem;
}

/* --- CARDS --- */
.card {
    background: var(--card-bg);
    border: none;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    
    /* The sizing magic */
    flex: 1 1 400px; /* Tells the cards to grow, with a base size of 400px */
    max-width: 440px; /* Prevents that bottom centered card from stretching way too wide */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card h3 {
    margin-top: 0;
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.card p {
    margin-bottom: 0;
    flex-grow: 1;
}

.icon { 
    font-size: 1.8rem; 
    margin-right: 10px; 
    background: #e7f1ff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* --- CONTACT SECTION --- */
.contact-section {
    text-align: center;
    margin-top: 5rem;
    padding: 3rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.contact-btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.contact-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: white;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 3rem;
    border-top: 1px solid #e9ecef;
}

/* --- SERVICE FORM --- */
.service-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left; /* Keep text input left-aligned */
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

/* Make rows stack on mobile screens */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
}

.service-form input,
.service-form select,
.service-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid #ced4da;
    border-radius: 8px; /* Soft corners */
    background-color: #f8f9fa;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

/* Make the dropdown text look right */
.service-form select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* What happens when a user clicks into a box */
.service-form input:focus,
.service-form select:focus,
.service-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); /* Soft blue glow */
    background-color: #ffffff;
}

.form-submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* --- PRICING SECTION --- */
.pricing-section {
    text-align: center;
    margin-top: 5rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: var(--card-bg);
    max-width: 500px;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.1); /* Slight blue tint to the shadow */
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.price-header {
    background-color: var(--accent);
    color: white;
    padding: 3rem 2rem;
}

.price-header h3 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 500;
}

.price {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.currency {
    font-size: 2rem;
    margin-top: 0.5rem;
    margin-right: 0.2rem;
}

.rate {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: auto;
    margin-bottom: 0.5rem;
    margin-left: 0.2rem;
    opacity: 0.8;
}

.minimum {
    margin: 1rem 0 0 0;
    font-size: 0.95rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
}

.price-body {
    padding: 2.5rem 2rem;
    text-align: left;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.pricing-features li {
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.pricing-features .check {
    color: var(--accent);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

.custom-quote-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
    text-align: center;
}

/* --- NAVIGATION --- */
.main-nav {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    justify-content: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent);
}

/* --- ABOUT PAGE LAYOUT --- */
.about-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    margin-top: 4rem;
    margin-bottom: 5rem;
}

.about-image-wrapper {
    flex: 0 0 350px;
}

.about-profile-pic {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: var(--text-main);
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #495057;
}

.about-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.linkedin-btn {
    display: inline-block;
    background-color: transparent;
    color: #0a66c2; /* Official LinkedIn Blue */
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid #0a66c2;
    transition: all 0.3s ease;
}

.linkedin-btn:hover {
    background-color: #0a66c2;
    color: white;
}

/* Make it stack nicely on mobile */
@media (max-width: 800px) {
    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    .about-actions {
        flex-direction: column;
        width: 100%;
    }
}

/* --- GALLERY & TESTIMONIALS PAGE --- */

/* The "Under Construction" box styles */
.coming-soon-block {
    background-color: #e9ecef;
    padding: 3rem;
    text-align: center;
    border-radius: 12px;
    color: var(--text-muted);
    font-style: italic;
    border: 2px dashed #ced4da;
    max-width: 800px;
    margin: 2rem auto 0 auto;
}

/* Project styles */
.project-item {
    max-width: 900px;
    margin: 0 auto 4rem auto;
}

.project-image-wrapper {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

/* Ensures the image is responsive and doesn't overflow on phones */
.project-image {
    width: 100%;
    height: auto;
    display: block;
}

/* --- TESTIMONIALS --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr; /* Forces a single-column stack */
    gap: 2.5rem; /* Adds space between the stacked cards */
    margin-top: 3rem;
    max-width: 800px; /* Prevents the cards from getting too wide on big screens */
    margin-left: auto; /* Centers the stack horizontally */
    margin-right: auto; /* Centers the stack horizontally */
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.quote-icon {
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.15;
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
    font-family: Georgia, serif;
    z-index: 0;
}

.testimonial-card p {
    position: relative;
    z-index: 1;
    font-style: italic;
    color: #495057;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.testimonial-author {
    margin-top: auto;
    font-weight: 700;
    font-style: normal !important;
    color: var(--text-main) !important;
    text-align: right;
    font-size: 1.1rem;
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

/* --- HAMBURGER MENU --- */

/* 1. Hide the background checkbox */
.menu-checkbox {
    display: none;
}

/* 2. Style the hamburger icon (Hidden on large desktops) */
.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    margin: 1rem auto;
}

/* 3. Style the 3 lines of the hamburger */
.menu-icon span {
    width: 35px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* 4. Mobile settings (Triggers on screens smaller than 800px) */
@media (max-width: 800px) {
    .menu-icon {
        display: flex; /* Show the hamburger */
    }

    .main-nav {
        display: none; /* Hide the standard links by default */
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
        padding-top: 1.5rem;
    }

    /* 5. When the invisible checkbox is checked (clicked), show the nav */
    .menu-checkbox:checked ~ .main-nav {
        display: flex;
    }

    /* 6. Animate the hamburger into an 'X' when open */
    .menu-checkbox:checked ~ .menu-icon span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    .menu-checkbox:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    .menu-checkbox:checked ~ .menu-icon span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}

/* --- UPDATED PRICING AD & SERVICES --- */

/* Styles the 'Explore Service Tiers' link to look like your contact button but smaller */
.ad-card .contact-btn {
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

/* Horizontal rule styling for the Ad card */
.ad-card hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 1.5rem 0;
}

/* For the Services Page: Styling the 'Starting at' text */
.price-tag {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

/* Feature list inside the service cards */
.tier-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Styling for the CTA box on the services page */
.cta-box {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

/* Specific targeting for the checkbox to keep it inline and blue */
.service-form input[type="checkbox"] {
    width: auto !important; 
    padding: 0 !important; 
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--accent); /* Sets checkbox color to Trustworthy Blue */
    transform: scale(1.2); /* Makes it slightly easier to click */
    vertical-align: middle;
    box-shadow: none !important;
}

/* Align the text to sit perfectly next to the checkbox */
.service-form div:has(#terms) {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    text-align: left;
}

.service-form label[for="terms"] {
    cursor: pointer;
    user-select: none;
}