/* Root Variables */
:root {
    --neon-cyan: #00f3ff;
    --neon-pink: #ff00ff;
    --neon-purple: #b026ff;
    --neon-blue: #0066ff;
    --dark-bg: #0a0a0f;
    --dark-secondary: #1a1a2e;
    --grid-color: rgba(0, 243, 255, 0.2);
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
}

/* Neon Text Effect */
.neon-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan),
                 0 0 20px var(--neon-cyan),
                 0 0 30px var(--neon-cyan),
                 0 0 40px var(--neon-cyan);
    animation: neon-flicker 3s infinite alternate;
}

@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 10px var(--neon-cyan),
                     0 0 20px var(--neon-cyan),
                     0 0 30px var(--neon-cyan),
                     0 0 40px var(--neon-cyan);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: var(--neon-cyan);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-pink);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-purple);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(61px, 9999px, 69px, 0); }
    25% { clip: rect(94px, 9999px, 47px, 0); }
    50% { clip: rect(10px, 9999px, 99px, 0); }
    75% { clip: rect(39px, 9999px, 15px, 0); }
    100% { clip: rect(85px, 9999px, 21px, 0); }
}

/* Navigation */
.neon-nav {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.nav-link {
    color: #fff !important;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0 15px;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0a0a0f 0%, #1a0a2e 100%);
}

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center bottom;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.sun {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: linear-gradient(180deg, var(--neon-pink) 0%, var(--neon-purple) 100%);
    border-radius: 50%;
    box-shadow: 0 0 100px var(--neon-pink),
                0 0 200px var(--neon-purple);
    animation: sun-pulse 4s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 10;
}

.neon-box {
    background: rgba(26, 26, 46, 0.8);
    border: 3px solid var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5),
                inset 0 0 30px rgba(0, 243, 255, 0.1);
    padding: 3rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.neon-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 5px;
}

.neon-subtitle {
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #aaa;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-neon {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    border-radius: 5px;
}

.btn-neon:hover {
    background: var(--neon-cyan);
    color: var(--dark-bg);
    box-shadow: 0 0 40px var(--neon-cyan);
    transform: translateY(-2px);
}

.btn-neon-outline {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--neon-pink);
    border: 2px solid var(--neon-pink);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
    border-radius: 5px;
}

.btn-neon-outline:hover {
    background: var(--neon-pink);
    color: var(--dark-bg);
    box-shadow: 0 0 40px var(--neon-pink);
    transform: translateY(-2px);
}

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

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 3px;
}

/* About Section */
.about-section {
    background: var(--dark-secondary);
}

.terminal-box {
    background: #000;
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px;
    display: flex;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-body {
    padding: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.terminal-body p {
    margin: 10px 0;
}

.prompt {
    color: var(--neon-cyan);
    margin-right: 10px;
}

.neon-card {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid var(--neon-purple);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 0 30px rgba(176, 38, 255, 0.3);
}

.card-title {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
    margin-bottom: 1rem;
}

.card-text {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 5px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.stat-label {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 0.5rem;
}

/* Skills Section */
.skills-section {
    background: var(--dark-bg);
}

.skill-card {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid var(--neon-pink);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.5);
}

.skill-icon {
    font-size: 4rem;
    color: var(--neon-pink);
    margin-bottom: 1rem;
}

.skill-card h3 {
    margin-bottom: 1rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    box-shadow: 0 0 10px var(--neon-pink);
    animation: skill-load 2s ease-out;
}

@keyframes skill-load {
    from { width: 0; }
}

.skill-percent {
    color: var(--neon-cyan);
    font-weight: 600;
    font-size: 1.2rem;
}

/* Projects Section */
.projects-section {
    background: var(--dark-secondary);
}

.project-card {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.5);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-overlay i {
    font-size: 4rem;
    color: var(--neon-cyan);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
}

.project-content p {
    margin-bottom: 1rem;
    color: #ccc;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 243, 255, 0.2);
    border: 1px solid var(--neon-cyan);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--neon-cyan);
}

/* Contact Section */
.contact-section {
    background: var(--dark-bg);
}

.contact-box {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid var(--neon-purple);
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 0 30px rgba(176, 38, 255, 0.3);
}

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

.contact-item {
    text-align: center;
}

.contact-icon {
    font-size: 3rem;
    color: var(--neon-purple);
    margin-bottom: 1rem;
}

.contact-item h4 {
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--neon-purple);
}

.contact-item p {
    color: #aaa;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.social-icon:hover {
    background: var(--neon-cyan);
    color: var(--dark-bg);
    box-shadow: 0 0 40px var(--neon-cyan);
    transform: translateY(-5px);
}

/* Footer */
.footer {
    background: var(--dark-secondary);
    padding: 2rem 0;
    text-align: center;
    border-top: 2px solid var(--neon-cyan);
}

.footer-content p {
    margin: 0.5rem 0;
    color: #aaa;
}

.footer-credit a {
    color: var(--neon-cyan);
    text-decoration: none;
}

.footer-credit a:hover {
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid var(--neon-pink);
    border-radius: 50%;
    color: var(--neon-pink);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
    z-index: 1000;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--neon-pink);
    color: var(--dark-bg);
    box-shadow: 0 0 40px var(--neon-pink);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .neon-title {
        font-size: 2.5rem;
    }

    .neon-subtitle {
        font-size: 1rem;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }
}
