/* Basic Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Define your theme colors */
    --primary-color: #007bff;
    --secondary-color: #f4f4f4; /* Light grey for item backgrounds */
    --block-color: #fff; /* White for main content blocks */
    --dark-color: #333; /* Dark color for text/borders (used for Brevo-like border) */
    --light-color: #fff; /* White color */
    --text-color: #555; /* Standard text color */
    --border-color: var(--dark-color);
}


body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);

    /* --- Full-Screen Background Image --- */
     background-image:
        url('Images/fullscreen-background.webp'); /* Make sure this path and filename are correct */

    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;

    background-color: #f4f4f4; /* Fallback */

    scroll-behavior: smooth;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--dark-color);
    margin-bottom: 20px;
}

/* Base heading font sizes - these are overridden for specific sections */
h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; text-align: center; margin-bottom: 40px;}
h3 { font-size: 1.6em; margin-bottom: 15px; color: var(--primary-color);}
h4 { font-size: 1.2em; margin-bottom: 10px; }


a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
    color: var(--dark-color);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
    text-decoration: none;
}


/* Header and Navigation - Styled as a dashed block */
header {
    background-color: var(--block-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 16px;
    border: 11px dashed var(--dark-color);

    margin: 20px auto 40px auto;
    max-width: 1440px; /* Header is 2x wider on large screens */
    width: calc(100% - 40px);

    padding: 20px 30px;

    position: sticky;
    top: 20px;
    z-index: 100;
}

header .container {
    max-width: none;
    width: 100%;
    padding: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--dark-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Style the site logo */
.site-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
     vertical-align: middle;
}

/* Style the site title text (wrapped in span) */
.site-title-text {
    /* Default desktop style - visible */
    display: inline;
}


.nav-list {
    list-style: none;
    display: flex; /* Default: flex row for desktop */
    align-items: center; /* Vertically align links */
    padding: 0; /* Remove default list padding */
}

/* Style individual nav list items */
.nav-list li {
    margin-left: 25px;
    position: relative; /* Needed for pseudo-element positioning */
     padding-left: 25px; /* Add padding to the left for the divider */
}

/* Add divider between nav list items */
.nav-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for centering */
    height: 80%; /* Height of the divider */
    width: 1px; /* Thickness of the divider */
    background-color: var(--text-color); /* Color of the divider */
     opacity: 0.5; /* Make divider slightly transparent */
}

/* Remove the divider before the first list item */
.nav-list li:first-child {
     margin-left: 0; /* Remove left margin from the first item */
     padding-left: 0; /* Remove left padding from the first item */
}
.nav-list li:first-child::before {
    display: none; /* Hide the divider before the first item */
}


.nav-link {
    font-size: 1.1em;
    color: var(--text-color);
    padding: 5px 0;
    transition: color 0.3s ease;
    font-weight: bold;
}

.nav-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Mobile toggle button - Hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5em;
    position: relative;
    z-index: 1000;
}

/* Hamburger icon styles - Hidden on desktop */
.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    background: var(--dark-color);
    width: 30px;
    height: 3px;
    border-radius: 1em;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    position: absolute;
    left: 0;
    right: 0;
}

.hamburger::before { top: 8px; }
.hamburger::after { bottom: 8px; }

/* Removed navigation toggle state styles */


/* Sections - Styled like the Brevo embed's inner container (#sib-container) */
section:not(#hero) {
    margin: 40px auto;
    max-width: 720px;
    width: calc(100% - 40px);
    padding: 50px 30px;
    background-color: var(--block-color);
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 11px dashed var(--dark-color);
}

/* Hero/Intro Section - Different style (no block background) */
.hero {
    background-color: transparent;
    box-shadow: none;
    border: none;
    margin: 0 auto;
    padding: 100px 20px 60px 20px;
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* --- Hero Text Styling --- */
.hero h1 {
    font-size: 4.5em;
    margin-bottom: 10px;
    color: var(--light-color);
    font-weight: 700;
    -webkit-text-stroke: 3px var(--dark-color);
    text-stroke: 3px var(--dark-color);
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

#hero h1 strong {
    color: inherit;
    -webkit-text-stroke: inherit;
    text-stroke: inherit;
    text-shadow: inherit;
}

.hero .tagline {
    font-size: 1.5em;
    color: var(--dark-color);
    font-weight: 700;
     text-shadow: none;
    margin-bottom: 30px;
     line-height: 1.4;
}


/* Removed Portfolio Section Styles */


/* Styling for the Brevo form wrapper div (the outer .sib-form) */
/* We added the ID brevo-subscribe-form-outer to this div */
#brevo-subscribe-form-outer {
    margin: 40px auto; /* Center the entire Brevo block like other sections */
    max-width: 720px; /* Match other sections max-width */
    width: calc(100% - 40px); /* Maintain side spacing */
    padding: 0; /* Brevo's inner container has its own padding */

    /* Override Brevo's inline background image on this outer div */
    background-image: none !important;
    background-color: transparent !important; /* Ensure it's transparent to see body background */
    box-shadow: none !important; /* Remove Brevo's shadow if any */
    border: none !important; /* Remove Brevo's border if any */

    text-align: center; /* Keep text-align center */
}


/* Styling for the Brevo form's INNER container (#sib-container) */
/* This div has the dashed border and white background from Brevo's inline styles */
#sib-container {
    /* Keep Brevo's inline styles for background, border, border-radius, text-align */
    /* Override Brevo's inline max-width to make it potentially wider than 540px */
    max-width: 700px !important; /* Make Brevo form wider - Adjust this value */
    width: 100%; /* Ensure it expands up to the new max-width */
    margin: 0 auto !important; /* Ensure it remains centered within its parent */
    padding: 20px !important; /* Keep Brevo's internal padding or adjust if needed */

    /* Ensure all content inside is centered - Re-applying to be sure */
    text-align: center !important;
}

/* Center the image within the Brevo form - Re-applying to be sure */
#sib-container .sib-image-form-block img {
    display: block !important;
    margin: 0 auto !important;
}

/* Specific rules to target text/block alignment within Brevo form if needed */
/* Re-applying these to be sure they override Brevo's defaults */
#sib-container .sib-form-block > div { text-align: center !important; }
#sib-container .form__entry, #sib-container .form__label-row, #sib-container .entry__field, #sib-container .entry__specification, #sib-container .declaration-block-icon + div { text-align: center !important; }
#sib-container .sib-form-block:not(.sib-image-form-block) { display: block !important; margin-left: auto !important; margin-right: auto !important; }


/* Where to Find My Work Section */
/* Styles inherited from section:not(#hero) */
.find-my-work h2, .find-my-work .section-intro { text-align: center; }
.find-my-work .platform-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.platform-item {
    text-align: center;
    flex: 1 1 150px;
    max-width: 200px;
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.platform-item a { display: block; text-decoration: none; color: var(--dark-color); }
.platform-item a:hover { color: var(--primary-color); }
.platform-item a:hover .platform-logo { opacity: 0.8; }
.platform-logo { width: 60px; height: 60px; margin: 0 auto 15px auto; transition: opacity 0.3s ease; }
.platform-item h4 { margin-top: 0; margin-bottom: 5px; color: inherit; }
.platform-item p { font-size: 0.9em; margin-bottom: 0; }


/* Connect Section */
/* Styles inherited from section:not(#hero) */
.connect h2, .connect .section-intro { text-align: center; }
.contact-info { margin-top: 30px; }
.contact-info h3 { text-align: center; margin-bottom: 15px; color: var(--dark-color); }
.contact-info ul { list-style: none; padding: 0; margin-bottom: 30px; }
.contact-info li { margin-bottom: 10px; font-size: 1.1em; }
.social-links { margin-top: 20px; text-align: center; }
.social-links a { display: inline-block; margin: 0 10px; transition: transform 0.3s ease; }
.social-links a:hover { text-decoration: none; transform: translateY(-3px); }
.social-links img { width: 35px; height: 35px; vertical-align: middle; }


/* Footer */
footer {
    background-color: var(--dark-color);
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}
footer a { color: var(--light-color); }
footer a:hover { text-decoration: underline; }
footer .container {
     max-width: 1000px;
     display: flex;
     flex-direction: row;
     justify-content: center;
     align-items: center;
     gap: 20px;
}


/* Responsive Design */
@media (max-width: 1200px) {
     header { padding: 20px 20px; }
     section:not(#hero) { margin: 40px auto; width: calc(100% - 40px); }

     /* Brevo outer wrapper adjustment */
     #brevo-subscribe-form-outer { margin: 40px auto; width: calc(100% - 40px); }

     section:not(#hero) { padding: 40px 20px; }
     #sib-container { padding: 15px !important; }
     .hero h1 { font-size: 3.8em; }
     .hero .tagline { font-size: 1.4em; }
     .find-my-work .platform-links { gap: 20px; }
     .platform-item { flex-basis: 120px; max-width: 180px; padding: 15px; }
}

@media (max-width: 960px) {
    header {
        max-width: calc(100% - 30px);
         margin-left: auto;
         margin-right: auto;
    }
}


@media (max-width: 768px) { /* Mobile styles applied below this width */
     h1 { font-size: 2.2em; }
     h2 { font-size: 1.8em; margin-bottom: 30px;}
     h3 { font-size: 1.4em; }
     h4 { font-size: 1.1em; }

     header {
        margin: 20px auto 30px auto;
        width: calc(100% - 30px);
        padding: 15px 10px;
        max-width: calc(100% - 30px);
     }

     /* Hide header text and nav list on mobile */
     .site-title-text { display: none; }
     .nav-list { display: none; }
     .nav-toggle { display: none; }


     section:not(#hero) { margin: 30px auto; width: calc(100% - 30px); padding: 30px 15px; }
     /* Brevo outer wrapper adjustment */
     #brevo-subscribe-form-outer { margin: 30px auto; width: calc(100% - 30px); padding: 0; }


     #sib-container { padding: 10px !important; }


     .hero {
        margin: 0 auto;
        padding: 60px 15px 40px 15px;
        width: 100%;
     }
     .hero h1 { font-size: 3em; }
     .hero .tagline { font-size: 1.3em; }


    .find-my-work .platform-links { flex-direction: column; align-items: center; gap: 15px; }
    .platform-item { width: 90%; max-width: 250px; padding: 15px; }


    .contact-info ul { margin-bottom: 20px; }
    .social-links { margin-top: 10px; }
    .social-links a { margin: 0 8px; }

    footer .container { flex-direction: column; gap: 10px; }

}

@media (max-width: 480px) {
     h1 { font-size: 1.8em; }
     h2 { font-size: 1.5em; }
     h3 { font-size: 1.2em; }

     header {
        margin: 10px auto 20px auto;
        width: calc(100% - 20px);
        padding: 10px 5px;
        max-width: calc(100% - 20px);
     }

     section:not(#hero), #brevo-subscribe-form-outer { /* Apply to brevo outer div too */
        margin: 20px auto;
        width: calc(100% - 20px);
        padding: 20px 10px; /* Sections need padding */
     }
      #brevo-subscribe-form-outer { padding: 0; /* Brevo outer div has no padding */ }


      #sib-container { padding: 8px !important; }

     .hero {
         padding: 40px 10px 30px 10px;
     }
      .hero h1 { font-size: 2.5em; }
      .hero .tagline { font-size: 1.1em; }


     .platform-item { width: 95%; }
}
