/* Base variables */
:root {
    --bg-primary: #f9f9f9;
    --bg-secondary: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --accent: #3eaf7c;
    --accent-light: #8ccfb1;
    --accent-dark: #2a865e;
    --pinkie-pink: #F7B7D3;
    --pinkie-dark: #EF5FA7;
    --pinkie-light: #FDE2EF;
    --border: #e1e1e1;
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-hover: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Dark theme variables */
body.dark-theme {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border: #383838;
    --shadow: rgba(0, 0, 0, 0.2);
    --shadow-hover: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

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

.container-wide {
    max-width: 1600px; /* Increased from 1200px */
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    height: 3px;
    width: 50%;
    background-color: var(--accent);
    border-radius: 3px;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-dark);
}

/* Header */
header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background-color: var(--bg-primary);
    box-shadow: 0 2px 10px var(--shadow);
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    cursor: pointer;
}

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

nav a {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    height: 2px;
    width: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

nav a:hover {
    color: var(--pinkie-dark);
}

nav a:hover::after {
    width: 100%;
    background-color: var(--pinkie-dark);
}

figcaption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0.2rem;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    background-color: var(--bg-secondary);
    box-shadow: 0 2px 5px var(--shadow);
    transition: var(--transition);
    position: relative;
}

.theme-toggle:hover {
    transform: translateY(-2px) rotate(5deg);
    background-color: var(--pinkie-light);
    box-shadow: 0 4px 8px var(--shadow-hover);
}

.moon, .sun {
    position: absolute;
    transition: var(--transition);
}

.moon {
    opacity: 0;
    transform: scale(0.5);
}

.sun {
    opacity: 1;
    transform: scale(1);
}

body.dark-theme .moon {
    opacity: 1;
    transform: scale(1);
}

body.dark-theme .sun {
    opacity: 0;
    transform: scale(0.5);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-image: linear-gradient(45deg, var(--accent) 60%, var(--pinkie-dark) 100%);
    background-size: 200% 100%;
    background-position: left;
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-position 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-position: right;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(239, 95, 167, 0.25), 0 4px 8px rgba(62, 175, 124, 0.25);
}

/* Shape Background */
.shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.15;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background-color: var(--accent);
    top: 20%;
    right: 15%;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background-color: var(--accent-light);
    bottom: 15%;
    left: 15%;
    animation: float 15s ease-in-out infinite alternate;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background-color: var(--accent-dark);
    top: 60%;
    right: 30%;
    animation: float 18s ease-in-out infinite 2s alternate;
}

.shape-pinkie {
    width: 180px;
    height: 180px;
    background-color: var(--pinkie-pink);
    bottom: 25%;
    right: 35%;
    animation: bounce 8s ease-in-out infinite alternate;
    opacity: 0.1;
}

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
}

/* Events Section */
.events {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

/* Default size for events grid - wider cards by default */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); /* Increased from 300px for wider cards */
    gap: 2rem;
    margin-top: 3rem;
}

.event-card {
    background-color: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-hover);
}

.event-image {
    height: 220px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 0.3s ease-out;
}

.event-image.placeholder {
    background-color: var(--accent-light);
    opacity: 0.7;
}

.event-image.vranikov {
    background-color: var(--accent-dark);
    background-image: url('../images/vkon-1200x630.png');
}

.event-image.marefair {
    background-color: var(--accent);
    background-image: url('../images/mf.png');
}

.event-image.festivalfantazie {
    background-color: var(--accent);
    background-image: url('../images/ff.jpg');
}

.event-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.event-role {
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--accent);
    font-size: 0.9rem;
}

/* Event description styles */
.events-description {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.events-description p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
}


/* Add "Visit Website" buttons to event cards */
.event-details {
    padding: 0.75rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.event-link-btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    background: linear-gradient(to right, var(--accent) 50%, var(--pinkie-dark) 100%);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.event-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(62, 175, 124, 0.25);
}

.event-link-btn.disabled {
    background: var(--border);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Alternating event link colors */
.external-event-link:nth-child(odd) {
    border-color: var(--pinkie-light);
    color: var(--pinkie-dark);
}

.external-event-link:nth-child(odd):hover {
    background-color: var(--pinkie-light);
    color: var(--bg-primary);
}

/* Responsive styles */
@media (max-width: 768px) {
    .events-description p {
        font-size: 1.1rem;
    }
    
}

/* Ultra-wide screens - even larger cards */
@media (min-width: 1800px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    }
    
    .event-image {
        height: 250px;
    }
}

/* Large screens - slightly larger cards */
@media (min-width: 1400px) and (max-width: 1799px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    }
}

/* Medium screens - maintain good width */
@media (max-width: 1399px) and (min-width: 992px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }
}

/* Pink highlight for event roles with alternating colors */
.event-card:nth-child(odd) .event-role {
    color: var(--pinkie-dark);
}

.event-description {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    flex-grow: 1;
}

.event-details {
    padding: 0.75rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.future-event .event-image {
    position: relative;
}

.future-event .event-image::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

body.dark-theme .event-details {
    background-color: rgba(255, 255, 255, 0.03);
}

/* About Section */
.about {
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.avatar {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
}

.avatar-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Pinkie Gallery Section */
.pinkie-gallery {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23EF5FA7'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E"), auto;
}

.pinkie-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--pinkie-pink), var(--accent));
    opacity: 0.6;
}

#pinkie h2::after {
    background: linear-gradient(to right, var(--accent), var(--pinkie-dark));
}

.pinkie-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    background-color: var(--bg-primary);
}

.gallery-item:hover {
    animation: pinkPulse 2s infinite;
    transform: translateY(-5px);
}

@keyframes pinkPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(247, 183, 211, 0), 0 5px 15px var(--shadow); }
    50% { box-shadow: 0 0 0 2px rgba(247, 183, 211, 0.5), 0 5px 15px var(--shadow); }
}

.gallery-item figure {
    margin: 0;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

body.dark-theme .gallery-item img {
    filter: drop-shadow(0 0 5px rgba(239, 95, 167, 0.3));
}

.gallery-item figcaption {
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pinkie-quote {
    margin: 4rem auto 2rem;
    max-width: 700px;
    text-align: center;
}

.pinkie-quote blockquote {
    font-size: 1.3rem;
    color: var(--pinkie-dark);
    font-style: italic;
    position: relative;
    padding: 1rem 2rem;
}

.pinkie-quote blockquote::before,
.pinkie-quote blockquote::after {
    content: '"';
    font-size: 3rem;
    font-family: Georgia, serif;
    position: absolute;
    opacity: 0.2;
    color: var(--pinkie-dark);
}

.pinkie-quote blockquote::before {
    top: -20px;
    left: 0;
}

.pinkie-quote blockquote::after {
    bottom: -40px;
    right: 0;
    transform: rotate(180deg);
}

.pinkie-gallery ul {
    list-style: none;
    padding-left: 1.5rem;
}

.pinkie-gallery ul li {
    position: relative;
    margin-bottom: 0.5rem;
}

.pinkie-gallery ul li::before {
    content: "🧁";
    position: absolute;
    left: -1.5rem;
    font-size: 1rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.contact-intro {
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pinkie-dark);
    box-shadow: 0 0 0 2px rgba(239, 95, 167, 0.2);
}

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

.form-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
}

/* Footer */
footer {
    background-color: var(--bg-primary);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
}

.logo:hover, .footer-logo:hover {
    color: var(--pinkie-dark);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-secondary);
}

.social-link:hover {
    color: var(--pinkie-dark);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2rem;
    position: relative;
    padding-top: 1.5rem;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--pinkie-pink), transparent);
    border-radius: 3px;
}

.footer-timestamp {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-timestamp::before {
    content: "🕐 ";
    color: var(--pinkie-dark);
}

/* Enhanced Pink Highlight Text Effect - Fixed Animation */
.pinkie-highlight {
    color: var(--pinkie-dark);
    font-weight: 500;
    position: relative;
    display: inline-block;
    transition: transform 0.2s ease;
}

.pinkie-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--pinkie-light);
    transform: scaleX(0); /* Start with no underline */
    transform-origin: center; /* Grow from left side */
    transition: transform 0.3s ease;
}

.pinkie-highlight:hover::after {
    transform: scaleX(1); /* Full underline on hover */
}

.pinkie-highlight:hover {
    transform: translateY(-1px);
}

/* Pink selection highlight */
::selection {
    background-color: var(--pinkie-light);
    color: var(--text-primary);
}

/* Add sparkle to section titles on hover */
h2 {
    position: relative;
}

h2:hover::before {
    content: "✨";
    position: absolute;
    left: -1.5rem;
    top: 0.2rem;
    font-size: 1rem;
    color: var(--pinkie-dark);
    animation: sparkle 1.5s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.1) rotate(20deg); }
}

/* Pink loading animation */
@keyframes pinkLoading {
    0% { width: 0; }
    50% { width: 100%; background-color: var(--pinkie-dark); }
    100% { width: 0; }
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background-color: var(--accent);
    z-index: 9999;
    animation: pinkLoading 2s ease-in-out 1;
    transition: opacity 0.3s ease;
}

/* Responsive Design - Tablet */
@media (max-width: 991px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .avatar {
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* Small mobile */
@media (max-width: 576px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1.5rem;
    }
    
    h1 {
        font-size: 2.3rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .theme-toggle {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }
    
    /* Make events full width on small mobile */
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .pinkie-quote blockquote {
        font-size: 1.1rem;
    }
    
    h2:hover::before {
        left: -1rem;
        font-size: 0.9rem;
    }
}

/* Animation for Pinkie mode */
.pinkie-mode {
    --accent: #EF5FA7;
    --accent-light: #F7B7D3;
    --accent-dark: #D64C8F;
    transition: all 0.5s ease;
}

/* Animation for confetti elements */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    border-radius: 50%;
    animation: confetti-fall 5s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Animation for floating hearts */
.floating-heart {
    position: absolute;
    pointer-events: none;
    animation: float-up 3s ease-out forwards;
    z-index: 100;
    font-size: 1.5rem;
}

@keyframes float-up {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) rotate(45deg);
    }
}

/* Full-width event card option */
.event-card-wide {
    grid-column: 1 / -1;
    max-width: 1400px;
    margin: 0 auto;
}

/* Base avatar styles */
.avatar {
    width: 100%;
    padding-bottom: 100%; /* Square aspect ratio */
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden; /* Ensures image doesn't overflow rounded corners */
    box-shadow: 0 5px 15px var(--shadow);
}

.avatar-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
}

/* Set up the figure container */
.avatar-placeholder figure {
    width: 100%;
    height: 100%;
    margin: 0;
    position: relative;
}

/* Image fills the container */
.avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

/* Caption visible by default */
.avatar-placeholder figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white;
    padding: 16px 10px 8px; /* Extra padding on top for gradient */
    text-align: center;
    font-size: 0.85rem;
    transition: all 0.4s ease;
}

/* Add a subtle icon before the text */
.avatar-placeholder figcaption::before {
    content: "🖌️";
    margin-right: 5px;
    opacity: 0.8;
}

/* Hide caption on hover with slide and fade */
.avatar-placeholder:hover figcaption {
    transform: translateY(100%);
    opacity: 0;
}

/* Add a clean zoom effect on hover */
.avatar-placeholder:hover img {
    transform: scale(1.08);
}

/* Dark theme adjustments */
body.dark-theme .avatar-placeholder figcaption {
    background-color: rgba(30, 30, 30, 0.8);
}

/* Pinkie mode styling */
body.pinkie-mode .avatar-placeholder figcaption {
    background-color: rgba(239, 95, 167, 0.8);
}

/* Responsive styles */
@media (max-width: 767px) {
    .avatar {
        max-width: 280px;
        margin: 0 auto;
        padding-bottom: 280px; /* Fixed height */
    }
    
    .avatar-placeholder figcaption {
        padding: 6px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .avatar {
        max-width: 220px;
        padding-bottom: 220px;
    }
    
    .avatar-placeholder figcaption {
        padding: 5px;
        font-size: 0.75rem;
    }
}

/* Large screens */
@media (min-width: 1200px) and (max-width: 1799px) {
    .avatar {
        max-width: 450px;
        margin-left: auto;
    }
}

/* Medium screens */
@media (min-width: 992px) and (max-width: 1199px) {
    .avatar {
        max-width: 400px;
        margin-left: auto;
    }
}

/* Small screens */
@media (min-width: 768px) and (max-width: 991px) {
    .avatar {
        max-width: 350px;
        margin-left: auto;
    }
}

/* Mobile screens - centered smaller avatar */
@media (max-width: 767px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .avatar {
        max-width: 280px;
        margin: 0 auto;
        padding-bottom: 280px; /* Fixed height instead of percentage */
    }
}

/* Small mobile screens - even smaller avatar */
@media (max-width: 480px) {
    .avatar {
        max-width: 220px;
        padding-bottom: 220px;
    }
}

/* Optional: Circle avatar on mobile */
@media (max-width: 767px) {
    .avatar.avatar-circle {
        border-radius: 50%;
    }
    
    .avatar-placeholder.avatar-circle {
        border-radius: 50%;
    }
}

/* Dark mode adjustments */
body.dark-theme .avatar {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-theme .avatar:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}


/* Hide scrollbar for cleaner look (optional) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent), var(--pinkie-dark));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}
