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

:root {
    --burgundy: #800020;
    --charcoal: #1c1c1c;
    --gold: #b8860b;
    --dark-burgundy: #5c0017;
    --light-gold: #d4af37;
    --cream: #f5f5dc;
    --dark-gray: #2a2a2a;
    --medium-gray: #404040;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', serif;
    line-height: 1.6;
    color: var(--cream);
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--dark-gray) 100%);
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--gold);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--light-gold);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--gold);
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--cream);
}

/* Global Link Styles */
a {
    color: var(--gold);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--light-gold);
    text-decoration: underline;
    text-decoration-color: var(--light-gold);
    text-underline-offset: 3px;
}

a:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
    background-color: rgba(184, 134, 11, 0.1);
}

a:visited {
    color: #9a7209;
    /* Slightly muted gold for visited links */
}

a:visited:hover {
    color: var(--light-gold);
}

a:active {
    color: var(--dark-burgundy);
    transform: translateY(1px);
}

/* External link indicator */
a[target="_blank"]::after {
    content: ' ↗';
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 2px;
}

a[target="_blank"]:hover::after {
    opacity: 1;
}

/* Debut Novel Announcement Styles */
.debut-novel-announcement {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.15) 0%, rgba(128, 0, 32, 0.1) 100%);
    border: 2px solid var(--gold);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.debut-novel-announcement::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.debut-novel-text {
    font-size: 1.25rem;
    color: var(--light-gold);
    text-align: center;
    margin: 0;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.debut-novel-text strong {
    color: var(--gold);
    font-weight: 700;
}

.theme-tag.debut-highlight {
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
    color: var(--charcoal);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(28, 28, 28, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--burgundy);
}

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

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--light-gold);
    text-decoration: none;
}

.nav-logo:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
    background-color: rgba(184, 134, 11, 0.1);
}

.nav-logo:visited {
    color: var(--gold);
}

.nav-logo:active {
    color: var(--light-gold);
    transform: none;
}

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

.nav-link {
    color: var(--cream);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--gold);
    text-decoration: none;
}

.nav-link:focus {
    outline: 2px solid var(--cream);
    outline-offset: 2px;
    border-radius: 2px;
    background-color: rgba(245, 245, 220, 0.1);
}

.nav-link:visited {
    color: var(--cream);
}

.nav-link:active {
    color: var(--gold);
    transform: none;
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--dark-burgundy) 50%, var(--charcoal) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="%23b8860b" opacity="0.1"/><circle cx="75" cy="75" r="0.3" fill="%23800020" opacity="0.1"/><circle cx="50" cy="10" r="0.4" fill="%23b8860b" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-style: italic;
    color: var(--burgundy);
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--light-gold);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(184, 134, 11, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--burgundy);
    color: var(--cream);
    border-color: var(--burgundy);
}

.btn-primary:hover {
    background: var(--dark-burgundy);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(128, 0, 32, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--charcoal);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.4);
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--burgundy), var(--gold));
}

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

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

.credentials-list ul {
    list-style: none;
    padding-left: 0;
}

.credentials-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--medium-gray);
    transition: color 0.3s ease;
}

.credentials-list li:hover {
    color: var(--gold);
}

.credentials-list strong {
    color: var(--burgundy);
}

/* Writing Section */
.writing {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--dark-burgundy) 100%);
}

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

.writing-card {
    background: rgba(42, 42, 42, 0.8);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--burgundy);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.writing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(128, 0, 32, 0.3);
}

.themes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.theme-tag {
    background: var(--burgundy);
    color: var(--cream);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Editorial Section */
.editorial {
    background: var(--dark-gray);
}

.editorial-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.editorial-services ul {
    list-style: none;
    padding-left: 0;
}

.editorial-services li {
    padding: 0.8rem 0;
    border-left: 3px solid var(--burgundy);
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    transition: border-color 0.3s ease;
}

.editorial-services li:hover {
    border-color: var(--gold);
}

/* Background Section */
.background {
    background: linear-gradient(135deg, var(--dark-burgundy) 0%, var(--charcoal) 100%);
}

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

.skill-card {
    background: rgba(42, 42, 42, 0.8);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--gold);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(184, 134, 11, 0.3);
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-text ul {
    list-style: none;
    padding-left: 0;
}

.contact-text li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.contact-text li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--burgundy);
    font-weight: bold;
}

.contact-details p {
    margin-bottom: 1rem;
}

.contact-details a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--light-gold);
    text-decoration: none;
}

.contact-details a:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
    background-color: rgba(184, 134, 11, 0.1);
}

.contact-details a:visited {
    color: var(--gold);
}

.contact-details a:active {
    color: var(--light-gold);
    transform: none;
}

.contact-cta {
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: var(--charcoal);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--burgundy);
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Hamburger Menu Styles */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.nav-toggle:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--cream);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--gold);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--gold);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--charcoal) 0%, var(--dark-burgundy) 100%);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: 2px solid var(--burgundy);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-menu.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-link {
        font-size: 1.3rem;
        padding: 1rem 2rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        min-width: 120px;
        text-align: center;
        border: 2px solid transparent;
    }

    .nav-link:hover {
        background: rgba(184, 134, 11, 0.1);
        border-color: var(--gold);
        transform: scale(1.05);
    }

    .nav-link:focus {
        background: rgba(184, 134, 11, 0.1);
        border-color: var(--gold);
    }

    /* Mobile overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .about-grid,
    .editorial-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .hero {
        padding: 6rem 0 2rem;
    }

    section {
        padding: 3rem 0;
    }

    .writing-card,
    .skill-card {
        padding: 1.5rem;
    }

    .themes {
        justify-content: center;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content>* {
    animation: fadeInUp 0.8s ease-out;
}

.hero-text>*:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-text>*:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-text>*:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-text>*:nth-child(4) {
    animation-delay: 0.4s;
}

.hero-text>*:nth-child(5) {
    animation-delay: 0.5s;
}

.profile-image {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {

    .writing-card,
    .skill-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .writing-card.animate,
    .skill-card.animate {
        opacity: 1;
        transform: translateY(0);
    }
}