/* CSS Variables */
:root {
    --primary-color: #066aab;
    /*--text-dark: rgba(0, 0, 0, 0.85);*/
    --text-dark: #27282B;
    /*--text-medium: rgba(0, 0, 0, 0.7);*/
    --text-medium: #203239;
    --text-light: rgba(0, 0, 0, 0.5);
    /*--background-light: #ffffff;*/
    --background-light: #F1F5F8;
    --background-gray: #f8f9fa;
    /*--background-gray: #E9EFF1;*/
    /*--accent-blue: #066aab;*/
    --accent-blue: #1957EF;
    /*--accent-blue: #3B5998;*/
    --accent-gray: #cacaca;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --max-width: 1200px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background-light);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-family: Garamond, Georgia, 'Times New Roman', Times, serif;
    font-size: 2.5rem;
    /*font-weight: 600;*/
    font-weight: lighter;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: var(--spacing-md);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-medium);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

.quote-text {
    font-family: Garamond, Georgia, 'Times New Roman', Times, serif;
    font-size: 1.0rem;
    font-style: italic;
    font-weight: lighter;
}

/* Speech Bubbles */
.bubble-right,
.bubble-left {
    position: relative !important;
    background: #F8F9FA !important;
    background-color: #F8F9FA !important;
    padding: 1.0rem 1.5rem !important;
    border-radius: var(--border-radius) !important;
    display: block !important;
    max-width: 80%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    color: var(--text-dark) !important;
    margin: 1rem 0 !important;
    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.bubble-right a {
    color: var(--accent-blue) !important;
}

.bubble-right {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.bubble-left {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Bubble author attribution */
.bubble-author,
.bubble-author-left,
.bubble-author-right {
    font-size: 0.75rem !important;
    color: var(--text-light) !important;
    margin: 0.25rem 0.5rem !important;
    display: block !important;
    font-weight: 400 !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10 !important;
    max-width: 80%;
}

/* Author in hero section (on dark background) */
.hero .bubble-author,
.hero .bubble-author-left,
.hero .bubble-author-right {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Author aligned right */
.bubble-author-right,
.bubble-right + .bubble-author,
.bubble-author + .bubble-right,
.bubble-right .bubble-author {
    text-align: right !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* Author aligned left */
.bubble-author-left,
.bubble-left + .bubble-author,
.bubble-author + .bubble-left,
.bubble-left .bubble-author {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Bubble tail pointing to the right */
.bubble-right::after {
    content: '' !important;
    position: absolute !important;
    right: -15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-style: solid !important;
    border-width: 12px 0 12px 15px !important;
    border-color: transparent transparent transparent #F8F9FA !important;
    z-index: 10 !important;
    opacity: 1 !important;
}

/* Bubble tail pointing to the left */
.bubble-left::after {
    content: '' !important;
    position: absolute !important;
    left: -15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-style: solid !important;
    border-width: 12px 15px 12px 0 !important;
    border-color: transparent #F8F9FA transparent transparent !important;
    z-index: 10 !important;
    opacity: 1 !important;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-logo a {
    font-family: Garamond, Georgia, 'Times New Roman', Times, serif;
    font-size: 1.25rem;
    /*font-weight: 600;*/
    font-weight: lighter;
    color: var(--text-dark);

}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    list-style: none;
    gap: var(--spacing-md);
}

/* When nav-menu wraps to new line, center it */
@media (max-width: 768px) {
    .nav-container {
        justify-content: center;
    }

    .nav-logo {
        width: 100%;
        text-align: center;
        margin-bottom: var(--spacing-xs);
    }

    .nav-menu {
        justify-content: center;
        width: 100%;
    }
}

.nav-link {
    color: var(--text-medium);
    font-weight: 300;
    padding: var(--spacing-xs);
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gray);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    padding-top: calc(var(--spacing-xl) + 80px); /* Account for fixed navbar */
    background-image: url('images/bgr.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    color: white;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-blue);
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    animation: fadeInUp 0.8s ease 0.6s both;
    box-shadow: 0 4px 15px rgba(6, 106, 171, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 106, 171, 0.3);
    opacity: 1;
}

/* Section Styling */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-underline {
    display: none;
}

/* About Section */
.about {
    background: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.about-text {
    animation: fadeInLeft 0.8s ease;
}

.values-list {
    list-style: none;
    margin: var(--spacing-sm) 0;
}

.values-list li {
    padding: var(--spacing-xs);
    /*margin-bottom: var(--spacing-sm);*/
    /*background: var(--background-gray);*/
    border-radius: var(--border-radius);
    /*border-left: 4px solid var(--accent-blue);*/
    color: var(--text-medium);
}

.credentials {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--background-gray);
    border-radius: var(--border-radius);
}

.about-image {
    animation: fadeInRight 0.8s ease;
}

.image-placeholder {
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 8px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.image-placeholder svg {
    width: 100%;
    height: 100%;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Contact Section */
.contact {
    background: var(--background-gray);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

.contact-methods {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: lighter;
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.contact-item .icon {
    width: 32px;
    height: 32px;
    /*color: var(--accent-blue);*/
    flex-shrink: 0;
}

.contact-item i {
    font-size: 24px;
    /*color: var(--accent-blue);*/
    flex-shrink: 0;
    font-weight: lighter;
}

.contact-item h4 {
    margin: 0;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.contact-item a {
    font-size: 1.125rem;
    font-weight: lighter;
}

.cta-box {
    text-align: center;
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cta-box h3 {
    margin-top: 0;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: var(--spacing-md);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .nav-menu {
        gap: var(--spacing-sm);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    section {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .hero-title {
        font-size: 2rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
    }
}
