/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #ffffff;
    --accent-color: #3498db;
    --accent-gradient: linear-gradient(135deg, #3498db, #8e44ad);
    --text-color: #2c3e50;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    
    /* Social Media Colors */
    --instagram: #E4405F;
    --telegram: #0088cc;
    --twitter: #1DA1F2;
    --linkedin: #0A66C2;
    --youtube: #FF0000;
    --github: #181717;
    --discord: #5865F2;
}

body.dark-theme {
    --primary-color: #ecf0f1;
    --secondary-color: #2c3e50;
    --accent-color: #3498db;
    --accent-gradient: linear-gradient(135deg, #3498db, #9b59b6);
    --text-color: #ecf0f1;
    --bg-color: #0a0f1a;
    --card-bg: #1a2530;
    --shadow: rgba(0, 0, 0, 0.4);
    --shadow-hover: rgba(0, 0, 0, 0.6);
    --glass-bg: rgba(26, 37, 48, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Light Effect Background */
.light-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(52, 152, 219, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(142, 68, 173, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(41, 128, 185, 0.1) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
    animation: lightMove 20s infinite alternate ease-in-out;
}

@keyframes lightMove {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-50px, 30px) scale(1.1);
    }
}

body.dark-theme .light-effect {
    background: 
        radial-gradient(circle at 20% 80%, rgba(52, 152, 219, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(142, 68, 173, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(41, 128, 185, 0.05) 0%, transparent 50%);
}

/* Special Light Effects for 3D Viewer */
.viewer-light-effect {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(52, 152, 219, 0.1) 20%, 
        rgba(142, 68, 173, 0.15) 50%, 
        rgba(52, 152, 219, 0.1) 80%, 
        transparent 100%);
    z-index: 1;
    pointer-events: none;
    filter: blur(15px);
    opacity: 0.7;
    animation: viewerLight 8s infinite alternate ease-in-out;
}

@keyframes viewerLight {
    0% {
        opacity: 0.5;
        transform: translateX(10px);
    }
    100% {
        opacity: 0.8;
        transform: translateX(-10px);
    }
}

body.dark-theme .viewer-light-effect {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(52, 152, 219, 0.2) 20%, 
        rgba(142, 68, 173, 0.3) 50%, 
        rgba(52, 152, 219, 0.2) 80%, 
        transparent 100%);
}

/* Animated Background Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-gradient);
    opacity: 0.1;
    filter: blur(40px);
    animation: float 15s infinite ease-in-out;
}

.floating-element:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 80%;
    animation-delay: 3s;
}

.floating-element:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 20%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem;
    background-color: var(--glass-bg);
    box-shadow: 0 4px 20px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    animation: logoPulse 3s infinite ease-in-out;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
    }
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #3498db; /* Fallback color */
    background: linear-gradient(135deg, #3498db, #8e44ad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Styles */
.main-nav {
    display: flex;
    gap: 1.5rem;
    margin: 0 2rem;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0.1;
    transition: left 0.3s ease;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.nav-link i {
    font-size: 1rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    background: var(--glass-bg);
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 10px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow-hover);
}

.user-welcome {
    display: none;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    background: var(--glass-bg);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 12px var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.user-welcome.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.user-account {
    position: relative;
}

.account-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    transition: var(--transition);
}

.account-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.user-info {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--glass-bg);
    box-shadow: 0 10px 30px var(--shadow-hover);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    min-width: 240px;
    margin-top: 15px;
    z-index: 10;
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
}

.user-info.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-info p {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 500;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logout-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    transition: var(--transition);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Main Content */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--glass-bg);
    color: white;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    animation: heroAppear 1s ease-out;
}

@keyframes heroAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0.9;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    animation: textGlow 3s infinite alternate;
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6);
    }
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cta-button::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.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
}

.feature-card {
    background-color: var(--glass-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 25px var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    animation: cardAppear 0.6s ease-out;
    animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-gradient);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--accent-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    animation: iconFloat 3s infinite ease-in-out;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.7;
}

/* 3D Viewer Section */
.viewer-section {
    margin: 5rem 0;
    text-align: center;
    animation: sectionAppear 0.8s ease-out;
}

@keyframes sectionAppear {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #3498db; /* Fallback color */
    background: linear-gradient(135deg, #3498db, #8e44ad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

.viewer-container {
    width: 100%;
    height: 600px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 40px var(--shadow-hover);
    margin-top: 2rem;
    background: #000000;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.robot-3d {
    width: 100%;
    height: 100%;
    border: none;
}

/* Forms - Compact and Beautiful */
.form-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    padding: 1rem;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.form-container.active {
    display: flex;
}

.form {
    background-color: var(--glass-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    max-height: 90vh;
    overflow-y: auto;
    animation: formSlide 0.3s ease-out;
}

@keyframes formSlide {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--primary-color);
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.1);
}

.form-close:hover {
    opacity: 1;
    transform: rotate(90deg);
    background: rgba(0,0,0,0.2);
}

.form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.6rem;
    padding: 0 1rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background-color: var(--glass-bg);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background-color: rgba(255,255,255,0.1);
}

.form-group input::placeholder {
    color: var(--text-color);
    opacity: 0.6;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 12px;
}

.btn {
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    flex: 1;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--primary-color);
    box-shadow: 0 4px 12px var(--shadow);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow-hover);
}

.form-switch {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.85rem;
}

.form-switch a {
    color: var(--accent-color);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.form-switch a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--glass-bg);
    color: var(--primary-color);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 5rem;
    box-shadow: 0 -5px 20px var(--shadow);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    animation: footerAppear 0.8s ease-out;
}

@keyframes footerAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #3498db; /* Fallback color */
    background: linear-gradient(135deg, #3498db, #8e44ad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Improved Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.social-icons a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    box-shadow: 0 6px 15px var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-icons a i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Hover effects for each social media */
.social-icons a.instagram:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 25px rgba(228, 64, 95, 0.4);
    color: white;
}

.social-icons a.instagram:hover::before {
    opacity: 1;
    background: var(--instagram);
}

.social-icons a.telegram:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 25px rgba(0, 136, 204, 0.4);
    color: white;
}

.social-icons a.telegram:hover::before {
    opacity: 1;
    background: var(--telegram);
}

.social-icons a.twitter:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 25px rgba(29, 161, 242, 0.4);
    color: white;
}

.social-icons a.twitter:hover::before {
    opacity: 1;
    background: var(--twitter);
}

.social-icons a.linkedin:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 25px rgba(10, 102, 194, 0.4);
    color: white;
}

.social-icons a.linkedin:hover::before {
    opacity: 1;
    background: var(--linkedin);
}

.social-icons a.youtube:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 25px rgba(255, 0, 0, 0.4);
    color: white;
}

.social-icons a.youtube:hover::before {
    opacity: 1;
    background: var(--youtube);
}

.social-icons a.github:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 25px rgba(24, 23, 23, 0.4);
    color: white;
}

.social-icons a.github:hover::before {
    opacity: 1;
    background: var(--github);
}

.social-icons a.discord:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 25px rgba(88, 101, 242, 0.4);
    color: white;
}

.social-icons a.discord:hover::before {
    opacity: 1;
    background: var(--discord);
}

/* Additional animation for social icons */
@keyframes socialPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.social-icons a:hover {
    animation: socialPulse 0.6s ease;
}

.copyright {
    margin-top: 2rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .main-nav {
        margin: 0;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .header-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .viewer-container {
        height: 400px;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .footer-links {
        flex-wrap: wrap;
    }
    
    .form {
        padding: 1.5rem;
        max-width: 350px;
    }
    
    .form h2 {
        font-size: 1.4rem;
    }
    
    .social-icons a {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .form {
        padding: 1.2rem;
        max-width: 320px;
    }
    
    .form h2 {
        font-size: 1.3rem;
    }
    
    .form-group input {
        padding: 0.7rem 0.9rem;
    }
    
    .btn {
        padding: 0.8rem 1.2rem;
    }
    
    .social-icons {
        gap: 1rem;
    }
    
    .social-icons a {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* 3D Cube Animation */
.cube-container {
    perspective: 1000px;
    margin: 3rem auto;
    width: 150px;
    height: 150px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 15s infinite linear;
}

.cube-face {
    position: absolute;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.9), rgba(142, 68, 173, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.front { transform: translateZ(75px); }
.back { transform: translateZ(-75px) rotateY(180deg); }
.right { transform: translateX(75px) rotateY(90deg); }
.left { transform: translateX(-75px) rotateY(-90deg); }
.top { transform: translateY(-75px) rotateX(90deg); }
.bottom { transform: translateY(75px) rotateX(-90deg); }

@keyframes rotate {
    from { transform: rotateX(0) rotateY(0) rotateZ(0); }
    to { transform: rotateX(360deg) rotateY(360deg) rotateZ(180deg); }
}

/* Glass morphism effects */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* Floating elements */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translate(0, 0px); }
    50% { transform: translate(0, -10px); }
    100% { transform: translate(0, 0px); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    min-width: 300px;
    box-shadow: 0 10px 30px var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(-100%);
    opacity: 0;
}

.toast.success {
    border-right: 4px solid #2ecc71;
}

.toast.success::before {
    background: #2ecc71;
}

.toast.error {
    border-right: 4px solid #e74c3c;
}

.toast.error::before {
    background: #e74c3c;
}

.toast.warning {
    border-right: 4px solid #f39c12;
}

.toast.warning::before {
    background: #f39c12;
}

.toast.info {
    border-right: 4px solid #3498db;
}

.toast.info::before {
    background: #3498db;
}

.toast-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: #2ecc71; }
.toast.error .toast-icon { color: #e74c3c; }
.toast.warning .toast-icon { color: #f39c12; }
.toast.info .toast-icon { color: #3498db; }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.toast-message {
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--primary-color);
}

.toast-close {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    padding: 4px;
    border-radius: 4px;
}

.toast-close:hover {
    opacity: 1;
    background: rgba(0,0,0,0.1);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}