:root {
    --electric-blue: #00f0ff;
    --electric-blue-dark: #008cff;
    --neon-blue: #4d4dff;
    --cyber-blue: #0abdc6;
    --matrix-green: #00ff9d;
    --dark-space: #0a0a14;
    --deep-space: #000318;
    --light-space: #133e7c;
    --text-primary: #ffffff;
    --text-secondary: #e0e0ff;
    --text-muted: #a0a0c0;
    --glow: 0 0 10px var(--electric-blue), 0 0 20px var(--electric-blue), 0 0 30px var(--electric-blue);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--deep-space);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

/* Page Load Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    opacity: 0;
    animation: fadeInRight 0.8s ease-out forwards;
}

/* Lightning animation */
.lightning-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.lightning {
    position: absolute;
    width: 4px;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--electric-blue), transparent);
    opacity: 0;
    filter: blur(1px);
    box-shadow: 0 0 20px 2px var(--electric-blue);
    animation: lightning 2s infinite;
}

@keyframes lightning {
    0%, 90% {
        opacity: 0;
        height: 0;
    }
    92%, 98% {
        opacity: 0.8;
        height: 150px;
    }
    100% {
        opacity: 0;
        height: 0;
    }
}

/* Thunder overlay effect */
.thunder-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    pointer-events: none;
    z-index: 999;
    transition: background-color 0.3s ease;
}

/* Fire drop animation */
.fire-drop {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--electric-blue);
    box-shadow: var(--glow);
    pointer-events: none;
    z-index: 9999;
    animation: fadeDrop 1s forwards;
}

@keyframes fadeDrop {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0.2);
    }
}

/* Electric particles background */
.electric-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--electric-blue);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-40px) translateX(0); }
    75% { transform: translateY(-20px) translateX(-10px); }
    100% { transform: translateY(0) translateX(0); }
}

/* Digital background */
.digital-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 240, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 157, 255, 0.15) 0%, transparent 40%);
    z-index: -1;
    animation: pulseBackground 10s infinite alternate;
}

@keyframes pulseBackground {
    0% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Dragon logo */
.dragon-logo {
    filter: drop-shadow(0 0 5px var(--electric-blue));
    transition: all 0.3s ease;
}

.dragon-logo:hover {
    filter: drop-shadow(0 0 15px var(--electric-blue));
    transform: scale(1.1);
}

.dragon-logo-small {
    filter: drop-shadow(0 0 3px var(--electric-blue));
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 30, 0.95);
    backdrop-filter: blur(15px);
    padding: 1rem 2rem;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--electric-blue);
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--electric-blue);
    margin: 3px 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

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

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

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

/* Navigation menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-item {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    font-family: 'Orbitron', sans-serif;
}

.nav-item i {
    font-size: 1.1rem;
    color: var(--electric-blue);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--electric-blue), var(--matrix-green));
    transition: width 0.3s ease;
    box-shadow: var(--glow);
}

.nav-item:hover::after {
    width: 100%;
}

.nav-item:hover {
    color: var(--electric-blue);
}

.talk-btn {
    background: linear-gradient(45deg, var(--electric-blue), var(--matrix-green));
    color: var(--dark-space);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    white-space: nowrap;
}

.talk-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

/* Welcome Section */
#welcome-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2rem;
    overflow: hidden;
}

.welcome-content {
    max-width: 1200px;
    text-align: center;
    width: 100%;
}

.welcome-text {
    font-size: 1.5rem;
    color: var(--electric-blue);
    margin-bottom: 1rem;
    font-family: 'Rajdhani', sans-serif;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.glitch-text {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    background: linear-gradient(45deg, var(--electric-blue), var(--matrix-green), var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    animation: textPulse 3s ease-in-out infinite alternate;
}

@keyframes textPulse {
    0% {
        filter: brightness(1) saturate(1);
    }
    100% {
        filter: brightness(1.2) saturate(1.3);
    }
}

/* Sliding text animation */
.sliding-text-container {
    height: 60px;
    overflow: hidden;
    margin-bottom: 3rem;
    position: relative;
}

.sliding-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideText 9s infinite;
}

.sliding-text {
    font-size: 2rem;
    font-weight: 600;
    color: var(--electric-blue);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.7);
    font-family: 'Orbitron', sans-serif;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@keyframes slideText {
    0%, 20% {
        transform: translateY(0);
    }
    33%, 53% {
        transform: translateY(-60px);
    }
    66%, 86% {
        transform: translateY(-120px);
    }
    100% {
        transform: translateY(0);
    }
}

.welcome-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.project-btn, .contact-btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.project-btn {
    background: linear-gradient(45deg, var(--electric-blue), var(--matrix-green));
    color: var(--dark-space);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.contact-btn {
    background: transparent;
    color: var(--electric-blue);
    border: 2px solid var(--electric-blue);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.project-btn:hover, .contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

.contact-btn:hover {
    background: rgba(0, 240, 255, 0.1);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--electric-blue), transparent);
    border-radius: 2px;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    background: var(--electric-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

/* About Section */
#about {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.skills {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--electric-blue);
}

.skill-bar {
    height: 10px;
    background: rgba(20, 20, 40, 0.5);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--electric-blue), var(--matrix-green));
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease-in-out;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Projects Section */
#projects {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    color: var(--text-primary);
    text-align: center;
    width: 100%;
}

.section-title span {
    background: linear-gradient(45deg, var(--electric-blue), var(--matrix-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--electric-blue), transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(20, 20, 40, 0.5);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 240, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
    border-color: rgba(0, 240, 255, 0.5);
}

.project-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--electric-blue);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(360deg);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-family: 'Rajdhani', sans-serif;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    font-family: 'Rajdhani', sans-serif;
}

.project-btn:hover {
    color: var(--matrix-green);
    gap: 1rem;
}

/* Contact Section */
#contact {
    padding: 6rem 2rem;
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(10px);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    padding: 2rem;
    border-radius: 15px;
    background: rgba(20, 20, 40, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.github, .linkedin, .email, .Instagram {
    background: rgba(0, 240, 255, 0.1);
    color: var(--electric-blue);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.contact-card span {
    color: var(--text-primary);
    font-weight: 500;
    font-family: 'Rajdhani', sans-serif;
}

/* Footer */
footer {
    background: rgba(10, 10, 20, 0.9);
    padding: 3rem 2rem;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-family: 'Rajdhani', sans-serif;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.1);
    color: var(--electric-blue);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.footer-social a:hover {
    background: rgba(0, 240, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: 'Rajdhani', sans-serif;
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
    .nav-links {
       align-items: center;
    }
    
    .glitch-text {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 30, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .nav-item {
        font-size: 1.2rem;
        padding: 1rem 0;
    }
    
    .talk-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    /* Welcome Section */
    .glitch-text {
        font-size: 2.5rem;
    }
    
    .welcome-text {
        font-size: 1.2rem;
    }
    
    .sliding-text {
        font-size: 1.5rem;
    }
    
    .sliding-text-container {
        height: 50px;
        margin-bottom: 2rem;
    }
    
    .sliding-text {
        height: 50px;
    }
    
    @keyframes slideText {
        0%, 20% {
            transform: translateY(0);
        }
        33%, 53% {
            transform: translateY(-50px);
        }
        66%, 86% {
            transform: translateY(-100px);
        }
        100% {
            transform: translateY(0);
        }
    }
    
    .welcome-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .project-btn, .contact-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    /* Sections */
    #about, #projects, #contact {
        padding: 4rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Prevent horizontal scroll on mobile */
    body {
        overflow-x: hidden;
    }
    
    .welcome-content {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    #navbar {
        padding: 1rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .dragon-logo svg {
        width: 35px;
        height: 35px;
    }
    
    .glitch-text {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .welcome-text {
        font-size: 1rem;
    }
    
    .sliding-text {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .project-card, .contact-card {
        padding: 1.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-social {
        gap: 1rem;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    #welcome-section {
        height: auto;
        min-height: 100vh;
        padding: 8rem 2rem 4rem;
    }
    
    .glitch-text {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .sliding-text-container {
        height: 40px;
        margin-bottom: 1.5rem;
    }
    
    .sliding-text {
        font-size: 1.2rem;
        height: 40px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Animation delays for staggered effects */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

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