@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    --neon-blue: #00f3ff;
    --neon-pink: #ff00ff;
    --neon-yellow: #ffff00;
    --neon-green: #00ff00;
    --neon-red: #ff0000;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: #0a0a0a; /* Fallback for gradient */
    background: linear-gradient(135deg, #050505 0%, #0a0a0a 100%);
    color: white;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: rgba(10, 10, 10, 0.95) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem !important;
}

/* Neon Text Effects */
.neon-text {
    color: #00f3ff;
    text-shadow: 0 0 10px #00f3ff,
                 0 0 20px #00f3ff,
                 0 0 40px #00f3ff;
    animation: neonGlow 2s ease-in-out infinite alternate;
}

.neon-text-blue {
    color: #00f3ff;
    text-shadow: 0 0 10px #00f3ff;
}

.neon-text-yellow {
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00;
}

.neon-text-red {
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
}

@keyframes neonGlow {
    from {
        text-shadow: 0 0 10px #00f3ff,
                     0 0 20px #00f3ff,
                     0 0 40px #00f3ff;
    }
    to {
        text-shadow: 0 0 5px #00f3ff,
                     0 0 10px #00f3ff,
                     0 0 20px #00f3ff,
                     0 0 40px #00f3ff,
                     0 0 80px #00f3ff;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: rgba(0, 243, 255, 0.1); /* Fallback */
    background: linear-gradient(135deg, 
        rgba(0, 243, 255, 0.1) 0%, 
        rgba(255, 0, 255, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 243, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

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

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #00f3ff; /* Fallback for gradient text */
    background: linear-gradient(45deg, #00f3ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

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

/* Neon Button */
.btn-neon {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #00f3ff;
    border: 2px solid #00f3ff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-neon:hover {
    background: #00f3ff;
    color: #0a0a0a;
    box-shadow: 0 0 20px #00f3ff,
                0 0 40px #00f3ff;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

/* Neon Cards */
.neon-card {
    background: linear-gradient(45deg, #00f3ff, #ff00ff);    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.neon-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, var(--neon-blue), transparent, var(--neon-pink));
    z-index: -1;
    border-radius: 16px; 
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.neon-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2), 
                inset 0 0 10px rgba(0, 243, 255, 0.1);
}

/* Project Cards */
/* Project Cards */
.project-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projects-section .row {
    display: flex;
    justify-content: center;
}

.technologies {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: rgba(0, 243, 255, 0.2);
    color: #00f3ff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #00f3ff;
}

.project-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 1.5rem;
}

.demo-btn, .code-btn {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
}

.demo-btn {
    background: #00f3ff;
    color: #0a0a0a;
    border-color: #00f3ff;
}

.demo-btn:hover {
    box-shadow: 0 0 20px #00f3ff;
    transform: translateY(-2px);
}

.code-btn {
    background: transparent;
    color: #ff00ff;
    border-color: #ff00ff;
}

.code-btn:hover {
    background: #ff00ff;
    color: #0a0a0a;
    box-shadow: 0 0 20px #ff00ff;
    transform: translateY(-2px);
}

/* Icons */
.skill-icon, .contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Contact Links */
.contact-link {
    color: #00f3ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.95);
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 243, 255, 0.2);
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .project-links {
        flex-direction: column;
        align-items: center;
    }
    
    .demo-btn, .code-btn {
        width: 200px;
        text-align: center;
    }
    
    /* Fix for mobile backdrop-filter */
    .navbar, .neon-card {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(10, 10, 10, 0.98) !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .neon-card {
        padding: 1.5rem;
    }
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .navbar {
        background: rgba(10, 10, 10, 0.98) !important;
    }
    
    .neon-card {
        background: rgba(20, 20, 20, 0.95);
    }
}