/* CSS Custom Properties */
:root {
    --color-navy: #0f0f23;
    --color-electric: #6366f1;
    --color-purple: #8b5cf6;
    --color-cyan: #06b6d4;
    --color-slate: #f1f5f9;
    --color-glass: rgba(255, 255, 255, 0.1);
    --color-dark-bg: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    
    --font-inter: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --border-radius: 16px;
    --border-radius-blob: 30% 70% 70% 30% / 30% 30% 70% 70%;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-inter);
    background: var(--color-dark-bg);
    color: var(--color-slate);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-electric), var(--color-purple));
    border-radius: 4px;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-electric), var(--color-purple), var(--color-cyan));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.glass {
    background: var(--color-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Background Effects */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: var(--border-radius-blob);
    animation: float-morph 20s ease-in-out infinite;
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    animation-delay: 0s;
}

.shape-2 {
    top: 60%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(99, 102, 241, 0.2));
    animation-delay: -7s;
}

.shape-3 {
    bottom: 30%;
    left: 20%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
    animation-delay: -14s;
}

.gradient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.3) 0%, transparent 50%);
    opacity: 0.4;
}

/* Floating Navigation */
.floating-dock {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-glass);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dock-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    color: var(--color-slate);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
    background: transparent;
}

.dock-item:hover,
.dock-item.active {
    background: linear-gradient(135deg, var(--color-electric), var(--color-purple));
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.dock-item::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--color-slate);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.dock-item:hover::before {
    opacity: 1;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    z-index: 10;
}

.morphing-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, 
        rgba(99, 102, 241, 0.3),
        rgba(139, 92, 246, 0.2),
        rgba(6, 182, 212, 0.3)
    );
    border-radius: var(--border-radius-blob);
    filter: blur(60px);
    animation: morph-blob 8s ease-in-out infinite;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 2rem;
}

.greeting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-cyan);
    font-family: var(--font-mono);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    animation: fade-in-up 0.8s ease 0.2s both;
}

.greeting i {
    animation: pulse-sparkle 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 2rem;
    animation: fade-in-up 0.8s ease 0.4s both;
}

.first-name {
    display: block;
    background: linear-gradient(135deg, var(--color-electric), var(--color-purple), var(--color-cyan));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.last-name {
    display: block;
    font-weight: 300;
    font-size: 0.8em;
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 3rem;
    animation: fade-in-up 0.8s ease 0.6s both;
}

.bracket {
    color: var(--color-purple);
    font-family: var(--font-mono);
}

.description {
    display: block;
    font-size: 1.125rem;
    color: rgba(241, 245, 249, 0.7);
    font-weight: 300;
    margin-top: 1rem;
}

.tech-stack {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fade-in-up 0.8s ease 0.8s both;
}

.tech-item {
    padding: 0.75rem 1.5rem;
    background: var(--color-glass);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: rgba(241, 245, 249, 0.8);
    cursor: pointer;
    transition: var(--transition);
    animation: float-up 2s ease-in-out infinite;
}

.tech-item:nth-child(1) { animation-delay: 0s; }
.tech-item:nth-child(2) { animation-delay: 0.5s; }
.tech-item:nth-child(3) { animation-delay: 1s; }
.tech-item:nth-child(4) { animation-delay: 1.5s; }

.tech-item:hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--color-slate);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fade-in-up 0.8s ease 1s both;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-electric), var(--color-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-primary .arrow {
    transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
    transform: translateX(4px);
}

.btn-secondary {
    background: var(--color-glass);
    backdrop-filter: blur(20px);
    color: var(--color-slate);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(241, 245, 249, 0.6);
    cursor: pointer;
    transition: var(--transition);
    animation: bounce-indicator 2s ease-in-out infinite;
}

.scroll-indicator:hover {
    color: var(--color-electric);
}

.scroll-indicator span {
    font-size: 0.875rem;
    font-family: var(--font-mono);
}

/* Section Styles */
section {
    position: relative;
    z-index: 10;
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-glass);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-cyan);
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-cyan);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.about-text p {
    margin-bottom: 2rem;
    color: rgba(241, 245, 249, 0.8);
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category h4 {
    color: var(--color-electric);
    margin-bottom: 1rem;
    font-weight: 600;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill {
    padding: 0.5rem 1rem;
    background: var(--color-glass);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.skill:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.profile-card {
    background: var(--color-glass);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.profile-image {
    margin-bottom: 2rem;
}

.profile-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.image-placeholder {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--color-electric), var(--color-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 3rem;
    color: white;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-cyan);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(241, 245, 249, 0.6);
}

/* Projects Section */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--color-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    color: rgba(241, 245, 249, 0.8);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-inter);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, var(--color-electric), var(--color-purple));
    color: white;
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--color-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--color-electric), var(--color-purple), var(--color-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-btn {
    padding: 1rem;
    background: white;
    border: none;
    border-radius: 50%;
    color: var(--color-navy);
    cursor: pointer;
    transition: var(--transition);
}

.project-btn:hover {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-slate);
}

.project-info p {
    color: rgba(241, 245, 249, 0.7);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.2);
    color: var(--color-cyan);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--color-electric), var(--color-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: rgba(241, 245, 249, 0.7);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 3rem;
    height: 3rem;
    background: var(--color-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-slate);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--color-electric), var(--color-purple));
    transform: translateY(-4px);
}

.contact-form {
    background: var(--color-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--color-slate);
    font-family: var(--font-inter);
    transition: var(--transition);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-electric);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: rgba(241, 245, 249, 0.5);
    transition: var(--transition);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-electric);
    background: var(--color-navy);
    padding: 0 0.5rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
    color: rgba(241, 245, 249, 0.6);
}

.footer i {
    color: #ff6b6b;
    animation: pulse-heart 2s ease-in-out infinite;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    animation: fade-in 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--color-slate);
    cursor: pointer;
    line-height: 1;
}

/* Animations */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes morph-blob {
    0%, 100% { 
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: translate(-50%, -50%) scale(1);
    }
    25% { 
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
        transform: translate(-50%, -50%) scale(1.1);
    }
    50% { 
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: translate(-50%, -50%) scale(0.9);
    }
    75% { 
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes float-morph {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

@keyframes float-up {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse-sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes pulse-heart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes bounce-indicator {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-stack {
        justify-content: center;
    }
    
    .floating-dock {
        bottom: 1rem;
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .dock-item {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .tech-stack {
        gap: 0.5rem;
    }
    
    .tech-item {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .project-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}
