
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background: #e9edf3;
    color: #1f2d3d;
    line-height: 1.6;
}

img {
    width: 100%;
    display: block;
    border-radius: 14px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(244, 247, 250, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    z-index: 100;
}

.navbar-left {
    display: flex;
    align-items: center;
    min-height: 78px;
    flex: 1;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.02em;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    text-decoration: none;
}

.navbar-brand {
    margin-left: 0;
    margin-right: 0;
    padding: 12px 24px;
    border-radius: 0 0 14px 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(37, 99, 235, 0.04));
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-top: 0;
    border-left: 0;
    color: #0f172a;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    width: fit-content;
}

.navbar-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(37, 99, 235, 0.08));
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.nav-links a:hover {
    color: #1d4ed8;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 101;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #1f2d3d;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -7px);
}

.portfolio-nav-link {
    padding: 7px 13px;
    border: 1px solid #2563eb;
    border-radius: 999px;
    color: #2563eb;
    background: rgba(255, 255, 255, 0.8);
    margin-left: 2px;
}

.portfolio-nav-link:hover {
    background: #2563eb;
    color: white;
}

.hero {
    background-color: #dfe6ee;
    background-image: url('images/bgs/banner-plus-headshot.png');
    background-position: right top;
    background-repeat: no-repeat;
    background-size: auto 200%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        background-image: url('images/bgs/banner-image3.png');
        background-position: center;
        background-size: cover;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
    padding: 160px 8% 80px;
}

.hero-text {
    max-width: 680px;
    position: relative;
    z-index: 3;
    padding: 0;
}

.hero-content { position: relative; }

.hero-image { display: none; }

section[id] {
    scroll-margin-top: 96px;
}

.hero-text h1 {
    font-size: 3.4rem;
    line-height: 1.1;
    margin-bottom: 12px;
    color: #f8fbff;
    text-shadow: 0 2px 12px rgba(2, 6, 23, 0.78);
    font-weight: 800;
}

.hero-text h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #dce7f8;
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(2, 6, 23, 0.7);
}

.hero-text p {
    font-size: 1.1rem;
    max-width: 650px;
    color: #edf4ff;
    margin-bottom: 32px;
    text-shadow: 0 2px 8px rgba(2, 6, 23, 0.7);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.primary-btn,
.secondary-btn,
.tertiary-btn {
    padding: 15px 26px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
    font-size: 1rem;
}

.primary-btn,
.secondary-btn,
.tertiary-btn {
    background: rgba(248, 250, 252, 0.96);
    border: 2px solid #2563eb;
    color: #1d4ed8;
}

.primary-btn:hover,
.secondary-btn:hover,
.tertiary-btn:hover {
    background: #1d4ed8;
    color: white;
    transform: translateY(-2px);
}

.hero-image img {
    box-shadow: 0 24px 60px rgba(15,23,42,0.18);
    border: 6px solid rgba(255,255,255,0.9);
}

.banner-section,
.image-highlight img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 0;
}

.banner-section {
    display: block;
    height: 2px;
    margin: 0;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.75), rgba(37, 99, 235, 0.15));
    box-shadow: none;
}

.section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 100px 8%;
}

.section h3,
.expertise-section h3 {
    font-size: 2.2rem;
    margin-bottom: 24px;
    color: #172638;
}

.contact-section h3 {
    font-size: 2.2rem;
    margin-bottom: 24px;
    color: #ffffff;
}

.section-text p {
    margin-bottom: 18px;
    color: #475569;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.expertise-section {
    padding: 100px 8%;
}

.info-card {
    background: rgba(244, 247, 250, 0.95);
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(15,23,42,0.08);
    border: 1px solid rgba(148,163,184,0.16);
    transition: 0.3s;
}

.info-card:hover {
    transform: translateY(-6px);
}

.info-card h4 {
    margin-bottom: 14px;
    font-size: 1.2rem;
    color: #172638;
}

.info-card p {
    color: #475569;
}

.experience-list {
    padding-left: 20px;
}

.experience-list li {
    margin-bottom: 14px;
    color: #475569;
}

.experience-image {
    width: 100%;
    min-height: 100%;
}

.experience-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.experience-section {
    align-items: stretch;
}

@media (max-width: 900px) {   
    .section {
        grid-template-columns: 1fr;
    }

    .experience-image img {
        border-radius: 14px;
    }
}


.experience-image img {
    width: 100%;
    height: auto;
}

footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 24px 8%;
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.contact-links a,
.footer-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 26px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: none;
    font-size: 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: white;
    cursor: pointer;
    font-family: inherit;
}

.contact-links a:hover,
.footer-copy-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #17253a;
    transform: translateY(-2px);
}

.contact-section {
    padding: 100px 8%;
    text-align: center;
    background: linear-gradient(135deg, #111827 0%, #17253a 100%);
    color: #f8fafc;
}

.contact-card {
    max-width: 700px;
    margin: 0 auto;
}

.contact-card p {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.portfolio-hero {
    min-height: auto;
}

.portfolio-content {
    padding-top: 140px;
    padding-bottom: 60px;
}

.portfolio-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.portfolio-button {
    cursor: pointer;
    border: 2px solid #2563eb;
    background: rgba(255,255,255,0.7);
    color: #2563eb;
}

.portfolio-button.is-active,
.portfolio-button:hover {
    background: #2563eb;
    color: white;
}

.portfolio-section {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 40px;
    align-items: start;
    padding: 100px 8%;
}

.portfolio-note {
    margin-top: 16px;
    font-size: 0.95rem;
    color: #64748b;
}

.portfolio-viewer-card {
    background: rgba(255,255,255,0.95);
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(15,23,42,0.08);
    border: 1px solid rgba(148,163,184,0.2);
    max-width: 980px;
    margin: 0 auto;
}

.portfolio-iframe-wrapper {
    width: min(860px, 100%);
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.portfolio-iframe-wrapper iframe {
    display: block;
    width: 100%;
    height: 560px;
    border: 0;
}

.portfolio-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.portfolio-viewer-header h4 {
    color: #0f172a;
    font-size: 1.2rem;
}

.portfolio-viewer-header span {
    color: #64748b;
    font-size: 0.95rem;
}

.portfolio-viewer-card iframe {
    border: none;
    border-radius: 12px;
    min-height: 600px;
    background: #f8fafc;
}

.contact-links a {
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 12px 18px;
    border-radius: 10px;
    transition: 0.3s;
}

.contact-links a:hover {
    background: white;
    color: #0f172a;
}

.references-section {
    display: block;
    padding: 100px 8%;
}

.reference-item {
    background: rgba(244, 247, 250, 0.95);
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.15);
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.references-section .reference-item:last-child {
    margin-bottom: 0;
}

.reference-image-container {
    flex-shrink: 0;
    width: 200px;
}

.reference-image-link {
    display: block;
    width: 100%;
    aspect-ratio: 1;
}

.reference-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.reference-image-link:hover .reference-image {
    transform: scale(1.1);
}

.reference-caption {
    text-align: center;
    color: #243447;
    font-weight: 600;
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.reference-title {
    text-align: center;
    color: #2563eb;
    font-weight: 600;
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.reference-text p {
    color: #233243;
    line-height: 1.6;
}

footer {
    background: linear-gradient(135deg, #020617 0%, #0e1a2b 100%);
    color: #cbd5e1;
    text-align: center;
    padding: 24px;
}

/* Tablet & Small Desktop (900px and below) */
@media (max-width: 900px) {
    .navbar {
        padding: 0 5%;
    }

    .hero-content,
    .section {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 100px 5%;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        font-weight: 800;
    }

    .hero-text p {
        font-size: 1rem;
        font-weight: 600;
    }

    .nav-links {
        gap: 20px;
    }

    .section h3 {
        font-size: 1.8rem;
    }

    .portfolio-section {
        grid-template-columns: 1fr;
        padding: 80px 5%;
    }

    .portfolio-iframe-wrapper {
        width: 100%;
    }

    .portfolio-iframe-wrapper iframe {
        height: 400px;
    }

    .banner-section img,
    .image-highlight img {
        height: 300px;
    }

    .references-section {
        padding: 80px 5%;
    }

    .reference-item {
        padding: 24px;
        gap: 20px;
    }

    .reference-image-container {
        width: 160px;
    }

    .contact-section {
        padding: 80px 5%;
    }

    .expertise-section {
        padding: 80px 5%;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    body {
        font-size: 16px;
    }

    .navbar {
        padding: 0 4%;
        min-height: 64px;
        justify-content: space-between;
    }

    .navbar-left {
        min-height: 64px;
        flex: 0 0 auto;
    }

    .logo {
        font-size: 1rem;
    }

    .navbar-brand {
        padding: 10px 16px;
        min-height: 44px;
        font-size: 0.95rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(244, 247, 250, 0.98);
        backdrop-filter: blur(10px);
        padding: 16px 0;
        border-bottom: 1px solid rgba(37, 99, 235, 0.1);
        z-index: 99;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 0.9rem;
        font-weight: 400;
        padding: 12px 4%;
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .portfolio-nav-link {
        padding: 12px 4%;
        font-size: 0.9rem;
        border: none;
        border-radius: 0;
        background: linear-gradient(90deg, rgba(37, 99, 235, 0.1), transparent);
    }

    .portfolio-nav-link:hover {
        background: linear-gradient(90deg, rgba(37, 99, 235, 0.2), transparent);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hero Section */
    .hero {
        background-position: right center;
        background-size: auto 150%;
        min-height: 95vh;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 140px 4% 60px;
    }

    section[id] {
        scroll-margin-top: 74px;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.15;
        margin-bottom: 16px;
        text-shadow: 0 2px 6px rgba(2, 6, 23, 0.85);
        font-weight: 800;
    }

    .hero-text h2 {
        font-size: 1.1rem;
        margin-bottom: 16px;
        font-weight: 700;
    }

    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 24px;
        line-height: 1.5;
        font-weight: 600;
    }

    .hero-buttons {
        gap: 12px;
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn,
    .tertiary-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
        min-height: 48px;
    }

    /* Sections */
    .section {
        padding: 60px 4%;
        gap: 30px;
    }

    .section h3 {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }

    .section-text p {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }

    .experience-list {
        padding-left: 18px;
    }

    .experience-list li {
        font-size: 0.95rem;
        margin-bottom: 12px;
        line-height: 1.5;
    }

    .experience-list li strong {
        display: inline;
        margin-bottom: 0;
    }

    /* Cards */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .info-card {
        padding: 20px;
        border-radius: 12px;
    }

    .info-card h4 {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }

    .info-card p {
        font-size: 0.9rem;
    }

    /* Portfolio */
    .portfolio-content {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .portfolio-section {
        padding: 60px 4%;
        gap: 30px;
    }

    .portfolio-buttons {
        gap: 12px;
    }

    .portfolio-button {
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .portfolio-viewer-card {
        padding: 16px;
        border-radius: 12px;
    }

    .portfolio-iframe-wrapper {
        width: 100%;
        border-radius: 10px;
    }

    .portfolio-iframe-wrapper iframe {
        height: 350px;
    }

    .portfolio-viewer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .portfolio-viewer-header h4 {
        font-size: 1rem;
    }

    .portfolio-viewer-header span {
        font-size: 0.85rem;
    }

    .portfolio-viewer-card iframe {
        min-height: 450px;
    }

    /* References */
    .references-section {
        padding: 60px 4%;
    }

    .reference-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        gap: 16px;
        margin-bottom: 20px;
    }

    .reference-image-container {
        width: 140px;
        flex-shrink: 0;
    }

    .reference-text p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .reference-caption {
        font-size: 0.9rem;
        margin-top: 10px;
    }

    .reference-title {
        font-size: 0.85rem;
        margin-top: 4px;
    }

    /* Contact Section */
    .contact-section {
        padding: 60px 4%;
    }

    .contact-section h3 {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }

    .contact-card p {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .contact-card p strong {
        display: block;
    }

    .contact-links {
        gap: 12px;
        margin-top: 20px;
    }

    .contact-links a,
    .footer-copy-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        width: 100%;
        min-height: 48px;
    }

    /* Footer */
    footer {
        padding: 20px 4%;
        font-size: 0.9rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
    }

    .footer-contact {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    /* Expertise Section */
    .expertise-section {
        padding: 60px 4%;
    }

    .expertise-section h3 {
        font-size: 1.6rem;
    }

    .banner-section {
        height: 2px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .navbar {
        padding: 0 3%;
    }

    .navbar-brand {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .nav-links {
        top: 64px;
    }

    .logo {
        font-size: 0.85rem;
    }

    .hero {
        min-height: 90vh;
    }

    .hero-content {
        padding: 120px 3% 40px;
    }

    .hero-text h1 {
        font-size: 1.6rem;
        margin-bottom: 12px;
        font-weight: 800;
    }

    .hero-text h2 {
        font-weight: 700;
    }

    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 20px;
        font-weight: 600;
    }

    .primary-btn,
    .secondary-btn,
    .tertiary-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .section {
        padding: 40px 3%;
        gap: 20px;
    }

    .section h3 {
        font-size: 1.4rem;
        margin-bottom: 14px;
    }

    .section-text p,
    .experience-list li {
        font-size: 0.9rem;
    }

    .experience-list {
        padding-left: 16px;
    }

    .portfolio-section {
        padding: 40px 3%;
    }

    .portfolio-iframe-wrapper iframe {
        height: 280px;
    }

    .portfolio-viewer-card iframe {
        min-height: 380px;
    }

    .references-section {
        padding: 40px 3%;
    }

    .reference-item {
        padding: 16px;
        gap: 12px;
        margin-bottom: 16px;
    }

    .reference-image-container {
        width: 120px;
    }

    .reference-caption,
    .reference-title {
        font-size: 0.8rem;
        margin-top: 8px;
    }

    .contact-section {
        padding: 40px 3%;
    }

    .contact-section h3 {
        font-size: 1.4rem;
    }

    .contact-links a,
    .footer-copy-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    footer {
        padding: 16px 3%;
        font-size: 0.85rem;
    }

    .expertise-section {
        padding: 40px 3%;
    }
}


