/* ========================================
   MARCOS VINICIUS - PREMIUM PORTFOLIO
   Modern Design System
======================================== */

/* ===== CSS RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors - Dark Theme (Default) */
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --primary-light: #A78BFA;
    --primary-glow: rgba(139, 92, 246, 0.4);

    --secondary: #06B6D4;
    --secondary-dark: #0891B2;

    --accent: #F472B6;
    --accent-dark: #EC4899;

    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Background Colors */
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;
    --bg-card: rgba(30, 41, 59, 0.8);

    /* Text Colors */
    --text-primary: #F8FAFC;
    --text-secondary: #E2E8F0;
    --text-muted: #94A3B8;
    --text-dark: #0F172A;

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);
    --gradient-secondary: linear-gradient(135deg, #F472B6 0%, #8B5CF6 100%);
    --gradient-dark: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', monospace;

    --text-xs: clamp(0.75rem, 1.5vw, 0.875rem);
    --text-sm: clamp(0.875rem, 1.5vw, 1rem);
    --text-base: clamp(1rem, 2vw, 1.125rem);
    --text-lg: clamp(1.125rem, 2vw, 1.25rem);
    --text-xl: clamp(1.25rem, 2.5vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 3vw, 2rem);
    --text-3xl: clamp(2rem, 4vw, 3rem);
    --text-4xl: clamp(2.5rem, 5vw, 4rem);
    --text-5xl: clamp(3rem, 6vw, 5rem);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
    --z-loader: 1000;
}

/* Light Theme */
.light-mode {
    --bg-primary: #F8FAFC;
    --bg-secondary: #E2E8F0;
    --bg-tertiary: #CBD5E1;
    --bg-card: rgba(255, 255, 255, 0.9);

    --text-primary: #0F172A;
    --text-secondary: #1E293B;
    --text-muted: #64748B;

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* ===== UTILITY CLASSES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes gradientBorder {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== CUSTOM CURSOR ===== */
.cursor,
.cursor-follower {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .cursor {
        display: block;
        position: fixed;
        width: 8px;
        height: 8px;
        background: var(--primary);
        border-radius: 50%;
        pointer-events: none;
        z-index: var(--z-tooltip);
        transform: translate(-50%, -50%);
        transition: transform 0.1s ease;
    }

    .cursor-follower {
        display: block;
        position: fixed;
        width: 32px;
        height: 32px;
        border: 2px solid var(--primary);
        border-radius: 50%;
        pointer-events: none;
        z-index: var(--z-tooltip);
        transform: translate(-50%, -50%);
        transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease;
        opacity: 0.5;
    }

    .cursor.hover {
        transform: translate(-50%, -50%) scale(3);
        background: var(--primary-light);
    }

    .cursor-follower.hover {
        width: 50px;
        height: 50px;
        opacity: 0.3;
    }
}

/* ===== LOADER ===== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loader);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader__content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader__spinner {
    width: 80px;
    height: 80px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader__text {
    position: absolute;
    font-size: var(--text-xl);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-2xl);
    background: transparent;
    z-index: var(--z-fixed);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--glass-border);
}

.nav__logo a {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-primary);
}

.nav__logo span {
    color: var(--primary);
}

.nav__menu {
    display: flex;
    gap: var(--space-xl);
}

.nav__link {
    font-weight: 500;
    color: var(--text-muted);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary);
}

.nav__link.active {
    background: rgba(139, 92, 246, 0.1);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.theme-toggle {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: var(--text-lg);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.theme-toggle i {
    position: absolute;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.theme-toggle .fa-sun {
    transform: translateY(30px);
    opacity: 0;
}

.light-mode .theme-toggle .fa-moon {
    transform: translateY(-30px);
    opacity: 0;
}

.light-mode .theme-toggle .fa-sun {
    transform: translateY(0);
    opacity: 1;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.nav__toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero__gradient {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    background: var(--primary);
    top: -200px;
    right: -100px;
    animation: pulse 8s ease-in-out infinite;
}

.hero__gradient::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--secondary);
    bottom: -300px;
    left: -100px;
    filter: blur(80px);
    opacity: 0.4;
}

.hero__grid {
    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: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--text-muted);
    width: fit-content;
    animation-delay: 0.1s;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero__title {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    animation-delay: 0.2s;
}

.hero__greeting {
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--text-muted);
}

.hero__name {
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1.1;
}

.hero__typed-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    color: var(--text-muted);
    animation-delay: 0.3s;
}

.hero__typed-prefix {
    color: var(--primary);
}

.hero__typed {
    color: var(--secondary);
}

.hero__cursor {
    color: var(--primary);
    animation: blink 1s step-end infinite;
}

.hero__description {
    font-size: var(--text-lg);
    color: var(--text-muted);
    max-width: 500px;
    animation-delay: 0.4s;
}

.hero__cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    animation-delay: 0.5s;
}

.hero__social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    animation-delay: 0.6s;
}

.hero__social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: var(--text-lg);
    transition: all var(--transition-base);
}

.hero__social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Hero Image */
.hero__image {
    position: relative;
    display: flex;
    justify-content: center;
    animation-delay: 0.3s;
}

.hero__image-wrapper {
    position: relative;
    width: 400px;
    height: 450px;
}

.hero__image-bg {
    position: absolute;
    inset: -10px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    opacity: 0.2;
    filter: blur(30px);
    animation: pulse 4s ease-in-out infinite;
}

.hero__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    position: relative;
    z-index: 1;
}

.hero__image-ring {
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-xl);
    padding: 4px;
    background: var(--gradient-primary);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    background-size: 200% 200%;
    animation: gradientBorder 3s ease infinite;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    font-size: var(--text-2xl);
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

.floating-card--1 {
    top: 10%;
    left: -20px;
    color: #61DAFB;
    animation-delay: 0s;
}

.floating-card--2 {
    bottom: 20%;
    left: -40px;
    color: #ED8B00;
    animation-delay: 0.5s;
}

.floating-card--3 {
    top: 30%;
    right: -30px;
    color: #F7DF1E;
    animation-delay: 1s;
}

/* Hero Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.hero__scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--primary);
    animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        top: -40px;
    }

    100% {
        top: 40px;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

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

.btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

.btn--full {
    width: 100%;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section__tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-lg);
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.section__title {
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.section__subtitle {
    font-size: var(--text-lg);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.about__card {
    padding: var(--space-2xl);
}

.about__intro h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-lg);
    color: var(--primary);
}

.about__intro p {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--glass-border);
}

.about__stat {
    text-align: center;
}

.about__stat-number {
    font-size: var(--text-3xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.about__stat-number::after {
    content: '+';
    -webkit-text-fill-color: var(--primary);
}

.about__stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Timeline */
.about__timeline-title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--text-xl);
    margin-bottom: var(--space-xl);
}

.about__timeline-title i {
    color: var(--primary);
}

.timeline {
    position: relative;
    padding-left: var(--space-xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), transparent);
}

.timeline__item {
    position: relative;
    margin-bottom: var(--space-xl);
}

.timeline__dot {
    position: absolute;
    left: calc(-1 * var(--space-xl) + 1px);
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 3px solid var(--primary);
    border-radius: 50%;
}

.timeline__content {
    padding: var(--space-lg);
}

.timeline__date {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.timeline__content h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
}

.timeline__company {
    color: var(--secondary);
    font-weight: 600;
    font-size: var(--text-sm);
}

.timeline__content p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-top: var(--space-sm);
}

/* ===== SKILLS SECTION ===== */
.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.skill-card {
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.skill-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-lg);
    font-size: var(--text-3xl);
    color: var(--primary);
    transition: all var(--transition-base);
}

.skill-card:hover .skill-card__icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

.skill-card__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
}

.skill-card__bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.skill-card__progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1s ease;
}

.skill-card__level {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Skill icon colors */
.skill-card[data-skill="html"] .skill-card__icon {
    color: #E34F26;
}

.skill-card[data-skill="css"] .skill-card__icon {
    color: #1572B6;
}

.skill-card[data-skill="js"] .skill-card__icon {
    color: #F7DF1E;
}

.skill-card[data-skill="react"] .skill-card__icon {
    color: #61DAFB;
}

.skill-card[data-skill="java"] .skill-card__icon {
    color: #ED8B00;
}

.skill-card[data-skill="mysql"] .skill-card__icon {
    color: #4479A1;
}

.skill-card[data-skill="git"] .skill-card__icon {
    color: #F05032;
}

.skill-card[data-skill="nodejs"] .skill-card__icon {
    color: #339933;
}

.skill-card[data-skill="c++"] .skill-card__icon {
    color: #00599C;
}

.skill-card[data-skill="python"] .skill-card__icon {
    color: #3776AB;
}

.skill-card[data-skill="typescript"] .skill-card__icon {
    color: #3178C6;
}

.skill-card[data-skill="docker"] .skill-card__icon {
    color: #2496ED;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio__filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-xl);
}

/* Project Card */
.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.project-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-card__image img {
    transform: scale(1.1);
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-card__overlay {
    opacity: 1;
}

.project-card__actions {
    display: flex;
    gap: var(--space-md);
}

.project-card__btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--text-lg);
    transition: all var(--transition-fast);
    transform: translateY(20px);
}

.project-card:hover .project-card__btn {
    transform: translateY(0);
}

.project-card__btn:hover {
    background: var(--primary-light);
    transform: translateY(0) scale(1.1);
}

.project-card__content {
    padding: var(--space-lg);
}

.project-card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.project-card__description {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.tag {
    padding: var(--space-xs) var(--space-md);
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
}

/* Hidden projects for filter */
.project-card.hidden {
    display: none;
}

/* ===== CONTACT SECTION ===== */
.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact__card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
}

.contact__card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-lg);
    font-size: var(--text-xl);
    color: var(--primary);
    flex-shrink: 0;
}

.contact__card-content h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-xs);
}

.contact__card-content p,
.contact__card-content a {
    color: var(--text-muted);
    font-size: var(--text-sm);
    word-break: break-all;
}

.contact__card-content a:hover {
    color: var(--primary);
}

.contact__social h4 {
    margin-bottom: var(--space-md);
    font-size: var(--text-base);
}

.contact__social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: var(--text-lg);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Contact Form */
.contact__form {
    padding: var(--space-2xl);
}

.form-group {
    position: relative;
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    padding-left: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-base);
    font-family: inherit;
    transition: all var(--transition-fast);
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group__icon {
    position: absolute;
    left: var(--space-lg);
    top: 50%;
    color: var(--text-muted);
    pointer-events: none;
}

.form-group:has(textarea) .form-group__icon {
    top: 48px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--glass-border);
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--glass-border);
}

.footer__logo a {
    font-size: var(--text-2xl);
    font-weight: 800;
    display: block;
    margin-bottom: var(--space-sm);
}

.footer__logo span {
    color: var(--primary);
}

.footer__logo p {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.footer__links {
    display: flex;
    gap: var(--space-xl);
}

.footer__links a {
    color: var(--text-muted);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--primary);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.footer__bottom i {
    color: var(--accent);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--text-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__content {
        align-items: center;
    }

    .hero__image {
        order: -1;
    }

    .hero__image-wrapper {
        width: 300px;
        height: 350px;
    }

    .floating-card {
        display: none;
    }

    .about__content {
        grid-template-columns: 1fr;
    }

    .contact__wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav__menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding-top: 100px;
    }

    .hero__image-wrapper {
        width: 250px;
        height: 300px;
    }

    .hero__cta {
        flex-direction: column;
        width: 100%;
    }

    .hero__cta .btn {
        width: 100%;
    }

    .portfolio__grid {
        grid-template-columns: 1fr;
    }

    .skills__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__stats {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer__content {
        flex-direction: column;
        gap: var(--space-xl);
        text-align: center;
    }

    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .hero__name {
        font-size: var(--text-3xl);
    }

    .section__title {
        font-size: var(--text-2xl);
    }

    .skills__grid {
        grid-template-columns: 1fr;
    }

    .portfolio__filters {
        gap: var(--space-sm);
    }

    .filter-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-xs);
    }
}