/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Layout */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    padding-top: 0;
}

header {
    background-color: #235e6f;
    padding: 10px 20px;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    position: relative;
}

.logo-name {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo {
    height: 50px;
    margin-right: 10px;
}

.company-name {
    flex: 1 1 0;
    text-align: center;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: bold;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
}

/* Responsive company name for small screens */
@media (max-width: 450px) {
    .company-name {
        font-size: 1.1rem;
        white-space: normal;
        line-height: 1.2;
        pointer-events: none;
    }
    .company-name .ventures-break {
        display: block;
    }
}

/* By default, keep "ventures" inline */
.company-name .ventures-break {
    display: none;
}

.menu-toggle {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 5px 10px;
    font-size: 1rem;
    cursor: pointer;
    flex: 0 0 auto;
    margin-left: auto;
    z-index: 2;
}

nav {
    display: none;
    flex-direction: column;
    background-color: #1d4e5b;
    width: 100%;
}

nav.show {
    display: flex;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

nav li {
    padding: 10px 0;
    text-align: center;
}

/* Make nav horizontal on small screens when menu is open */
@media (max-width: 480px) {
    nav.show ul {
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 0.2rem; /* Reduced gap */
        }
        nav.show li {
        padding: 0 2px; /* Further reduced horizontal padding */
        text-align: center;
        white-space: nowrap;
        background: none !important;
        box-shadow: none !important;
        outline: none !important;
        background: none !important; /* Remove dark background */
        text-align: center;
        white-space: nowrap;
    }
}

@media (min-width: 768px) {
    nav {
        display: none;
        flex-direction: row;
        justify-content: center;
        width: auto;
        background-color: transparent;
    }

    nav.show {
        display: flex !important;
    }

    nav ul {
        flex-direction: row;
    }

    nav li {
        padding: 0 15px;
    }

    .menu-toggle {
        display: block;
    }
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
}

.nav-link:hover {
    background-color: #333;
    padding: 5px;
    border-radius: 5px;
}

/* Section Styles */
section {
    padding: 60px 40px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 1200px;
}

/* Center Section Titles */
section h2, section h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #235e6f;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* About Section */
#about {
    background-color: white;
    padding: 50px 20px;
}

.about-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.about-text-left {
    width: 50%;
}

.about-image {
    width: 45%;
    margin-top: -2%;
}

.about-text-left p, .about-text-right p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.profile-image {
    width: 70%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: block;
    margin: 0 auto;
}

.profile-image:hover {
    transform: scale(1.05);
}

/* Full-width text block under the first two sections */
.about-text-right {
    width: 100%;
    margin-top: 20px;
}

/* Services Section */
#services {
    padding: 3rem 2rem;
}

#services h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.services-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.services-column {
    width: 48%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-item {
    margin-bottom: 1.5rem;
}

.service-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.service-item p, .service-item ul {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Bullet points for the Sample Engagements list */
.services-column ul {
    padding-left: 20px;
    list-style-type: disc;
    font-size: 1.1rem;
    line-height: 1.6;
}

.services-column ul li {
    margin-bottom: 1rem;
}

/* Make image fit within the services column and space it vertically */
.services-column img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-top: auto;
}

/* Divider between the columns */
.services-divider {
    border-left: 2px solid #235e6f;
    height: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Fade-In Animation */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Public Speaking Section */
#public-speaking {
    background-color: #fff;
    padding: 50px 20px;
    margin-bottom: 20px;
}

#public-speaking h2 {
    font-size: 2.5rem;
    color: #235e6f;
    text-align: left;
    margin-bottom: 20px;
}

.public-speaking-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #666;
}

.text-container {
    flex: 1;
    text-align: left;
    padding-right: 20px;
}

.image-container {
    flex: 1;
    text-align: center;
    margin-top: -80px;
}

.public-speaking-image {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.public-speaking-content p, .public-speaking-content ul {
    margin-bottom: 20px;
}

.public-speaking-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* Recent Engagements Section */
.recent-engagements {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    max-width: 1200px;
    margin-top: -200px;
    padding-right: 50px;
    color: #666;
    font-size: 1.1rem;
    font-weight: normal;
}

.recent-engagements p {
    font-weight: bold;
    margin-bottom: 10px;
}

.recent-engagements ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* Resume Section Styles */
#resume {
    font-family: "Arial", sans-serif;
    max-width: 1200px;
    width: 100%;
    margin: 20px auto;
    padding: 60px 40px;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

#resume .section-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #235e6f;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 2px solid #235e6f;
    padding-bottom: 10px;
    text-align: center;
    letter-spacing: 1px;
}

#resume h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #235e6f;
    margin-top: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 1px solid #dddddd;
    padding-bottom: 5px;
}

#resume .experience h4 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #235e6f;
    margin-bottom: 5px;
}

#resume .experience p {
    margin: 5px 0;
    color: #666666;
    font-size: 1rem;
}

#resume ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-top: 10px;
    color: #444444;
}

#resume ul li {
    margin-bottom: 10px;
    font-size: 1rem;
}

#resume ul li strong {
    color: #235e6f;
    font-weight: bold;
}

#resume h3 + ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

#resume h3 + ul li {
    margin: 5px 0;
    font-size: 1rem;
    border-bottom: 1px solid #dddddd;
    padding: 5px 0;
}

#resume h3 + ul li:last-child {
    border-bottom: none;
}

#resume .contact-info {
    font-size: 1rem;
    text-align: center;
    margin-top: 20px;
    color: #444444;
}

#resume .contact-info a {
    color: #235e6f;
    text-decoration: none;
}

#resume .contact-info a:hover {
    text-decoration: underline;
}

/* Footer Section */
footer {
    background-color: #235e6f;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    width: 100%;
}

footer .copyright {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 16px;
}

footer a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 0;
    margin-bottom: 0;
}

footer a:hover {
    text-decoration: underline;
}

footer p {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Slightly reduce padding for tablets */
    section {
        padding: 40px 20px;
        margin: 20px 15px;
    }
    
    #resume {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    /* Header adjustments */
    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 15px;
    }

    .company-name h1 {
        font-size: 1.5rem;
    }

    #navbar ul {
        flex-direction: column;
        width: 100%;
    }

    #navbar li {
        margin: 10px 0;
    }

    /* About Section */
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-text-left,
    .about-image {
        width: 100%;
        margin: 0;
    }

    .profile-image {
        width: 70%;
        margin-bottom: 20px;
    }

    .about-text-right {
        width: 100%;
        margin-top: 30px;
    }

    /* Services Section */
    #services h2 {
        text-align: center;
        font-size: 2rem;
    }

    .services-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .services-column {
        width: 100%;
        height: auto;
    }

    .services-divider {
        display: none;
    }

    /* Public Speaking Section */
    #public-speaking {
        padding: 30px 15px;
    }

    #public-speaking h2 {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .public-speaking-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .text-container,
    .image-container {
        padding: 0;
        width: 100%;
        margin-top: 0;
    }

    .public-speaking-image {
        max-width: 80%;
        margin: 0 auto 20px;
    }

    /* Recent Engagements */
    .recent-engagements {
        max-width: 100%;
        align-items: center;
        padding: 0 15px;
        margin-top: 20px;
        text-align: center;
    }

    /* Resume Section */
    #resume {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    /* Font sizes smaller for phones */
    body {
        font-size: 14px;
    }

    .company-name h1 {
        font-size: 1.2rem;
    }

    #navbar li {
        margin: 8px 0;
    }

    .nav-link {
        font-size: 1rem;
        padding: 8px 10px;
    }

    section h2, section h1 {
        font-size: 1.5rem;
    }

    /* About Section */
    .profile-image {
        width: 90%;
    }

    /* Services Section */
    #services h2 {
        font-size: 1.8rem;
    }

    .service-item h3 {
        font-size: 1.4rem;
    }

    /* Public Speaking */
    #public-speaking h2 {
        font-size: 1.8rem;
    }

    /* Resume Section */
    #resume .section-title {
        font-size: 1.8rem;
    }

    #resume h3 {
        font-size: 1.4rem;
    }
}

/* Scrollbar for better usability */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #235e6f;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a4653;
}
