:root {
    --primary-color: #ff5fa2;
    --primary-color-rgb: 255, 95, 162;
    --secondary-color: #9370db;
    --accent-color: #32d6e7;
    --background-color: #f8f9fa;
    --text-color: #333;
    --border-radius: 12px;
    --spacing: 20px;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --btn-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.app-container {
    background: white;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.app-header {
    padding: var(--spacing);
    text-align: center;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.app-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    position: relative;
    z-index: 5;
}

.nav-link {
    color: var(--text-color);
    font-size: 0.9em;
    opacity: 0.8;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 5px;
    border: none;
    font-family: inherit;
}

.nav-link:hover {
    color: var(--primary-color);
    opacity: 1;
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.app-title {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.main-content {
    padding: var(--spacing);
    min-height: 500px;
}

/* Selection Screens */
.selection-container {
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.5s ease-out;
}

.selection-container h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8em;
}

.selection-info {
    margin: 10px 0 20px;
    color: var(--text-color);
    font-size: 1.1em;
}

/* Group and Member Cards */
.group-grid,
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.group-card,
.member-card {
    /* Use a more subtle background to avoid interference with PNG transparency */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.group-card::after,
.member-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: var(--border-radius);
}

.group-card:hover,
.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.group-card:hover::after,
.member-card:hover::after {
    opacity: 1;
}

.group-image,
.member-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.group-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.member-image {
    background: transparent;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 200px;
}

/* Remove the gradient overlay that might affect transparency */

.member-image img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    /* Remove mix-blend-mode which can cause transparency issues */
    transform-origin: center;
    /* Ensure image background is transparent */
    background-color: transparent;
}

.member-card:hover .member-image img {
    transform: scale(1.05);
    /* Lighter shadow to avoid affecting transparency */
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
}

.group-card:hover .group-image img,
.member-card:hover .member-image img {
    transform: scale(1.05);
}

.group-name,
.member-name {
    padding: 15px;
    text-align: center;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    z-index: 2;
}

.member-card.selected {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
    border: 2px solid var(--primary-color);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 8px 20px rgba(var(--primary-color-rgb), 0.2),
        0 0 0 1px rgba(var(--primary-color-rgb), 0.1);
}

.member-card.selected .member-name {
    color: var(--primary-color);
    font-weight: 600;
}

.member-card.selected::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 3;
}

/* Camera Container */
.camera-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-out;
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scaleX(-1);
    object-fit: cover;
}

.overlay-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.countdown {
    font-size: 6em;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 25;
}

.camera-controls {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.camera-controls p {
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--primary-color);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Frame Controls */
.frame-controls {
    margin: 20px 0;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.frame-controls h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.2em;
    font-weight: 600;
}

.frame-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 10px;
}

.frame-button {
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1em;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    min-width: 150px;
    position: relative;
    overflow: hidden;
}

.frame-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.frame-button:hover::before {
    opacity: 1;
}

.frame-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.frame-button.selected {
    transform: scale(1.05);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 0 0 3px var(--primary-color),
        0 0 20px rgba(255, 95, 162, 0.3);
}

.frame-button.selected::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

/* Flash Effect */
.flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0.8;
    z-index: 100;
    pointer-events: none;
    animation: flash 0.5s ease-out;
}

@keyframes flash {
    0% { opacity: 0.8; }
    100% { opacity: 0; }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInBlur {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

/* Result Screen */
.result-container {
    text-align: center;
    padding: 20px;
    animation: fadeInBlur 0.6s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    max-height: 90vh;
    gap: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.result-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    animation: scaleIn 0.8s ease-out;
}

.result-container h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8em;
    animation: slideUp 0.7s ease-out;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 10px;
}

.result-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    animation: scaleIn 0.9s ease-out;
}

.result-container h3 {
    color: var(--secondary-color);
    margin: 10px 0;
    font-size: 1.2em;
}

.editor-container {
    display: flex;
    width: 100%;
    max-height: 70vh;
    margin-bottom: 10px;
    gap: 15px;
    justify-content: center;
    align-items: flex-start;
}

.photo-strip-container {
    width: auto;
    height: auto;
    max-height: 70vh;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: scaleIn 0.8s ease-out;
    transform-origin: center;
}

.photo-strip-container:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1);
}

#photo-strip-img {
    max-height: 65vh;
    max-width: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.photo-strip-container:hover #photo-strip-img {
    transform: scale(1.02);
}

.photo-strip img {
    max-height: 65vh;
    width: auto;
    display: block;
    object-fit: contain;
}

.sticker-container {
    flex: 0 0 auto;
    max-width: 30%;
    max-height: 65vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.6);
    animation: slideUp 0.8s ease-out;
    backdrop-filter: blur(5px);
}

.stickers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-height: 55vh;
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.stickers-grid::-webkit-scrollbar {
    width: 6px;
}

.stickers-grid::-webkit-scrollbar-track {
    background: transparent;
}

.stickers-grid::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
    border: 2px solid transparent;
}

.sticker-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    backdrop-filter: blur(5px);
}

.sticker-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sticker-item:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 15px rgba(0, 0, 0, 0.1),
        0 0 0 2px var(--primary-color);
}

.sticker-item:hover::before {
    opacity: 1;
}

.sticker-item img {
    width: 100%;
    height: auto;
    display: block;
    padding: 8px;
    transition: transform 0.3s ease;
}

.sticker-item:hover img {
    transform: scale(1.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    outline: none;
    margin: 20px;
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8em;
}

.modal-content h3 {
    color: var(--text-color);
    margin: 20px 0 10px;
    font-size: 1.2em;
}

.modal-content p {
    margin: 10px 0;
    line-height: 1.6;
    color: var(--text-color);
}

.modal-content .modal-close {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 200px;
    margin: 30px auto 0;
}

.modal-close span {
    font-size: 1.5em;
    line-height: 1;
    margin-right: 4px;
}

/* Focus styles for accessibility */
.modal-content:focus,
.modal-close:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    opacity: 1;
    background: white;
}

.modal-content button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

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

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    animation: slideUp 0.9s ease-out;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 40px;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

/* Buttons */
.primary-button, 
.secondary-button {
    padding: 15px 32px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--btn-shadow);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.primary-button::before,
.secondary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.primary-button:hover::before,
.secondary-button:hover::before {
    opacity: 1;
}

.primary-button {
    background: linear-gradient(45deg, var(--primary-color), #ff8dc7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-button:hover {
    background: linear-gradient(45deg, #ff4691, #ff7eb8);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 20px rgba(255, 95, 162, 0.3),
        0 2px 5px rgba(255, 95, 162, 0.2);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(5px);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 95, 162, 0.2);
    color: #ff4691;
}

.back-button {
    margin-top: 20px;
    padding: 12px 24px;
    background: none;
    animation: slideUp 1s ease-out;
    position: relative;
    z-index: 2;
    border: 1px solid var(--text-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 0.9em;
}

.back-button:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Error Container */
.error-container {
    text-align: center;
    padding: 40px 20px;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.error-container h2 {
    color: #ff4b4b;
    margin-bottom: 15px;
}

.error-container p {
    margin-bottom: 25px;
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .group-grid,
    .member-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .app-title {
        font-size: 2em;
    }
    
    .countdown {
        font-size: 4em;
    }
}

@media (max-width: 480px) {
    .group-grid,
    .member-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .group-image,
    .member-image {
        height: 150px;
    }
    
    .app-title {
        font-size: 1.8em;
    }
    
    .countdown {
        font-size: 3.5em;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* Header Styles */
.kpop-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 95, 162, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.brand-link:hover {
    transform: translateY(-1px);
}

.brand-icon {
    font-size: 2em;
    filter: drop-shadow(0 2px 4px rgba(255, 95, 162, 0.3));
}

.brand-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.brand-subtitle {
    font-size: 0.85em;
    color: var(--secondary-color);
    font-weight: 500;
    margin-left: 5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    color: var(--primary-color);
    background: rgba(255, 95, 162, 0.1);
    transform: translateY(-1px);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-item:hover::after {
    width: 80%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-button {
    background: linear-gradient(45deg, var(--primary-color), #ff8dc7);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 95, 162, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 95, 162, 0.4);
    background: linear-gradient(45deg, #ff4691, #ff7eb8);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.mobile-nav-item {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1em;
}

.mobile-nav-item:hover {
    background: rgba(255, 95, 162, 0.1);
    color: var(--primary-color);
}

/* Footer Styles */
.kpop-footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    margin-top: auto;
    padding: 40px 0 20px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a,
.footer-link-btn {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.footer-section a:hover,
.footer-link-btn:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    margin-top: 30px;
    padding-top: 20px;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--accent-color);
}

.footer-logo {
    font-size: 1.2em;
}

.footer-meta p {
    margin: 5px 0;
    font-size: 0.85em;
    color: #bdc3c7;
}

.footer-disclaimer {
    font-style: italic;
    opacity: 0.8;
}

/* Make main content flexible */
.main-content {
    flex: 1;
    padding: var(--spacing);
    min-height: 500px;
}

/* Mobile Header & Footer */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .main-nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .mobile-nav.active {
        display: flex;
    }
    
    .brand-title {
        font-size: 1.3em;
    }
    
    .brand-subtitle {
        display: none;
    }
    
    .cta-button {
        padding: 10px 18px;
        font-size: 0.9em;
    }
    
    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
        padding: 0 15px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .header-container {
        height: 55px;
    }
    
    .brand-title {
        font-size: 1.2em;
    }
    
    .cta-button {
        padding: 8px 15px;
        font-size: 0.85em;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* K-pop Themes Page Styles */
.themes-main {
    flex: 1;
    padding: 0;
}

.themes-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.themes-hero h1 {
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: 700;
}

.themes-hero p {
    font-size: 1.2em;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

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

.theme-group {
    margin-bottom: 80px;
}

.group-header {
    text-align: center;
    margin-bottom: 40px;
}

.group-header h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.group-header p {
    font-size: 1.1em;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.theme-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.theme-preview {
    height: 200px;
    background: linear-gradient(135deg, #ff5fa2, #9370db);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.theme-sample {
    font-size: 2em;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Theme-specific colors */
.savage-theme {
    background: linear-gradient(135deg, #ff0080, #8000ff);
}

.dreams-theme {
    background: linear-gradient(135deg, #ffb3d9, #d9b3ff);
}

.vampire-theme {
    background: linear-gradient(135deg, #800020, #2c1810);
}

.fever-theme {
    background: linear-gradient(135deg, #ff6b35, #ff8e53);
}

.dimension-theme {
    background: linear-gradient(135deg, #4a0e4e, #81689d);
}

.fearless-theme {
    background: linear-gradient(135deg, #c41e3a, #ff69b4);
}

.antifragile-theme {
    background: linear-gradient(135deg, #ffd700, #ff6347);
}

.unforgiven-theme {
    background: linear-gradient(135deg, #8b4513, #daa520);
}

.crown-theme {
    background: linear-gradient(135deg, #ffd700, #ffa500);
}

.magic-theme {
    background: linear-gradient(135deg, #ff69b4, #9370db);
}

.freeze-theme {
    background: linear-gradient(135deg, #4169e1, #87ceeb);
}

.who-theme {
    background: linear-gradient(135deg, #32cd32, #00fa9a);
}

.earth-theme {
    background: linear-gradient(135deg, #8fbc8f, #f4a460);
}

.love-theme {
    background: linear-gradient(135deg, #ff1493, #ffb6c1);
}

.theme-card h3 {
    font-size: 1.3em;
    margin: 20px 20px 8px 20px;
    color: var(--text-color);
    font-weight: 600;
}

.theme-card p {
    margin: 0 20px 20px 20px;
    color: #666;
    font-size: 0.95em;
}

/* How to Use Section */
.how-to-use {
    background: rgba(255, 95, 162, 0.05);
    padding: 60px 20px;
    margin: 60px 0;
}

.how-to-use h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.steps-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 auto 20px auto;
}

.step h3 {
    font-size: 1.2em;
    color: var(--text-color);
    margin-bottom: 10px;
}

.step p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
}

/* CTA Section */
.themes-cta {
    text-align: center;
    padding: 60px 20px;
    background: white;
}

.themes-cta h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.themes-cta p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
}

.cta-button.large {
    padding: 18px 40px;
    font-size: 1.2em;
    border-radius: 30px;
}

/* Active navigation item */
.nav-item.active {
    color: var(--primary-color);
    background: rgba(255, 95, 162, 0.1);
}

.nav-item.active::after {
    width: 80%;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .themes-hero h1 {
        font-size: 2.5em;
    }
    
    .themes-hero {
        padding: 60px 20px;
    }
    
    .group-header h2 {
        font-size: 2em;
    }
    
    .theme-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .themes-cta h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .themes-hero h1 {
        font-size: 2em;
    }
    
    .group-header h2 {
        font-size: 1.8em;
    }
    
    .theme-preview {
        height: 150px;
    }
    
    .theme-sample {
        font-size: 1.5em;
    }
}

/* Photo Box Studio Page Styles */
.photo-box-main {
    flex: 1;
    padding: 0;
}

.photo-box-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.photo-box-hero h1 {
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: 700;
}

.photo-box-hero p {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

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

.effects-section,
.filters-section,
.frames-section,
.features-section,
.how-it-works {
    margin-bottom: 80px;
}

.effects-section h2,
.filters-section h2,
.frames-section h2,
.features-section h2,
.how-it-works h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 600;
}

/* Effects Grid */
.effects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.effect-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.effect-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.effect-preview {
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.effect-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.effect-name {
    font-size: 1.2em;
    font-weight: 600;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Effect-specific styles */
.sparkle-effect {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    animation: sparkleGlow 2s ease-in-out infinite alternate;
}

@keyframes sparkleGlow {
    0% { box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.5); }
    100% { box-shadow: inset 0 0 40px rgba(255, 215, 0, 0.8); }
}

.heart-effect {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    animation: heartBeat 1.5s ease-in-out infinite;
}

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

.neon-effect {
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    0% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.5); }
    100% { box-shadow: 0 0 40px rgba(255, 0, 255, 0.8); }
}

.vintage-effect {
    background: linear-gradient(135deg, #8b7355, #d2b48c);
    filter: sepia(30%) contrast(1.2);
}

.holographic-effect {
    background: linear-gradient(45deg, #ff0080, #00ff80, #0080ff, #ff0080);
    background-size: 400% 400%;
    animation: holographicShift 3s ease-in-out infinite;
}

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

.butterfly-effect {
    background: linear-gradient(135deg, #ff69b4, #dda0dd);
    animation: butterflyFloat 3s ease-in-out infinite;
}

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

/* Filters Grid */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.filter-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.filter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.filter-preview {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-sample {
    font-size: 1.5em;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Filter-specific styles */
.glow-filter {
    background: linear-gradient(135deg, #ffb3d9, #ff8dc7);
    box-shadow: 0 0 30px rgba(255, 179, 217, 0.6);
}

.aesthetic-filter {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
}

.dreamy-filter {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    filter: blur(1px) brightness(1.2);
}

.cyberpunk-filter {
    background: linear-gradient(135deg, #0f3460, #e94560);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

/* Frames Grid */
.frames-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.frame-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.frame-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.frame-preview {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px;
    border-radius: 10px;
}

.frame-content {
    font-size: 1.2em;
    font-weight: 600;
}

/* Frame-specific styles */
.classic-frame {
    background: white;
    border: 4px solid #333;
    color: #333;
}

.gradient-frame {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.kpop-frame {
    background: linear-gradient(135deg, #ff5fa2, #32d6e7);
    color: white;
    box-shadow: 0 0 20px rgba(255, 95, 162, 0.3);
}

.polaroid-frame {
    background: #f8f8f8;
    border: 8px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #333;
}

.effect-card h3,
.filter-card h3,
.frame-card h3 {
    font-size: 1.2em;
    margin: 20px 20px 8px 20px;
    color: var(--text-color);
    font-weight: 600;
}

.effect-card p,
.filter-card p,
.frame-card p {
    margin: 0 20px 20px 20px;
    color: #666;
    font-size: 0.9em;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-item .feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.3em;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-item p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
}

/* How It Works */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.step-item {
    text-align: center;
    padding: 30px 20px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: 700;
    margin: 0 auto 20px auto;
    box-shadow: 0 8px 20px rgba(255, 95, 162, 0.3);
}

.step-item h3 {
    font-size: 1.3em;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.step-item p {
    color: #666;
    font-size: 1em;
    line-height: 1.6;
}

/* CTA Section */
.photo-box-cta {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 95, 162, 0.05);
    border-radius: 30px;
    margin-top: 40px;
}

.photo-box-cta h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.photo-box-cta p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .photo-box-hero h1 {
        font-size: 2.5em;
    }
    
    .photo-box-hero {
        padding: 60px 20px;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .effects-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .frames-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .photo-box-cta h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .photo-box-hero h1 {
        font-size: 2em;
    }
    
    .effect-preview {
        height: 140px;
    }
    
    .effect-icon {
        font-size: 2.5em;
    }
    
    .filter-preview {
        height: 120px;
    }
    
    .frame-preview {
        height: 100px;
        margin: 15px;
    }
}

/* Camera Test Page Styles */
.camera-test-main {
    flex: 1;
    padding: 0;
}

.camera-test-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.camera-test-hero h1 {
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: 700;
}

.camera-test-hero p {
    font-size: 1.2em;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

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

.camera-preview-section,
.test-results-section,
.lighting-check-section,
.camera-tips-section,
.compatibility-section {
    margin-bottom: 80px;
}

.camera-preview-section h2,
.test-results-section h2,
.lighting-check-section h2,
.camera-tips-section h2,
.compatibility-section h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 600;
}

/* Camera Test Area */
.camera-test-area {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.video-container {
    position: relative;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

#cameraPreview {
    width: 100%;
    height: auto;
    display: block;
    min-height: 300px;
    object-fit: cover;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
}

.crosshair-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
}

.crosshair-line.horizontal {
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}

.crosshair-line.vertical {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
}

.resolution-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

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

.camera-controls button {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.camera-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Test Results */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.result-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.result-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.result-card h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: 600;
}

.result-value {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.result-status {
    font-size: 0.9em;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 500;
}

.result-status.good {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.result-status.ok {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
}

.result-status.poor {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.result-status.error {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

/* Lighting Analysis */
.lighting-analyzer {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.lighting-metric {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.metric-label {
    font-weight: 600;
    color: var(--text-color);
    min-width: 100px;
}

.brightness-bar,
.contrast-bar {
    flex: 1;
    height: 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.brightness-level,
.contrast-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 6px;
    transition: width 0.3s ease;
    width: 0%;
}

.lighting-recommendation {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 95, 162, 0.05);
    border-radius: 15px;
    margin-top: 20px;
}

.recommendation-icon {
    font-size: 1.5em;
}

.recommendation-text {
    flex: 1;
    color: var(--text-color);
    font-size: 0.95em;
    line-height: 1.5;
}

/* Tips Section */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tip-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.tip-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.tip-card h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: 600;
}

.tip-card p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Compatibility Section */
.compatibility-results {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.compatibility-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.compatibility-item:last-child {
    border-bottom: none;
}

.compatibility-label {
    font-weight: 600;
    color: var(--text-color);
}

.compatibility-value {
    font-size: 0.9em;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 500;
}

.compatibility-value.supported {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.compatibility-value.unsupported {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* CTA Section */
.camera-test-cta {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 95, 162, 0.05);
    border-radius: 30px;
    margin-top: 40px;
}

.camera-test-cta h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.camera-test-cta p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .camera-test-hero h1 {
        font-size: 2.5em;
    }
    
    .camera-test-hero {
        padding: 60px 20px;
    }
    
    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .camera-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .camera-controls button {
        width: 100%;
        max-width: 250px;
    }
    
    .lighting-metric {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .brightness-bar,
    .contrast-bar {
        width: 100%;
    }
    
    .camera-test-cta h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .camera-test-hero h1 {
        font-size: 2em;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-card {
        padding: 20px;
    }
    
    .lighting-analyzer {
        padding: 20px;
    }
    
    .tip-card {
        padding: 20px;
    }
    
    .compatibility-results {
        padding: 20px;
    }
    
    .compatibility-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
