/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #F8F9FA;
    --dark-text: #2C3E50;
    --light-text: #5D6D7E;
    --primary-accent: #1ABC9C;
    --primary-accent-dark: #16A085;
    --white: #FFFFFF;
    --highlight-bg: rgba(26, 188, 156, 0.1);
    --shadow-light: rgba(0,0,0,0.08);
    --shadow-dark: rgba(0,0,0,0.15);
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--primary-bg);
    padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--light-text);
}

strong {
    color: var(--dark-text);
}

a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-accent-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Styles */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 5px var(--shadow-light);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark-text);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--dark-text);
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-text);
}

/* Hero Section */
#home {
    padding: 5rem 0;
    text-align: center;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(26, 188, 156, 0.05) 100%);
    margin-top: -80px;
    padding-top: calc(5rem + 80px);
}

.hero-content h1 {
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--dark-text) 0%, var(--primary-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-accent);
    margin-bottom: 1.5rem;
    text-align: center;
}

.tagline {
    font-size: 1.3rem;
    color: var(--light-text);
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.8;
}

.personal-brand-tag {
    font-size: 1.0rem;
    color: var(--primary-accent);
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.credibility-bar {
    display: inline-block;
    background-color: var(--highlight-bg);
    padding: 0.5rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    color: var(--primary-accent);
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-accent);
    color: var(--white);
    border: 2px solid var(--primary-accent);
}

.btn-primary:hover {
    background-color: var(--primary-accent-dark);
    border-color: var(--primary-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 188, 156, 0.3);
}

.btn-secondary {
    border: 2px solid var(--primary-accent);
    color: var(--primary-accent);
}

.btn-secondary:hover {
    background-color: var(--primary-accent);
    color: var(--white);
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 6rem 0;
}

#about, #contact { 
    background-color: var(--white);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: start;
}

.headshot-placeholder {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
}

.about-text h3 {
    color: var(--primary-accent);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: left;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: left;
    margin-bottom: 1rem;
}

.about-text ul {
    list-style-position: outside;
    list-style-type: '✓ ';
    margin-left: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
    padding-left: 1rem;
}

.about-text ul li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

/* Card Grid Styles (for Insights) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-accent), var(--primary-accent-dark));
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-dark);
}

.card h3 {
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.card p {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 1.05rem;
    flex-grow: 1;
}

/* Styling for the "Read More" link */
.read-more-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: bold;
    color: var(--primary-accent);
}

.read-more-link:hover {
    color: var(--primary-accent-dark);
    text-decoration: underline;
}

/* Education / Credentials Section */
#education {
    background-color: var(--primary-bg);
}

.credentials-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.credential-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.credential-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-dark);
}

.credential-card h3 {
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-accent);
    padding-bottom: 1rem;
}

.credential-item {
    margin-bottom: 1.5rem;
}

.credential-item:last-child {
    margin-bottom: 0;
}

.credential-item h4 {
    color: var(--dark-text);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.credential-item p {
    color: var(--light-text);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
}

.certification-badge {
    display: inline-block;
    background-color: var(--primary-accent);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* Contact Section */
#contact {
    text-align: center;
    background: var(--white);
}

#contact h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

#contact p {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    color: var(--dark-text);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.social-links a {
    font-size: 2.5rem;
    color: var(--light-text);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-accent);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: var(--dark-text);
    color: #bdc3c7;
    text-align: center;
    padding: 2rem 0;
}

/* Chatbot Styles */
#chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#chatbot-toggle {
    background-color: var(--primary-accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chatbot-toggle:hover {
    background-color: var(--primary-accent-dark);
}

#chat-window {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    width: 320px;
    height: 400px;
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}

#chat-window.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#chat-window .chat-header {
    background-color: var(--primary-accent);
    color: var(--white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

#chat-window .chat-header h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.2rem;
    border-bottom: none;
    padding-bottom: 0;
}

#chat-window .close-chat {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

#chat-window .chat-body {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    background-color: var(--primary-bg);
}

#chat-window .chat-body .bot-message,
#chat-window .chat-body .user-message {
    max-width: 85%;
    padding: 0.7rem 1rem;
    border-radius: 15px;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

#chat-window .chat-body .bot-message {
    background-color: var(--white);
    color: var(--dark-text);
    margin-right: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

#chat-window .chat-body .user-message {
    background-color: var(--primary-accent);
    color: var(--white);
    margin-left: auto;
    box-shadow: 0 2px 4px rgba(26, 188, 156, 0.2);
}


#chat-window .chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #eee;
    background-color: var(--white);
}

#chat-window .chat-input input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0.7rem 1rem;
    margin-right: 0.5rem;
    font-size: 1rem;
}

#chat-window .chat-input button {
    background-color: var(--primary-accent);
    color: var(--white);
    border: none;
    border-radius: 20px;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#chat-window .chat-input button:hover {
    background-color: var(--primary-accent-dark);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .headshot-placeholder {
        margin: 0 auto;
        width: 250px;
        height: 250px;
    }
    .about-text h3, .about-text p, .about-text ul {
        text-align: center;
    }
    .about-text ul {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    #home {
        margin-top: -70px;
        padding-top: calc(4rem + 70px);
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-content h2 { font-size: 1.6rem; }
    .nav-container { padding: 0.5rem 20px; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 5px 15px var(--shadow-dark);
        display: none;
    }
    .nav-links.active { display: flex; }
    .mobile-menu-toggle { display: block; }
    .tagline { font-size: 1.1rem; }
    .credentials-card-grid { grid-template-columns: 1fr; }
    .social-links a { font-size: 2.2rem; }

    .about-content {
        gap: 2rem;
    }
    .headshot-placeholder {
        width: 200px;
        height: 200px;
    }
    .about-text h3, .about-text p, .about-text ul {
        text-align: left;
    }
    .about-text ul {
        display: block;
    }

    #chatbot-widget {
        bottom: 15px;
        right: 15px;
    }
    #chat-window {
        width: calc(100vw - 30px);
        height: calc(100vh - 100px);
        bottom: 80px;
        right: 15px;
        left: 15px;
        margin: auto;
    }
}