
:root {
    --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --secondary-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --dark-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --card-gradient: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #334155;
    --shadow-dark: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
    --shadow-hover: 0 35px 70px -12px rgba(0, 0, 0, 0.8);
}

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

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--bg-primary);
    position: relative;
}

/* Enhanced Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: var(--bg-primary);
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.7;
    animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb:nth-child(1) {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #8b5cf6, #06b6d4);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.bg-orb:nth-child(2) {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #f59e0b, #ef4444);
    top: 60%;
    right: 20%;
    animation-delay: 7s;
}

.bg-orb:nth-child(3) {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, #10b981, #3b82f6);
    bottom: 10%;
    left: 30%;
    animation-delay: 14s;
}

.bg-orb:nth-child(4) {
    width: 180px;
    height: 180px;
    background: linear-gradient(45deg, #ec4899, #8b5cf6);
    top: 30%;
    right: 10%;
    animation-delay: 3s;
}

.bg-orb:nth-child(5) {
    width: 220px;
    height: 220px;
    background: linear-gradient(45deg, #06b6d4, #10b981);
    bottom: 30%;
    right: 40%;
    animation-delay: 10s;
}

/* Enhanced Grid Pattern */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

/* Enhanced Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-dark);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    animation: brandPulse 0.6s ease-in-out;
}

.navbar-toggler {
    border: none;
    background: var(--primary-gradient);
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    transform: rotate(180deg);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    position: relative;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: all 0.5s;
}

.nav-link:hover::before {
    width: 80%;
}

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

.nav-link:hover,
.nav-link.active {
    color: #8b5cf6 !important;
    transform: translateY(-2px);
}

.nav-link.active::before {
    width: 80%;
}

/* Login Button */
.login-btn {
    background: var(--primary-gradient);
    color: white !important;
    border-radius: 50px;
    padding: 0.5rem 1.5rem !important;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.login-btn i {
    transition: transform 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
    color: white !important;
    filter: brightness(1.1);
}

.login-btn:hover i {
    transform: translateX(3px);
}

@media (max-width: 991px) {
    .login-btn {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
        justify-content: center;
        width: 100%;
    }
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--dark-gradient);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-primary);
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 3s ease-in-out infinite alternate;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
    color: var(--text-secondary);
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.6s both;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.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: all 0.6s;
}

.cta-button:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.4);
    color: white;
    animation: buttonBounce 0.6s ease-in-out;
}

.cta-button:hover::before {
    left: 100%;
}

/* Enhanced Floating Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.particle.large {
    width: 6px;
    height: 6px;
    background: var(--primary-gradient);
}

.particle.medium {
    width: 4px;
    height: 4px;
    background: var(--accent-gradient);
}

.particle.small {
    width: 2px;
    height: 2px;
    background: var(--secondary-gradient);
}

/* Enhanced Code Rain Effect */
.code-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: rgba(139, 92, 246, 0.3);
    overflow: hidden;
}

.code-char {
    position: absolute;
    animation: codeRain 10s linear infinite;
    text-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
}

/* Content Sections */
.content-section {
    padding: 6rem 0;
    position: relative;
    background: var(--bg-primary);
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease-out forwards;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.5s forwards;
}

.feature-card {
    background: var(--card-gradient);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    margin: 1rem 0;
    box-shadow: var(--shadow-dark);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease-out forwards;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    opacity: 0;
    transition: all 0.6s ease;
    animation: cardRotate 20s linear infinite paused;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(139, 92, 246, 0.3);
    animation: cardFloat 2s ease-in-out infinite;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover::after {
    opacity: 1;
    animation-play-state: running;
}

.feature-icon {
    font-size: 3.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    animation: iconPulse 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(360deg);
    animation: iconSpin 0.6s ease-in-out;
}

.feature-card h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover h4 {
    color: #8b5cf6;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover p {
    color: var(--text-primary);
}

.team-member-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid;
    border-image-slice: 1;
    border-image-source: var(--primary-gradient);
}

.team-subtitle {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 4rem;
    margin-bottom: 2rem;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Enhanced Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    flex-direction: column;
}

.loader {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(139, 92, 246, 0.3);
    border-top: 4px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    margin-bottom: 2rem;
}

.loader-text {
    color: var(--text-secondary);
    font-size: 1.2rem;
    animation: textPulse 1.5s ease-in-out infinite;
}

.loading-progress {
    width: 300px;
    height: 4px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Enhanced Scroll Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Enhanced Footer */
footer {
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-gradient);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 2rem 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--card-gradient);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 0;
}

.social-links a i {
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
    animation: socialBounce 0.6s ease-in-out;
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a:hover i {
    color: white;
    transform: scale(1.2);
}

/* Social brand-specific hover colors */
.social-links a.instagram:hover::before {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.social-links a.linkedin:hover::before {
    background: linear-gradient(135deg, #0077b5, #0099d4);
}
.social-links a.github:hover::before {
    background: linear-gradient(135deg, #333, #666);
}
.social-links a.twitter:hover::before {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}
.social-links a.discord:hover::before {
    background: linear-gradient(135deg, #7289da, #5865f2);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--primary-gradient); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, #a855f7, #0891b2); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes titleGlow {
    from { text-shadow: 0 0 20px rgba(139, 92, 246, 0.5); }
    to { text-shadow: 0 0 40px rgba(139, 92, 246, 0.8), 0 0 60px rgba(6, 182, 212, 0.3); }
}
@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); filter: brightness(1.2); }
}
@keyframes iconSpin {
    from { transform: scale(1) rotate(0deg); }
    to { transform: scale(1.2) rotate(360deg); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.1); }
    50% { transform: translate(-15px, -30px) scale(0.9); }
    75% { transform: translate(-25px, 10px) scale(1.05); }
}
@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}
@keyframes codeRain {
    0% { transform: translateY(-100px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}
@keyframes brandPulse {
    0%, 100% { transform: scale(1.05); }
    50% { transform: scale(1.1); }
}
@keyframes buttonBounce {
    0%, 100% { transform: translateY(-8px) scale(1.05); }
    50% { transform: translateY(-12px) scale(1.08); }
}
@keyframes cardFloat {
    0%, 100% { transform: translateY(-15px) scale(1.02); }
    50% { transform: translateY(-20px) scale(1.03); }
}
@keyframes cardRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes textPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}
@keyframes expandWidth {
    0% { width: 0; }
    100% { width: 100px; }
}
@keyframes socialBounce {
    0%, 100% { transform: translateY(-10px) scale(1.1); }
    50% { transform: translateY(-15px) scale(1.15); }
}
@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .hero p { font-size: 1.2rem; }
    .section-title { font-size: 3rem; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.1rem; }
    .section-title { font-size: 2.5rem; }
    .feature-card { padding: 2rem; }
    .feature-icon { font-size: 2.5rem; }
    .social-links { gap: 15px; }
    .social-links a { width: 50px; height: 50px; }
    .navbar-nav { text-align: center; }
    .team-member-img { width: 150px; height: 150px; }
}
@media (max-width: 576px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .cta-button { padding: 1rem 2rem; font-size: 1rem; }
    .section-title { font-size: 2rem; }
    .team-member-img { width: 120px; height: 120px; }
    footer .navbar-nav { flex-direction: column !important; }
    footer .nav-item { margin: 0.5rem 0; }
}
