/* Theme: Nautical - Day 14 (Letter N): Inspired by maritime navigation, sailing vessels, ocean voyages, naval architecture, compass roses, lighthouse beacons, rope knots, sea charts, coastal harbors, ship wheels, anchors, naval signals, maritime heritage, ocean depths, seafaring tradition */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&family=Lato:wght@300;400;700;900&display=swap');

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 75px;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1e3a4d;
    background: #f8fbfc;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 25px,
            rgba(41, 98, 139, 0.01) 25px,
            rgba(41, 98, 139, 0.01) 50px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 25px,
            rgba(175, 143, 96, 0.008) 25px,
            rgba(175, 143, 96, 0.008) 50px
        );
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(41, 98, 139, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(175, 143, 96, 0.035) 0%, transparent 38%);
    pointer-events: none;
    z-index: 0;
    animation: oceanTide 30s ease-in-out infinite alternate;
}

@keyframes oceanTide {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

#topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 251, 252, 0.95);
    border-bottom: 3px solid #29628b;
    box-shadow: 0 3px 15px rgba(30, 58, 77, 0.1);
    transition: all 0.35s ease;
}

#topnav.scrolled {
    background: rgba(248, 251, 252, 0.98);
    box-shadow: 0 5px 25px rgba(30, 58, 77, 0.15);
}

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

.logo h1 {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: #1e3a4d;
    margin: 0;
    letter-spacing: 1px;
    position: relative;
    padding-left: 3rem;
    text-transform: uppercase;
}

.logo h1::before {
    content: '⚓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #29628b;
    animation: anchorSway 4s ease-in-out infinite;
}

@keyframes anchorSway {
    0%, 100% {
        transform: translateY(-50%) rotate(0deg);
    }
    25% {
        transform: translateY(-48%) rotate(5deg);
    }
    75% {
        transform: translateY(-52%) rotate(-5deg);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-menu li a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: #1e3a4d;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 4px;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: #29628b;
    transition: transform 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #29628b;
    background: rgba(41, 98, 139, 0.06);
}

.mobile-toggle {
    display: none;
    background: #29628b;
    border: none;
    color: #f8fbfc;
    font-size: 1.6rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.mobile-toggle:hover {
    background: #1e4a68;
    transform: scale(1.05);
}

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 130px 0 90px;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '☸';
    position: absolute;
    top: 10%;
    right: 5%;
    font-size: 18rem;
    color: rgba(41, 98, 139, 0.02);
    animation: wheelSpin 60s linear infinite;
}

#hero::after {
    content: '⛵';
    position: absolute;
    bottom: 12%;
    left: 4%;
    font-size: 15rem;
    color: rgba(175, 143, 96, 0.02);
    animation: sailDrift 20s ease-in-out infinite;
}

@keyframes wheelSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes sailDrift {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(40px);
    }
}

.hero-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    font-family: 'Merriweather', serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #1e3a4d;
    letter-spacing: -0.5px;
}

.hero-text h1 br {
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #4a6b7d;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    font-family: 'Lato', sans-serif;
    position: relative;
    border: 2px solid transparent;
    text-transform: uppercase;
    border-radius: 4px;
}

.btn-primary {
    background: #29628b;
    color: #f8fbfc;
    border-color: #29628b;
    box-shadow: 0 4px 15px rgba(41, 98, 139, 0.3);
}

.btn-primary:hover {
    background: #1e4a68;
    border-color: #1e4a68;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 98, 139, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #29628b;
    border: 2px solid #29628b;
}

.btn-secondary:hover {
    background: #29628b;
    color: #f8fbfc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 98, 139, 0.3);
}

.hero-image {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.profile-card {
    background: #ffffff;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(30, 58, 77, 0.15);
    transition: all 0.35s ease;
    position: relative;
    border-radius: 4px;
    border: 1px solid #e0e8ed;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #29628b 0%, #af8f60 100%);
}

.profile-card::after {
    content: '🧭';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 4rem;
    opacity: 0.04;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(30, 58, 77, 0.2);
}

.profile-card img {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.profile-details h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #1e3a4d;
    font-weight: 900;
}

.profile-details p {
    color: #4a6b7d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links a {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #af8f60;
    color: #f8fbfc;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(175, 143, 96, 0.3);
}

.social-links a:hover {
    background: #8d7349;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(175, 143, 96, 0.4);
}

section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-header::before {
    content: '◈';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: rgba(41, 98, 139, 0.2);
}

.section-header h2 {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    color: #1e3a4d;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #29628b, transparent);
}

#experience {
    background: #ffffff;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #29628b;
    opacity: 0.2;
}

.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
    position: relative;
}

.timeline-year {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #29628b;
    position: relative;
    z-index: 2;
    text-align: right;
    padding-right: 2rem;
}

.timeline-year::after {
    content: '';
    position: absolute;
    right: -52px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: #29628b;
    border-radius: 50%;
    border: 3px solid #f8fbfc;
    box-shadow: 0 0 0 3px rgba(41, 98, 139, 0.2);
}

.timeline-content {
    background: #ffffff;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(30, 58, 77, 0.08);
    position: relative;
    border-radius: 4px;
    border: 1px solid #e0e8ed;
    border-left: 4px solid transparent;
}

.timeline-content:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(30, 58, 77, 0.12);
    border-left-color: #29628b;
}

.timeline-content h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1e3a4d;
    font-weight: 900;
}

.timeline-content h4 {
    color: #29628b;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.timeline-content p {
    color: #4a6b7d;
    line-height: 1.7;
    margin: 0;
}

.timeline-content a {
    color: #29628b;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
}

.timeline-content a:hover {
    border-bottom-color: #29628b;
}

#ai {
    background: #f3f7f9;
}

.ai-projects {
    display: grid;
    gap: 3rem;
}

.project-card {
    background: #ffffff;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 20px rgba(30, 58, 77, 0.1);
    border-radius: 4px;
    border: 1px solid #e0e8ed;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #29628b 0%, #af8f60 100%);
}

.project-card::after {
    content: '⚓';
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 3.5rem;
    opacity: 0.03;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(30, 58, 77, 0.15);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    color: #1e3a4d;
    margin: 0;
    font-weight: 900;
}

.project-client {
    color: #29628b;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card > p {
    color: #4a6b7d;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.project-impact {
    background: rgba(41, 98, 139, 0.05);
    padding: 1.5rem;
    color: #1e3a4d;
    line-height: 1.7;
    border-radius: 2px;
    border-left: 4px solid #29628b;
}

.project-impact strong {
    color: #29628b;
    font-weight: 700;
}

#speaking {
    background: #ffffff;
}

.speaking-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.year-section {
    background: #ffffff;
    padding: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(30, 58, 77, 0.08);
    border-radius: 4px;
    position: relative;
    border: 1px solid #e0e8ed;
}

.year-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #29628b;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.year-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30, 58, 77, 0.12);
}

.year-section:hover::before {
    opacity: 1;
}

.year-section h3 {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1e3a4d;
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e0e8ed;
    font-weight: 900;
}

.year-section.books {
    grid-column: span 2;
    background: #29628b;
}

.year-section.books::before {
    background: rgba(248, 251, 252, 0.3);
}

.year-section.books h3 {
    color: #f8fbfc;
    border-bottom-color: rgba(248, 251, 252, 0.2);
}

.achievements {
    list-style: none;
}

.achievements li {
    padding: 1rem 0;
    color: #4a6b7d;
    border-bottom: 1px solid #e0e8ed;
    line-height: 1.7;
    position: relative;
    padding-left: 2rem;
}

.achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    top: 1rem;
    font-size: 1rem;
    color: #29628b;
}

.year-section.books .achievements li {
    color: rgba(248, 251, 252, 0.95);
    border-bottom-color: rgba(248, 251, 252, 0.15);
}

.year-section.books .achievements li::before {
    color: #f8fbfc;
}

.achievements li:last-child {
    border-bottom: none;
}

.achievements strong {
    color: #1e3a4d;
    font-weight: 700;
}

.year-section.books .achievements strong {
    color: #f8fbfc;
}

#personal {
    background: #f3f7f9;
}

#contact {
    background: rgba(41, 98, 139, 0.03);
}

.contact-card {
    background: #ffffff;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(30, 58, 77, 0.12);
    max-width: 900px;
    margin: 0 auto;
    border-radius: 4px;
    border: 1px solid #e0e8ed;
}

.contact-card h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1e3a4d;
    font-weight: 900;
}

.contact-card > p {
    font-size: 1.1rem;
    color: #4a6b7d;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: #29628b;
    color: #f8fbfc;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(41, 98, 139, 0.3);
}

.contact-link:hover {
    background: #1e4a68;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(41, 98, 139, 0.4);
}

.contact-link .icon {
    font-size: 1.4rem;
}

#footer {
    background: #1e3a4d;
    padding: 2.5rem 0;
    text-align: center;
    color: rgba(248, 251, 252, 0.7);
    border-top: 3px solid #29628b;
}

#footer a {
    color: #af8f60;
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: #f8fbfc;
}

@media screen and (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }

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

    .year-section.books {
        grid-column: span 1;
    }
}

@media screen and (max-width: 900px) {
    .nav-container {
        padding: 0 2rem;
        height: 70px;
    }

    html {
        scroll-padding-top: 70px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #f8fbfc;
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        box-shadow: 0 10px 30px rgba(30, 58, 77, 0.15);
        transform: translateY(-150%);
        transition: transform 0.35s ease;
        border-bottom: 3px solid #29628b;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid #e0e8ed;
        border-radius: 0;
    }

    .nav-menu li a::after {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .section-header h2 {
        font-size: 2.3rem;
    }

    .timeline::before {
        left: 25px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 3rem;
        padding-left: 3.5rem;
    }

    .timeline-year {
        text-align: left;
        padding-right: 0;
    }

    .timeline-year::after {
        left: -37px;
        right: auto;
    }

    .contact-card {
        padding: 3rem 2rem;
    }
}

@media screen and (max-width: 600px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-container {
        padding: 0 1.5rem;
        height: 65px;
    }

    html {
        scroll-padding-top: 65px;
    }

    #hero {
        padding: 110px 0 70px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 1.9rem;
    }

    .profile-card {
        padding: 1.5rem;
    }

    .timeline-item {
        padding-left: 3rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .project-card {
        padding: 2rem 1.5rem;
    }

    .contact-card {
        padding: 2.5rem 1.5rem;
    }

    .contact-card h2 {
        font-size: 2rem;
    }

    .contact-info {
        flex-direction: column;
    }

    .contact-link {
        justify-content: center;
        padding: 1rem 1.5rem;
    }
}