/* ========================================
   ROCMA PORTFOLIO - AESTHETIC DARK DESIGN
   Purple Vibes & 3D Elements
======================================== */

/* ===== Google Font Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ===== Base Variables ===== */
:root {
    --primary: #8B5CF6;
    --primary-light: #A78BFA;
    --primary-dark: #7C3AED;
    --secondary: #C084FC;
    --accent: #E879F9;
    --neon: #D946EF;
    --dark-bg: #0d1117;
    --darker-bg: #010409;
    --card-bg: rgba(13, 17, 23, 0.9);
    --text-primary: #e6edf3;
    --text-secondary: #c4b5fd;
    --text-muted: #7d8590;
    /* VS Code colors */
    --vscode-bg: #1e1e1e;
    --vscode-sidebar: #252526;
    --vscode-active: #37373d;
    --vscode-border: #3c3c3c;
    --vscode-blue: #569cd6;
    --vscode-green: #4ec9b0;
    --vscode-yellow: #dcdcaa;
    --vscode-orange: #ce9178;
    --vscode-comment: #6a9955;
}

/* ===== Global Font ===== */
*:not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not([class*="fa-"]) {
    font-family: 'Space Grotesk', sans-serif !important;
}

html {
    scroll-behavior: smooth;
    background: var(--darker-bg);
    overflow-x: hidden;
}

body {
    background: linear-gradient(180deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--neon));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light), var(--accent));
}

::selection {
    background: rgba(139, 92, 246, 0.4);
    color: #fff;
}

/* ===== Typography ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 50%, var(--neon) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 5s ease infinite;
}

.text-shimmer {
    background: linear-gradient(90deg, #fff 0%, var(--primary-light) 25%, #fff 50%, var(--accent) 75%, #fff 100%);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 4s ease-in-out infinite;
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes textShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== Glassmorphism VS Code Style ===== */
.glass {
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--vscode-border);
}

.glass-light {
    background: rgba(37, 37, 38, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--vscode-border);
}

/* ===== VS Code Style Cards ===== */
.luxury-card {
    position: relative;
    background: var(--vscode-sidebar);
    border: 1px solid var(--vscode-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.luxury-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--vscode-blue), var(--primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.luxury-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.luxury-card:hover::before {
    opacity: 1;
}

/* ===== Buttons ===== */
.btn-luxury {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 9999px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-luxury::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--neon), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-luxury:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 40px rgba(139, 92, 246, 0.5),
        0 0 30px rgba(217, 70, 239, 0.3);
}

.btn-luxury:hover::before {
    opacity: 1;
}

.btn-outline {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 9999px;
    color: var(--primary-light);
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
}

/* ===== iPhone Notch Navigation (Large) ===== */
#main-nav {
    background: transparent !important;
    border: none !important;
}

.notch-large {
    display: none;
    justify-content: center;
}

@media (min-width: 768px) {
    .notch-large {
        display: flex;
    }
}

/* Responsive notch sizing */
@media (min-width: 768px) and (max-width: 1024px) {
    .notch-inner {
        gap: 0.25rem;
        padding: 0.5rem 1rem;
    }
    
    .notch-item {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
        gap: 0.35rem;
    }
    
    .notch-item i {
        font-size: 0.7rem;
    }
    
    .notch-item span {
        display: none;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .notch-inner {
        gap: 0.35rem;
        padding: 0.6rem 1.25rem;
    }
    
    .notch-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

.notch-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: #000000;
    border-radius: 0 0 32px 32px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.9),
        0 2px 8px rgba(0, 0, 0, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.notch-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -24px;
    width: 24px;
    height: 24px;
    background: transparent;
    border-top-right-radius: 24px;
    box-shadow: 6px -6px 0 0 #000000;
}

.notch-inner::after {
    content: '';
    position: absolute;
    top: 0;
    right: -24px;
    width: 24px;
    height: 24px;
    background: transparent;
    border-top-left-radius: 24px;
    box-shadow: -6px -6px 0 0 #000000;
}

.notch-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 22px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.notch-item i {
    font-size: 0.8rem;
}

.notch-item:hover {
    color: #fff;
    background: rgba(139, 92, 246, 0.2);
}

.notch-item.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

/* ===== MOBILE BOTTOM NAVIGATION ===== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0.25rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    z-index: 100;
    box-shadow: 
        0 -4px 30px rgba(0, 0, 0, 0.5),
        0 -2px 15px rgba(139, 92, 246, 0.1);
}

.mobile-bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(139, 92, 246, 0.5) 20%, 
        rgba(217, 70, 239, 0.5) 50%, 
        rgba(139, 92, 246, 0.5) 80%, 
        transparent
    );
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.4rem;
    min-width: 50px;
    color: #666;
    font-size: 0.65rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.25s ease;
    position: relative;
}

.mobile-nav-item i {
    font-size: 1.15rem;
    transition: all 0.25s ease;
}

.mobile-nav-item span {
    opacity: 0.8;
    transition: all 0.25s ease;
}

.mobile-nav-item:hover {
    color: var(--primary-light);
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.active i {
    transform: scale(1.15);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

.mobile-nav-item.active span {
    opacity: 1;
    color: var(--primary);
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

/* Hide on desktop */
@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* Adjust body padding on mobile to account for bottom nav */
@media (max-width: 767px) {
    body {
        padding-bottom: 70px;
    }
    
    /* Hide scroll when at bottom near contact */
    #contact {
        padding-bottom: 2rem;
    }
}

/* Scrolled state */
#main-nav.scrolled .notch-inner {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.95),
        0 0 40px rgba(139, 92, 246, 0.15);
}

/* ===== GLOBAL RESPONSIVE SPACING ===== */
/* Prevent horizontal overflow globally */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Main container constraint */
#__next, main, .main-content {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Ensure content doesn't overlap with nav */
section {
    scroll-margin-top: 80px;
    max-width: 100vw;
}

@media (max-width: 768px) {
    section {
        scroll-margin-top: 60px;
    }
}

/* Hero responsive */
@media (max-width: 767px) {
    /* Hero section adjustments for mobile */
    #accueil {
        min-height: calc(100vh - 70px); /* Account for bottom nav */
        padding-top: 0;
    }
    
    #accueil > .relative.z-10 {
        padding-top: 1.5rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Mobile avatar specific styles */
    #accueil .block.lg\\:hidden {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 640px) {
    #accueil .text-4xl {
        font-size: 1.875rem;
        line-height: 1.2;
    }
    
    #accueil .text-xl {
        font-size: 1rem;
    }
    
    #accueil h1 {
        margin-bottom: 1rem;
    }
    
    .btn-luxury,
    .btn-outline {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Image/Photo responsive */
@media (max-width: 640px) {
    .w-72, .w-80, .w-96 {
        width: 14rem !important;
    }
    
    .h-72, .h-80, .h-96 {
        height: 14rem !important;
    }
}

@media (max-width: 480px) {
    .w-72, .w-80, .w-96 {
        width: 12rem !important;
    }
    
    .h-72, .h-80, .h-96 {
        height: 12rem !important;
    }
    
    /* Smaller buttons on mobile */
    .btn-luxury,
    .btn-outline {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
        gap: 0.375rem;
    }
    
    .flex-wrap.gap-4 {
        gap: 0.5rem;
    }
}

/* Legacy Navigation (keep for compatibility) */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--neon));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ===== Hero Section ===== */
.hero-gradient {
    background: 
        radial-gradient(ellipse at top right, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(217, 70, 239, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--darker-bg) 0%, var(--vscode-bg) 100%);
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float3D 12s ease-in-out infinite;
    pointer-events: none;
}

/* Prevent hero glow from causing overflow on mobile */
@media (max-width: 768px) {
    .hero-glow {
        width: 300px;
        height: 300px;
        filter: blur(80px);
    }
}

/* ===== Skills Marquee ===== */
.skills-marquee-container {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 1rem 0;
}

.skills-marquee {
    display: flex;
    gap: 1rem;
    animation: marquee 80s linear infinite;
    width: max-content;
}

.skills-marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid var(--vscode-border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: var(--vscode-active);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.skill-tag i {
    font-size: 1.1rem;
    color: var(--primary-light);
}

.skills-marquee-reverse {
    animation: marquee-reverse 75s linear infinite;
}

@keyframes marquee-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ===== Project Cards ===== */
.project-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.1);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 2, 8, 0.98) 0%, rgba(5, 2, 8, 0.5) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-card-overlay {
    opacity: 1;
}

/* ===== Tech Stack Tags ===== */
.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 9999px;
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--neon), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--dark-bg);
    box-shadow: 0 0 0 3px var(--primary), 0 0 20px rgba(139, 92, 246, 0.5);
    transform: translateX(-6px);
}

.timeline-item:hover::before {
    animation: glow 1s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { box-shadow: 0 0 0 3px var(--primary), 0 0 20px rgba(139, 92, 246, 0.5); }
    100% { box-shadow: 0 0 0 3px var(--neon), 0 0 40px rgba(217, 70, 239, 0.8); }
}

/* ===== Contact Form ===== */
.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(10, 5, 25, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1), 0 0 30px rgba(139, 92, 246, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== Floating Elements ===== */
.floating {
    animation: float 6s ease-in-out infinite;
}

.floating-delayed {
    animation: float 6s ease-in-out 2s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== Particles Container ===== */
#particles-js {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* ===== Grid Lines Background ===== */
.grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    pointer-events: none;
}

/* ===== Animated Border ===== */
.animated-border {
    position: relative;
    background: linear-gradient(145deg, rgba(15, 8, 30, 0.95), rgba(5, 2, 15, 0.98));
    border-radius: 50%;
    overflow: visible;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--neon), var(--accent), var(--primary));
    background-size: 300% 300%;
    animation: borderFlow 4s linear infinite;
    z-index: -1;
}

@keyframes borderFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 2, 8, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(145deg, rgba(15, 8, 30, 0.98), rgba(5, 2, 15, 0.99));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 2rem;
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active + .modal-content,
.modal-content.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* ===== Cursor Effects ===== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* ===== Section Headers ===== */
.section-header {
    position: relative;
    display: inline-block;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--neon));
    border-radius: 2px;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 70px;
    width: 20px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* ===== Loading Animation ===== */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(139, 92, 246, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Magnetic Button Effect ===== */
.magnetic-btn {
    transition: transform 0.2s ease;
}

/* ===== Noise Texture Overlay ===== */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== All Projects Button ===== */
.btn-see-all {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 9999px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-see-all::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--neon));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-see-all:hover {
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
}

.btn-see-all:hover::before {
    opacity: 1;
}

/* ===== Star Field Background ===== */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-glow {
        width: 300px;
        height: 300px;
    }
    
    .section-header::before {
        width: 40px;
    }
    
    .section-header::after {
        left: 50px;
        width: 15px;
    }
    
    .skill-tag {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .no-print {
        display: none !important;
    }
}

/* ===== Pulse Animation ===== */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* ===== VS Code Design Elements ===== */

/* Navigation VS Code Style */
nav {
    background: var(--vscode-sidebar) !important;
    border-bottom: 1px solid var(--vscode-border);
}

/* Section titles with VS Code comment style */
.section-comment {
    color: var(--vscode-comment);
    font-size: 0.875rem;
    font-style: italic;
}

/* VS Code like badge */
.vscode-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--vscode-active);
    border: 1px solid var(--vscode-border);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Terminal-like elements */
.terminal-line {
    font-family: 'Consolas', 'Monaco', monospace;
    color: var(--vscode-green);
    padding: 0.25rem 0;
}

.terminal-line::before {
    content: '$ ';
    color: var(--vscode-yellow);
}

/* Code syntax highlighting colors for tags */
.syntax-keyword { color: var(--vscode-blue); }
.syntax-string { color: var(--vscode-orange); }
.syntax-function { color: var(--vscode-yellow); }
.syntax-variable { color: var(--vscode-green); }
.syntax-comment { color: var(--vscode-comment); font-style: italic; }

/* VS Code Activity Bar Style */
.activity-bar {
    background: #333333;
    border-right: 1px solid var(--vscode-border);
}

/* File tree hover */
.file-tree-item:hover {
    background: var(--vscode-active);
}

/* Status bar style footer hint */
.status-bar-style {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 1rem;
}

/* Minimap-like decorative element */
.minimap-decoration {
    position: absolute;
    right: 0;
    top: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(30, 30, 30, 0.3));
    pointer-events: none;
}

/* VS Code bracket matching colors for decorative purposes */
.bracket-match {
    color: var(--vscode-yellow);
    font-weight: bold;
}

/* Scrollbar gutter style */
.gutter-style {
    border-left: 3px solid var(--vscode-border);
    padding-left: 1rem;
}

/* ===== Language Switcher Easter Egg ===== */
.language-switch {
    position: relative;
    overflow: hidden;
}

.language-switch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.language-switch:hover::before {
    left: 100%;
}

/* ===== MOBILE ABOUT CARDS ===== */
.glass-card {
    background: rgba(30, 30, 35, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.about-card-mobile {
    animation: fadeInUp 0.5s ease forwards;
}

.about-card-mobile:nth-child(1) { animation-delay: 0s; }
.about-card-mobile:nth-child(2) { animation-delay: 0.1s; }
.about-card-mobile:nth-child(3) { animation-delay: 0.2s; }
.about-card-mobile:nth-child(4) { animation-delay: 0.3s; }

/* ===== BENTO UI GRID ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(140px, auto);
    gap: 1rem;
}

.bento-item {
    background: var(--vscode-sidebar);
    border: 1px solid var(--vscode-border);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(139, 92, 246, 0.1);
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Bento sizes */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-medium {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-wide {
    grid-column: span 4;
    grid-row: span 1;
}

.bento-small {
    grid-column: span 1;
    grid-row: span 1;
}

/* Responsive Bento */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-large {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .bento-wide {
        grid-column: span 2;
    }
    
    .bento-medium {
        grid-column: span 2;
    }
    
    .bento-small {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .bento-large,
    .bento-medium,
    .bento-wide,
    .bento-small {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .bento-content {
        padding: 1.25rem;
    }
}

/* ===== INTERACTIVE SKILLS ===== */
.skills-interactive-container {
    background: var(--vscode-sidebar);
    border: 1px solid var(--vscode-border);
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.skills-interactive-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--neon), var(--accent), var(--primary));
    background-size: 200% 100%;
    animation: gradientSlide 3s linear infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Skills Tabs */
.skill-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(37, 37, 38, 0.6);
    border: 1px solid var(--vscode-border);
    border-radius: 9999px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-tab-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

.skill-tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.skill-tab-btn.active .skill-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.skill-tab-btn i {
    color: var(--primary-light);
}

.skill-tab-btn.active i {
    color: white;
}

.skill-count {
    padding: 0.125rem 0.5rem;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: var(--primary-light);
}

/* Skills Display */
.skills-display-area {
    min-height: 200px;
    position: relative;
}

.skill-category-content {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.skill-category-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skill Cards */
.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid var(--vscode-border);
    border-radius: 1rem;
    text-align: center;
    cursor: default;
    transition: all 0.3s ease;
    animation: skillCardIn 0.5s ease forwards;
    opacity: 0;
}

@keyframes skillCardIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.skill-card:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.skill-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(217, 70, 239, 0.1));
    border-radius: 0.75rem;
    font-size: 1.5rem;
    color: var(--primary-light);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-card-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: scale(1.1);
}

.skill-card-name {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
}

.skill-card-level {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.skill-level-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--neon));
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* Responsive Skills */
@media (max-width: 768px) {
    .skills-interactive-container {
        padding: 1.5rem 1rem;
    }
    
    .skill-tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .skill-tab-btn span:not(.skill-count) {
        display: none;
    }
    
    .skill-card {
        padding: 1rem 0.75rem;
    }
    
    .skill-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .skills-interactive-container {
        padding: 1rem 0.75rem;
        border-radius: 1rem;
    }
    
    .skill-tab-btn {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }
    
    .skill-tab-btn .w-8 {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .skill-count {
        padding: 0.1rem 0.4rem;
        font-size: 0.65rem;
    }
}

/* ===== GENERAL RESPONSIVE UTILITIES ===== */
@media (max-width: 640px) {
    /* Reduce section padding on mobile */
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    /* Smaller headings */
    .text-4xl {
        font-size: 1.75rem;
    }
    
    .text-5xl {
        font-size: 2rem;
    }
    
    /* Container padding */
    .px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 380px) {
    /* Very small screens */
    .btn-luxury,
    .btn-outline {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }
    
    .text-4xl {
        font-size: 1.5rem;
    }
    
    .bento-content {
        padding: 1rem;
    }
}

.language-switch:active {
    transform: scale(0.98);
}

/* Language notification */
.lang-notification {
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== Smooth Page Transitions ===== */
.page-transition {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Download Button Animation ===== */
.btn-outline .fa-download {
    transition: transform 0.3s ease;
}

.btn-outline:hover .fa-download {
    animation: downloadBounce 0.6s ease infinite;
}

@keyframes downloadBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ===== Skills Category Title ===== */
#skill-category-title {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-radius: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

#skill-category-title h3 {
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 640px) {
    #skill-category-title {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    #skill-category-title h3 {
        font-size: 1rem;
    }
    
    #skill-category-title p {
        font-size: 0.75rem;
    }
}
