* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #8B5CF6 100%);
    --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    --success-gradient: linear-gradient(45deg, #00b894, #00cec9);
    --danger-gradient: linear-gradient(45deg, #e74c3c, #c0392b);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 15px 40px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 25px 50px rgba(0, 0, 0, 0.25);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 15px;
    --border-radius-large: 25px;
}

body {
    font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--primary-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
}

/* Animated background particles */
.background-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 0.8;
    }
}

/* Enhanced Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 0;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--glass-border);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 12px 0;
    box-shadow: var(--shadow-medium);
}

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

.logo {
    font-size: 1.9rem;
    font-weight: 700;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 2.1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.mobile-menu-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary-gradient);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    display: flex;
    gap: 15px;
    transition: var(--transition-smooth);
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 25px;
    position: relative;
    transition: var(--transition-smooth);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--secondary-gradient);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.logout-btn {
    background: var(--danger-gradient);
    color: white !important;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.logout-btn::before {
    background: linear-gradient(45deg, #c0392b, #a93226);
}

/* Enhanced Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    position: relative;
}

/* Hero Section with advanced animations */
.hero-section, .hero-landing {
    text-align: center;
    color: white;
    padding: 80px 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-large);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    animation: slideInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-section::before, .hero-landing::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-section h1, .hero-landing h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite alternate;
    font-weight: 700;
    line-height: 1.2;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                   0 0 30px rgba(255, 255, 255, 0.6);
    }
}

.hero-section p, .hero-landing p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 35px;
    opacity: 0.95;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
    line-height: 1.6;
}

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

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

/* Enhanced Cards and Sections */
.auth-section, .create-section, .edit-section, .templates-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-large);
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.auth-section:hover, .create-section:hover, .edit-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.auth-section, .create-section, .edit-section {
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.2rem;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    animation: fadeInDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
}

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

/* Enhanced Form Elements */
.form-group {
    margin-bottom: 30px;
    animation: fadeInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #555;
    font-size: 1.1rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #667eea;
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 20px 22px;
    border: 2px solid #e1e8ed;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition-smooth);
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.6;
}

/* Enhanced Checkbox styling */
.checkbox-row {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 12px;
    transition: var(--transition-smooth);
    background: rgba(102, 126, 234, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.1);
    flex: 1;
    min-width: 150px;
}

.checkbox-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
    transform: scale(1.02);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #667eea;
    cursor: pointer;
}

.checkbox-item i {
    color: #667eea;
    font-size: 14px;
}

/* Enhanced Buttons */
.btn-primary {
    background: var(--secondary-gradient);
    color: white;
    border: none;
    padding: 22px 40px;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: var(--success-gradient);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    flex: 1;
    transition: var(--transition-smooth);
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.4);
}

.button-row {
    display: flex;
    gap: 20px;
}

/* Enhanced Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    color: white;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    animation: zoomIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Enhanced Template Grid */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 35px;
    margin-top: 30px;
}

.template-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

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

.template-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: #667eea;
}

.template-preview {
    height: 280px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
}

.template-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-card:hover .template-preview::before {
    opacity: 1;
}

.template-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    transform: scale(0.8);
    transform-origin: top left;
    width: 125%;
    height: 125%;
    transition: all 0.3s ease;
}

.template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.overlay-btn {
    background: var(--accent-gradient);
    color: white;
    padding: 18px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transform: scale(0.8);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.template-card:hover .overlay-btn {
    transform: scale(1);
}

.template-info {
    padding: 30px;
}

.template-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.template-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.template-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 12px 18px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    font-size: 13px;
    color: #667eea;
    font-weight: 500;
}

.template-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    flex: 1;
    text-align: center;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.view-btn {
    background: var(--secondary-gradient);
    color: white;
}

.edit-btn {
    background: var(--success-gradient);
    color: white;
}

.download-btn {
    background: var(--accent-gradient);
    color: white;
}

.delete-btn {
    background: var(--danger-gradient);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 30px;
    color: #666;
    animation: fadeIn 1s ease-in-out;
    grid-column: 1 / -1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 25px;
    opacity: 0.4;
    color: #667eea;
}

.empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

/* Enhanced Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.loading-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 60px;
    border-radius: var(--border-radius-large);
    text-align: center;
    max-width: 500px;
    border: 1px solid var(--glass-border);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-heavy);
}

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

.spinner {
    width: 70px;
    height: 70px;
    margin: 0 auto 30px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid transparent;
    border-image: var(--secondary-gradient) 1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-content h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.loading-content p {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-fill {
    height: 100%;
    background: var(--secondary-gradient);
    width: 0%;
    transition: width 0.3s ease;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Enhanced Messages */
.message {
    padding: 25px 30px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    display: none;
    font-weight: 500;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-left: 5px solid;
}

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

.message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-color: #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-color: #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.message.show {
    display: block;
}

.auth-switch {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 15px;
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: var(--transition-smooth);
}

.auth-switch a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-gradient);
    transition: width 0.3s ease;
}

.auth-switch a:hover::after {
    width: 100%;
}

/* Interactive hover effects */
.interactive-hover {
    position: relative;
    overflow: hidden;
}

.interactive-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.interactive-hover:hover::before {
    left: 100%;
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 25px;
        border-radius: 0 0 20px 20px;
        box-shadow: var(--shadow-medium);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
        gap: 5px;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 5px;
        justify-content: center;
    }

    .hero-section, .hero-landing {
        padding: 60px 25px;
    }

    .auth-section, .create-section, .edit-section {
        padding: 40px 25px;
        margin: 20px 10px;
        border-radius: 20px;
    }

    .templates-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .template-preview {
        height: 220px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .button-row {
        flex-direction: column;
        gap: 15px;
    }

    .checkbox-row {
        flex-direction: column;
        gap: 15px;
    }

    .template-actions {
        flex-direction: column;
        gap: 12px;
    }

    .action-btn {
        flex: none;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stats-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }

    .auth-section, .create-section, .edit-section, .templates-section {
        padding: 30px 20px;
    }

    .loading-content {
        margin: 20px;
        padding: 40px 25px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 16px 18px;
        font-size: 15px;
    }

    .btn-primary {
        padding: 18px 25px;
        font-size: 16px;
    }

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

    .hero-section h1, .hero-landing h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}