@charset "utf-8";

/* =========================================================
   PROFILE CSS TEMPLATE ENGINE - REUSABLE STYLES
   =========================================================
   Instructions:
   1. Edit only the THEME VARIABLES section below
   2. All colors and styles will update automatically
   3. Copy this file for each new profile/theme
   ========================================================= */

/* =========================================================
   THEME CONFIGURATION - ✏️ EDIT THIS SECTION ONLY
   ========================================================= */
:root {
    /* -------- PRIMARY THEME COLORS -------- */
    --theme-primary: #D4AF37;        /* Main brand color (Gold) */
    --theme-primary-dark: #B5952F;    /* Darker variant */
    --theme-primary-rgb: 212, 175, 55; /* RGB values for rgba() */
    
    /* -------- BACKGROUND THEME -------- */
    --bg-start: #000000;              /* Background gradient start */
    --bg-mid-1: #0a0a0a;              /* Gradient mid point 1 */
    --bg-mid-2: #111111;              /* Gradient mid point 2 */
    --bg-end: #000000;                 /* Background gradient end */
    
    /* -------- GLASS EFFECT -------- */
    --glass-bg: rgba(20, 20, 20, 0.8); /* Glass background */
    --glass-border: rgba(212, 175, 55, 0.2); /* Border with theme */
    
    /* -------- TEXT COLORS -------- */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    
    /* -------- COMPUTED VALUES (Auto-update) -------- */
    --accent-glow: rgba(var(--theme-primary-rgb), 0.3);
    --theme-gradient: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark));
}

/* =========================================================
   ALTERNATIVE THEMES - Just copy and rename
   ========================================================= */

/* Blue Theme Example */
.blue-theme {
    --theme-primary: #76a9fa;
    --theme-primary-dark: #4a7ac7;
    --theme-primary-rgb: 118, 169, 250;
    --bg-start: #0a1520;
    --bg-mid-1: #0f1a25;
    --bg-mid-2: #15202b;
    --bg-end: #0a1520;
    --glass-border: rgba(118, 169, 250, 0.2);
}

/* Green Theme Example */
.green-theme {
    --theme-primary: #2ecc71;
    --theme-primary-dark: #27ae60;
    --theme-primary-rgb: 46, 204, 113;
    --bg-start: #0a1f0a;
    --bg-mid-1: #0f2a0f;
    --bg-mid-2: #153515;
    --bg-end: #0a1f0a;
    --glass-border: rgba(46, 204, 113, 0.2);
}

/* Purple Theme Example */
.purple-theme {
    --theme-primary: #9b59b6;
    --theme-primary-dark: #8e44ad;
    --theme-primary-rgb: 155, 89, 182;
    --bg-start: #1a0f1f;
    --bg-mid-1: #25152a;
    --bg-mid-2: #301b35;
    --bg-end: #1a0f1f;
    --glass-border: rgba(155, 89, 182, 0.2);
}

/* =========================================================
   GLOBAL RESETS & BASE STYLES (DON'T EDIT BELOW)
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, 
        var(--bg-start) 0%, 
        var(--bg-mid-1) 25%, 
        var(--bg-mid-2) 50%, 
        var(--bg-mid-1) 75%, 
        var(--bg-end) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
    width: 100%;
    position: relative;
    overscroll-behavior-y: auto;
}

/* =========================================================
   UTILITY CLASSES
   ========================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.spacer { height: 12px; }

.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   NAVIGATION
   ========================================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--theme-primary);
}

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

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--theme-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--accent-glow);
    font-size: 1.2rem;
    color: #000;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    border: 2px solid transparent;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--theme-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--theme-primary);
    border-color: var(--theme-primary);
    transform: translateY(-2px);
    background: rgba(var(--theme-primary-rgb), 0.1);
}

.nav-links a:hover::after { width: 60%; }

.nav-links a.active {
    color: var(--theme-primary);
    background: rgba(var(--theme-primary-rgb), 0.15);
    border-color: var(--theme-primary);
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) { 
    transform: rotate(45deg) translate(6px, 6px); 
}
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { 
    transform: rotate(-45deg) translate(6px, -6px); 
}

.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--theme-primary);
    opacity: 0;
    pointer-events: none;
}

.mobile-nav.active { 
    transform: translateY(0); 
    opacity: 1; 
    pointer-events: auto; 
}

.mobile-nav ul {
    list-style: none;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    display: block;
    border: 2px solid transparent;
}

.mobile-nav a:hover, .mobile-nav a.active {
    color: var(--theme-primary);
    background: rgba(var(--theme-primary-rgb), 0.1);
    border-color: var(--theme-primary);
}

/* =========================================================
   SECTION STYLES
   ========================================================= */
section {
    padding: 5rem 0;
    position: relative;
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -1px;
}

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

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

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 25% 25%, var(--accent-glow) 0%, transparent 50%);
    animation: hero-glow 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes hero-glow {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1.1) rotate(2deg); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -2px;
    animation: slideInUp 1s ease-out;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 1px;
    animation: slideInUp 1s ease-out 0.3s both;
}

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

/* =========================================================
   BACKGROUND ANIMATIONS
   ========================================================= */
.hero-bg-animation {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 25s infinite ease-in-out;
}

.shape-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(var(--theme-primary-rgb), 0.3) 0%, transparent 70%);
    top: -200px; left: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(var(--theme-primary-rgb), 0.3) 0%, transparent 70%);
    top: 50%; right: -150px;
    animation-delay: 7s;
}

.shape-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(var(--theme-primary-rgb), 0.25) 0%, transparent 70%);
    bottom: -100px; left: 20%;
    animation-delay: 14s;
}

.geo-shape {
    position: absolute;
    opacity: 0.1;
    animation: rotate-float 30s infinite linear;
}

.geo-1 {
    width: 300px; height: 300px;
    top: 20%; right: 10%;
    background: linear-gradient(45deg, var(--theme-primary) 0%, transparent 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.geo-2 {
    width: 250px; height: 250px;
    bottom: 20%; left: 5%;
    background: linear-gradient(135deg, var(--theme-primary-dark) 0%, transparent 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(100px, -80px) scale(1.1) rotate(90deg); }
    50% { transform: translate(-60px, 60px) scale(0.9) rotate(180deg); }
    75% { transform: translate(80px, 100px) scale(1.05) rotate(270deg); }
}

@keyframes rotate-float {
    0% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(180deg) translateY(-50px); }
    100% { transform: rotate(360deg) translateY(0); }
}

/* Particles */
.particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--theme-primary);
    border-radius: 50%;
    opacity: 0;
    animation: particle-rise 10s infinite ease-out;
}

@keyframes particle-rise {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-100px) scale(1); }
}

/* Generate particles dynamically */
.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 6s; }
.particle:nth-child(8) { left: 80%; animation-delay: 7s; }
.particle:nth-child(9) { left: 90%; animation-delay: 8s; }
.particle:nth-child(10) { left: 95%; animation-delay: 9s; }

/* =========================================================
   CTA BUTTONS
   ========================================================= */
.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
    animation: slideInUp 1s ease-out 0.6s both;
}

.cta-primary, .cta-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.cta-primary {
    background: var(--theme-gradient);
    color: #000;
    box-shadow: 0 8px 25px var(--accent-glow);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--accent-glow);
}

.cta-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: white;
}

.cta-secondary:hover {
    background: rgba(var(--theme-primary-rgb), 0.12);
    transform: translateY(-3px);
}

/* =========================================================
   STATS SECTION
   ========================================================= */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    min-width: 150px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.about-intro {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.about-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-image: url('assets/images/about-profile.webp');
    background-size: cover;
    background-position: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid var(--glass-border);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-image:hover::before { opacity: 1; }

.about-image::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, 
        transparent 0deg,
        rgba(255,255,255,0.1) 90deg,
        transparent 180deg,
        rgba(255,255,255,0.05) 270deg,
        transparent 360deg);
    animation: spin 4s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

.about-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.08) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

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

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.about-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
}

/* =========================================================
   SKILLS SECTION
   ========================================================= */
.skills-container {
    position: relative;
    margin-top: 3rem;
}

.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.skills-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skills-circle {
    position: relative;
    width: 400px;
    height: 400px;
    animation: rotate-slow 30s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Skill Nodes */
.skill-node {
    position: absolute;
    width: 100px;
    height: 100px;
    background: #000;
    border: 2px solid var(--theme-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--accent-glow);
    transition: all 0.3s ease;
    animation: counter-rotate 30s linear infinite;
    cursor: pointer;
}

.skill-node:hover {
    transform: scale(1.2);
    background: var(--theme-primary);
    box-shadow: 0 0 30px var(--accent-glow);
    border-color: #fff;
}

.skill-node i, .skill-node .skill-icon {
    font-size: 2.2rem;
    color: var(--theme-primary);
    margin-bottom: 5px;
    transition: 0.3s;
}

.skill-node .skill-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.skill-node:hover i, .skill-node:hover .skill-name {
    color: #000;
}

@keyframes counter-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Skill Node Positions */
.skill-node:nth-child(1) { 
    top: 0; left: 50%; 
    transform: translateX(-50%) translateY(-50%); 
}
.skill-node:nth-child(2) { 
    top: 25%; right: 0; 
    transform: translateX(50%) translateY(-50%); 
}
.skill-node:nth-child(3) { 
    top: 75%; right: 0; 
    transform: translateX(50%) translateY(-50%); 
}
.skill-node:nth-child(4) { 
    bottom: 0; left: 50%; 
    transform: translateX(-50%) translateY(50%); 
}
.skill-node:nth-child(5) { 
    top: 75%; left: 0; 
    transform: translateX(-50%) translateY(-50%); 
}
.skill-node:nth-child(6) { 
    top: 25%; left: 0; 
    transform: translateX(-50%) translateY(-50%); 
}

.skills-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 150px; height: 150px;
    background: var(--theme-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #000;
    box-shadow: 0 0 50px var(--accent-glow);
    z-index: 10;
}

/* Skills List */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--theme-primary);
}

.skill-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(var(--theme-primary-rgb), 0.1);
}

.skill-item h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.skill-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.skill-progress {
    margin-top: 1rem;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-primary-dark));
    border-radius: 3px;
    transition: width 1s ease;
}

/* =========================================================
   TIMELINE SECTION
   ========================================================= */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--theme-primary) 10%, 
        var(--theme-primary) 90%, 
        transparent 100%);
    transform: translateX(-50%);
    z-index: -1;
}

.timeline-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--theme-primary-dark), var(--theme-primary));
    transform: translateX(-50%);
    transition: height 0.3s ease;
    z-index: 0;
    box-shadow: 0 0 20px var(--accent-glow);
}

.timeline-item {
    position: relative;
    margin: 4rem 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: calc(50% + 3rem);
}

.timeline-item:nth-child(even) {
    text-align: left;
    padding-left: calc(50% + 3rem);
}

.timeline-node {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60px; height: 60px;
    background: var(--theme-gradient);
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
    z-index: 3;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--accent-glow);
}

.timeline-node:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 40px var(--accent-glow);
}

.timeline-node.active {
    transform: translate(-50%, -50%) scale(1.3);
    animation: pulse-node 2s infinite;
}

@keyframes pulse-node {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 40px var(--accent-glow), 0 0 60px var(--accent-glow); }
}

.timeline-content {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: rgba(var(--theme-primary-rgb), 0.1);
}

.timeline-year {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--theme-gradient);
    color: #000;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--theme-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.timeline-skill {
    padding: 0.3rem 0.8rem;
    background: rgba(var(--theme-primary-rgb), 0.2);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.3);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--theme-primary);
    transition: all 0.3s ease;
}

.timeline-skill:hover {
    background: rgba(var(--theme-primary-rgb), 0.3);
    transform: translateY(-2px);
}

/* Timeline Controls */
.timeline-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.timeline-filter {
    padding: 0.8rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
}

.timeline-filter:hover,
.timeline-filter.active {
    background: rgba(var(--theme-primary-rgb), 0.2);
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    transform: translateY(-2px);
}

/* =========================================================
   PORTFOLIO SECTION
   ========================================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.portfolio-image {
    height: 250px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    z-index: 1; /*update*/
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
}

.portfolio-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0) 0%, 
        rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.portfolio-card:hover .portfolio-image::after {
    opacity: 1;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255,255,255,0.3) 50%, 
        transparent 70%);
    transition: left 0.6s ease;
    z-index: 1;
}

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

.portfolio-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-content h3 {
    color: var(--theme-primary) !important;
    font-weight: 700;
    margin-bottom: 1rem;
}

.portfolio-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

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

.tag {
    padding: 0.3rem 0.8rem;
    background: rgba(var(--theme-primary-rgb), 0.2);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.3);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--theme-primary);
}

/* =========================================================
   CONTACT SECTION
   ========================================================= */
.contact-grid-expansive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
    margin-top: 2rem;
}

.contact-main-content {
    padding: 3rem;
    border-radius: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-main-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-main-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details h4 {
    color: var(--theme-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.availability-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 1.5rem 0;
}

.tag-item {
    padding: 0.6rem 1.2rem;
    background: rgba(var(--theme-primary-rgb), 0.1);
    border: 1px solid var(--theme-primary) !important;
    color: var(--theme-primary) !important;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin: 5px;
    transition: 0.3s;
}

.tag-item:hover {
    background: rgba(var(--theme-primary-rgb), 0.25);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
}

.location-text {
    padding-left: 1rem;
    color: var(--text-secondary);
}

/* Contact Visual Links */
.contact-visual-links {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

.orb-container {
    width: 250px;
    height: 250px;
    margin: 0 auto;
}

.static-orb {
    width: 200px;
    height: 200px;
    position: relative;
    margin: 0 auto;
}

.orb-ring {
    position: absolute;
    inset: 0;
    border: 2px solid var(--theme-primary);
    border-radius: 50%;
    opacity: 0.4;
}

.orb-ring:nth-child(1) { transform: rotateX(45deg) rotateY(45deg); }
.orb-ring:nth-child(2) { transform: rotateX(-45deg) rotateY(45deg); }
.orb-ring:nth-child(3) { transform: rotateY(90deg); }

.orb-glow {
    position: absolute;
    inset: 20%;
    background: radial-gradient(circle, var(--theme-primary) 0%, transparent 70%);
    filter: blur(20px);
    opacity: 0.3;
}

.orb-core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 0 0 20px var(--theme-primary);
}

.contact-links-uniform {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    padding: 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-5px);
    background: rgba(var(--theme-primary-rgb), 0.1);
    border-color: var(--theme-primary);
}

.resume-btn {
    background: var(--theme-gradient);
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* Email Tooltip */
.email-hover {
    position: relative;
}

.email-hover::after {
    content: attr(data-email);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: var(--theme-primary);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    z-index: 9999;
}

.email-hover:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
    background: linear-gradient(135deg, 
        rgba(15, 25, 35, 0.95) 0%, 
        rgba(10, 15, 25, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.footer-credits {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-credit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-credit-link:hover {
    transform: translateY(-2px);
    background: rgba(var(--theme-primary-rgb), 0.15);
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    box-shadow: 0 6px 25px var(--accent-glow);
}

.footer-credit-link.tooplate {
    background: var(--theme-gradient);
    border-color: transparent;
    color: #000;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.footer-credit-link.tooplate::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.2) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.footer-credit-link.tooplate:hover::before {
    left: 100%;
}

.footer-credit-link.tooplate:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.footer-credit-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.footer-credit-link:hover .footer-credit-icon {
    transform: scale(1.2) rotate(5deg);
}

.footer-divider {
    width: 2px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.nav-links a:focus,
.cta-primary:focus,
.cta-secondary:focus,
.form-input:focus,
.form-textarea:focus,
.submit-btn:focus {
    outline: 2px solid var(--theme-primary);
    outline-offset: 2px;
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */

/* Tablet Styles */
@media (max-width: 1024px) {
    .skills-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .skills-visual {
        height: 400px;
        margin: 0 auto;
    }
    
    .skills-circle {
        width: 350px;
        height: 350px;
    }
    
    .contact-grid-expansive {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-credits {
        justify-content: center;
    }
    
    .about-intro {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    /* Hero Section */
    .hero {
        padding-top: 120px;
        padding-bottom: 3rem;
        min-height: auto;
        overflow: hidden;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-bg-animation {
        overflow: hidden;
    }
    
    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 2rem;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    /* Stats */
    .stats-section {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .stat-card {
        width: 100%;
        max-width: 300px;
        min-width: 100% !important;
    }
    
    /* About */
    .about-cards {
        grid-template-columns: 1fr;
    }
    
    .about-text,
    .about-card,
    .skill-item {
        min-width: 100% !important;
        width: 100% !important;
        margin-bottom: 1rem;
    }
    
    /* Skills */
    .skills-circle {
        width: 280px;
        height: 280px;
    }
    
    .skill-node {
        width: 80px;
        height: 80px;
    }
    
    .skill-node i,
    .skill-node .skill-icon {
        font-size: 1.5rem;
    }
    
    .skill-node .skill-name {
        font-size: 0.7rem;
    }
    
    .skills-center {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }
    
    /* Timeline */
    .timeline-line,
    .timeline-progress {
        left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 3.5rem !important;
        padding-right: 0 !important;
        text-align: left !important;
        width: 100%;
    }
    
    .timeline-node {
        left: 1.5rem !important;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-content::before {
        left: -18px !important;
        right: auto !important;
    }
    
    .timeline-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-filter {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    /* Contact */
    .contact-main-content {
        padding: 2rem;
    }
    
    .static-orb-container {
        height: 150px;
    }
    
    .contact-links-improved {
        align-items: center;
    }
    
    /* Footer */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .footer-credits {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-divider {
        display: none;
    }
    
    /* Container */
    .container {
        padding: 0 1.5rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .portfolio-grid {
        gap: 1.5rem;
    }
    
    .contact-main-content,
    .contact-form-container {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .about-image {
        width: 200px;
        height: 200px;
    }
    
    .skills-circle {
        width: 240px;
        height: 240px;
    }
    
    .skill-node {
        width: 70px;
        height: 70px;
    }
}

/* =========================================================
   UTILITY CLASSES FOR BLUR CARDS
   ========================================================= */
.blur-card {
    position: relative;
    overflow: hidden;
}

.blur-card .blur-content {
    filter: blur(18px);
    opacity: 0.2;
    pointer-events: none;
}

.blur-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 4;
}

.blur-card::after {
    content: "Coming Soon";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* =========================================================
   MOBILE BACKGROUND FIX
   ========================================================= */
@media (max-width: 768px) {
    body {
        background-attachment: scroll !important;
        height: auto;
    }
}