:root {
    --emerald-deep: #0d4a3c;
    --emerald-primary: #1a6b54;
    --emerald-light: #2d8a6e;
    --emerald-pale: #e8f5f0;
    --emerald-mist: #f4faf8;
    --gold-accent: #c9a962;
    --cream: #fdfcfa;
    --charcoal: #2c2c2c;
    --slate: #5a6a6a;
    --soft-gray: #8a9a9a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.75;
    font-weight: 400;
    font-size: 1.05rem;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.3;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(253, 252, 250, 0.97);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(26, 107, 84, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--emerald-deep);
    text-decoration: none;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.logo span {
    color: var(--gold-accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--slate);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--emerald-primary);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-toggle .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(13, 74, 60, 0.12);
    border: 1px solid rgba(26, 107, 84, 0.1);
    list-style: none;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--slate);
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background: var(--emerald-pale);
    color: var(--emerald-deep);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--emerald-deep);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(165deg, var(--cream) 0%, var(--emerald-mist) 50%, var(--emerald-pale) 100%);
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(26, 107, 84, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 5vw, 4rem);
    color: var(--emerald-deep);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content h1 span {
    color: var(--emerald-light);
}

.tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--gold-accent);
    font-style: italic;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--slate);
    max-width: 520px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    background: var(--emerald-primary);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid var(--emerald-primary);
}

.cta-button:hover {
    background: var(--emerald-deep);
    border-color: var(--emerald-deep);
    transform: translateY(-2px);
}

.cta-secondary {
    background: transparent;
    color: var(--emerald-primary);
    margin-left: 1rem;
}

.cta-secondary:hover {
    background: var(--emerald-pale);
    border-color: var(--emerald-primary);
    color: var(--emerald-deep);
}

.hero-visual {
    position: relative;
}

.hero-graphic {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, var(--emerald-primary) 0%, var(--emerald-deep) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-graphic::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 30px,
        rgba(255,255,255,0.02) 30px,
        rgba(255,255,255,0.02) 60px
    );
    animation: subtleMove 30s linear infinite;
}

@keyframes subtleMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100px, -100px); }
}

.graphic-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.graphic-text .large-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5.5rem;
    font-weight: 700;
    opacity: 0.95;
}

.graphic-text .label {
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.hero-graphic a {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.hero-graphic a:hover {
    transform: scale(1.05);
}

/* Page Header (for inner pages) */
.page-header {
    background: var(--emerald-deep);
    padding: 10rem 2rem 5rem;
    text-align: center;
    color: white;
    position: relative;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 7rem 2rem;
    background: white;
}

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

.section-container.wide {
    max-width: 1200px;
}

.section-label {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--emerald-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--emerald-deep);
    margin-bottom: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-text p {
    color: var(--slate);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-item {
    padding: 1.5rem;
    background: var(--emerald-mist);
    border-left: 3px solid var(--emerald-primary);
}

.highlight-item h4 {
    color: var(--emerald-deep);
    font-size: 1.4rem;
    margin-bottom: 0;
}

.highlight-item p {
    color: var(--slate);
    font-size: 1rem;
}

/* Header-only highlight items (no description) */
.highlight-item.header-only {
    padding: 1.25rem 1.5rem;
}

.highlight-item.header-only h4 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

/* Services Section */
.services {
    padding: 7rem 2rem;
    background: var(--emerald-mist);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(13, 74, 60, 0.08);
    border-color: var(--emerald-pale);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: var(--emerald-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--emerald-primary);
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--emerald-deep);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--slate);
    font-size: 1rem;
}

/* Flip Card Styles */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 200px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 1px solid transparent;
}

.flip-card-front {
    background: white;
}

.flip-card-front:hover {
    border-color: var(--emerald-pale);
}

.flip-card-front .service-icon {
    margin-bottom: 1rem;
}

.flip-card-front h3 {
    font-size: 1.4rem;
    color: var(--emerald-deep);
    margin: 0;
}

.flip-card-back {
    background: var(--emerald-primary);
    color: white;
    transform: rotateY(180deg);
}

.flip-card-back p {
    font-size: 1rem;
    line-height: 1.6;
    color: white;
}

/* CEO Section */
.leadership {
    padding: 7rem 2rem;
    background: white;
}

.leadership-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: start;
}

.ceo-image {
    position: relative;
}

.ceo-photo {
    width: 100%;
    height: 420px;
    background: linear-gradient(135deg, var(--emerald-light) 0%, var(--emerald-deep) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    text-align: center;
    padding: 2rem;
}

.ceo-image::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold-accent);
    z-index: -1;
}

.ceo-info h3 {
    font-size: 2.2rem;
    color: var(--emerald-deep);
    margin-bottom: 0.5rem;
}

.ceo-title {
    color: var(--gold-accent);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.ceo-bio p {
    color: var(--slate);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.credential-tag {
    background: var(--emerald-pale);
    color: var(--emerald-deep);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--emerald-primary);
    text-decoration: none;
    margin-top: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--emerald-deep);
}

/* Academic Section */
.academic {
    padding: 7rem 2rem;
    background: linear-gradient(180deg, var(--emerald-deep) 0%, #0a3a2f 100%);
    color: white;
}

.academic .section-label {
    color: var(--gold-accent);
}

.academic .section-title {
    color: white;
}

.academic-intro {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 3rem;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.publication-card {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.publication-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(201, 169, 98, 0.3);
    transform: translateY(-3px);
}

.publication-card h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.publication-card p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.publication-card .journal {
    color: var(--gold-accent);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.publication-card .citations {
    display: inline-block;
    background: var(--gold-accent);
    color: var(--emerald-deep);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
}

.publication-card .external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--gold-accent);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.book-highlight {
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.3);
    padding: 2rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.book-highlight:hover {
    background: rgba(201, 169, 98, 0.15);
    transform: translateY(-3px);
}

.book-icon {
    width: 80px;
    height: 100px;
    background: var(--gold-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-deep);
    font-size: 2rem;
}

.book-info h4 {
    color: var(--gold-accent);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.book-info .publisher {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.book-info p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.book-info .view-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--gold-accent);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Video Section */
.video-section {
    padding: 7rem 2rem;
    background: var(--cream);
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-top: 2rem;
    box-shadow: 0 30px 60px rgba(13, 74, 60, 0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Section */
.contact {
    padding: 7rem 2rem;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--emerald-deep);
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--slate);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--slate);
}

.contact-item .icon {
    width: 40px;
    height: 40px;
    background: var(--emerald-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-primary);
}

.contact-form {
    background: var(--emerald-mist);
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(26, 107, 84, 0.2);
    background: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--emerald-primary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--emerald-primary);
    color: white;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: var(--emerald-deep);
}

/* Profile Links Section */
.profile-links {
    padding: 4rem 2rem;
    background: var(--emerald-mist);
}

.profile-links .section-container {
    text-align: center;
}

.profile-links h3 {
    font-size: 1.5rem;
    color: var(--emerald-deep);
    margin-bottom: 2rem;
}

.profile-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: white;
    color: var(--emerald-deep);
    text-decoration: none;
    border: 1px solid rgba(26, 107, 84, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.profile-link:hover {
    border-color: var(--emerald-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(13, 74, 60, 0.1);
}

.profile-link svg {
    width: 24px;
    height: 24px;
}

/* Footer */
footer {
    background: var(--emerald-deep);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.footer-brand h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h5 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--gold-accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem 2rem 2rem;
        gap: 0;
        box-shadow: 0 10px 40px rgba(13, 74, 60, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links > li {
        width: 100%;
        border-bottom: 1px solid rgba(26, 107, 84, 0.1);
    }

    .nav-links > li > a {
        display: block;
        padding: 1rem 0;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--emerald-mist);
        margin: 0;
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-container,
    .about-content,
    .leadership-content,
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .publications-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }

    .hero-graphic {
        height: 300px;
    }

    .ceo-image::after {
        display: none;
    }

    .book-highlight {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .book-icon {
        margin: 0 auto;
    }

    .cta-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }
}

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

.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}
