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

:root {
    --primary-dark: #1a1a1a;
    --secondary-dark: #2d2d2d;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --light-gray: #f3f4f6;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--primary-dark);
    color: var(--light-gray);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-purple);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Animated floral background */
.floral-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    opacity: 0.05;
    background-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cpath fill='%23ec4899' d='M100 50c0-27.6-22.4-50-50-50S0 22.4 0 50s22.4 50 50 50c-27.6 0-50 22.4-50 50s22.4 50 50 50 50-22.4 50-50c0 27.6 22.4 50 50 50s50-22.4 50-50-22.4-50-50-50c27.6 0 50-22.4 50-50s-22.4-50-50-50-50 22.4-50 50z'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    background-repeat: repeat;
    animation: float 20s infinite linear;
    pointer-events: none;
    overflow: hidden;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    transform: translateY(-100%);
}

nav.show {
    transform: translateY(0);
}

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

.nav-logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-pink);
}

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

.nav-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent-purple);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light-gray);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    padding: 2rem 0;
    border-bottom: 2px solid var(--accent-purple);
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-pink) 0%, transparent 70%);
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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

.hero {
    text-align: center;
    padding: 2.5rem 0;
    position: relative;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 10px rgba(139, 92, 246, 0.5)); }
    50% { filter: brightness(1.2) drop-shadow(0 0 20px rgba(236, 72, 153, 0.7)); }
}

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

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-pink));
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: var(--secondary-dark);
    position: relative;
}

.about::before {
    content: '❀';
    position: absolute;
    top: 2rem;
    left: 5%;
    font-size: 3rem;
    opacity: 0.1;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    text-align: center;
}

.about-image {
    text-align: center;
}

.headshot {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-purple);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.headshot:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.4);
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 2fr;
        text-align: left;
    }
    
    .about-text {
        text-align: left;
    }
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-pink);
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Skills */
.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.skill-tag {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid var(--accent-purple);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(236, 72, 153, 0.2);
    border-color: var(--accent-pink);
    transform: scale(1.05);
}

/* Portfolio Section */
.portfolio {
    padding: 4rem 0;
    background: var(--primary-dark);
}

.portfolio h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-purple);
}

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

.portfolio-item {
    background: var(--secondary-dark);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: block;
}

.portfolio-item::before {
    content: '✿';
    position: absolute;
    top: -1rem;
    right: -1rem;
    font-size: 4rem;
    opacity: 0.1;
    color: var(--accent-pink);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    border-color: var(--accent-purple);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.portfolio-item:hover::before {
    transform: rotate(45deg) scale(1.2);
    opacity: 0.2;
}

.portfolio-item h3 {
    color: var(--accent-pink);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.portfolio-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--accent-purple);
    flex-wrap: wrap;
}

.portfolio-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(139, 92, 246, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    white-space: nowrap;
}

.portfolio-item p {
    color: var(--light-gray);
    line-height: 1.6;
}

/* Portfolio filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-purple);
    color: var(--white);
}

.portfolio-item {
    cursor: pointer;
}

.portfolio-item.active {
    border-color: var(--accent-pink);
    background: rgba(236, 72, 153, 0.1);
}

/* Article Display */
.article-display {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: var(--secondary-dark);
    border-radius: 10px;
    border: 2px solid var(--accent-purple);
    display: none;
    animation: fadeIn 0.5s ease;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.article-display.show {
    display: block;
}

/* Loading state */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-purple);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.article-loading {
    text-align: center;
    padding: 3rem;
    color: var(--accent-purple);
}

.article-display h3 {
    color: var(--accent-pink);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.article-content {
    color: var(--light-gray);
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content strong {
    color: var(--accent-purple);
}

.close-article {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--accent-pink);
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-article:hover {
    transform: rotate(90deg);
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background: var(--secondary-dark);
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-purple);
}

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

.testimonial {
    background: var(--primary-dark);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.testimonial:hover {
    border-color: var(--accent-purple);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.stars {
    color: var(--accent-pink);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial p {
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--light-gray);
}

.testimonial cite {
    color: var(--accent-purple);
    font-size: 0.9rem;
    font-weight: bold;
    font-style: normal;
}

.credentials {
    text-align: center;
}

.credentials h3 {
    font-size: 1.8rem;
    color: var(--accent-pink);
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-purple);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    text-align: center;
    position: relative;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-purple);
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--accent-pink);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-purple);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-pink);
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: var(--secondary-dark);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 5px;
    color: var(--light-gray);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-purple);
}

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

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.submit-btn {
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-pink));
    color: var(--white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    background: var(--primary-dark);
    border-top: 1px solid var(--accent-purple);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-purple);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-pink);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.1rem !important;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .about h2, .portfolio h2, .testimonials h2, .contact h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .credentials h3 {
        font-size: 1.3rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100vh);
        transition: transform 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
}