/* style.css */

/* Fixed Header Styles */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    border-bottom: 1px solid rgba(0,243,255,0.2);
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

.fixed-name {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-blue);
    margin: 0;
    font-size: 2rem;
    text-align: center;
    animation: textGlow 2s infinite alternate;
}

/* Adjust Hero Section */
.hero {
    padding-top: 100px; /* Make space for fixed header */
    height: calc(100vh - 100px);
}

/* Remove name from hero section */
.hero h1 {
    display: none;
}

:root {
    --neon-blue: #00f3ff;
    --cyber-purple: #6a00ff;
    --matrix-green: #00ff9d;
    --hologram-pink: #ff00ff;
    --dark-bg: #0a0a14;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: var(--dark-bg);
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
}

/* Loading Screen */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1s;
}

.loader-spinner {
    width: 80px;
    height: 80px;
    border: 8px solid rgba(0,243,255,0.1);
    border-top-color: var(--neon-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 3D Neural Network Visualization */
#neuralNetwork {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999;
    transition: transform 0.3s, opacity 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--matrix-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlow 2s infinite alternate;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-link {
    font-size: 2rem;
    color: var(--neon-blue);
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    color: var(--matrix-green);
    transform: translateY(-5px);
}

/* Main Content Sections */
.section {
    padding: 4rem 2rem;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-blue);
    margin-bottom: 3rem;
    text-align: center;
    font-size: 2.5rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: linear-gradient(145deg, rgba(46,49,146,0.2), rgba(10,10,20,0.8));
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0,243,255,0.2);
}

.project-title {
    color: var(--matrix-blue);
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.tech-pill {
    padding: 0.3rem 0.8rem;
    background: rgba(0,243,255,0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--neon-blue);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-item {
    padding: 2rem;
    margin: 2rem 0;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    padding: 1.5rem;
    background: rgba(0, 255, 157, 0.1);
    border-radius: 15px;
    text-align: center;
}

/* Animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes textGlow {
    from { text-shadow: 0 0 10px var(--neon-blue); }
    to { text-shadow: 0 0 20px var(--matrix-green); }
}

/* Floating Hero Animation */
.hero-content {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Glowing Text Effect */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 3px;
    background: var(--neon-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.section-title:hover::after {
    transform: scaleX(1);
}

/* Matrix Rain Effect */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

/* Hover Effects */
.skill-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 25px rgba(0,243,255,0.2);
}

/* Animated Background Shapes */
.floating-shapes div {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--neon-blue), var(--matrix-green));
    opacity: 0.1;
    animation: floatShape 20s infinite linear;
}

@keyframes floatShape {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

/* Project Card Glow */
.project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        var(--neon-blue),
        var(--matrix-green),
        var(--hologram-pink));
    z-index: -1;
    animation: gradientGlow 4s linear infinite;
    background-size: 400%;
    border-radius: 15px;
}

@keyframes gradientGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Text Scan Effect */
.hero h1 span {
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent,
        rgba(0,243,255,0.2) 50%,
        transparent
    );
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Dynamic Progress Bars */
.skill-progress {
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--neon-blue);
    animation: progressLoad 2s ease-out forwards;
}

@keyframes progressLoad {
    to { width: 100%; }
}

/* Contact Button Styles */
.contact-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--neon-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0,243,255,0.3);
    transition: all 0.3s ease;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--dark-bg);
}

.contact-links {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.contact-link {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--neon-blue);
    transform: translateY(-3px);
}

.contact-link i {
    font-size: 1.2rem;
    color: var(--neon-blue);
}

.contact-link:hover i {
    color: var(--dark-bg);
}

.tooltip {
    position: absolute;
    right: 70px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.contact-link:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 60px;
}

/* Active State */
.contact-button.active .contact-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-button.active .contact-icon {
    transform: rotate(45deg);
    background: var(--matrix-green);
}