/* Instruction Popup */
.instruction-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.instruction-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.popup-card {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.instruction-popup.show .popup-card {
    transform: scale(1) translateY(0);
}

.popup-header {
    display: flex;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, 
        rgba(50, 165, 202, 0.1) 0%, 
        rgba(50, 165, 202, 0.05) 100%);
}

.popup-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(50, 165, 202, 0.8) 0%, 
        rgba(40, 140, 170, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    box-shadow: 0 8px 24px rgba(50, 165, 202, 0.3);
}

.popup-icon i {
    font-size: 20px;
    color: #ffffff;
}

.popup-title {
    flex: 1;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.popup-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.popup-close i {
    font-size: 16px;
}

.popup-content {
    padding: 32px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(50, 165, 202, 0.5) transparent;
    min-height: 0;
}

.popup-content::-webkit-scrollbar {
    width: 6px;
}

.popup-content::-webkit-scrollbar-track {
    background: transparent;
}

.popup-content::-webkit-scrollbar-thumb {
    background: rgba(50, 165, 202, 0.5);
    border-radius: 3px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: rgba(50, 165, 202, 0.7);
}

.instruction-section {
    margin-bottom: 32px;
}

.instruction-section:last-child {
    margin-bottom: 0;
}

.instruction-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
}

.instruction-section h4 i {
    color: #32A5CA;
    font-size: 20px;
}

.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.step:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(50, 165, 202, 0.3);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(50, 165, 202, 0.8) 0%, 
        rgba(40, 140, 170, 1) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(50, 165, 202, 0.3);
}

.step p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 15px;
}

.step strong {
    color: #32A5CA;
    font-weight: 600;
}

.pro-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pro-tips li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.pro-tips li:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(50, 165, 202, 0.3);
}

.pro-tips li:last-child {
    margin-bottom: 0;
}

.pro-tips li i {
    color: #32A5CA;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.pro-tips li {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    font-size: 14px;
}

.popup-footer {
    padding: 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.popup-ok-btn {
    min-width: 160px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    visibility: visible;
    opacity: 1;
}

/* Ensure button visibility at all zoom levels */
@media screen and (min-resolution: 96dpi) {
    .popup-ok-btn {
        min-height: 48px;
        line-height: 1;
        font-size: 16px !important;
    }
    
    .popup-footer {
        min-height: 80px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Ensure button visibility at all zoom levels */
.popup-ok-btn {
    min-width: 160px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto;
    min-height: 48px;
    box-sizing: border-box;
    transform: none !important;
}

/* Mobile Responsiveness for Popup */
@media (max-width: 768px) {
    .popup-card {
        width: 95%;
        max-height: 85vh;
        border-radius: 20px;
    }
    
    .popup-header {
        padding: 20px 24px;
    }
    
    .popup-title {
        font-size: 20px;
    }
    
    .popup-content {
        padding: 24px;
    }
    
    .popup-footer {
        padding: 20px 24px;
        min-height: 70px;
    }
    
    .popup-ok-btn {
        min-width: 140px;
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .instruction-section h4 {
        font-size: 16px;
    }
    
    .step {
        padding: 12px;
    }
    
    .step p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .popup-card {
        width: 98%;
        border-radius: 16px;
    }
    
    .popup-header {
        padding: 16px 20px;
    }
    
    .popup-title {
        font-size: 18px;
    }
    
    .popup-content {
        padding: 20px;
    }
    
    .popup-footer {
        padding: 16px 20px;
        min-height: 60px;
    }
    
    .popup-ok-btn {
        min-width: 120px;
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Floating Chat Bubbles */
.floating-chat-bubbles {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    pointer-events: auto;
    overflow: hidden;
}

.chat-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.chat-bubble i {
    font-size: 24px;
    color: #ffffff;
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.chat-bubble:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.chat-bubble:hover::before {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.1) 100%);
}

.chat-bubble:hover i {
    transform: scale(1.1);
}

/* WhatsApp Bubble */
.whatsapp-bubble {
    background: rgba(37, 211, 102, 0.2);
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.whatsapp-bubble:hover {
    background: rgba(37, 211, 102, 0.3);
    border-color: rgba(37, 211, 102, 0.5);
    box-shadow: 
        0 12px 40px rgba(37, 211, 102, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.whatsapp-bubble i {
    color: #25d366;
}

/* CEO Bubble */
.ceo-bubble {
    background: rgba(50, 165, 202, 0.2);
    border: 1px solid rgba(50, 165, 202, 0.3);
}

.ceo-bubble:hover {
    background: rgba(50, 165, 202, 0.3);
    border-color: rgba(50, 165, 202, 0.5);
    box-shadow: 
        0 12px 40px rgba(50, 165, 202, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ceo-bubble i {
    color: #32A5CA;
}

/* Tooltip */
.bubble-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bubble-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
}

.chat-bubble:hover .bubble-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

/* Animation */
@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.chat-bubble {
    animation: bubbleFloat 3s ease-in-out infinite;
}

.whatsapp-bubble {
    animation-delay: 0s;
}

.ceo-bubble {
    animation-delay: 1.5s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-chat-bubbles {
        right: 1rem;
        bottom: 1rem;
    }
    
    .chat-bubble {
        width: 50px;
        height: 50px;
    }
    
    .chat-bubble i {
        font-size: 20px;
    }
    
    .bubble-tooltip {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    /* Mobile navigation adjustments */
    .nav {
        gap: 0.3rem;
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 12px;
        gap: 6px;
    }
    
    .header.scrolled .nav-link {
        padding: 4px 8px;
        font-size: 11px;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .nav {
        gap: 0.2rem;
    }
    
    .nav-link {
        padding: 6px 8px;
        font-size: 11px;
        gap: 4px;
    }
    
    .header.scrolled .nav-link {
        padding: 3px 6px;
        font-size: 10px;
        gap: 3px;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(180deg, #0d1117 0%, #161b22 30%, #21262d 70%, #30363d 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    font-weight: 400;
    letter-spacing: -0.01em;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(88, 166, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at var(--mouse-x2, 20%) var(--mouse-y2, 20%), rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at var(--mouse-x3, 80%) var(--mouse-y3, 40%), rgba(255, 105, 180, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
    transition: all 0.3s ease;
    animation: backgroundPulse 8s ease-in-out infinite;
}

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

/* Optimize scrolling performance */
* {
    -webkit-overflow-scrolling: touch;
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    /* Improve touch targets */
    .btn, .nav-link, .filter-btn, .chat-bubble {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Improve text readability */
    .hero-title, .section-title {
        -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.1);
    }
    
    /* Better spacing for mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Improve form usability */
    .input-field, .select-field, .textarea-field {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 12px;
    }
    
    /* Better modal behavior */
    .modal {
        padding: 0;
    }
    
    /* Improve gallery touch interactions */
    .gallery-item {
        touch-action: manipulation;
    }
}

.gallery-grid {
    contain: layout style paint;
}

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

/* Loading Screen - Glassmorphism Design */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(20, 20, 40, 0.95) 50%, 
        rgba(0, 0, 0, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    visibility: visible;
}

.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(50, 165, 202, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(88, 166, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    pointer-events: none;
    animation: backgroundPulse 4s ease-in-out infinite;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.1);
}

/* MR. Logo Container */
.mr-loader-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

/* Main MR. Logo */
.mr-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    animation: logoFloat 3s ease-in-out infinite;
}

/* Animated outline around MR. logo */
.mr-logo::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(50, 165, 202, 0.4);
    animation: rotateOutline 3s linear infinite;
}

.mr-logo::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: rotateOutline 4s linear infinite reverse;
}

/* MR. Text */
.mr-text {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(50, 165, 202, 0.8);
    background: linear-gradient(135deg, #ffffff 0%, #32A5CA 50%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
    letter-spacing: -2px;
    font-family: 'Poppins', sans-serif;
}

/* Loading Text */
.loading-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 2;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(50, 165, 202, 0.6) 50%, 
        rgba(255, 255, 255, 0.8) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textFlow 3s ease-in-out infinite;
}

/* Progress Bar */
.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(50, 165, 202, 0.8) 0%, 
        rgba(88, 166, 255, 0.9) 50%, 
        rgba(50, 165, 202, 0.8) 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progressFlow 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(50, 165, 202, 0.5);
}

/* Animations */
@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }
    50% { 
        transform: translateY(-10px) scale(1.02);
        box-shadow: 
            0 30px 80px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }
}

@keyframes rotateOutline {
    0% {
        transform: rotate(0deg);
        border-color: rgba(50, 165, 202, 0.4);
    }
    25% {
        border-color: rgba(50, 165, 202, 0.8);
    }
    50% {
        transform: rotate(180deg);
        border-color: rgba(50, 165, 202, 0.4);
    }
    75% {
        border-color: rgba(50, 165, 202, 0.8);
    }
    100% {
        transform: rotate(360deg);
        border-color: rgba(50, 165, 202, 0.4);
    }
}

@keyframes textShimmer {
    0% {
        background-position: 0% 50%;
        text-shadow: 0 0 30px rgba(50, 165, 202, 0.8);
    }
    50% {
        background-position: 100% 50%;
        text-shadow: 0 0 40px rgba(50, 165, 202, 1);
    }
    100% {
        background-position: 0% 50%;
        text-shadow: 0 0 30px rgba(50, 165, 202, 0.8);
    }
}

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

@keyframes progressFlow {
    0% {
        background-position: 0% 50%;
        width: 0%;
    }
    50% {
        background-position: 100% 50%;
        width: 70%;
    }
    100% {
        background-position: 0% 50%;
        width: 100%;
    }
}

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

/* Responsive Design for Loading Screen */
@media (max-width: 768px) {
    .mr-logo {
        width: 100px;
        height: 100px;
    }
    
    .mr-text {
        font-size: 2rem;
    }
    
    .loading-text {
        font-size: 14px;
    }
    
    .loading-progress {
        width: 160px;
    }
}

@media (max-width: 480px) {
    .mr-logo {
        width: 80px;
        height: 80px;
    }
    
    .mr-text {
        font-size: 1.5rem;
    }
    
    .loading-text {
        font-size: 13px;
    }
    
    .loading-progress {
        width: 140px;
    }
}

/* Header */
.header {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    background: rgba(0, 0, 0, 0.02) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: none !important;
    z-index: 1000 !important;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
    padding: 2rem 0 !important;
}

/* Scrolled state - bar style header */
.header.scrolled {
    background: rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(40px) !important;
    -webkit-backdrop-filter: blur(40px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    margin: 1rem 2rem !important;
    width: calc(100% - 4rem) !important;
    padding: 0.8rem 0 !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transform: translateY(0) !important;
}

/* Motion blur effect during transition - removed highlighting */
.header.transitioning {
    backdrop-filter: blur(40px) !important;
    -webkit-backdrop-filter: blur(40px) !important;
    background: rgba(0, 0, 0, 0.15) !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled state - smaller content */
.header.scrolled .header-content {
    padding: 0 1.5rem;
}

.header-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.01) 0%, 
        rgba(255, 255, 255, 0.03) 50%, 
        rgba(255, 255, 255, 0.01) 100%);
    pointer-events: none;
    transition: opacity 0.8s ease;
    border-radius: inherit;
}

.header.scrolled .header-content::before {
    opacity: 0.3;
}

.logo-link {
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled state - smaller logo */
.header.scrolled .logo-text {
    font-size: 1.2rem;
    letter-spacing: -0.2px;
    font-weight: 600;
}

.highlight {
    color: #32A5CA;
    text-shadow: 0 0 20px rgba(50, 165, 202, 0.3);
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* Scrolled state - smaller nav links */
.header.scrolled .nav-link {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 12px;
    font-weight: 500;
    gap: 6px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(50, 165, 202, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(50, 165, 202, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.nav-link i {
    font-size: 16px;
    opacity: 0.9;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0d1117 0%, #161b22 50%, #21262d 100%);
    padding-left: 0;
    padding-right: 0;
}

.hero .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at var(--hero-mouse-x, 50%) var(--hero-mouse-y, 80%), rgba(88, 166, 255, 0.25) 0%, transparent 60%),
        radial-gradient(circle at var(--hero-mouse-x2, 20%) var(--hero-mouse-y2, 20%), rgba(138, 43, 226, 0.2) 0%, transparent 50%),
        radial-gradient(circle at var(--hero-mouse-x3, 80%) var(--hero-mouse-y3, 40%), rgba(255, 105, 180, 0.15) 0%, transparent 50%);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content {
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 700px;
    padding-right: 2rem;
}

.hero-title {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 2.5rem;
    color: #ffffff;
    text-align: left;
    letter-spacing: -0.02em;
    position: relative;
    text-shadow: 0 0 20px rgba(50, 165, 202, 0.5);
    
    /* Simple gradient effect that's always visible */
    background: linear-gradient(135deg, #ffffff 0%, #32A5CA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #32A5CA, #238636);
    border-radius: 2px;
}

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

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    max-width: 650px;
    text-align: left;
    font-weight: 400;
    line-height: 1.5;
    position: relative;
    background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(50,165,202,0.6) 50%, rgba(255,255,255,0.9) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroTextShift 16s ease-in-out infinite;
}

.hero-subtitle::before {
    content: '✨';
    position: absolute;
    left: -2rem;
    top: 0;
    font-size: 1.2rem;
    opacity: 0.7;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 2rem;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 200px;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, 
        rgba(50, 165, 202, 0.9) 0%, 
        rgba(40, 140, 170, 1) 50%, 
        rgba(30, 120, 150, 1) 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(50, 165, 202, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, 
        rgba(60, 175, 210, 1) 0%, 
        rgba(50, 155, 190, 1) 50%, 
        rgba(40, 135, 170, 1) 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 12px 40px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn-accent {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.8) 0%, 
        rgba(255, 165, 0, 0.9) 50%, 
        rgba(255, 140, 0, 1) 100%);
    color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Hero Visual */
.hero-visual {
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 2rem;
}

.floating-cards {
    position: relative;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle at center, rgba(88, 166, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px) scale(1.08);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.card i {
    font-size: 40px;
    transition: all 0.3s ease;
}

/* Psychology-based colors for each card */
.card-1 {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.2), rgba(255, 20, 147, 0.1));
    border-color: rgba(255, 105, 180, 0.3);
}

.card-1 i {
    color: #ff69b4; /* Hot Pink - Creativity & Energy */
}

.card-1:hover {
    border-color: rgba(255, 105, 180, 0.6);
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.3);
}

.card-2 {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(75, 0, 130, 0.1));
    border-color: rgba(138, 43, 226, 0.3);
}

.card-2 i {
    color: #8a2be2; /* Blue Violet - Innovation & Wisdom */
}

.card-2:hover {
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 20px 60px rgba(138, 43, 226, 0.3);
}

.card-3 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.3);
}

.card-3 i {
    color: #ffd700; /* Gold - Success & Achievement */
}

.card-3:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
}

.card-4 {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2), rgba(0, 123, 255, 0.1));
    border-color: rgba(0, 191, 255, 0.3);
}

.card-4 i {
    color: #00bfff; /* Deep Sky Blue - Technology & Trust */
}

.card-4:hover {
    border-color: rgba(0, 191, 255, 0.6);
    box-shadow: 0 20px 60px rgba(0, 191, 255, 0.3);
}

.card-5 {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.2), rgba(0, 128, 0, 0.1));
    border-color: rgba(50, 205, 50, 0.3);
}

.card-5 i {
    color: #32cd32; /* Lime Green - Growth & Progress */
}

.card-5:hover {
    border-color: rgba(50, 205, 50, 0.6);
    box-shadow: 0 20px 60px rgba(50, 205, 50, 0.3);
}

.card-6 {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.2), rgba(255, 140, 0, 0.1));
    border-color: rgba(255, 69, 0, 0.3);
}

.card-6 i {
    color: #ff4500; /* Orange Red - Excitement & Urgency */
}

.card-6:hover {
    border-color: rgba(255, 69, 0, 0.6);
    box-shadow: 0 20px 60px rgba(255, 69, 0, 0.3);
}

.card-1 {
    top: 8%;
    left: 15%;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    top: 12%;
    right: 12%;
    animation: float 6s ease-in-out infinite 1.5s;
}

.card-3 {
    bottom: 18%;
    left: 12%;
    animation: float 6s ease-in-out infinite 3s;
}

.card-4 {
    top: 22%;
    right: 20%;
    animation: float 6s ease-in-out infinite 4.5s;
}

.card-5 {
    bottom: 12%;
    right: 15%;
    animation: float 6s ease-in-out infinite 0.8s;
}

.card-6 {
    top: 45%;
    left: 3%;
    animation: float 6s ease-in-out infinite 2.2s;
}

/* Central focal element */
.floating-cards::before {
    content: 'AI';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #58a6ff, #238636);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    box-shadow: 0 20px 60px rgba(88, 166, 255, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 20px 60px rgba(88, 166, 255, 0.3);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 25px 80px rgba(88, 166, 255, 0.4);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
    }
    50% { 
        transform: translateY(-12px) rotate(1deg);
    }
}

/* Section Styles */
.generator-section,
.preview-section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Generator Section */
.generator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.prompt-builder {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
}

.input-group {
    margin-bottom: 25px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

label {
    display: block;
    color: #00ffff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.input-field,
.select-field,
.textarea-field {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-field:focus,
.select-field:focus,
.textarea-field:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.textarea-field {
    resize: vertical;
    min-height: 80px;
}

.generator-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.prompt-output {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.output-header h3 {
    color: #00ffff;
    font-size: 20px;
}

.copy-btn {
    background: transparent;
    border: 1px solid rgba(0, 255, 255, 0.4);
    color: #00ffff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: scale(1.05);
}

.prompt-display {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100px;
    font-size: 16px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.prompt-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

/* Preview Section */
.preview-section {
    position: relative;
    overflow: hidden;
}

.preview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.02) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
    will-change: auto;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.filter-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3) 0%, rgba(255, 0, 255, 0.2) 100%);
    border-color: #00ffff;
    color: #00ffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.gallery-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 255, 255, 0.05) 100%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: fit-content;
    position: relative;
    animation: floatIn 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
    will-change: transform;
}

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(255, 0, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    z-index: 1;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.8);
}

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

.gallery-item img {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 300px;
    object-fit: contain;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 255, 255, 0.05) 100%);
    border-radius: 12px;
    transition: transform 0.3s ease;
    display: block;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(0, 255, 255, 0.2);
    will-change: transform;
}

/* Ensure images maintain aspect ratio */
.gallery-item img[src*=".jpg"],
.gallery-item img[src*=".jpeg"],
.gallery-item img[src*=".png"],
.gallery-item img[src*=".webp"] {
    object-fit: contain;
    object-position: center;
}

.gallery-item:hover img {
    transform: scale(1.02);
    border-color: rgba(0, 255, 255, 0.5);
}

.gallery-item-content {
    padding: 20px;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.2);
}

.prompt-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.copy-prompt-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3) 0%, rgba(255, 0, 255, 0.2) 100%);
    border: 1px solid rgba(0, 255, 255, 0.6);
    color: #00ffff;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    font-size: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}

.gallery-item:hover .copy-prompt-btn {
    opacity: 1;
}

.copy-prompt-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.5) 0%, rgba(255, 0, 255, 0.3) 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4);
    border-color: rgba(0, 255, 255, 0.8);
}

.gallery-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    overflow-x: hidden;
}


.modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(20, 20, 40, 0.95) 100%);
    margin: 2% auto;
    width: 95%;
    max-width: 1200px;
    min-height: 90vh;
    border-radius: 25px;
    border: 2px solid rgba(0, 255, 255, 0.5);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.close-modal:hover {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.1);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 80vh;
    overflow-y: auto;
}

.modal-image-container {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 40, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    max-height: 80vh;
}

.modal-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.modal-details {
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 40, 0.9) 100%);
    position: relative;
    overflow-y: auto;
    max-height: 80vh;
}

.modal-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(255, 0, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.modal-details h3 {
    color: #00ffff;
    font-size: 28px;
    margin: 0;
    text-align: center;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    font-weight: 700;
}

.modal-prompt {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(255, 0, 255, 0.05) 100%);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1);
}

.modal-prompt label {
    color: #00ffff;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 18px;
    display: block;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.modal-prompt p {
    color: #ffffff;
    line-height: 1.8;
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-prompt .copy-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3) 0%, rgba(255, 0, 255, 0.2) 100%);
    border: 2px solid rgba(0, 255, 255, 0.5);
    color: #00ffff;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
    z-index: 3;
}


/* Footer - Glass-morphism Design */
.footer {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(50, 165, 202, 0.05) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(50, 165, 202, 0.05) 100%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    margin-bottom: 0.5rem;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #32A5CA 0%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(50, 165, 202, 0.3);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: #32A5CA;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    position: relative;
}

.footer-section a::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #32A5CA, transparent);
    transition: width 0.3s ease;
}

.footer-section a:hover {
    color: #32A5CA;
    transform: translateX(0.5rem);
    background: rgba(50, 165, 202, 0.1);
    padding-left: 0.5rem;
}

.footer-section a:hover::before {
    width: 0.5rem;
}

.footer-section a i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.footer-bottom {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-social span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
        text-align: center;
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer-description {
        text-align: center;
        max-width: 100%;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section h4 {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .footer-section a {
        justify-content: center;
        text-align: center;
        margin-bottom: 1rem;
        padding: 0.75rem 1rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }
    
    .footer-section a:hover {
        background: rgba(50, 165, 202, 0.1);
        transform: translateY(-2px);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .footer-logo .logo-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0 0;
    }
    
    .footer-content {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }
    
    .footer-links {
        gap: 1.5rem;
    }
    
    .footer-section {
        gap: 1rem;
    }
    
    .footer-section h4 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .footer-section a {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-section a i {
        font-size: 0.8rem;
        width: 14px;
    }
    
    .footer-bottom {
        padding: 1rem 0.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    .footer-social span {
        font-size: 0.8rem;
    }
    
    .footer-logo .logo-text {
        font-size: 1.1rem;
    }
    
    .footer-description {
        font-size: 0.85rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0.8rem 0;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-visual {
        margin-top: 40px;
    }
    
    .floating-cards {
        transform: scale(0.8);
    }
    
    .generator-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn {
        min-width: 140px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .gallery-item img {
        min-height: 180px;
        max-height: 250px;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        min-height: 60vh;
        overflow-y: auto;
    }
    
    .modal-image-container {
        padding: 15px;
        min-height: 300px;
        max-height: 50vh;
    }
    
    .modal-details {
        max-height: 50vh;
        overflow-y: auto;
        padding: 30px 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px auto;
    }
    
    .modal-details {
        padding: 30px 20px;
    }
    
    .gallery-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .prompt-builder,
    .prompt-output {
        padding: 25px 20px;
    }
    
    .generator-actions,
    .prompt-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .modal-content {
        margin: 20px auto;
    }
    
    .modal-image-container {
        padding: 10px;
        min-height: 250px;
        max-height: 40vh;
    }
    
    .modal-details {
        max-height: 40vh;
        overflow-y: auto;
        padding: 20px 15px;
    }
    
    .close-modal {
        font-size: 28px;
        top: 10px;
        right: 20px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00ffff 0%, #0099cc 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00cccc 0%, #007799 100%);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

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

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

/* Utility Classes */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: 2rem !important; }

.success {
    color: #00ff88 !important;
}

.error {
    color: #ff4444 !important;
}

.warning {
    color: #ffaa00 !important;
}

/* ===== COMPREHENSIVE MOBILE RESPONSIVE DESIGN ===== */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero .container {
        padding: 0 1.5rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
    }
    
    .generator-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile Styles (768px and below) */
@media (max-width: 768px) {
    /* Header Mobile */
    .header {
        padding: 0.5rem 0 !important;
    }
    
    .header-content {
        padding: 0 1rem !important;
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .header.scrolled {
        margin: 0.5rem 1rem !important;
        width: calc(100% - 2rem) !important;
        padding: 0.5rem 0 !important;
    }
    
    .header.scrolled .header-content {
        padding: 0 1rem !important;
        flex-direction: column;
        gap: 0.6rem;
        align-items: center;
    }
    
    .logo-text {
        font-size: 1.3rem !important;
        letter-spacing: -0.3px !important;
        text-align: center;
    }
    
    .header.scrolled .logo-text {
        font-size: 1.1rem !important;
    }
    
    .nav {
        gap: 0.4rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .nav-link {
        padding: 10px 14px !important;
        font-size: 13px !important;
        gap: 6px;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
        text-align: center;
        justify-content: center;
    }
    
    .header.scrolled .nav-link {
        padding: 6px 10px !important;
        font-size: 12px !important;
        gap: 4px;
    }
    
    /* Hero Mobile */
    .hero {
        padding: 1rem 0 2rem;
        min-height: 85vh;
        padding-top: 120px;
    }
    
    .hero .container {
        padding: 0 1rem;
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        max-width: 100%;
        align-items: center;
    }
    
    .hero-content {
        order: 1;
        align-items: center;
        text-align: center;
        max-width: 100%;
        padding-right: 0;
        padding-bottom: 1rem;
    }
    
    .hero-visual {
        order: 2;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding-left: 0;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
        line-height: 1.1;
        margin-bottom: 1.8rem;
        text-align: center;
        max-width: 100%;
        color: #ffffff;
        text-shadow: 0 0 20px rgba(50, 165, 202, 0.5);
        
        /* Ensure mobile visibility */
        background: linear-gradient(135deg, #ffffff 0%, #32A5CA 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .hero-subtitle {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
        line-height: 1.5;
        margin-bottom: 2.5rem;
        text-align: center;
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
        max-width: 320px;
        padding: 16px 32px;
        font-size: 16px;
        margin: 0 auto;
        min-width: 280px;
    }
    
    /* Floating Cards Mobile */
    .floating-cards {
        width: 300px;
        height: 300px;
        max-width: 300px;
        margin: 0 auto;
        transform: scale(0.9);
    }
    
    .card {
        width: 80px;
        height: 80px;
        font-size: 0.8rem;
        text-align: center;
    }
    
    .card i {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }
    
    .floating-cards::before {
        width: 100px;
        height: 100px;
        font-size: 1.5rem;
    }
    
    /* Generator Mobile */
    .generator-section {
        padding: 2.5rem 0;
    }
    
    .generator-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .prompt-builder {
        padding: 1.5rem;
        order: 1;
    }
    
    .prompt-output {
        padding: 1.5rem;
        order: 2;
        position: static;
        top: auto;
    }
    
    .input-group {
        margin-bottom: 1.2rem;
    }
    
    .input-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .input-field,
    .select-field,
    .textarea-field {
        padding: 14px 16px;
        font-size: 15px;
        border-radius: 12px;
    }
    
    .textarea-field {
        min-height: 100px;
    }
    
    .generator-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .generator-actions .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .prompt-display {
        padding: 1.2rem;
        font-size: 14px;
        min-height: 120px;
        line-height: 1.5;
    }
    
    /* Preview Mobile */
    .preview-section {
        padding: 2.5rem 0;
    }
    
    .gallery-filters {
        gap: 0.8rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 13px;
        border-radius: 25px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .gallery-item {
        border-radius: 16px;
        overflow: hidden;
    }
    
    .gallery-item img {
        border-radius: 12px;
        min-height: 200px;
        max-height: 280px;
        object-fit: contain;
    }
    
    .gallery-item-content {
        padding: 1.2rem;
    }
    
    .prompt-text {
        font-size: 13px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .gallery-actions {
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .gallery-actions .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 28px;
        font-size: 15px;
    }
    
    /* Modal Mobile */
    .modal-content {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        max-height: calc(100vh - 1rem);
        border-radius: 20px;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: auto;
        overflow-y: auto;
    }
    
    .modal-image-container {
        padding: 1rem;
        min-height: 250px;
        max-height: 40vh;
        margin-bottom: 0;
    }
    
    .modal-image-container img {
        max-height: 100%;
        width: 100%;
        object-fit: contain;
    }
    
    .modal-details {
        padding: 1.5rem;
        max-height: 60vh;
        overflow-y: auto;
        gap: 1.5rem;
    }
    
    .modal-details h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .modal-prompt {
        padding: 1.2rem;
    }
    
    .modal-prompt label {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .modal-prompt p {
        font-size: 14px;
        line-height: 1.5;
        padding: 1rem;
    }
    
    .modal-prompt .copy-btn {
        top: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .close-modal {
        top: 15px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    /* Floating Chat Bubbles Mobile */
    .floating-chat-bubbles {
        right: 1rem;
        bottom: 1rem;
        gap: 0.8rem;
    }
    
    .chat-bubble {
        width: 55px;
        height: 55px;
    }
    
    .chat-bubble i {
        font-size: 22px;
    }
    
    .bubble-tooltip {
        font-size: 12px;
        padding: 6px 10px;
        right: 65px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .chat-bubble:hover .bubble-tooltip {
        transform: translateY(-50%) translateX(-5px);
    }
}

/* Small Mobile Styles (480px and below) */
@media (max-width: 480px) {
    /* Header Small Mobile */
    .header-content {
        padding: 0 0.8rem !important;
        gap: 0.6rem;
    }
    
    .header.scrolled {
        margin: 0.3rem 0.8rem !important;
        width: calc(100% - 1.6rem) !important;
    }
    
    .header.scrolled .header-content {
        padding: 0 0.8rem !important;
        gap: 0.5rem;
    }
    
    .logo-text {
        font-size: 1.1rem !important;
    }
    
    .header.scrolled .logo-text {
        font-size: 1rem !important;
    }
    
    .nav {
        gap: 0.3rem;
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 8px 10px !important;
        font-size: 11px !important;
        gap: 4px;
        flex: 1;
        min-width: 0;
    }
    
    .header.scrolled .nav-link {
        padding: 5px 8px !important;
        font-size: 10px !important;
        gap: 3px;
    }
    
    /* Hero Small Mobile */
    .hero {
        padding: 0.8rem 0 2rem;
        min-height: 75vh;
        padding-top: 100px;
    }
    
    .hero .container {
        padding: 0 0.8rem;
        gap: 2rem;
        max-width: 100%;
    }
    
    .hero-content {
        padding-bottom: 0.8rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 2.8rem);
        margin-bottom: 1.5rem;
        line-height: 1.1;
        color: #ffffff;
        text-shadow: 0 0 15px rgba(50, 165, 202, 0.5);
        
        /* Ensure small mobile visibility */
        background: linear-gradient(135deg, #ffffff 0%, #32A5CA 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 5vw, 1.2rem);
        margin-bottom: 2rem;
        line-height: 1.4;
        padding: 0 0.3rem;
    }
    
    .hero-buttons {
        gap: 1rem;
        max-width: 350px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 15px;
        max-width: 300px;
        min-width: 260px;
    }
    
    /* Floating Cards Small Mobile */
    .floating-cards {
        width: 280px;
        height: 280px;
        max-width: 280px;
        margin: 0 auto;
        transform: scale(0.85);
    }
    
    .card {
        width: 75px;
        height: 75px;
        font-size: 0.75rem;
    }
    
    .card i {
        font-size: 1.3rem;
        margin-bottom: 0.2rem;
    }
    
    .floating-cards::before {
        width: 90px;
        height: 90px;
        font-size: 1.3rem;
    }
    
    /* Generator Small Mobile */
    .generator-section {
        padding: 2rem 0;
    }
    
    .generator-content {
        gap: 1.5rem;
    }
    
    .prompt-builder {
        padding: 1.2rem;
    }
    
    .prompt-output {
        padding: 1.2rem;
    }
    
    .input-field,
    .select-field,
    .textarea-field {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .textarea-field {
        min-height: 90px;
    }
    
    .generator-actions .btn {
        max-width: 260px;
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .prompt-display {
        padding: 1rem;
        font-size: 13px;
        min-height: 100px;
        line-height: 1.4;
    }
    
    /* Preview Small Mobile */
    .preview-section {
        padding: 2rem 0;
    }
    
    .gallery-filters {
        gap: 0.6rem;
        margin-bottom: 1.5rem;
        padding: 0 0.8rem;
    }
    
    .filter-btn {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.2rem;
        padding: 0 0.8rem;
    }
    
    .gallery-item img {
        min-height: 180px;
        max-height: 250px;
    }
    
    .gallery-item-content {
        padding: 1rem;
    }
    
    .prompt-text {
        font-size: 12px;
        line-height: 1.3;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .gallery-actions {
        margin-top: 1.5rem;
        padding: 0 0.8rem;
    }
    
    .gallery-actions .btn {
        max-width: 260px;
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* Modal Small Mobile */
    .modal-content {
        margin: 0.3rem;
        max-width: calc(100% - 0.6rem);
        max-height: calc(100vh - 0.6rem);
        border-radius: 16px;
    }
    
    .modal-image-container {
        padding: 0.8rem;
        min-height: 200px;
        max-height: 35vh;
    }
    
    .modal-details {
        padding: 1.2rem;
        max-height: 65vh;
        gap: 1.2rem;
    }
    
    .modal-details h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .modal-prompt {
        padding: 1rem;
    }
    
    .modal-prompt label {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .modal-prompt p {
        font-size: 13px;
        line-height: 1.4;
        padding: 0.8rem;
    }
    
    .modal-prompt .copy-btn {
        top: 12px;
        right: 12px;
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .close-modal {
        top: 12px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    /* Floating Chat Bubbles Small Mobile */
    .floating-chat-bubbles {
        right: 0.8rem;
        bottom: 0.8rem;
        gap: 0.6rem;
    }
    
    .chat-bubble {
        width: 50px;
        height: 50px;
    }
    
    .chat-bubble i {
        font-size: 20px;
    }
    
    .bubble-tooltip {
        font-size: 11px;
        padding: 5px 8px;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .chat-bubble:hover .bubble-tooltip {
        transform: translateY(-50%) translateX(-5px);
    }
}

/* Landscape Mobile (height < 500px) */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 0.5rem 0;
        padding-top: 60px;
    }
    
    .hero .container {
        grid-template-columns: 1fr 0.6fr;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-content {
        order: 1;
        text-align: left;
        align-items: flex-start;
        padding-right: 1rem;
    }
    
    .hero-visual {
        order: 2;
        justify-content: center;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 0.5rem;
        line-height: 1.1;
        color: #ffffff;
        text-shadow: 0 0 15px rgba(50, 165, 202, 0.5);
        
        /* Ensure landscape mobile visibility */
        background: linear-gradient(135deg, #ffffff 0%, #32A5CA 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 3vw, 1rem);
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 0.8rem;
        justify-content: flex-start;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 12px;
        max-width: 140px;
        margin: 0;
    }
    
    .floating-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        max-width: 200px;
    }
    
    .card {
        padding: 0.6rem;
        font-size: 0.6rem;
    }
    
    .card i {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
}