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

body {
    font-family: 'Arial', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Twinkling Stars Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 4s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

/* Additional star layers for depth */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(1px 1px at 50px 50px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 100px 100px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 150px 150px, rgba(255,255,255,0.5), transparent);
    background-repeat: repeat;
    background-size: 300px 200px;
    animation: twinkle-slow 6s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes twinkle-slow {
    0% { opacity: 0.2; }
    100% { opacity: 0.6; }
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-right: 2px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-header .logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.sidebar-header h3 {
    color: #fff;
    font-size: 1.2em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Toggle Buttons */
.toggle-btn {
    background: linear-gradient(45deg, #6a0dad, #9370db);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
    margin-bottom: 20px;
    width: 100%;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 13, 173, 0.5);
    background: linear-gradient(45deg, #7b1fa2, #ab47bc);
}

.main-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    width: auto;
    min-width: 150px;
}

.sidebar-toggle {
    margin-top: 0;
}

/* Sidebar Navigation */
.sidebar-nav h4 {
    color: #fff;
    margin: 20px 0 10px 0;
    font-size: 1.1em;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.sidebar-nav ul {
    list-style: none;
    margin-bottom: 30px;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-content {
    margin-left: 300px;
    min-height: 100vh;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 0;
}

/* Header */
.header {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.main-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ff69b4, #00bfff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

.header h2 {
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.mission, .subtitle {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    line-height: 1.6;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Memory Input Section */
.memory-input-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.input-panel h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.memory-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6a0dad;
    box-shadow: 0 0 15px rgba(106, 13, 173, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Color Options */
.color-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

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

.color-btn:hover,
.color-btn.selected {
    border-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Launch Button */
.launch-btn {
    background: linear-gradient(45deg, #ff4500, #ff8c00, #ffd700);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
    margin-top: 20px;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4); }
    100% { box-shadow: 0 8px 25px rgba(255, 69, 0, 0.6); }
}

.launch-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.6);
}

/* Timeline Section */
.timeline-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 30px;
}

.timeline-section h3 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.timeline-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.era-btn {
    background: linear-gradient(45deg, #4169e1, #00bfff);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
}

.era-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.5);
}

.timeline-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    min-height: 400px;
}

.timeline {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2em;
}

/* Export Section */
.export-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 30px;
    text-align: center;
}

.export-section h3 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.export-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.export-btn {
    background: linear-gradient(45deg, #00ff7f, #32cd32);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 127, 0.3);
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 127, 0.5);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content h4 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.3em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    justify-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: block;
}

.footer-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 280px;
    }
    
    .main-content {
        margin-left: 0;
        padding: 10px;
    }
    
    .main-toggle {
        top: 10px;
        left: 10px;
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .header h2 {
        font-size: 1.2em;
    }
    
    .memory-input-section,
    .timeline-section,
    .export-section {
        margin: 20px auto;
        padding: 20px;
    }
    
    .color-options {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .color-btn {
        width: 40px;
        height: 40px;
    }
    
    .timeline-controls {
        gap: 10px;
    }
    
    .era-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .export-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100vw;
    }
    
    .header {
        padding: 80px 10px 30px;
    }
    
    .main-logo {
        width: 80px;
        height: 80px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .memory-input-section,
    .timeline-section,
    .export-section {
        padding: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}



/* Photo Collage Creator Styles */
.photo-collage-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 30px;
}

.collage-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

.collage-panel h3 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.collage-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Photo Upload Area */
.photo-upload-area {
    margin-bottom: 40px;
}

.upload-zone {
    border: 3px dashed rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 20px;
}

.upload-zone:hover {
    border-color: #6a0dad;
    background: rgba(106, 13, 173, 0.1);
    box-shadow: 0 0 20px rgba(106, 13, 173, 0.3);
}

.upload-zone.dragover {
    border-color: #ff69b4;
    background: rgba(255, 105, 180, 0.1);
    box-shadow: 0 0 25px rgba(255, 105, 180, 0.4);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-icon {
    font-size: 4em;
    opacity: 0.7;
}

.upload-zone h4 {
    color: #fff;
    font-size: 1.5em;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.upload-zone p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.upload-btn {
    background: linear-gradient(45deg, #6a0dad, #9370db);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 13, 173, 0.5);
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 100px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: scale(1.05);
    border-color: #6a0dad;
    box-shadow: 0 0 15px rgba(106, 13, 173, 0.5);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .remove-btn {
    opacity: 1;
}

/* Customization Panel */
.customization-panel {
    margin-bottom: 40px;
}

.customization-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.tab-btn.active {
    background: linear-gradient(45deg, #6a0dad, #9370db);
    color: white;
    border-color: #6a0dad;
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
}

.tab-content {
    display: none;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-content.active {
    display: block;
}

.tab-content h4 {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.3em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Layout Grid */
.layout-grid, .frame-grid, .background-grid, .effects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.layout-option, .frame-option, .background-option, .effect-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.layout-option:hover, .frame-option:hover, .background-option:hover, .effect-option:hover {
    border-color: #6a0dad;
    background: rgba(106, 13, 173, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(106, 13, 173, 0.3);
}

.layout-option.selected, .frame-option.selected, .background-option.selected, .effect-option.selected {
    border-color: #ff69b4;
    background: rgba(255, 105, 180, 0.15);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.4);
}

.layout-preview, .frame-preview, .background-preview, .effect-preview {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Preview Styles */
.honeycomb-preview {
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.3) 20%, transparent 21%),
        radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.3) 20%, transparent 21%),
        radial-gradient(circle at 50% 75%, rgba(255, 255, 255, 0.3) 20%, transparent 21%),
        linear-gradient(45deg, #6a0dad, #9370db);
}

.spiral-preview {
    background: 
        radial-gradient(ellipse at center, transparent 30%, rgba(255, 255, 255, 0.3) 31%, rgba(255, 255, 255, 0.3) 40%, transparent 41%),
        linear-gradient(45deg, #ff69b4, #ff1493);
}

.constellation-preview {
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8) 2px, transparent 3px),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.8) 2px, transparent 3px),
        radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.8) 2px, transparent 3px),
        linear-gradient(45deg, #000, #1a1a2e);
}

.mandala-preview {
    background: 
        radial-gradient(circle, rgba(255, 255, 255, 0.3) 30%, transparent 31%),
        conic-gradient(from 0deg, #ffd700, #ff8c00, #ffd700),
        #000;
}

.diamond-preview {
    background: 
        linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.3) 41%, rgba(255, 255, 255, 0.3) 59%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(255, 255, 255, 0.3) 41%, rgba(255, 255, 255, 0.3) 59%, transparent 60%),
        linear-gradient(45deg, #4169e1, #00bfff);
}

.river-preview {
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 31%, rgba(255, 255, 255, 0.3) 35%, transparent 36%),
        linear-gradient(45deg, #00ff7f, #32cd32);
}

/* Frame Previews */
.polaroid-frame {
    background: linear-gradient(45deg, #fff, #f0f0f0);
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.holographic-frame {
    background: linear-gradient(45deg, #ff69b4, #00bfff, #ffd700, #ff69b4);
    background-size: 200% 200%;
    animation: holographic-shift 3s ease-in-out infinite;
}

@keyframes holographic-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.neon-frame {
    background: #000;
    border: 2px solid #00ff00;
    box-shadow: 
        0 0 5px #00ff00,
        inset 0 0 5px #00ff00;
}

.vintage-frame {
    background: linear-gradient(45deg, #8b4513, #daa520);
    border: 2px solid #cd853f;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Background Previews */
.deep-space-bg {
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8) 1px, transparent 2px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.6) 1px, transparent 2px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.4) 1px, transparent 2px),
        #000;
}

.nebula-bg {
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(255, 105, 180, 0.6), transparent 70%),
        radial-gradient(ellipse at 70% 70%, rgba(138, 43, 226, 0.6), transparent 70%),
        #000;
}

.galaxy-bg {
    background: 
        radial-gradient(ellipse 200% 100% at 50% 50%, transparent 40%, rgba(255, 255, 255, 0.3) 41%, rgba(255, 255, 255, 0.3) 60%, transparent 61%),
        linear-gradient(45deg, #4b0082, #000);
}

.aurora-bg {
    background: 
        linear-gradient(90deg, transparent 30%, rgba(0, 255, 127, 0.6) 50%, transparent 70%),
        linear-gradient(45deg, #000, #1a1a2e);
}

/* Effect Previews */
.glow-effect {
    background: #6a0dad;
    box-shadow: 0 0 20px #6a0dad;
}

.hologram-effect {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(0, 255, 255, 0.3));
    animation: holographic-shift 2s ease-in-out infinite;
}

.neon-effect {
    background: #ff00ff;
    box-shadow: 0 0 15px #ff00ff;
}

.vintage-effect {
    background: linear-gradient(45deg, #8b4513, #daa520);
    filter: sepia(100%) contrast(120%);
}

/* Text Controls */
.text-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.text-controls input {
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.text-controls input:focus {
    outline: none;
    border-color: #6a0dad;
    box-shadow: 0 0 15px rgba(106, 13, 173, 0.5);
}

.font-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.font-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.font-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.font-btn.selected {
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    color: white;
    border-color: #ff69b4;
}

/* Collage Preview Area */
.collage-preview-area {
    text-align: center;
}

.collage-preview-area h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.5em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.canvas-container {
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

#collageCanvas {
    display: block;
    max-width: 100%;
    height: auto;
}

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

.preview-btn {
    background: linear-gradient(45deg, #4169e1, #00bfff);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
}

.preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.5);
}

.create-btn {
    background: linear-gradient(45deg, #ff4500, #ff8c00, #ffd700);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

.create-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.6);
}

/* Mobile Responsive for Collage Creator */
@media (max-width: 768px) {
    .photo-collage-section {
        margin: 20px auto;
        padding: 15px;
    }
    
    .collage-panel {
        padding: 20px;
    }
    
    .collage-panel h3 {
        font-size: 2em;
    }
    
    .upload-zone {
        padding: 20px;
    }
    
    .upload-icon {
        font-size: 3em;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
        padding: 15px;
    }
    
    .customization-tabs {
        gap: 5px;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .layout-grid, .frame-grid, .background-grid, .effects-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .layout-preview, .frame-preview, .background-preview, .effect-preview {
        width: 60px;
        height: 45px;
    }
    
    .font-options {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .preview-controls {
        flex-direction: column;
        align-items: center;
    }
    
    #collageCanvas {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .collage-panel h3 {
        font-size: 1.8em;
    }
    
    .collage-subtitle {
        font-size: 1em;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
    
    .customization-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 200px;
        text-align: center;
    }
    
    .layout-grid, .frame-grid, .background-grid, .effects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

