/* Custom CSS Variables */
:root {
    --color-dark: #0a0a0a;
    --color-dark-secondary: #111827;
    --color-purple: #8b5cf6;
    --color-blue: #3b82f6;
    --color-pink: #ec4899;
    --color-gray: #6b7280;
    --color-gray-light: #9ca3af;
    --color-gray-dark: #374151;
    --gradient-purple-blue: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    --gradient-pink-purple: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--color-dark);
    color: #e5e7eb;
    overflow-x: hidden;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

.font-mono {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(139, 92, 246, 0.15) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at bottom, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Container */
.container {
    position: relative;
    z-index: 1;
}

/* Navbar Styles */
#navbar {
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(17, 24, 39, 0.95);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.nav-link {
    position: relative;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-purple-blue);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #e5e7eb;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-mobile {
    color: #9ca3af;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link-mobile:hover {
    color: var(--color-purple);
}

/* Logo Gradient */
.logo-gradient {
    background: var(--gradient-purple-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-purple-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Typing Animation */
.typing-cursor {
    display: inline-block;
    width: 2px;
    background-color: var(--color-purple);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Glass Card */
.glass-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

/* Code Card */
.code-card {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.code-card pre {
    overflow-x: auto;
}

.code-card code {
    line-height: 1.6;
}

/* CTA Button */
.cta-button {
    padding: 0.875rem 2rem;
    background: var(--gradient-purple-blue);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-purple-blue);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Stat Card */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2);
}

/* Skill Badge */
.skill-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #e5e7eb;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-badge:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* Timeline */
.timeline-container {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: -2rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-purple), var(--color-blue));
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--color-purple);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(139, 92, 246, 0.1);
    }
}

/* Project Card */
.project-card {
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.4);
}

.project-image {
    transition: all 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.tech-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #93c5fd;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--color-purple);
    transform: translateX(2px);
}

/* Social Icons */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.5rem;
    color: #e5e7eb;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* Form Styles */
input[type="text"],
input[type="email"],
textarea {
    font-family: 'Inter', sans-serif;
}

input:focus,
textarea:focus {
    outline: none;
}

/* Scroll Reveal 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);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-purple);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .timeline-dot {
        display: none;
    }
    
    .timeline-item {
        padding-left: 0;
    }
}

/* Dark Mode Toggle */
.light-mode {
    background-color: #f9fafb;
    color: #1f2937;
}

.light-mode .glass-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(139, 92, 246, 0.2);
}

.light-mode .code-card {
    background: rgba(249, 250, 251, 0.9);
}

.light-mode #navbar {
    background-color: rgba(255, 255, 255, 0.9);
}

.light-mode #navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
}

.light-mode .nav-link {
    color: #6b7280;
}

.light-mode .nav-link:hover {
    color: #1f2937;
}

.light-mode .skill-badge {
    background: rgba(139, 92, 246, 0.1);
    color: #6b21a8;
}

.light-mode .tech-tag {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--color-purple);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: rgba(139, 92, 246, 0.3);
    color: white;
}

::-moz-selection {
    background-color: rgba(139, 92, 246, 0.3);
    color: white;
}
