/* ==============================================
   GENERAL STYLES – apply to the whole page
   ============================================== */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    color: #333;
    background: #f9f9f9;
}

/* ==============================================
   MAIN CONTENT CONTAINER
   Controls the maximum width of all content sections
   ============================================== */
.container {
    max-width: 1200px;           /* This is the main content width – change here if you want wider */
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ==============================================
   HEADER – Full-width background, centered content
   ============================================== */
header {
    background: #003366;         /* Dark blue – stretches full width */
    color: white;
    padding: 20px 0;
    width: 100%;                 /* Ensures background goes edge-to-edge */
}

header .container {
    max-width: 1200px;           /* Matches the rest of the site for alignment */
    margin: 0 auto;
    padding: 0 20px;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    float: left;
}

header nav ul {
    list-style: none;
    float: right;
    margin: 0;
    padding: 0;
}

header nav li {
    display: inline;
    margin-left: 30px;
}

header nav a {
    color: white;
    text-decoration: none;
}

header::after {
    content: "";
    display: table;
    clear: both;
}

.logo-link {
    float: left;                    /* Keeps it on the left like before */
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 30px;                   /* Adjust this to fit your logo – 50-80px is usually perfect */
    width: auto;                    /* Keeps proportions */
    max-width: 500px;               /* Prevents it from getting too wide */
    display: block;
}

/* Optional: Add a subtle hover effect */
.logo-link:hover .logo-img {
    opacity: 0.9;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Mobile adjustments – make logo smaller on small screens */
@media (max-width: 768px) {
    .logo-img {
        height: 50px;
        max-width: 200px;
    }
}


/* ==============================================
   HERO SECTION – Welcome banner
   ============================================== */
.hero {
    position: relative;          /* Allows absolute positioning of bg */
    min-height: 500px;           /* Adjust height as needed */
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-bg.jpg');  /* ← Change to your filename */
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.7);  /* Creates the faded/soft look */
    opacity: 0.85;                      /* Fine-tune fade – lower = more subtle */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;                         /* Keeps text above the bg */
    max-width: 1200px;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);  /* Improves readability on bg */
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* Optional: Add a dark overlay for even better text contrast */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 51, 102, 0.4);  /* Semi-transparent dark blue overlay */
    z-index: 1;
}

/* Call-to-action button */
.cta-button {
    background: #ff9900;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}

/* ==============================================
   SECTIONS (Services, About, Speaking, Contact)
   ============================================== */
.services,
.about,
.speaking,
.contact {
    padding: 40px 0;
    text-align: center;
}

.services h2,
.about h2,
.speaking h2,
.contact h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

/* ==============================================
   GRIDS – Services cards & Team members
   ============================================== */
.service-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.service-card,
.team-member {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}
.service-icon {
    width: 80px;              /* Adjust size as needed – 64px to 100px works well */
    height: 80px;
    margin-bottom: -20px;      /* Space between icon and title */
    display: block;
    margin-left: auto;
    margin-right: auto;       /* Centers the icon */
}

.service-card {
    text-align: center;       /* Makes everything centered under the icon */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* Team member specific styles */
.team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 8px;
}

/* Justify bio text, but keep job title centered */
.team-member p {
    text-align: justify;
    line-height: 1.6;
}

.team-member p strong {
    display: block;
    text-align: center;          /* or change to 'left' if preferred */
    margin-bottom: -20px;
}

/* ==============================================
   SPEAKING SECTION – Light background contrast
   ============================================== */
.speaking {
    position: relative;
    min-height: 500px;           /* Adjust for your content amount */
    color: white;                /* White text for contrast */
    text-align: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.speaking-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/speaking-bg.jpg');  /* ← Your filename here */
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.65);  /* Stronger fade for readability */
    opacity: 0.8;
    z-index: 1;
}

.speaking-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 60px 20px;
}

.speaking h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.speaking p, .speaking ul {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.speaking ul {
    list-style: none;
    padding: 0;
}

.speaking li {
    margin: 10px 0;
    font-weight: bold;
}

/* Dark overlay for extra contrast (optional but recommended) */
.speaking::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 51, 102, 0.45);  /* Dark blue tint */
    z-index: 1;
}

/* ==============================================
   CONTACT FORM
   ============================================== */
form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    height: 50px;
}

form textarea {
    height: 150px;
    resize: vertical;
}

form button {
    width: 100%;
    background: #ff9900;
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 5px;
}

/* ==============================================
   FOOTER
   ============================================== */
footer {
    background: #003366;
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* ==============================================
   MOBILE RESPONSIVENESS
   ============================================== */
@media (max-width: 768px) {
    header nav ul {
        float: none;
        text-align: center;
    }
    
    header nav li {
        display: block;
        margin: 10px 0;
    }
}