/* ========================================
   CraftFix - Main Stylesheet
   ======================================== */

/* ---- CSS Variables ---- */
:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #4834d4;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --bg-dark: #0a0a1a;
    --bg-darker: #060612;
    --bg-card: #12122a;
    --bg-card-hover: #1a1a3e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d4;
    --text-muted: #6c6c8a;
    --border-color: #2a2a4a;
    --gradient-1: linear-gradient(135deg, #6c5ce7, #00cec9);
    --gradient-2: linear-gradient(135deg, #fd79a8, #6c5ce7);
    --gradient-3: linear-gradient(135deg, #00cec9, #6c5ce7, #fd79a8);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 5px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(108, 92, 231, 0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-main: 'Poppins', sans-serif;
    --font-code: 'Fira Code', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-darker);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
    cursor: none;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

button {
    cursor: none;
}

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

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

/* ---- Custom Cursor ---- */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    transform: translate(-50%, -50%);
}

.cursor-hover .cursor {
    transform: scale(3);
    background: var(--secondary);
}

.cursor-hover .cursor-follower {
    width: 60px;
    height: 60px;
    border-color: var(--secondary);
    opacity: 0.5;
}

/* ---- Preloader ---- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-inner {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    justify-content: center;
}

.loader-line-wrap {
    width: 4px;
    height: 50px;
    overflow: hidden;
}

.loader-line {
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    border-radius: 2px;
    animation: loader-line 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.loader-line-wrap:nth-child(2) .loader-line { animation-delay: 0.1s; }
.loader-line-wrap:nth-child(3) .loader-line { animation-delay: 0.2s; }
.loader-line-wrap:nth-child(4) .loader-line { animation-delay: 0.3s; }
.loader-line-wrap:nth-child(5) .loader-line { animation-delay: 0.4s; }

@keyframes loader-line {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

.loader-text {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

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

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: var(--transition);
}

.logo-bracket {
    color: var(--secondary);
    font-family: var(--font-code);
    font-weight: 400;
}

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

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

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

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ---- Section Styles ---- */
section {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 10px;
    opacity: 0.7;
}

.section-tag-close {
    display: block;
    text-align: center;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--secondary);
    margin-top: 60px;
    opacity: 0.5;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.section-line::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: section-dot-pulse 2s ease-in-out infinite;
}

@keyframes section-dot-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.4); }
    50% { transform: translate(-50%, -50%) scale(1.2); box-shadow: 0 0 0 10px rgba(108, 92, 231, 0); }
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Hero Section ---- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 20px;
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float-shape 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px; height: 400px;
    background: var(--primary);
    top: -100px; right: -100px;
    animation-delay: 0s !important;
}

.shape-2 {
    width: 300px; height: 300px;
    background: var(--secondary);
    bottom: -50px; left: -50px;
    animation-delay: -5s !important;
}

.shape-3 {
    width: 200px; height: 200px;
    background: var(--accent);
    top: 50%; left: 50%;
    animation-delay: -10s !important;
}

.shape-4 {
    width: 150px; height: 150px;
    background: var(--primary-light);
    top: 20%; left: 10%;
    animation-delay: -15s !important;
    animation-duration: 25s !important;
}

.shape-5 {
    width: 100px; height: 100px;
    background: var(--secondary);
    bottom: 20%; right: 15%;
    animation-delay: -8s !important;
    animation-duration: 18s !important;
}

.shape-6 {
    width: 250px; height: 250px;
    background: var(--primary);
    top: 60%; right: 30%;
    animation-delay: -12s !important;
    animation-duration: 22s !important;
}

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

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

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

@keyframes badge-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    margin-bottom: 20px;
}

.hero-title .line {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title .gradient-text {
    font-size: 5rem;
    font-weight: 900;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease-in-out infinite;
    line-height: 1.1;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    min-height: 40px;
}

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

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

.typed-cursor {
    color: var(--primary);
    animation: blink-cursor 0.7s step-end infinite;
}

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

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.6);
}

.btn-primary::after {
    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::after {
    left: 100%;
}

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

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
    transform: translateY(-3px);
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

/* ---- Hero Stats ---- */
.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* ---- Scroll Indicator ---- */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: float-indicator 2s ease-in-out infinite;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    margin: 0 auto 10px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

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

.hero-scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ---- About Section ---- */
.about-section {
    background: var(--bg-darker);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
}

.about-image {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.about-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.about-image-placeholder i {
    font-size: 5rem;
    color: white;
    animation: code-float 3s ease-in-out infinite;
}

@keyframes code-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.about-image-placeholder span {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: 3px;
}

.about-image-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: var(--radius-lg);
    top: 15px;
    left: 15px;
    z-index: 1;
    transition: var(--transition);
}

.about-image-container:hover .about-image-border {
    top: 10px;
    left: 10px;
}

.about-image-dots {
    position: absolute;
    width: 80px;
    height: 80px;
    bottom: -20px;
    right: -20px;
    z-index: 3;
    background-image: radial-gradient(circle, var(--secondary) 2px, transparent 2px);
    background-size: 12px 12px;
    opacity: 0.5;
}

.about-experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 15px 25px;
    text-align: center;
    z-index: 4;
    box-shadow: var(--shadow-glow);
    animation: badge-float 3s ease-in-out infinite;
}

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

.exp-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.exp-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content .about-text {
    margin-bottom: 30px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.highlight-text {
    font-size: 1.1rem !important;
    color: var(--text-primary) !important;
    line-height: 1.8;
}

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

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.info-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.info-item i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.available-status {
    color: var(--secondary) !important;
}

.about-btn {
    width: fit-content;
}

/* ---- Skills Section ---- */
.skills-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.skill-card-3d {
    perspective: 1000px;
    height: 300px;
}

.skill-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card-3d:hover .skill-card-inner {
    transform: rotateY(180deg);
}

.skill-card-front,
.skill-card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.skill-card-front {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.skill-card-back {
    background: linear-gradient(135deg, var(--skill-color), var(--bg-card));
    transform: rotateY(180deg);
    text-align: center;
    gap: 15px;
}

.skill-card-back h3 {
    font-size: 1.3rem;
}

.skill-card-back p {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.6;
}

.skill-projects-count {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 0.85rem;
}

.skill-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 15px;
}

.skill-icon-wrapper i {
    font-size: 3rem;
    color: var(--skill-color);
    z-index: 2;
    position: relative;
}

.skill-icon-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--skill-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: skill-ring-pulse 2s ease-in-out infinite;
}

@keyframes skill-ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.1; }
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.skill-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--skill-color), var(--primary));
    border-radius: 4px;
    position: relative;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-percentage {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--skill-color);
}

.skill-flip-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card-3d:hover .skill-flip-hint {
    opacity: 1;
}

.sub-section-title {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.tool-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.tool-icon {
    font-size: 2rem;
    transition: var(--transition);
}

.tool-item:hover .tool-icon {
    transform: scale(1.2);
}

.tool-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---- Projects Section ---- */
.projects-section {
    background: var(--bg-darker);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-main);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--project-color), var(--primary));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

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

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: var(--shadow-lg);
}

.project-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(108, 92, 231, 0.1) 0%, transparent 50%);
}

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

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

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.project-placeholder i {
    font-size: 4rem;
    color: white;
    opacity: 0.5;
    transition: var(--transition);
}

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

.project-card:hover .project-placeholder i {
    opacity: 0.8;
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.8);
    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: 15px;
}

.project-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-link {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover .project-link:nth-child(2) {
    transition-delay: 0.1s;
}

.project-link:hover {
    background: var(--secondary);
    transform: translateY(-3px) !important;
}

.project-info {
    padding: 25px;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--primary-light);
}

.project-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-tag {
    padding: 4px 12px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ---- Experience / Timeline ---- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gradient-1);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding: 0 30px 50px 0;
    width: 50%;
    position: relative;
}

.timeline-item.right {
    justify-content: flex-start;
    padding: 0 0 50px 30px;
    margin-left: 50%;
}

.timeline-dot {
    position: absolute;
    right: -22px;
    top: 0;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--transition);
}

.timeline-item.right .timeline-dot {
    left: -22px;
    right: auto;
}

.timeline-dot i {
    color: var(--primary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    background: var(--primary);
    transform: scale(1.2);
    box-shadow: var(--shadow-glow);
}

.timeline-item:hover .timeline-dot i {
    color: white;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    transition: var(--transition);
    width: 100%;
}

.timeline-item:hover .timeline-content {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.timeline-year {
    display: inline-block;
    padding: 4px 14px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.timeline-company {
    font-size: 0.85rem;
    color: var(--secondary);
    display: block;
    margin-bottom: 10px;
}

.timeline-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
}

.timeline-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-tag {
    padding: 3px 10px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* ---- Code Section ---- */
.code-section {
    padding: 80px 0;
}

.code-window {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #1e1e3a;
    border-bottom: 1px solid var(--border-color);
}

.code-dots {
    display: flex;
    gap: 8px;
}

.code-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.code-filename {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.code-body {
    padding: 25px;
    background: #0d0d1f;
    font-family: var(--font-code);
    font-size: 0.85rem;
    line-height: 1.8;
    min-height: 300px;
    overflow-x: auto;
}

.code-body code {
    color: var(--text-secondary);
}

/* ---- Contact Section ---- */
.contact-section {
    background: var(--bg-darker);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: var(--shadow-glow);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-card-content h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.contact-card-content a {
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
}

/* ---- Contact Form ---- */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.input-wrapper textarea {
    resize: vertical;
    min-height: 120px;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.input-wrapper label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
    pointer-events: none;
}

.input-wrapper textarea + label {
    top: 20px;
    transform: none;
}

.input-wrapper input:focus + label,
.input-wrapper input:valid + label,
.input-wrapper textarea:focus + label,
.input-wrapper textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 0.75rem;
    color: var(--primary);
    background: var(--bg-card);
    padding: 0 8px;
}

.input-wrapper label i {
    font-size: 0.85rem;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.5s ease;
}

.input-wrapper input:focus ~ .input-line,
.input-wrapper textarea:focus ~ .input-line {
    width: 100%;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1rem;
}

/* ---- Footer ---- */
.footer {
    position: relative;
    background: var(--bg-card);
    padding-top: 0;
}

.footer-wave {
    color: var(--bg-card);
    margin-top: -1px;
}

.footer-wave svg {
    display: block;
}

.footer-content {
    text-align: center;
    padding: 0 20px 40px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--secondary);
    font-family: var(--font-code);
    font-weight: 400;
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.made-with {
    display: flex;
    align-items: center;
    gap: 5px;
}

.heart-beat {
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    40% { transform: scale(1); }
    60% { transform: scale(1.2); }
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.6);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .skills-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image-wrapper {
        display: flex;
        justify-content: center;
    }

    .about-image-container {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 5px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-color);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title .gradient-text {
        font-size: 3rem;
    }

    .hero-title .line {
        font-size: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 30px;
    }

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

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

    .section-title {
        font-size: 2rem;
    }

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

    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

    .timeline-item {
        width: 100%;
        padding: 0 0 50px 60px;
    }

    .timeline-item.right {
        margin-left: 0;
        padding: 0 0 50px 60px;
    }

    .timeline-dot {
        left: -2px !important;
        right: auto !important;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }

    /* Disable custom cursor on mobile */
    .cursor, .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }

    a, button {
        cursor: pointer;
    }
}

@media (max-width: 480px) {
    .hero-title .gradient-text {
        font-size: 2.5rem;
    }

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

    .contact-form {
        padding: 25px;
    }
}

