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

body {
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', cursive, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.unicorn-border {
    height: 10px;
    background: linear-gradient(to right, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    border-radius: 10px;
    margin-bottom: 30px;
    animation: borderPulse 2s ease-in-out infinite;
}

/* Profile Photo */
.profile-photo-container {
    margin-bottom: 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow:
        0 0 0 5px #ff69b4,
        0 0 0 10px #ffd93d,
        0 0 0 15px #6bcf7f,
        0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.1) rotate(5deg);
}

@keyframes borderPulse {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.2); }
}

.main-title {
    font-size: 3.5rem;
    color: white;
    text-shadow:
        3px 3px 0 #ff1493,
        6px 6px 0 #00bfff,
        9px 9px 0 #ffd700;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
}

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

.emoji {
    display: inline-block;
    animation: spin 3s linear infinite;
}

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

.subtitle {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Content Sections */
.content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.about-section h2 {
    color: #ff1493;
    font-size: 2rem;
    margin-bottom: 15px;
}

.about-section p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}

/* Interests Section */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

.interest-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 280px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-1 {
    border: 5px solid #ff6b9d;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
}
.card-2 {
    border: 5px solid #ffd93d;
    box-shadow: 0 5px 15px rgba(255, 217, 61, 0.3);
}
.card-3 {
    border: 5px solid #6bcf7f;
    box-shadow: 0 5px 15px rgba(107, 207, 127, 0.3);
}
.card-4 {
    border: 5px solid #4d96ff;
    box-shadow: 0 5px 15px rgba(77, 150, 255, 0.3);
}
.card-5 {
    border: 5px solid #9d4edd;
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.3);
}

.interest-card:hover {
    transform: translateY(-15px) rotate(3deg) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: cardPulse 0.6s ease-in-out;
}

@keyframes cardPulse {
    0%, 100% { transform: translateY(-15px) rotate(3deg) scale(1.05); }
    50% { transform: translateY(-17px) rotate(3deg) scale(1.08); }
}

.interest-emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 15px;
    animation: wiggle 1s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.interest-card h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.interest-card p {
    color: #666;
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery-preview {
    background: white;
    border-radius: 25px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-intro {
    font-size: 1.5rem;
    color: #9d4edd;
    margin-bottom: 30px;
    font-weight: bold;
}

.gallery-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    text-decoration: none;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.4);
    transition: all 0.3s ease;
    margin: 20px 0;
}

.gallery-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(118, 75, 162, 0.6);
}

.gallery-button:active {
    transform: translateY(-2px) scale(1.02);
}

.button-emoji {
    display: inline-block;
    animation: wiggle 1s ease-in-out infinite;
    margin: 0 8px;
}

.gallery-count {
    font-size: 1.2rem;
    color: #666;
    margin-top: 20px;
}

/* Fun Facts Section */
.fun-facts-card {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border: 5px solid #ff6b9d;
}

.fun-facts-card h2 {
    color: #d63384;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.fun-facts-list {
    list-style: none;
    font-size: 1.3rem;
    color: #333;
}

.fun-facts-list li {
    padding: 15px;
    margin: 10px 0;
    background: white;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.fun-facts-list li:hover {
    transform: translateX(10px);
    background: #fff5f7;
}

/* Footer */
.footer {
    margin-top: 60px;
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.footer-content p {
    color: white;
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 10px 0;
}

.copyright {
    font-size: 1rem;
}

/* Responsive Design */

/* Large Desktop (1200px+) - 5 cards in a row or 3-2 layout */
@media (min-width: 1200px) {
    .interests-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Desktop/Laptop (992px - 1199px) - 3 cards top, 2 bottom */
@media (min-width: 992px) and (max-width: 1199px) {
    .interests-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .interest-card:nth-child(4),
    .interest-card:nth-child(5) {
        grid-column: span 1;
    }
}

/* Tablet (768px - 991px) - 2 cards per row */
@media (min-width: 768px) and (max-width: 991px) {
    .main-title {
        font-size: 2.8rem;
        text-shadow:
            2px 2px 0 #ff1493,
            4px 4px 0 #00bfff,
            6px 6px 0 #ffd700;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2.2rem;
    }

    .interest-card {
        max-width: 100%;
        padding: 25px;
    }

    .interest-emoji {
        font-size: 3.5rem;
    }

    .card {
        padding: 25px;
    }

    .gallery-placeholder {
        padding: 40px;
    }
}

/* Mobile (up to 767px) - 1 card per row */
@media (max-width: 767px) {
    .container {
        padding: 15px;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
        border: 4px solid white;
        box-shadow:
            0 0 0 4px #ff69b4,
            0 0 0 8px #ffd93d,
            0 0 0 12px #6bcf7f,
            0 8px 20px rgba(0, 0, 0, 0.3);
    }

    .main-title {
        font-size: 2rem;
        text-shadow:
            2px 2px 0 #ff1493,
            3px 3px 0 #00bfff,
            4px 4px 0 #ffd700;
        margin-bottom: 10px;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .unicorn-border {
        height: 8px;
        margin-bottom: 20px;
    }

    .interests-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .interest-card {
        max-width: 100%;
        padding: 25px 20px;
        min-height: 180px;
    }

    .interest-emoji {
        font-size: 3rem;
        margin-bottom: 10px;
    }

    .interest-card h3 {
        font-size: 1.5rem;
    }

    .interest-card p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .card {
        padding: 20px;
        border-radius: 20px;
    }

    .about-section h2 {
        font-size: 1.6rem;
    }

    .about-section p {
        font-size: 1.1rem;
    }

    .fun-facts-card h2 {
        font-size: 1.6rem;
    }

    .fun-facts-list {
        font-size: 1.1rem;
    }

    .fun-facts-list li {
        padding: 12px;
        margin: 8px 0;
    }

    .gallery-preview {
        padding: 30px 20px;
    }

    .gallery-intro {
        font-size: 1.2rem;
    }

    .gallery-button {
        padding: 15px 35px;
        font-size: 1.2rem;
    }

    .gallery-count {
        font-size: 1rem;
    }

    .footer {
        margin-top: 40px;
        padding: 20px;
    }

    .footer-content p {
        font-size: 1rem;
    }

    .copyright {
        font-size: 0.9rem;
    }

    .content {
        gap: 30px;
    }
}

/* Extra Small Mobile (up to 480px) - Optimized for small phones */
@media (max-width: 480px) {
    .main-title {
        font-size: 1.7rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .interest-card {
        padding: 20px 15px;
        min-height: 160px;
    }

    .interest-emoji {
        font-size: 2.5rem;
    }

    .interest-card h3 {
        font-size: 1.3rem;
    }

    .interest-card p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Touch device optimization */
@media (hover: none) and (pointer: coarse) {
    .interest-card:active {
        transform: scale(0.98) rotate(2deg);
        animation: touchPulse 0.3s ease-out;
    }

    @keyframes touchPulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.05); }
        100% { transform: scale(0.98) rotate(2deg); }
    }

    .card:active {
        transform: translateY(-2px) scale(1.01);
    }

    .fun-facts-list li:active {
        transform: translateX(5px);
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .interest-card {
    animation: fadeIn 0.6s ease-out forwards;
}

.interest-card:nth-child(1) { animation-delay: 0.1s; }
.interest-card:nth-child(2) { animation-delay: 0.2s; }
.interest-card:nth-child(3) { animation-delay: 0.3s; }
.interest-card:nth-child(4) { animation-delay: 0.4s; }
.interest-card:nth-child(5) { animation-delay: 0.5s; }

/* Modal Styles */
.hidden {
    display: none !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal-container {
    background: white;
    border-radius: 25px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s ease;
    position: relative;
}

.modal-drawing-large {
    max-width: 900px;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 25px 25px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.modal-close {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.modal-content {
    padding: 30px;
}

/* Reading Modal Styles */
.modal-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-caption {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-top: 20px;
    line-height: 1.6;
}

/* Learning Modal - Fun Facts */
.fun-fact-display {
    text-align: center;
    padding: 40px 20px;
}

.fun-fact-emoji {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

.fun-fact-text {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.8;
    margin: 30px 0;
    min-height: 120px;
    padding: 20px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 15px;
    border: 3px solid #ff6b9d;
}

.fun-fact-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
    transition: all 0.3s ease;
    font-family: inherit;
}

.fun-fact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.6);
}

.fun-fact-btn:active {
    transform: translateY(-1px);
}

/* Technology Modal */
.tech-activities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tech-card {
    background: linear-gradient(135deg, #e0f7ff 0%, #d4e7ff 100%);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 3px solid #4d96ff;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(77, 150, 255, 0.4);
}

.tech-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.tech-card h3 {
    color: #667eea;
    font-size: 1.4rem;
    margin: 10px 0;
}

.tech-card p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 15px;
}

.tech-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tech-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
}

.tech-interactive {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    animation: fadeIn 0.3s ease;
}

/* Robot Game Buttons */
.robot-btn {
    background: linear-gradient(135deg, #e0f7ff 0%, #d4e7ff 100%);
    color: #333;
    border: 3px solid #667eea;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.robot-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.5);
    border-color: #4d96ff;
}

.robot-btn:active {
    transform: translateY(-1px);
}

.robot-btn.move-btn {
    min-width: 60px;
    min-height: 60px;
}

.robot-btn.turn-btn {
    min-width: 120px;
}

.robot-btn.special-btn {
    min-width: 100px;
}

/* Drawing Modal */
.drawing-controls {
    margin-bottom: 20px;
}

.color-palette {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-btn:hover {
    transform: scale(1.2);
}

.color-btn.active {
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
}

.tool-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.tool-controls label {
    font-size: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

#brushSize {
    width: 150px;
}

.tool-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.tool-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#drawingCanvas {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    border: 3px solid #667eea;
    border-radius: 15px;
    cursor: crosshair;
    background: white;
    margin: 0 auto;
    touch-action: none;
}

.drawing-hint {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-top: 15px;
}

/* Music Modal */
.music-activities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.music-card {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 3px solid #ff6b9d;
    transition: all 0.3s ease;
}

.music-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.4);
}

.music-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.music-card h3 {
    color: #d63384;
    font-size: 1.4rem;
    margin: 10px 0;
}

.music-card p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 15px;
}

.music-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: inherit;
}

.music-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
}

.music-interactive {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    animation: fadeIn 0.3s ease;
}

/* Back Button */
.back-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: inherit;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.back-btn:hover {
    transform: translateX(-3px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.back-btn:active {
    transform: translateX(-1px);
}

/* Mobile Responsive for Modals */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
    }

    .modal-container {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 20px;
    }

    .modal-header {
        padding: 15px 20px;
        border-radius: 20px 20px 0 0;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }

    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .modal-content {
        padding: 20px;
    }

    .fun-fact-text {
        font-size: 1.1rem;
        min-height: 100px;
        padding: 15px;
    }

    .fun-fact-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .tech-activities {
        grid-template-columns: 1fr;
    }

    .tech-icon {
        font-size: 3rem;
    }

    .color-palette {
        gap: 8px;
    }

    .color-btn {
        width: 35px;
        height: 35px;
    }

    .tool-controls {
        flex-direction: column;
        gap: 10px;
    }

    .tool-controls label {
        width: 100%;
    }

    #brushSize {
        width: 100%;
    }

    .tool-btn {
        width: 100%;
        padding: 12px;
    }

    #drawingCanvas {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
    }

    .music-activities {
        grid-template-columns: 1fr;
    }

    .modal-caption {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-header h2 {
        font-size: 1.2rem;
    }

    .fun-fact-emoji {
        font-size: 3.5rem;
    }

    .fun-fact-text {
        font-size: 1rem;
        min-height: 80px;
    }

    .tech-icon {
        font-size: 2.5rem;
    }

    .tech-card h3 {
        font-size: 1.2rem;
    }

    .music-icon {
        font-size: 3rem;
    }

    .music-card h3 {
        font-size: 1.2rem;
    }
}
