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

body {
    font-family: 'Segoe UI', 'Avenir', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #2D3B48;
}

header {
    background: linear-gradient(135deg, #34495e 0%, #506377 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #d4a574;
    word-spacing: -0.3em;
    padding-right: 32px;
}

.logo span {
    color: white;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
}

nav a:hover {
    color: #d4a574;
}

.page {
    min-height: 100vh;
    padding-top: 80px;
}

.hero {
    height: calc(100vh - 80px);
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url(./img/WillowShelley.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #506377;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    color: white;
    padding-bottom: 5rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Georgia', serif;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #d4a574;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #c19563;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.4);
}

.content-section {
    padding: 2rem 2rem 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    padding-top: 1rem;
    text-align: center;
    letter-spacing: 2px;
    color: #ffffff;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    height:fit-content;
    background: linear-gradient(135deg, #b8cfe0 0%, #9eb3c2 100%);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #506377;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    img {
        width: 100%;
    }
}

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

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: #000;
}

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

.video-caption {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
}

.resume-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.resume-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.tab-button {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    font-size: 1.2rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    border-bottom: 3px solid transparent;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.tab-button.active {
    background: white;
    color: #2c3e50;
    border-bottom-color: #d4a574;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.5);
}

.tab-button.active:hover {
    background: white;
}

.resume-content {
    background: linear-gradient(135deg, #34495e 0%, #506377 100%);
    padding: 2rem 2rem 0.5rem 2rem;
    border-radius: 0;
    box-shadow: none;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.resume-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #d4a574;
}

.resume-header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-family: 'Georgia', serif;
}

.resume-header .subtitle {
    font-size: 1.2rem;
    color: #d4d4d4;
}

.resume-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #34495e 0%, #506377 100%);
    border-radius: 8px;
}

.info-section h4 {
    color: #e8c4a0;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-section p {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
}

.resume-section {
    margin-bottom: 2.5rem;
}

.resume-section h3 {
    font-size: 1.3rem;
    color: #e8c4a0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8c4a0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.resume-table {
    width: 100%;
}

.resume-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.resume-row:last-child {
    border-bottom: none;
}

.resume-cell {
    font-size: 0.95rem;
    color: #ffffff;
}

.resume-cell.title {
    color: #ffffff;
    font-weight: 600;
}

.resume-cell.role {
    color: #d4d4d4;
}

.resume-cell.director {
    color: #d4d4d4;
}

.stunt-training-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.skills-table {
    width: 100%;
}

.skills-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 3fr;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #e8c4a0;
}

.skills-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 3fr;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    align-items: start;
}

.skills-row:last-child {
    border-bottom: none;
}

.skills-notes {
    font-size: 0.9rem;
    color: #d4d4d4;
}

.skills-notes ul {
    margin: 0;
    padding-left: 1.2rem;
}

.skills-notes li {
    margin-bottom: 0.3rem;
}

.contact-content {
    max-width: 730px;
    margin: 0 auto;
    background: transparent;
    padding: 2rem 3rem 4rem 3rem;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}

.contact-content h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 1rem;
}

.contact-item h4 {
    font-size: 1.2rem;
    color: #e8c4a0;
    margin-bottom: 1rem;
    letter-spacing: .5px;
    a {
        color: #e8c4a0;
    }
}

.contact-item a {
    font-size: 1.3rem;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #e8c4a0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #d4a574;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.social-link:hover {
    background: #c19563;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.4);
}

footer {
    background: linear-gradient(135deg, #34495e 0%, #506377 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    nav ul.mobile-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #34495e 0%, #506377 100%);
        padding: 1rem 2rem;
        gap: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .logo {
        font-size: 1.3rem;
        line-height: 0.9;
    }

    .content-section {
        padding: 3rem 1rem;
    }

    .video-container,
    .resume-content,
    .contact-content {
        padding: 2rem 1.5rem;
    }

    .resume-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .resume-row {
        display: block;
    }

    .resume-row > div:first-child {
        display: block;
        margin-bottom: 0.25rem;
    }

    .resume-row > div:nth-child(2),
    .resume-row > div:nth-child(3) {
        display: inline;
    }

    .resume-row > div:nth-child(2)::after {
        content: " | ";
    }

    .skills-header {
        display: none;
    }

    .skills-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .skills-row > div:nth-child(1) {
        background: rgba(255, 255, 255, 0.1);
        color: #e8c4a0;
        padding: 0.5rem;
        border-radius: 5px;
        font-size: 1rem;
        font-weight: 600;
    }

    .skills-row > div:nth-child(2)::before {
        content: "Years experience: ";
        font-weight: bold;
    }

    .skills-row > div:nth-child(3)::before {
        content: "Skill (1-5): ";
        font-weight: bold;
    }

    .water-sports-row > div:nth-child(3) {
        font-size: 0 !important;
    }

    .water-sports-row > div:nth-child(3)::before {
        content: "Skill (1-5): see below" !important;
        font-weight: bold;
        font-size: 0.95rem;
    }

    .mobile-show {
        display: inline !important;
    }

    .mobile-hide {
        display: none !important;
    }

    .skills-row > div:nth-child(3):empty,
    .skills-row > div:nth-child(3):contains("-") {
        display: none;
    }

    .stunt-training-row {
        display: block;
    }

    .stunt-training-row > div:first-child {
        display: block;
        margin-bottom: 0.25rem;
    }

    .stunt-training-row > div:nth-child(2),
    .stunt-training-row > div:nth-child(3) {
        display: inline;
    }

    .stunt-training-row > div:nth-child(2)::after {
        content: " | ";
    }

    .video-link-box {
        padding: 2rem 1.5rem;
    }

    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .contact-content p {
        font-size: 0.9rem;
    }

    .contact-content p br:last-of-type {
        display: none;
    }

    .contact-item a {
        font-size: 1.1rem;
    }

    .contact-content {
        padding-top: 0px;
    }

    #contact .content-section {
        padding-top: 0;
    }
}