:root {
    /* Color Palette */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-1: #00f5ff;
    --accent-2: #7c3aed;
    --accent-3: #ff00ff;
    --gradient-1: linear-gradient(135deg, #00f5ff, #7c3aed);
    --gradient-2: linear-gradient(135deg, #7c3aed, #ff00ff);
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    /* Effects */
    --glow: 0 0 20px rgba(0, 245, 255, 0.3);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor - Hidden on mobile */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.2s, width 0.2s, height 0.2s;
}

.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--accent-1), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0;
}

/* 3D Canvas Background */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}

/* ============================================
   PREMIUM LOADING SCREEN
   ============================================ */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-container {
    text-align: center;
    position: relative;
}

.loader-ring {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    position: relative;
}

.loader-ring::before,
.loader-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}

.loader-ring::before {
    border-top-color: var(--accent-1);
    border-right-color: var(--accent-2);
    animation: spin 1s linear infinite;
}

.loader-ring::after {
    border-bottom-color: var(--accent-2);
    border-left-color: var(--accent-1);
    animation: spin 1s linear infinite reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.loader-progress {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border-radius: 2px;
    margin: 0 auto;
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--gradient-1);
    transition: width 0.3s;
}

.loader-percentage {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: monospace;
}

/* ============================================
   PREMIUM NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Premium Logo */
.logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-3d {
    position: relative;
    perspective: 500px;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: transform 0.3s;
}

.logo-3d:hover .logo-text {
    transform: rotateX(360deg);
    transition: transform 0.6s;
}

.logo-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.3), transparent);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s;
}

.logo-3d:hover .logo-glow {
    opacity: 1;
}

.logo-badge {
    font-size: 0.7rem;
    background: rgba(0, 245, 255, 0.2);
    padding: 2px 6px;
    border-radius: 12px;
    color: var(--accent-1);
    font-weight: 500;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-text {
    position: relative;
}

.link-dot {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-1);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-link:hover .link-dot,
.nav-link.active .link-dot {
    opacity: 1;
}

.nav-link:hover {
    color: var(--accent-1);
    transform: translateY(-2px);
}

.nav-link-special {
    background: rgba(0, 245, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 245, 255, 0.3);
}

.nav-link-special:hover {
    background: rgba(0, 245, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

/* Nav Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.visitor-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 245, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.counter-icon {
    color: var(--accent-1);
    font-size: 0.875rem;
}

.counter-number {
    font-weight: 600;
    color: var(--accent-1);
}

.counter-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.theme-toggle {
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 245, 255, 0.1);
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: rgba(0, 245, 255, 0.2);
    transform: rotate(45deg);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--accent-1);
    transition: 0.3s;
}

/* ============================================
   PREMIUM HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 245, 255, 0.1), transparent 70%),
                radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.1), transparent 70%);
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    background: var(--accent-1);
    border-radius: 50%;
    filter: blur(1px);
    animation: floatParticle 10s linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 50px;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 245, 255, 0.3);
    position: relative;
    backdrop-filter: blur(10px);
}

.badge-pulse {
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: var(--gradient-1);
    opacity: 0;
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

.badge-text {
    font-size: 0.875rem;
    color: var(--accent-1);
}

/* Hero Title */
.hero-title-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0;
}

.title-line {
    display: block;
    position: relative;
}

.title-line-1 {
    animation: slideInLeft 0.8s ease-out;
}

.title-line-2 {
    animation: slideInRight 0.8s ease-out 0.2s backwards;
}

.title-line-3 {
    animation: slideInLeft 0.8s ease-out 0.4s backwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.title-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.title-underline {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 3px;
    animation: expandWidth 0.8s ease-out 0.6s backwards;
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100px;
        opacity: 1;
    }
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn-primary, .btn-secondary, .btn-outline, .btn-terminal {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

.btn-secondary {
    border: 2px solid var(--accent-1);
    color: var(--accent-1);
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(0, 245, 255, 0.1);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
    transform: translateY(-3px);
}

.btn-terminal {
    background: rgba(0, 245, 255, 0.1);
    border: 2px solid var(--accent-1);
    color: var(--accent-1);
}

.btn-terminal:hover {
    background: var(--gradient-1);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover .btn-glow,
.btn-secondary:hover .btn-glow {
    opacity: 1;
}

/* Hero Tech Stack */
.hero-tech-stack {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tech-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.tech-icons {
    display: flex;
    gap: 1rem;
}

.tech-icons i {
    font-size: 1.25rem;
    color: var(--accent-1);
    transition: all 0.3s;
    animation: floatIcon 3s ease-in-out infinite;
}

.tech-icons i:nth-child(2) { animation-delay: 0.5s; }
.tech-icons i:nth-child(3) { animation-delay: 1s; }
.tech-icons i:nth-child(4) { animation-delay: 1.5s; }
.tech-icons i:nth-child(5) { animation-delay: 2s; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Hero Social Links */
.hero-social {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.hero-social a {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: all 0.3s;
}

.hero-social a:hover {
    color: var(--accent-1);
    transform: translateY(-3px);
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--accent-1);
    border-radius: 20px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-1);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

.hero-scroll span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.hero-scroll i {
    color: var(--accent-1);
    font-size: 0.875rem;
    animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Hero Stats */
.hero-stats {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    gap: 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-1);
}

.hero-stat .stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Section Styles */
section {
    position: relative;
    padding: var(--section-padding);
    z-index: 1;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--accent-1);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-divider {
    width: 50px;
    height: 3px;
    background: var(--gradient-1);
    margin: 1rem auto 0;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   PREMIUM ABOUT SECTION
   ============================================ */

.about {
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content {
    position: relative;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 245, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 245, 255, 0.3);
}

.about-badge i {
    color: var(--accent-1);
    font-size: 1rem;
}

.about-badge span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-1);
}

.about-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Personal Info Cards */
.personal-info {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 245, 255, 0.1);
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
}

.info-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-item i {
    color: var(--accent-1);
    font-size: 1rem;
    width: 20px;
}

/* Enhanced Stats with Progress Circles */
.about-stats-enhanced {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-circle {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.stat-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.stat-bg {
    fill: none;
    stroke: rgba(0, 245, 255, 0.1);
    stroke-width: 8;
}

.stat-fill {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.5s ease-out;
}

.stat-circle-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.stat-circle-content .stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1;
}

.stat-circle-content .stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.25rem;
}

/* About CTA Buttons */
.about-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Premium Image Container */
.image-container-premium {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.image-glow-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #00f5ff, #7c3aed, #ff00ff, #00f5ff);
    opacity: 0.6;
    filter: blur(20px);
    animation: rotateRing 8s linear infinite;
    z-index: 0;
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.image-wrapper-premium {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(124, 58, 237, 0.1));
    backdrop-filter: blur(10px);
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-wrapper-premium:hover {
    transform: translateY(-10px);
}

.image-border-animated {
    position: absolute;
    inset: -2px;
    border-radius: 32px;
    background: linear-gradient(135deg, #00f5ff, #7c3aed, #ff00ff);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.image-wrapper-premium:hover .image-border-animated {
    opacity: 1;
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.image-content-premium {
    position: relative;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 28px;
    overflow: hidden;
}

.profile-img-premium {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(20%);
}

.profile-img-premium:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(0, 245, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 245, 255, 0.3);
    animation: float 4s ease-in-out infinite;
    z-index: 2;
}

.floating-element i {
    font-size: 1.25rem;
    color: var(--accent-1);
}

.element-1 {
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.element-2 {
    bottom: 40px;
    left: -30px;
    animation-delay: 1s;
}

.element-3 {
    top: 40%;
    right: -30px;
    animation-delay: 2s;
}

.element-4 {
    bottom: -20px;
    right: 20%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(-15px) translateX(10px);
    }
}

/* Experience Badge */
.experience-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: var(--gradient-1);
    padding: 15px 20px;
    border-radius: 20px;
    text-align: center;
    z-index: 2;
    animation: bounce 2s ease-in-out infinite;
    box-shadow: var(--glow);
}

.badge-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-primary);
    line-height: 1;
}

.badge-text {
    font-size: 0.7rem;
    color: var(--bg-primary);
    font-weight: 600;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Timeline Section */
.timeline-section {
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(0, 245, 255, 0.1);
}

.timeline-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent-1);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-2));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--accent-1);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-1);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--accent-1);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ============================================
   PREMIUM SKILLS SECTION
   ============================================ */

.skills {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.03) 0%, transparent 70%);
    animation: rotateSlow 30s linear infinite;
    pointer-events: none;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Skills Showcase */
.skills-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Skill Category */
.skill-category {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(0, 245, 255, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(124, 58, 237, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 245, 255, 0.3);
    box-shadow: var(--glow);
}

.skill-category:hover::before {
    opacity: 1;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.category-header i {
    font-size: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.category-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-1), transparent);
}

/* Skills Wrapper */
.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Individual Skill Item */
.skill-item {
    position: relative;
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }
.skill-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.skill-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 1rem;
}

.skill-name i {
    font-size: 1.25rem;
    width: 24px;
    color: var(--accent-1);
    animation: floatIcon 3s ease-in-out infinite;
}

.skill-percentage {
    font-size: 0.875rem;
    color: var(--accent-1);
    font-weight: 600;
}

/* Animated Progress Bar */
.progress-bar-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    border-radius: 10px;
    background: var(--gradient-1);
    position: relative;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 245, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 245, 255, 0.8);
    }
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.skill-item:hover {
    transform: translateX(5px);
    transition: transform 0.3s;
}

.skill-item:hover .skill-name {
    color: var(--accent-1);
}

/* Skill Stats */
.skill-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(0, 245, 255, 0.1);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 245, 255, 0.3);
    box-shadow: var(--glow);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.stat-card:hover .stat-icon {
    background: rgba(0, 245, 255, 0.2);
    transform: scale(1.1);
}

.stat-icon i {
    font-size: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Confidence Badges */
.confidence-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 500;
}

.confidence-badge.high {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.confidence-badge.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.confidence-badge.low {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    cursor: help;
}

.tooltip {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 4px;
    display: none;
}

.skill-item:hover .tooltip {
    display: block;
}

/* Tech Stack Badges */
.tech-stack-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(124, 58, 237, 0.2));
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 4px;
    border: 1px solid rgba(0, 245, 255, 0.3);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects {
    visibility: visible !important;
    display: block !important;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    visibility: visible !important;
    opacity: 1 !important;
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: rgba(0, 245, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent-1);
}

.project-link {
    color: var(--accent-1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.project-link:hover {
    gap: 0.75rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    background: var(--bg-secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.info-card i {
    font-size: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.info-card h3 {
    margin-bottom: 0.5rem;
}

.info-card a, .info-card p {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.info-card a:hover {
    color: var(--accent-1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-card);
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(0, 245, 255, 0.1);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s;
}

.form-group input:focus ~ .input-border,
.form-group textarea:focus ~ .input-border {
    width: 100%;
}

.btn-submit {
    padding: 1rem;
    background: var(--gradient-1);
    color: var(--bg-primary);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.form-message {
    padding: 1rem;
    border-radius: 12px;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid #10b981;
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(0, 245, 255, 0.1);
    padding: 2rem 0;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    color: var(--accent-1);
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-grid,
    .contact-wrapper {
        gap: 3rem;
    }
    
    .skills-showcase {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Remove custom cursor on mobile */
    .cursor,
    .cursor-follower,
    .cursor-trail {
        display: none !important;
    }
    
    body {
        cursor: auto;
    }
    
    /* Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        border-bottom: 1px solid rgba(0, 245, 255, 0.2);
        z-index: 999;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-right {
        gap: 1rem;
    }
    
    .visitor-counter {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-badge {
        margin-bottom: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .btn-primary, .btn-secondary, .btn-outline, .btn-terminal {
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }
    
    .hero-scroll {
        display: none;
    }
    
    .hero-stats {
        left: 50%;
        transform: translateX(-50%);
        bottom: 1rem;
        gap: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .hero-stat .stat-value {
        font-size: 1rem;
    }
    
    /* Section Spacing */
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content {
        order: 2;
    }
    
    .about-image {
        order: 1;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .about-name {
        font-size: 2rem;
        text-align: center;
    }
    
    .about-text {
        text-align: center;
        font-size: 1rem;
    }
    
    .info-row {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .about-stats-enhanced {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .stat-circle {
        width: 80px;
        height: 80px;
    }
    
    .about-cta {
        justify-content: center;
    }
    
    .floating-element {
        width: 35px;
        height: 35px;
    }
    
    .floating-element i {
        font-size: 0.875rem;
    }
    
    .experience-badge {
        left: -10px;
        bottom: 20px;
        padding: 10px 15px;
    }
    
    .badge-number {
        font-size: 1rem;
    }
    
    .badge-text {
        font-size: 0.6rem;
    }
    
    .timeline-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 1rem;
    }
    
    .timeline-dot {
        left: -1.5rem;
    }
    
    /* Skills Section */
    .skills-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .category-header h3 {
        font-size: 1.25rem;
    }
    
    .category-header i {
        font-size: 1.5rem;
    }
    
    .skill-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* Projects Section */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        max-width: 100%;
    }
    
    .project-card img {
        height: 200px;
    }
    
    .project-content {
        padding: 1.25rem;
    }
    
    .project-title {
        font-size: 1.125rem;
    }
    
    .project-description {
        font-size: 0.875rem;
    }
    
    /* Contact Section */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        gap: 1rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .info-card i {
        font-size: 1.5rem;
    }
    
    .info-card h3 {
        font-size: 1.125rem;
    }
    
    .contact-form {
        gap: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
    }
    
    .btn-submit {
        padding: 0.875rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .container,
    .section-container,
    .hero-container,
    .footer-container {
        padding: 0 16px;
    }
    
    .section-description {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
}

/* iOS Safari Specific Fixes */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
    
    .skills-grid,
    .projects-grid {
        -webkit-overflow-scrolling: touch;
    }
    
    button,
    a {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Force visibility on all devices */
.skills-grid,
.projects-grid,
.about-grid,
.contact-wrapper,
.skills-showcase,
.skills-wrapper {
    visibility: visible !important;
    opacity: 1 !important;
    display: grid !important;
}

/* Force visibility for mobile devices */
@media (max-width: 768px) {
    .skills-grid,
    .projects-grid,
    .skills-showcase {
        display: grid !important;
        visibility: visible !important;
    }
    
    .skill-card,
    .project-card,
    .skill-category {
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Reduced animations for mobile (performance) */
@media (max-width: 768px) {
    .skill-card,
    .project-card,
    .info-card,
    .skill-category {
        transition: transform 0.2s;
    }
    
    .skill-card:hover,
    .project-card:hover,
    .skill-category:hover {
        transform: translateY(-5px);
    }
    
    #bgCanvas {
        opacity: 0.15;
    }
    
    .hero-particles {
        display: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:active,
    .btn-secondary:active,
    .skill-card:active,
    .project-card:active,
    .skill-category:active {
        transform: scale(0.98);
    }
    
    .nav-link:active {
        color: var(--accent-1);
    }
}