:root {
    --color-bg: #121212;
    --color-bg-alt: color-mix(in srgb, var(--color-bg) 87%, white);
    --color-accent: #0d6efd;
    --color-accent-hover: color-mix(in srgb, var(--color-accent) 80%, black);
    --color-text: #f5f5f5;
    --color-text-muted: #adb5bd;
    --color-heading: #ffffff;
    --color-nav-bg: #212529;
    --color-nav-text: #f8f9fa;
    --color-card-bg: color-mix(in srgb, var(--color-bg) 90%, white);
    --color-border: color-mix(in srgb, var(--color-bg) 72%, white);
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Lato', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    padding-top: 56px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: var(--font-heading);
    color: var(--color-heading);
    letter-spacing: 1px;
}

/* Parallax Hero Section */
.parallax {
    background-image: url('../img/steve-2.jpg');
    /* Desktop background */
    height: 100vh;
    background-position: top center; /* Corrected alignment */
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    /* Dark overlay for text contrast */
    z-index: 1;
}

.hero-text {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 20px;
}


.hero-text h1 {
    font-size: 4rem;
    /* Responsive font size */
    font-weight: 700;
    /* Ensure boldness if needed */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Text shadow for readability */
}

.hero-text p {
    font-size: 1.5rem;
    /* Responsive font size */
    font-family: var(--font-body);
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Navbar */
.navbar {
    transition: background-color 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    /* Adjust brand size if needed */
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}


/* Sections */
section {
    scroll-margin-top: 56px;
    /* Offset scroll position for fixed navbar */
}

.lead {
    font-weight: 300;
    /* Lighter lead paragraph */
    font-size: 1.1rem;
}

/* About Me Section Images */
#about img {
    transition: transform 0.3s ease;
}

#about img:hover {
    transform: scale(1.05);
}

/* Digital Strategy Services Section */
#services {
    background-color: var(--color-bg);
}

#services h4 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-text);
}

#services p.text-white-50 { /* Adjust if section ID changed */
    font-size: 0.95rem;
}

/* Projects Section */
#projects {
    background-color: var(--color-bg-alt);
}

.projects-item {
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
    display: none;
}

.projects-item.is-visible {
    opacity: 1;
    pointer-events: auto;
    display: block;
}

.projects-item.is-hiding {
    opacity: 0;
    pointer-events: none;
    display: block;
}


/* Projects Filter Buttons */
#projects-filter-buttons .btn {
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* Projects Cards */
.card {
    border: 1px solid var(--color-border);
    background-color: var(--color-card-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

.projects-card-img {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

/* Modal Styling */
.modal-content {
    border: none;
}

.modal-header,
.modal-footer {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.modal-link:hover {
    color: var(--color-accent-hover) !important;
    text-decoration: underline !important;
}

.modal-link-button:hover {
    /* Optional hover for modal buttons */
}

/* Contact Section */
#contact label {
    font-family: var(--font-body);
    color: var(--color-text);
}

.contact-link:hover {
    color: var(--color-accent-hover) !important;
}

/* Themed navbar */
.navbar.bg-dark {
    background-color: var(--color-nav-bg) !important;
}
.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-brand {
    color: var(--color-nav-text) !important;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--color-accent-hover) !important;
}

/* Footer */
footer { /* This is the main site footer, not the thank-you page footer */
    background-color: #000000;
}

.social-icon { /* Global social icon style */
    font-size: 1.8rem;
    color: var(--color-text-muted);
    margin: 0 0.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-icon:hover {
    color: var(--color-accent-hover);
    transform: scale(1.2);
}


/* --- Thank You Page Styles (adjustments for content within hero-text) --- */
body.thank-you-page .hero-text .thank-you-heading { /* Targets the H2 */
    font-size: 3.5rem; /* Or your preferred size, smaller than main hero H1 */
    /* text-shadow: 2px 2px 4px rgba(0,0,0,0.5); */ /* Inherits from .hero-text h1 if that style is broad */
    margin-bottom: 1.5rem;
}

body.thank-you-page .hero-text .thank-you-paragraph {
    font-size: 1.2rem;
    font-family: var(--font-body);
    max-width: 670px; /* Keep text from being too wide */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem; /* Spacing for paragraphs */
    /* text-shadow: 1px 1px 3px rgba(0,0,0,0.5); */ /* Inherits from .hero-text p if that style is broad */
}

body.thank-you-page .hero-text .social-icon { /* Adjust if needed */
    font-size: 2rem;
    margin: 0 0.75rem; /* Horizontal spacing */
    /* Bottom margin handled by parent div's mb-4 */
}

body.thank-you-page .hero-text .btn { /* For "Back to Homepage" button */
    margin-top: 1rem; /* Add some space above the button */
}

/* Media Queries */
@media (max-width: 767.98px) {
    .parallax {
        background-image: url('../img/steve-2-mobile.png');
        background-position: top center;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    .navbar-brand { /* Fix for navbar brand on mobile */
        font-size: 1.2rem;
    }

    /* Mobile stacking rules for projects-filter-buttons .btn-group were removed, which is correct for the flex-wrap solution */
}

/* Page Builder — public section backgrounds */
.pb-section {
    width: 100%;
}
.pb-bg-dark  { background-color: #212529; }
.pb-bg-black { background-color: #000; }