/* ===========================
   CSS Variables & Reset
=========================== */
:root {
    --bg-primary: #050510;
    --bg-secondary: #0a0a1f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent: #6c63ff;
    --accent-2: #ff6584;
    --accent-3: #43e97b;
    --gradient: linear-gradient(135deg, #ce9e01, #ce9e01);
    --gradient-2: linear-gradient(135deg, #43e97b, #38f9d7);
    --text-primary: #f0f0ff;
    --text-secondary: #a0a0c0;
    --text-muted: #606080;
    --nav-height: 80px;
    --border-radius: 16px;
    --shadow: 0 20px 60px rgba(108, 99, 255, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===========================
   Custom Cursor
=========================== */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    mix-blend-mode: screen;
}

.cursor-follower {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(108, 99, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .cursor, .cursor-follower { display: none; }
}

/* ===========================
   Loader
=========================== */
.loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    animation: pulse 1s ease infinite;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    animation: loadBar 1.5s ease forwards;
}

@keyframes loadBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ===========================
   Particles Canvas
=========================== */
#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===========================
   Navigation
=========================== */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--nav-height);
    transition: var(--transition);
    padding: 0 2rem;
}

.navbar.scrolled {
    background: rgba(5, 5, 16, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(108, 99, 255, 0.1);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    text-decoration: none;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-text .accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 60%;
}

.btn-cv {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-cv:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

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

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

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

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

/* ===========================
   Common / Utility
=========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background: rgba(108, 99, 255, 0.03);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(108, 99, 255, 0.15);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 2rem;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 2rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--glass);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===========================
   Hero Section
=========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 101, 132, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(67, 233, 123, 0.1);
    border: 1px solid rgba(67, 233, 123, 0.25);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-3);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-3);
    border-radius: 50%;
    animation: blink 1.5s ease infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s 0.1s ease both;
}

.hero-roles {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s 0.2s ease both;
}

.role-prefix {
    color: var(--text-secondary);
}

.typed-text {
    color: var(--accent);
    font-weight: 600;
}

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

.hero-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 500px;
    animation: fadeInUp 0.6s 0.3s ease both;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s 0.4s ease both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s 0.5s ease both;
}

.hero-socials {
    display: flex;
    gap: 0.75rem;
    animation: fadeInUp 0.6s 0.6s ease both;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 0.8s 0.3s ease both;
}

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

.profile-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow 3s ease infinite alternate;
}

@keyframes glow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
}

.profile-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(108, 99, 255, 0.3);
    animation: rotate 15s linear infinite;
}

.ring-1 {
    width: 330px;
    height: 330px;
}

.ring-2 {
    width: 370px;
    height: 370px;
    border-color: rgba(255, 101, 132, 0.2);
    animation-direction: reverse;
    animation-duration: 20s;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.profile-image-container {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 290px;
    height: 290px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(108, 99, 255, 0.4);
    box-shadow: 0 0 40px rgba(108, 99, 255, 0.3), inset 0 0 20px rgba(108, 99, 255, 0.1);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    filter: contrast(1.05) brightness(1.02);
    transform: scale(1.1);
}

/* Floating Tech Badges */
.tech-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: rgba(10, 10, 31, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    animation: float 3s ease infinite;
    z-index: 5;
}

.tech-badge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.badge-laravel { top: 5%; left: -5%; animation-delay: 0s; }
.badge-react { bottom: 20%; left: -10%; animation-delay: 0.8s; }
.badge-php { top: 20%; right: -10%; animation-delay: 0.4s; }
.badge-figma { bottom: 5%; right: -5%; animation-delay: 1.2s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    animation: fadeIn 1s 1.5s ease both;
}

.scroll-mouse {
    width: 22px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scroll 2s ease infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

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

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===========================
   About Section
=========================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
    align-items: start;
}

.about-image-side {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/5;
    max-width: 380px;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    display: block;
    filter: contrast(1.05);
    transition: transform 0.5s ease;
    transform: scale(1.05);
}

.about-image-wrapper:hover .about-img {
    transform: scale(1.03);
}

.about-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(5,5,16,0.95) 0%, transparent 100%);
}

.experience-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: var(--gradient);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
    display: inline-flex;
}

.exp-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.exp-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    line-height: 1.3;
}

.about-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
    max-width: 380px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: var(--transition);
}

.info-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(108, 99, 255, 0.3);
}

.info-card i {
    color: var(--accent);
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.info-card div {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.info-card strong {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-card span {
    font-size: 0.78rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* About Content */
.about-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-text {
    color: var(--text-secondary);
    font-size: 0.975rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 2rem 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.highlight-item i {
    color: var(--accent-3);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ===========================
   Skills Section
=========================== */
.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.6rem 1.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.tab-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.skill-card {
    padding: 1.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.skill-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skill-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-bar {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-percent {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    align-self: flex-end;
}

/* Skills Tags */
.skills-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem 0;
}

.skill-tag {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.skill-tag:hover {
    background: rgba(108, 99, 255, 0.12);
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ===========================
   Experience / Timeline
=========================== */
.timeline {
    position: relative;
    padding-left: 2.5rem;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 1.5rem;
    width: 20px;
    height: 20px;
    background: var(--gradient);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 12px rgba(108, 99, 255, 0.5);
}

.timeline-content {
    padding: 1.75rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.timeline-content:hover {
    background: var(--bg-card-hover);
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateX(4px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.job-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.company-name {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.job-period {
    font-size: 0.8rem;
    padding: 0.35rem 0.875rem;
    background: rgba(108, 99, 255, 0.12);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 50px;
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
}

.job-duties {
    list-style: none;
    margin-bottom: 1.25rem;
}

.job-duties li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.6;
}

.job-duties li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.job-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.job-tags span {
    padding: 0.3rem 0.7rem;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
}

/* ===========================
   Projects Section
=========================== */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

.project-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.project-card.hidden {
    display: none;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(108, 99, 255, 0.2);
    border-color: rgba(108, 99, 255, 0.3);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.7);
    transition: transform 0.5s ease;
}

.project-card:hover .project-placeholder {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 16, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-category {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
}

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: var(--text-primary);
}

.project-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.project-tech span {
    padding: 0.25rem 0.6rem;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
}

/* ===========================
   Education Section
=========================== */
.education-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.edu-card {
    display: flex;
    gap: 1.75rem;
    padding: 2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.edu-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.edu-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-4px);
}

.edu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--gradient);
    border-radius: 50%;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

.edu-period {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.edu-degree {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.edu-institution {
    display: block;
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.edu-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Languages */
.languages-section {
    text-align: center;
}

.languages-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.languages-grid {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.lang-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1.75rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
    min-width: 130px;
}

.lang-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-4px);
}

.lang-flag {
    font-size: 2rem;
}

.lang-card strong {
    font-weight: 700;
    font-size: 0.975rem;
    color: var(--text-primary);
}

.lang-level {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.lang-level.native { background: rgba(67, 233, 123, 0.15); color: var(--accent-3); border: 1px solid rgba(67, 233, 123, 0.3); }
.lang-level.fluent { background: rgba(108, 99, 255, 0.15); color: var(--accent); border: 1px solid rgba(108, 99, 255, 0.3); }
.lang-level.conversational { background: rgba(255, 101, 132, 0.15); color: var(--accent-2); border: 1px solid rgba(255, 101, 132, 0.3); }

/* ===========================
   Contact Section
=========================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.contact-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateX(4px);
}

.contact-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 50%;
    color: var(--accent);
    font-size: 1.1rem;
}

.contact-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-card-content strong {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.contact-card-content a,
.contact-card-content span {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-card-content a:hover {
    color: var(--accent);
}

.contact-socials {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.contact-social-link:hover {
    background: rgba(108, 99, 255, 0.12);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form-wrapper {
    padding: 2.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(108, 99, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem;
    background: rgba(67, 233, 123, 0.1);
    border: 1px solid rgba(67, 233, 123, 0.3);
    border-radius: 10px;
    color: var(--accent-3);
    font-size: 0.875rem;
    font-weight: 600;
}

.form-success.show {
    display: flex;
}

/* ===========================
   Footer
=========================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 1.25rem 0 1.5rem;
    max-width: 280px;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
}

.footer-links h4,
.footer-services h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.footer-links ul,
.footer-services ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links ul li a::before {
    content: '›';
    color: var(--accent);
    font-size: 1rem;
    line-height: 1;
}

.footer-links ul li a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-services ul li {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-services ul li::before {
    content: '›';
    color: var(--accent);
    font-size: 1rem;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom .heart {
    animation: pulse 1.5s ease infinite;
    display: inline-block;
}

/* ===========================
   Back to Top
=========================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(108, 99, 255, 0.5);
}

/* ===========================
   Responsive Design
=========================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .profile-wrapper {
        width: 320px;
        height: 320px;
    }

    .profile-image-container {
        width: 240px;
        height: 240px;
    }

    .profile-ring.ring-1 { width: 270px; height: 270px; }
    .profile-ring.ring-2 { width: 310px; height: 310px; }

    .badge-laravel { top: 0%; left: 0%; }
    .badge-react { bottom: 10%; left: -5%; }
    .badge-php { top: 10%; right: -5%; }
    .badge-figma { bottom: 0%; right: 0%; }

    .hero-description { margin: 0 auto 2rem; }
    .hero-stats { justify-content: center; }
    .hero-actions { justify-content: center; }
    .hero-socials { justify-content: center; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-wrapper {
        max-width: 350px;
        margin: 0 auto;
    }

    .about-image-side {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-info-cards {
        max-width: 450px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .section {
        padding: 70px 0;
    }

    .nav-links, .btn-cv {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(5, 5, 16, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 0.5rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.open .btn-cv-mobile {
        display: flex;
        margin-top: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .profile-wrapper {
        width: 260px;
        height: 260px;
    }

    .profile-image-container {
        width: 200px;
        height: 200px;
    }

    .profile-ring.ring-1 { width: 220px; height: 220px; }
    .profile-ring.ring-2 { width: 255px; height: 255px; }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .timeline-header {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .languages-grid {
        gap: 0.75rem;
    }

    .lang-card {
        min-width: 100px;
        padding: 1rem;
    }

    .edu-card {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ===========================
   Scroll Reveal
=========================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}
