/* ============================================
   VARIABLES & RESET - AZUL E GOLD
   ============================================ */
:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --gold-color: #d4af37;
    --gold-dark: #b8941f;
    --gold-light: #f4d03f;
    --accent-color: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.3);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.5);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--gold-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(30, 64, 175, 0.3)); }
    50% { filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5)); }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-color));
    border-radius: 2px;
    animation: lineExpand 1s ease-out;
}

@keyframes lineExpand {
    from { width: 0; }
    to { width: 80px; }
}

/* ============================================
   PARTICLES BACKGROUND
   ============================================ */
.particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3), transparent);
    animation: floatParticle 20s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   SKELETON LOADING / PRELOAD
   ============================================ */
#app.loading {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    position: relative;
    overflow: hidden;
}

#app.loading::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

.skeleton-loader {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.skeleton-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.skeleton-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border: 3px solid rgba(212, 175, 55, 0.3);
}

.skeleton-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-line {
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.long { width: 100%; }

.skeleton-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* ============================================
   NAVIGATION - GLASSMORPHISM
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--gold-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--gold-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    transition: var(--transition-base);
}

.nav-logo a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-color));
    transition: var(--transition-base);
}

.nav-logo a:hover::after {
    width: 100%;
}

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

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-base);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(212, 175, 55, 0.1));
    border-radius: 4px;
    opacity: 0;
    transition: var(--transition-base);
    z-index: -1;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-color));
    transition: var(--transition-base);
}

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

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION - ENHANCED
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    animation: pulseBackground 8s ease-in-out infinite;
}

@keyframes pulseBackground {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    animation: fadeInUp 1s ease-out;
}

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

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-color), var(--gold-light));
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
    filter: blur(20px);
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 2px solid var(--gold-color);
    opacity: 0.2;
    animation: rotate 10s linear infinite;
}

.hero-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--gold-color);
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.5),
        0 0 60px rgba(212, 175, 55, 0.3),
        var(--shadow-xl);
    animation: float 6s ease-in-out infinite, imageGlow 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

.hero-image:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 
        0 0 50px rgba(212, 175, 55, 0.8),
        0 0 100px rgba(212, 175, 55, 0.5),
        var(--shadow-xl);
}

@keyframes imageGlow {
    0%, 100% { 
        box-shadow: 
            0 0 30px rgba(212, 175, 55, 0.5),
            0 0 60px rgba(212, 175, 55, 0.3),
            var(--shadow-xl);
    }
    50% { 
        box-shadow: 
            0 0 40px rgba(212, 175, 55, 0.7),
            0 0 80px rgba(212, 175, 55, 0.5),
            var(--shadow-xl);
    }
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: white;
}

.hero-name {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--gold-color) 50%, #ffffff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite, fadeInUp 1s ease-out 0.2s both;
    font-weight: 800;
    letter-spacing: -1px;
}

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

.hero-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.4s both;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-color), var(--gold-light));
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-color));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--gold-color);
    position: relative;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold-color);
    transition: left 0.3s;
    z-index: -1;
}

.btn-secondary:hover::after {
    left: 0;
}

.btn-secondary:hover {
    color: var(--bg-dark);
    transform: translateY(-3px) scale(1.05);
    border-color: var(--gold-light);
}

.hero-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    animation: fadeInUp 1s ease-out 1s both;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--gold-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gold-color);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link svg {
    position: relative;
    z-index: 1;
    transition: var(--transition-base);
}

.social-link:hover {
    color: var(--bg-dark);
    transform: translateY(-5px) scale(1.15) rotate(5deg);
    box-shadow: var(--shadow-gold);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-indicator a {
    color: var(--gold-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.scroll-indicator svg {
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

/* ============================================
   ABOUT SECTION - GLASSMORPHISM CARDS
   ============================================ */
.about-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: justify;
}

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

.highlight-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-radius: 1rem;
    border-left: 4px solid var(--gold-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s;
}

.highlight-item:hover::before {
    left: 100%;
}

.highlight-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05), rgba(212, 175, 55, 0.05));
    opacity: 0;
    transition: var(--transition-base);
}

.highlight-item:hover::after {
    opacity: 1;
}

.highlight-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-left-color: var(--primary-color);
    border-left-width: 6px;
}

.highlight-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.highlight-item h3::after {
    content: '✨';
    margin-left: 0.5rem;
    color: var(--gold-color);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.7; }
}

/* ============================================
   EXPERIENCE SECTION - ENHANCED TIMELINE
   ============================================ */
.experience-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #ffffff 100%);
    position: relative;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--gold-color), var(--primary-color));
    transform: translateX(-50%);
    animation: timelineGrow 1s ease-out;
}

@keyframes timelineGrow {
    from { height: 0; }
    to { height: 100%; }
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-50px);
    transition: var(--transition-smooth);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) {
    transform: translateX(50px);
}

.timeline-item:nth-child(even).visible {
    transform: translateX(0);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--gold-color));
    border: 4px solid var(--bg-secondary);
    border-radius: 50%;
    z-index: 1;
    box-shadow: var(--shadow-gold);
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    50% { 
        transform: translateX(-50%) scale(1.1);
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border-top: 3px solid var(--gold-color);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s;
}

.timeline-content:hover::before {
    left: 100%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-top-color: var(--primary-color);
    border-top-width: 4px;
}

.timeline-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.timeline-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.timeline-company {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.timeline-period {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--gold-color));
    color: white;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: var(--shadow-md); }
    50% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.5); }
}

.timeline-location {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.timeline-description {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(212, 175, 55, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s;
}

.tech-tag:hover::before {
    left: 100%;
}

.tech-tag:hover {
    transform: translateY(-2px);
    border-color: var(--gold-color);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   SKILLS SECTION - ANIMATED BARS
   ============================================ */
.skills-section {
    background: var(--bg-primary);
    position: relative;
}

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

.skill-category {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    transition: var(--transition-smooth);
    border-top: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.03), rgba(212, 175, 55, 0.03));
    opacity: 0;
    transition: var(--transition-base);
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-category:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-top-color: var(--gold-color);
    border-top-width: 4px;
}

.category-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gold-color);
    animation: titleUnderline 1s ease-out;
}

@keyframes titleUnderline {
    from { width: 0; }
    to { width: 50px; }
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: var(--transition-smooth);
}

.skill-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
}

.skill-percentage {
    font-size: 0.875rem;
    color: var(--gold-color);
    font-weight: 700;
    animation: countUp 1s ease-out;
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.skill-bar {
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-color), var(--primary-color));
    background-size: 200% 100%;
    border-radius: 6px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideIn 1.5s ease-out, gradientMove 3s ease infinite;
    box-shadow: 0 2px 10px rgba(30, 64, 175, 0.3);
    position: relative;
    z-index: 1;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   PROJECTS SECTION - 3D CARDS
   ============================================ */
.projects-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #ffffff 100%);
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.project-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 3px solid var(--gold-color);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s;
}

.project-card:hover::before {
    left: 100%;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.03), rgba(212, 175, 55, 0.03));
    opacity: 0;
    transition: var(--transition-base);
}

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

.project-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 
        var(--shadow-xl),
        0 20px 40px rgba(30, 64, 175, 0.2),
        0 0 30px rgba(212, 175, 55, 0.2);
    border-top-color: var(--primary-color);
    border-top-width: 4px;
}

.project-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    transition: var(--transition-base);
}

.project-card:hover .project-header h3 {
    color: var(--gold-color);
    transform: translateX(5px);
}

.project-description {
    flex: 1;
    line-height: 1.7;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

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

.tech-badge {
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(212, 175, 55, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.tech-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    transition: left 0.5s;
}

.tech-badge:hover::before {
    left: 100%;
}

.tech-badge:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: var(--gold-color);
    box-shadow: var(--shadow-sm);
}

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

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(212, 175, 55, 0.1));
    border-radius: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--gold-color));
    transition: left 0.3s;
    z-index: -1;
}

.project-link:hover::before {
    left: 0;
}

.project-link:hover {
    color: white;
    transform: translateX(8px) scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ============================================
   CONTACT SECTION - INTERACTIVE CARDS
   ============================================ */
.contact-section {
    background: var(--bg-primary);
    position: relative;
}

.contact-intro {
    text-align: center;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent);
    opacity: 0;
    transition: var(--transition-base);
}

.contact-card:hover::before {
    opacity: 1;
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.contact-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05), rgba(212, 175, 55, 0.05));
    opacity: 0;
    transition: var(--transition-base);
}

.contact-card:hover::after {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 
        var(--shadow-xl),
        0 20px 40px rgba(30, 64, 175, 0.2),
        0 0 30px rgba(212, 175, 55, 0.3);
    border-color: var(--gold-color);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--gold-color));
    color: white;
    border-radius: 50%;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-gold);
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.contact-card:hover .contact-icon::before {
    width: 100%;
    height: 100%;
}

.contact-card:hover .contact-icon {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.6),
        0 0 60px rgba(212, 175, 55, 0.4);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    transition: var(--transition-base);
}

.contact-card:hover h3 {
    color: var(--gold-color);
    transform: scale(1.1);
}

.contact-card p {
    color: var(--text-secondary);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ============================================
   FOOTER - ENHANCED
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e3a8a 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.1), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: white;
    transition: var(--transition-smooth);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.footer-social a:hover {
    color: var(--gold-color);
    transform: translateY(-5px) scale(1.2) rotate(10deg);
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* ============================================
   ANIMATIONS - ENHANCED
   ============================================ */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-delay-1 {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.fade-in-delay-3 {
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.fade-in-delay-4 {
    animation: fadeIn 0.8s ease-out 0.8s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .hero-image {
        width: 250px;
        height: 250px;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 3rem;
    }

    .timeline-marker {
        left: 20px;
    }

    .timeline-content {
        width: 100%;
        margin: 0 !important;
    }
}

@media (max-width: 640px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 2rem; }
    .section-title { font-size: 2rem; }

    .hero-name {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section {
        padding: 3rem 0;
    }
}
