/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
    animation: cursorPulse 2s infinite;
}

.cursor-trail {
    position: fixed;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.8) 0%, rgba(139, 92, 246, 0.4) 50%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cursor.hover {
    transform: scale(2.5);
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.8);
    animation: cursorHover 0.6s infinite alternate;
}

.cursor.click {
    transform: scale(0.6);
    background: radial-gradient(circle, #ffffff 0%, var(--primary) 100%);
    animation: cursorClick 0.3s ease-out;
}

.cursor.text {
    transform: scale(0.8);
    background: linear-gradient(135deg, var(--success), var(--primary));
    border-radius: 2px;
    width: 2px;
    height: 20px;
}

@keyframes cursorPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.9), 0 0 40px rgba(139, 92, 246, 0.4);
    }
}

@keyframes cursorHover {
    0% {
        box-shadow: 0 0 30px rgba(236, 72, 153, 0.8);
    }
    100% {
        box-shadow: 0 0 40px rgba(236, 72, 153, 1), 0 0 60px rgba(99, 102, 241, 0.6);
    }
}

@keyframes cursorClick {
    0% {
        transform: scale(0.6);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 50px rgba(255, 255, 255, 0.8);
    }
    100% {
        transform: scale(0.6);
    }
}

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --bg-dark: #0a0a0f;
    --bg-darker: #050507;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(99, 102, 241, 0.5);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 50px rgba(99, 102, 241, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 3D Canvas */
#webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    max-width: 400px;
}

.loading-logo {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.loading-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.loading-percentage {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    font-weight: 600;
}

/* UI Overlay */
.ui-overlay {
    position: relative;
    z-index: 100;
    pointer-events: none;
}

.ui-overlay > * {
    pointer-events: auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-glass);
    border: 1px solid var(--border-hover);
}

.nav-link i {
    font-size: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Controls Panel */
.controls-panel {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 250px;
    box-shadow: var(--shadow);
}

.controls-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.controls-header i {
    font-size: 1.2rem;
}

.control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.control-item:last-child {
    border-bottom: none;
}

.control-key {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-card);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
}

.control-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Audio & Quality Toggles */
.audio-toggle,
.quality-toggle {
    position: fixed;
    bottom: 2rem;
    width: 50px;
    height: 50px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.audio-toggle {
    right: 2rem;
}

.quality-toggle {
    right: 5rem;
}

.audio-toggle:hover,
.quality-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}
/* Content Sections */
.content-sections {
    position: relative;
    z-index: 10;
}

.section {
    min-height: 100vh;
    padding: 120px 5% 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 10, 15, 0.3);
    backdrop-filter: blur(5px);
    margin-bottom: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.section:first-child {
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-number {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-title i {
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding-top: 150px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
}

.hero-badge i {
    color: var(--primary);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .greeting {
    display: block;
    font-size: 2rem;
    color: var(--text-muted);
    font-weight: 400;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .name {
    display: block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 2rem;
    font-family: 'JetBrains Mono', monospace;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-subtitle i {
    color: var(--primary);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-description strong {
    color: var(--primary);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease 1s both;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-3px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 1.2s both;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-highlights {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.highlight-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-top: 0.2rem;
}

.highlight-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.highlight-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Code Editor */
.code-editor {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border);
}

.editor-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.editor-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.editor-title i {
    color: #f7df1e;
}

.editor-content {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
}

.keyword { color: #c678dd; }
.variable { color: #e06c75; }
.property { color: #61afef; }
.string { color: #98c379; }
.function { color: #61afef; }
/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

/* Specific positioning for better layout */
.project-card:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
}

.project-card:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
}

.project-card:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

.project-card:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

.project-card:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
}

.project-card:nth-child(6) {
    grid-column: 1 / 4;
    grid-row: 3;
    max-width: 400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .project-card.featured {
        grid-column: span 1;
    }
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-card.featured .project-image {
    height: 250px;
}

.project-tech-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.project-content {
    padding: 1.5rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.project-links {
    display: flex;
    gap: 0.5rem;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.project-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

.tech-tag i {
    font-size: 0.9rem;
}

/* Skills Section */
.skills-content {
    max-width: 1400px;
    margin: 0 auto;
}

.skills-category {
    margin-bottom: 4rem;
}

.category-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
}

.category-title i {
    color: var(--primary);
    font-size: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    justify-items: stretch;
    align-items: start;
}

.skill-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotateY(360deg);
    color: var(--accent);
}

.skill-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: block;
}

.skill-level {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.3;
    animation: shimmer 2s infinite;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2s infinite;
}

.skill-percentage {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 50px;
    text-align: right;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.contact-info > p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
}

.contact-method:hover::before {
    left: 100%;
}

.contact-method:hover {
    border-color: var(--primary);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.method-info {
    text-align: left;
}

.method-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.method-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.availability-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 50px;
    margin: 0 auto;
    max-width: fit-content;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Footer */
.footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-content .highlight {
    color: var(--primary);
    font-weight: 600;
}

.footer-year {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
    }
}

/* Responsive Design */
/* Responsive Design */
@media (max-width: 1400px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .projects-grid {
        max-width: 1100px;
    }
}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto;
        max-width: 800px;
    }
    
    .project-card:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .project-card:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .project-card:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .project-card:nth-child(4) {
        grid-column: 1;
        grid-row: 3;
    }

    .project-card:nth-child(5) {
        grid-column: 2;
        grid-row: 3;
    }

    .project-card:nth-child(6) {
        grid-column: 1 / 3;
        grid-row: 4;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-title .greeting {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .section {
        padding: 100px 4% 60px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .navbar {
        padding: 1rem 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .section {
        padding: 100px 3% 60px;
        background: rgba(10, 10, 15, 0.4);
        margin-bottom: 1rem;
    }
    
    .hero-section {
        padding-top: 120px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-title .greeting {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 3rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1.2rem 2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 0.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .section-title i {
        font-size: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
    }
    
    .project-card:nth-child(1),
    .project-card:nth-child(2),
    .project-card:nth-child(3),
    .project-card:nth-child(4),
    .project-card:nth-child(5),
    .project-card:nth-child(6) {
        grid-column: 1;
        grid-row: auto;
        max-width: none;
        margin: 0;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-card.featured .project-image {
        height: 200px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
        gap: 1.2rem;
    }
    
    .skill-card {
        padding: 1.2rem;
        min-height: 180px;
    }
    
    .skill-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .skill-name {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }
    
    .category-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .about-highlights {
        gap: 1rem;
    }
    
    .highlight-card {
        padding: 1.2rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .highlight-card:hover {
        transform: translateY(-5px);
    }
    
    .code-editor {
        margin-top: 2rem;
    }
    
    .editor-content {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-method {
        padding: 1.2rem;
    }
    
    .method-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .controls-panel {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        min-width: auto;
        padding: 1rem;
    }
    
    .control-item {
        padding: 0.4rem 0;
    }
    
    .control-key {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .control-desc {
        font-size: 0.8rem;
    }
    
    .audio-toggle,
    .quality-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .audio-toggle {
        right: 1rem;
        bottom: 8rem;
    }
    
    .quality-toggle {
        right: 1rem;
        bottom: 10rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 80px 4% 40px;
        margin-bottom: 0.5rem;
    }
    
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-title .greeting {
        font-size: 1.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .hero-badge {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-number {
        font-size: 0.9rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        max-width: 280px;
    }
    
    .stat-item {
        padding: 1.2rem 0.6rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .skills-grid {
        max-width: 280px;
        gap: 1rem;
    }
    
    .skill-card {
        padding: 1rem;
        min-height: 160px;
    }
    
    .skill-icon {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .skill-name {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .skill-percentage {
        font-size: 0.85rem;
        min-width: 45px;
    }
    
    .category-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .category-title i {
        font-size: 1.5rem;
    }
    
    .project-content {
        padding: 1.2rem;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .project-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .tech-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .about-intro {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .highlight-card {
        padding: 1rem;
    }
    
    .highlight-card h4 {
        font-size: 1rem;
    }
    
    .highlight-card p {
        font-size: 0.85rem;
    }
    
    .contact-info h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .contact-info > p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .contact-method {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .method-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .method-label {
        font-size: 0.8rem;
    }
    
    .method-value {
        font-size: 0.9rem;
    }
    
    .availability-status {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .status-dot {
        width: 8px;
        height: 8px;
    }
    
    .controls-panel {
        padding: 0.8rem;
    }
    
    .controls-header {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .navbar {
        padding: 0.8rem 1rem;
    }
    
    .nav-brand {
        font-size: 1.3rem;
    }
    
    .nav-brand i {
        font-size: 1.5rem;
    }
    
    .cursor,
    .cursor-trail {
        display: none;
    }
    
    * {
        cursor: auto !important;
    }
}

@media (max-width: 360px) {
    .section {
        padding: 70px 3% 30px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title .greeting {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .skills-grid {
        max-width: 250px;
    }
    
    .skill-card {
        padding: 0.8rem;
        min-height: 140px;
    }
    
    .skill-icon {
        font-size: 2rem;
    }
    
    .skill-name {
        font-size: 0.95rem;
    }
    
    .hero-stats {
        max-width: 250px;
    }
    
    .stat-item {
        padding: 1rem 0.5rem;
    }
    
    .btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Mobile-specific optimizations */
.touch-device .cursor,
.touch-device .cursor-trail {
    display: none !important;
}

.touch-device * {
    cursor: auto !important;
}

.mobile-device * {
    animation-duration: 0.2s !important;
    transition-duration: 0.2s !important;
}

.touch-active {
    transform: scale(0.98) !important;
    opacity: 0.9 !important;
}

/* Improve touch targets */
@media (max-width: 768px) {
    .nav-link,
    .btn,
    .project-link,
    .contact-method {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .project-link {
        width: 44px;
        height: 44px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent), var(--primary));
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}