/* ============================================
   MD IRFAN HOSSAIN — PORTFOLIO
   Premium 3D Portfolio Design System
   ============================================ */

/* === CSS Custom Properties === */
:root {
    /* Primary Palette */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f1a;
    --bg-tertiary: #141428;
    --bg-card: rgba(15, 15, 30, 0.6);
    --bg-glass: rgba(15, 15, 30, 0.4);
    
    /* Accent Colors */
    --accent-primary: #7c3aed;
    --accent-secondary: #06b6d4;
    --accent-tertiary: #ec4899;
    --accent-glow: rgba(124, 58, 237, 0.3);
    --accent-cyan-glow: rgba(6, 182, 212, 0.3);
    
    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #7c3aed, #06b6d4);
    --gradient-secondary: linear-gradient(135deg, #ec4899, #7c3aed);
    --gradient-bg: linear-gradient(180deg, #0a0a0f 0%, #0f0f1a 50%, #0a0a0f 100%);
    --gradient-card: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.05));
    
    /* Text */
    --text-primary: #f0f0ff;
    --text-secondary: #a0a0c0;
    --text-muted: #606080;
    
    /* Borders */
    --border-subtle: rgba(124, 58, 237, 0.15);
    --border-glow: rgba(124, 58, 237, 0.4);
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1280px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Shadows */
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent-primary);
    color: white;
}

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

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

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

/* === Cursor Glow Effect === */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

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

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

.nav.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: transform var(--transition-fast);
}

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

.logo-bracket {
    color: var(--accent-primary);
    opacity: 0.8;
}

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

.nav-links {
    display: flex;
    gap: 8px;
}

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

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.1);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid var(--border-subtle);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

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

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.mobile-link:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 40px 80px;
    perspective: 1200px;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('hero_background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
}

.hero-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(10, 10, 15, 0.3) 0%,
        rgba(10, 10, 15, 0.6) 50%,
        rgba(10, 10, 15, 1) 100%
    );
}

/* === 3D Floating Elements === */
.hero-3d-scene {
    position: absolute;
    inset: 0;
    perspective: 800px;
    transform-style: preserve-3d;
    z-index: 1;
    pointer-events: none;
}

/* 3D Cube */
.floating-cube {
    position: absolute;
    transform-style: preserve-3d;
}

.cube-1 {
    width: 60px;
    height: 60px;
    top: 15%;
    left: 10%;
    animation: cubeFloat1 12s ease-in-out infinite, cubeRotate 20s linear infinite;
}

.cube-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 15%;
    animation: cubeFloat2 14s ease-in-out infinite, cubeRotate2 25s linear infinite;
}

.cube-3 {
    width: 30px;
    height: 30px;
    bottom: 25%;
    left: 20%;
    animation: cubeFloat3 10s ease-in-out infinite, cubeRotate 15s linear infinite reverse;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.05);
    backdrop-filter: blur(2px);
}

.cube-face.front  { transform: translateZ(calc(var(--size, 30px))); }
.cube-face.back   { transform: rotateY(180deg) translateZ(calc(var(--size, 30px))); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(calc(var(--size, 30px))); }
.cube-face.right  { transform: rotateY(90deg) translateZ(calc(var(--size, 30px))); }
.cube-face.top    { transform: rotateX(90deg) translateZ(calc(var(--size, 30px))); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(calc(var(--size, 30px))); }

.cube-1 .cube-face { --size: 30px; }
.cube-2 .cube-face { --size: 20px; }
.cube-3 .cube-face { --size: 15px; }

/* 3D Ring */
.floating-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(6, 182, 212, 0.3);
    background: transparent;
}

.ring-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 20%;
    animation: ringFloat 8s ease-in-out infinite, ringRotate 12s linear infinite;
    transform-style: preserve-3d;
}

.ring-2 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    right: 30%;
    animation: ringFloat 10s ease-in-out infinite 2s, ringRotate 15s linear infinite reverse;
    border-color: rgba(236, 72, 153, 0.25);
}

/* 3D Sphere */
.floating-sphere {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.05));
    box-shadow: inset -10px -10px 20px rgba(0,0,0,0.3), 0 0 30px rgba(124, 58, 237, 0.1);
}

.sphere-1 {
    width: 50px;
    height: 50px;
    top: 30%;
    right: 8%;
    animation: sphereFloat 9s ease-in-out infinite;
}

.sphere-2 {
    width: 35px;
    height: 35px;
    bottom: 20%;
    left: 8%;
    animation: sphereFloat 11s ease-in-out infinite 3s;
    background: radial-gradient(circle at 30% 30%, rgba(236, 72, 153, 0.2), rgba(124, 58, 237, 0.05));
}

/* === Keyframes for 3D animations === */
@keyframes cubeFloat1 {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-30px) translateX(15px); }
    50% { transform: translateY(-15px) translateX(-10px); }
    75% { transform: translateY(-40px) translateX(5px); }
}

@keyframes cubeFloat2 {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-25px) translateX(-20px); }
    66% { transform: translateY(10px) translateX(15px); }
}

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

@keyframes cubeRotate {
    from { transform: rotateX(0) rotateY(0) rotateZ(0); }
    to { transform: rotateX(360deg) rotateY(360deg) rotateZ(0); }
}

@keyframes cubeRotate2 {
    from { transform: rotateX(0) rotateY(0) rotateZ(0); }
    to { transform: rotateX(360deg) rotateY(-360deg) rotateZ(360deg); }
}

@keyframes ringFloat {
    0%, 100% { transform: translateY(0) rotateX(60deg); }
    50% { transform: translateY(-30px) rotateX(60deg); }
}

@keyframes ringRotate {
    from { transform: rotateX(60deg) rotateZ(0); }
    to { transform: rotateX(60deg) rotateZ(360deg); }
}

@keyframes sphereFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* === Hero Content === */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    color: var(--accent-secondary);
    font-weight: 500;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-word {
    display: inline-block;
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(100%);
}

.title-word[data-delay="0"] { animation-delay: 0.2s; }
.title-word[data-delay="1"] { animation-delay: 0.35s; }

.title-gradient {
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideUp 0.8s ease forwards 0.5s, gradientShift 4s ease-in-out infinite;
    opacity: 0;
    transform: translateY(100%);
    background-size: 200% auto;
}

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

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

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

.hero-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease forwards 0.7s;
    opacity: 0;
    transform: translateY(20px);
}

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

.typewriter {
    color: var(--accent-secondary);
}

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

@keyframes blink {
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease forwards 0.9s;
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease forwards 1.1s;
    opacity: 0;
    transform: translateY(20px);
    margin-bottom: 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.btn-primary .btn-icon {
    transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-primary:hover .btn-glow {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

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

/* Hero Mini Stats */
.hero-stats-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    animation: fadeInUp 0.8s ease forwards 1.3s;
    opacity: 0;
    transform: translateY(20px);
}

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

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

.stat-mini-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

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

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    animation: fadeInUp 0.8s ease forwards 1.5s;
    opacity: 0;
}

.hero-scroll span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    position: relative;
}

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

@keyframes scrollPulse {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(16px); opacity: 0; }
}

/* === Section Common === */
.section {
    position: relative;
    padding: var(--section-padding) 0;
    z-index: 1;
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

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

.section-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-primary);
    opacity: 0.6;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

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

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

/* === About Section === */
.about-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: center;
}

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

.about-image-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow-card);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.about-image-card:hover .about-image {
    transform: scale(1.05);
}

.about-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 15, 0.5) 100%);
}

.about-image-border {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    pointer-events: none;
}

.about-image-decoration {
    position: absolute;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    z-index: -1;
}

.dec-1 {
    width: 100%;
    height: 100%;
    top: 16px;
    left: 16px;
    background: var(--gradient-card);
}

.dec-2 {
    width: 80px;
    height: 80px;
    bottom: -20px;
    right: -20px;
    border-color: var(--accent-secondary);
    opacity: 0.3;
}

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

.about-text strong {
    color: var(--text-primary);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.highlight-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.highlight-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.highlight-icon {
    font-size: 1.8rem;
}

.highlight-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
}

.highlight-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === Skills Section === */
.skills-section {
    background: var(--bg-secondary);
    position: relative;
}

.skills-section::before,
.skills-section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 120px;
}

.skills-section::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
}

.skills-section::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.skill-card {
    position: relative;
    padding: 36px 28px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-smooth);
    overflow: hidden;
    backdrop-filter: blur(10px);
    cursor: default;
}

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

.skill-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}

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

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.skill-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.skill-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.skill-bar {
    width: 100%;
    height: 4px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

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

.skill-fill.animated {
    width: var(--target-width);
}

/* === Projects Section === */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 50px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: 'Outfit', sans-serif;
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.1);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.filter-icon {
    font-size: 0.9rem;
}

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

.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-smooth);
    cursor: default;
}

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

.project-card-inner {
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all var(--transition-smooth);
}

.project-card:hover .project-card-inner {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-6px);
}

.project-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

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

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.project-category-tag {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-secondary);
    padding: 4px 12px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 100px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.project-tech-dots {
    display: flex;
    gap: 4px;
}

.tech-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
}

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    transition: color var(--transition-fast);
}

.project-card:hover .project-title {
    color: var(--accent-secondary);
}

.project-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tech-tag {
    font-size: 0.72rem;
    padding: 4px 10px;
    background: rgba(124, 58, 237, 0.08);
    color: var(--text-secondary);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-status {
    font-size: 0.75rem;
    font-weight: 500;
}

.project-status.live {
    color: #22c55e;
}

/* Projects More */
.projects-more {
    text-align: center;
    margin-top: 60px;
}

.more-projects-count {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 20px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

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

.more-count-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: left;
}

/* === Stats Section === */
.stats-section {
    background: var(--bg-secondary);
    position: relative;
}

.stats-section::before,
.stats-section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 120px;
}

.stats-section::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
}

.stats-section::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    position: relative;
    text-align: center;
    padding: 48px 32px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all var(--transition-smooth);
    backdrop-filter: blur(10px);
}

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

.stat-card-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-sublabel {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.contact-info {
    display: grid;
    gap: 16px;
}

.contact-card {
    padding: 24px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-smooth);
    backdrop-filter: blur(10px);
}

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

.contact-card-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

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

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    transition: all var(--transition-fast);
    outline: none;
    backdrop-filter: blur(10px);
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width var(--transition-smooth);
}

.form-group input:focus ~ .input-glow,
.form-group textarea:focus ~ .input-glow {
    width: 100%;
}

/* === Footer === */
.footer {
    position: relative;
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
    z-index: 1;
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

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

/* === Scroll Reveal Animations === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* === Responsive Design === */
@media (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-image-wrapper {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-hamburger {
        display: flex;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .nav-inner {
        padding: 0 20px;
    }
    
    .hero {
        padding: 120px 20px 80px;
    }
    
    .section-container {
        padding: 0 20px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats-mini {
        gap: 20px;
    }
    
    .stat-mini-number {
        font-size: 1.4rem;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .project-filters {
        gap: 6px;
    }
    
    .filter-btn {
        padding: 8px 14px;
        font-size: 0.78rem;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .cube-1, .cube-2, .cube-3, .ring-1, .ring-2, .sphere-1, .sphere-2 {
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* === Preloader === */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.6s, visibility 0.6s;
}

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

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

.preloader-bar {
    width: 200px;
    height: 3px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0;
    animation: preloaderFill 1.5s ease forwards;
}

@keyframes preloaderFill {
    to { width: 100%; }
}

/* === Tilt Effect === */
[data-tilt] {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}
