/* ====================================
   BurstingRainbow.com - Responsive Styles
   Mobile-First Approach
   ==================================== */

/* ====================================
   Large Tablets and Small Laptops (max-width: 1200px)
   ==================================== */

@media screen and (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* ====================================
   Tablets (max-width: 992px)
   ==================================== */

@media screen and (max-width: 992px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    /* Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--color-gray);
    }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
        text-align: left;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Hero Section */
    .title-line {
        font-size: 1.75rem;
    }
    
    .title-main {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .category-reveals {
        padding: 1rem;
    }
    
    .category-item {
        min-width: 120px;
    }
    
    /* Content Sections */
    .content-section {
        padding: var(--spacing-lg) 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1.1rem;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    /* Video Section */
    .video-card.featured {
        grid-template-columns: 1fr;
    }
    
    .video-info {
        padding: 1.5rem;
    }
    
    .video-info h3 {
        font-size: 1.5rem;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    /* GPTs Section */
    .gpts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    /* Collaborations */
    .collab-featured {
        grid-template-columns: 1fr;
    }
    
    .collab-content {
        padding: 2rem;
    }
    
    .collab-content h3 {
        font-size: 1.75rem;
    }
    
    .collab-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .spotlight-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Newsletter */
    .newsletter-content h2 {
        font-size: 2rem;
    }
    
    .newsletter-content > p {
        font-size: 1.1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ====================================
   Mobile Landscape and Small Tablets (max-width: 768px)
   ==================================== */

@media screen and (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2.5rem;
        --spacing-xl: 3rem;
    }
    
    html {
        font-size: 15px;
    }
    
    /* Navigation */
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 90vh;
        padding: 5rem 1.5rem 2rem;
    }
    
    .title-line {
        font-size: 1.5rem;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .rainbow-burst-container {
        max-width: 600px;
        height: 300px;
    }
    
    .category-item {
        padding: 0.75rem;
        min-width: 100px;
    }
    
    .category-item i {
        font-size: 1.5rem;
    }
    
    .category-item span {
        font-size: 0.8rem;
    }
    
    /* Content Sections */
    .section-icon {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        height: 350px;
    }
    
    .card-back {
        padding: 1.5rem;
    }
    
    /* Filter Bar */
    .filter-tags {
        gap: 0.5rem;
    }
    
    .tag {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Video Section */
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Music Player */
    .music-player-container {
        padding: 1.5rem;
    }
    
    .track-visualizer {
        height: 150px;
    }
    
    .track-info h3 {
        font-size: 1.5rem;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .control-btn-play {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
    
    .playlist-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .track-number {
        font-size: 1rem;
    }
    
    .track-details h5 {
        font-size: 0.95rem;
    }
    
    /* GPTs Section */
    .gpts-grid {
        grid-template-columns: 1fr;
    }
    
    .gpt-card {
        padding: 1.5rem;
    }
    
    .gpt-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .gpt-card h3 {
        font-size: 1.35rem;
    }
    
    /* Prompts Section */
    .prompt-categories {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .prompt-card {
        padding: 1rem;
    }
    
    .prompt-header h4 {
        font-size: 1.1rem;
    }
    
    .copy-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .prompt-content {
        padding: 1rem;
    }
    
    .prompt-content code {
        font-size: 0.85rem;
    }
    
    /* Collaborations */
    .community-spotlight {
        padding: 2rem 1.5rem;
    }
    
    .community-spotlight h3 {
        font-size: 1.75rem;
    }
    
    .spotlight-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* About Section */
    .about-stats {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .tool-badges {
        gap: 0.5rem;
    }
    
    .tool-badge {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    /* Newsletter */
    .newsletter-section {
        padding: var(--spacing-lg) 1.5rem;
    }
    
    .newsletter-icon {
        font-size: 3rem;
    }
    
    .newsletter-content h2 {
        font-size: 1.75rem;
    }
    
    .newsletter-content > p {
        font-size: 1rem;
    }
    
    .newsletter-form input {
        padding: 0.875rem 1.25rem;
    }
    
    /* Footer */
    .main-footer {
        padding: var(--spacing-lg) 1.5rem var(--spacing-md);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* ====================================
   Mobile Portrait (max-width: 576px)
   ==================================== */

@media screen and (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0.875rem 1rem;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        width: 80%;
        padding: 4rem 1.5rem 2rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 4rem 1rem 2rem;
    }
    
    .title-line {
        font-size: 1.25rem;
    }
    
    .title-main {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .rainbow-burst-container {
        max-width: 100%;
        height: 250px;
    }
    
    .category-reveals {
        flex-direction: column;
        align-items: center;
    }
    
    .category-item {
        width: 100%;
        max-width: 200px;
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }
    
    /* Content Sections */
    .content-section {
        padding: var(--spacing-md) 1rem;
    }
    
    .section-header {
        margin-bottom: var(--spacing-md);
    }
    
    .section-icon {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
    
    /* Gallery */
    .project-card {
        height: 300px;
    }
    
    .card-overlay h3 {
        font-size: 1.25rem;
    }
    
    .card-overlay p {
        font-size: 0.85rem;
    }
    
    .card-back {
        padding: 1.25rem;
    }
    
    .card-back h3 {
        font-size: 1.25rem;
    }
    
    .card-back p {
        font-size: 0.9rem;
    }
    
    .card-meta {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
    
    .card-actions .btn-icon {
        font-size: 1.25rem;
    }
    
    /* Video Section */
    .video-info {
        padding: 1rem;
    }
    
    .video-info h3 {
        font-size: 1.25rem;
    }
    
    .video-meta {
        font-size: 0.85rem;
        gap: 1rem;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Music Player */
    .music-player-container {
        padding: 1rem;
    }
    
    .track-visualizer {
        height: 120px;
        margin-bottom: 1rem;
    }
    
    .track-info h3 {
        font-size: 1.25rem;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .control-btn-play {
        width: 55px;
        height: 55px;
        font-size: 1.1rem;
    }
    
    .playlist h4 {
        font-size: 1.1rem;
    }
    
    .playlist-item {
        padding: 0.6rem;
    }
    
    .track-number {
        font-size: 0.9rem;
        min-width: 25px;
    }
    
    .track-details h5 {
        font-size: 0.9rem;
    }
    
    .track-details p {
        font-size: 0.8rem;
    }
    
    .track-duration {
        font-size: 0.85rem;
    }
    
    /* GPTs Section */
    .gpt-card {
        padding: 1.25rem;
    }
    
    .gpt-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .gpt-card h3 {
        font-size: 1.25rem;
    }
    
    .gpt-card p {
        font-size: 0.9rem;
    }
    
    .feature-badge {
        padding: 0.3rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Prompts Section */
    .prompt-categories {
        flex-direction: column;
    }
    
    .category-btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }
    
    .prompt-card {
        padding: 0.875rem;
    }
    
    .prompt-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .copy-btn {
        width: 100%;
        padding: 0.5rem 1rem;
    }
    
    .prompt-content {
        padding: 0.875rem;
    }
    
    .prompt-content code {
        font-size: 0.8rem;
    }
    
    .prompt-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Collaborations */
    .collab-content {
        padding: 1.5rem;
    }
    
    .collab-content h3 {
        font-size: 1.5rem;
    }
    
    .collab-partners {
        flex-wrap: wrap;
    }
    
    .partner-avatar {
        width: 40px;
        height: 40px;
    }
    
    .community-spotlight {
        padding: 1.5rem 1rem;
    }
    
    .community-spotlight h3 {
        font-size: 1.5rem;
    }
    
    .spotlight-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .creator-avatar {
        width: 70px;
        height: 70px;
    }
    
    /* About Section */
    .about-text h2 {
        font-size: 1.75rem;
    }
    
    .about-text h3 {
        font-size: 1.25rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .about-tools h4 {
        font-size: 1.1rem;
    }
    
    .tool-badges {
        justify-content: center;
    }
    
    /* Newsletter */
    .newsletter-icon {
        font-size: 2.5rem;
    }
    
    .newsletter-content h2 {
        font-size: 1.5rem;
    }
    
    .newsletter-content > p {
        font-size: 0.95rem;
    }
    
    .newsletter-form input {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer-logo {
        font-size: 1.25rem;
        justify-content: center;
    }
    
    .footer-brand p {
        text-align: center;
    }
    
    .footer-column h4 {
        font-size: 1rem;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ====================================
   Small Mobile (max-width: 375px)
   ==================================== */

@media screen and (max-width: 375px) {
    html {
        font-size: 13px;
    }
    
    .title-main {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
    
    .nav-menu {
        width: 85%;
    }
    
    .project-card {
        height: 280px;
    }
    
    .about-stats {
        gap: 0.75rem;
    }
}

/* ====================================
   Print Styles
   ==================================== */

@media print {
    .main-nav,
    .scroll-indicator,
    .back-to-top,
    .particle-canvas,
    .newsletter-section,
    .footer-bottom {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .content-section {
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
    }
}