/* ==========================================
   Modern Portfolio - CSS
   Dark Theme with Neon Purple & Green
   ========================================== */

/* CSS Variables */
:root {
    --bg-dark: #0a0a0f;
    --bg-dark-secondary: #13131a;
    --bg-card: #1a1a24;
    --purple-primary: #a855f7;
    --purple-dark: #7c3aed;
    --green-neon: #10ff00;
    --text-light: #e2e8f0;
    --text-gray: #94a3b8;
    --text-dark: #64748b;
    
    --glow-purple: 0 0 20px rgba(168, 85, 247, 0.5),
                    0 0 40px rgba(168, 85, 247, 0.3),
                    0 0 60px rgba(168, 85, 247, 0.1);
    
    --glow-green: 0 0 20px rgba(16, 255, 0, 0.5),
                   0 0 40px rgba(16, 255, 0, 0.3),
                   0 0 60px rgba(16, 255, 0, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Particle Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 2rem;
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
    text-decoration: none;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--purple-primary), var(--green-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--glow-purple);
}

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple-primary), var(--green-neon));
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--purple-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    z-index: 1;
}

.hero-container {
    max-width: 900px;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight-purple {
    color: var(--purple-primary);
    text-shadow: var(--glow-purple);
}

.highlight-green {
    color: var(--green-neon);
    text-shadow: var(--glow-green);
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.typing-text {
    color: var(--green-neon);
    text-shadow: var(--glow-green);
}

.cursor {
    animation: blink 1s infinite;
    color: var(--purple-primary);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

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

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-purple);
}

.btn-secondary {
    background: transparent;
    color: var(--green-neon);
    border: 2px solid var(--green-neon);
}

.btn-secondary:hover {
    background: rgba(16, 255, 0, 0.1);
    box-shadow: var(--glow-green);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--purple-primary);
    border: 2px solid var(--purple-primary);
}

.btn-outline:hover {
    background: rgba(168, 85, 247, 0.1);
    box-shadow: var(--glow-purple);
    transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--purple-primary);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--purple-primary);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

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

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* Section Styles */
section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.title-number {
    color: var(--green-neon);
    font-size: 1.5rem;
    text-shadow: var(--glow-green);
}

.title-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--purple-primary), transparent);
    min-width: 100px;
}

/* About Section */
.about {
    background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.02));
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--purple-primary);
    box-shadow: var(--glow-purple);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--purple-primary);
    text-shadow: var(--glow-purple);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

.skill-category {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--purple-primary);
    box-shadow: var(--glow-purple);
}

.category-title {
    font-size: 1.5rem;
    color: var(--green-neon);
    margin-bottom: 1.5rem;
    text-shadow: var(--glow-green);
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(168, 85, 247, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.1);
    transition: var(--transition);
    cursor: default;
}

.skill-item:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--purple-primary);
    transform: scale(1.05);
}

.skill-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--purple-primary);
}

.skill-name {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-align: center;
}

/* Projects Section */
.projects {
    background: linear-gradient(180deg, rgba(16, 255, 0, 0.02), transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
    transition: var(--transition);
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: var(--purple-primary);
    box-shadow: var(--glow-purple);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.project-icon {
    font-size: 2rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.project-link:hover {
    color: var(--purple-primary);
    text-shadow: var(--glow-purple);
}

.project-title {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(168, 85, 247, 0.1);
    color: var(--purple-primary);
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.project-stats {
    display: flex;
    gap: 1.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.projects-footer {
    text-align: center;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 4rem;
    grid-column: 1 / -1;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(168, 85, 247, 0.2);
    border-top-color: var(--purple-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

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

.contact-info h3 {
    font-size: 2rem;
    color: var(--purple-primary);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    text-decoration: none;
    transition: var(--transition);
}

.contact-method:hover {
    transform: translateX(10px);
    border-color: var(--purple-primary);
    box-shadow: var(--glow-purple);
}

.method-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--purple-primary);
}

.method-info {
    display: flex;
    flex-direction: column;
}

.method-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.method-value {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    padding: 3rem 0;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
    text-align: center;
}

.footer-content p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

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

.social-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--purple-primary);
    text-shadow: var(--glow-purple);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 6rem 1rem 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .title-line {
        display: none;
    }
    
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Selection */
::selection {
    background: var(--purple-primary);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--purple-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-dark);
}

