/* ===========================
   Keshav Yadav Portfolio
   Modern Portfolio with Three.js
   © 2026 - Optimized for Production
   =========================== */

/* ===========================
   Global Styles & Reset
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #ffffff;
    --secondary-color: #cccccc;
    --accent-color: #888888;
    --bg-dark: #000000;
    --bg-darker: #000000;
    --bg-card: #0a0a0a;
    --text-light: #ffffff;
    --text-gray: #999999;
    --gradient-1: #ffffff;
    --gradient-2: #ffffff;
    --gradient-3: #ffffff;
    --shadow-glow: 0 0 40px rgba(255, 255, 255, 0.1);
    
    /* Performance Variables */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #000000;
    color: var(--text-light);
    overflow-x: hidden;
    cursor: none;
    position: relative;
}

::selection {
    background: var(--primary-color);
    color: var(--bg-dark);
}

/* ===========================
   Custom Cursor
   =========================== */

.cursor,
.cursor-follower {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.15s ease;
}

.cursor {
    background: #ffffff;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid #ffffff;
    background: transparent;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* ===========================
   Canvas (Three.js)
   =========================== */

#webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Vignette effect for tube immersion */
#webgl::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ===========================
   Loading Screen
   =========================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ffffff;
    border-right-color: #ffffff;
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 20px;
    color: #ffffff;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 20px auto;
}

.loading-progress {
    height: 100%;
    background: #ffffff;
    width: 0%;
    transition: width 0.3s ease;
}

.loading-percentage {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
}

/* ===========================
   Navigation
   =========================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: padding 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    padding: 20px 50px;
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.nav-logo .logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
}

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

.nav-link {
    position: relative;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #ffffff;
    overflow: hidden;
    width: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===========================
   Container
   =========================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

/* ===========================
   Section Headers
   =========================== */

.section-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 80px;
}

.section-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.2);
    opacity: 0.6;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent);
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 50px;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    overflow: visible;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    transform: translate3d(0, 0, 0);
    text-rendering: optimizeLegibility;
    pointer-events: none;
}

.title-line {
    display: block;
    overflow: visible;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.word {
    display: inline-block;
    color: #ffffff;
    text-shadow: none;
    will-change: auto;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    transform: translate3d(0, 0, 0);
    font-kerning: none;
    text-rendering: optimizeLegibility;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    letter-spacing: 2px;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    transform: translate3d(0, 0, 0);
    text-rendering: optimizeLegibility;
    pointer-events: none;
}

.hero-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 60px;
    color: var(--text-light);
}

.name-bracket {
    color: #888888;
    margin: 0 10px;
}

.name-text {
    color: #ffffff;
}

.hero-cta {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.cta-button {
    position: relative;
    padding: 20px 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-button.primary {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.3);
    border: none;
}

.cta-button.secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.5);
}

.button-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .button-icon {
    transform: translateX(5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--text-gray);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    position: relative;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.mouse-wheel {
    width: 4px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouseScroll 2s infinite;
}

@keyframes mouseScroll {
    0%, 100% { opacity: 0; top: 8px; }
    50% { opacity: 1; top: 20px; }
}

/* ===========================
   About Section
   =========================== */

.about {
    padding: 150px 0;
    position: relative;
}

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

.about-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 0px;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4ade80, #22c55e, #4ade80);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

.stat-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-color: rgba(74, 222, 128, 0.6);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 20px 60px rgba(74, 222, 128, 0.3),
        0 0 80px rgba(74, 222, 128, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    order: 1;
    white-space: nowrap;
    overflow: visible;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 50px rgba(74, 222, 128, 0.5);
    filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.3));
    line-height: 1;
    order: 2;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.detail-icon {
    font-size: 1.5rem;
}

.about-visual {
    position: relative;
}

.visual-card {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8), rgba(0, 0, 0, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 30px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

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

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(80px);
    transform: translate(-50%, -50%);
    animation: pulse 3s ease-in-out infinite;
    z-index: 0;
}

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

/* ===========================
   Skills Section
   =========================== */

.skills {
    padding: 150px 0;
    background: rgba(0, 0, 0, 0.3);
}

.skills-content {
    width: 100%;
    position: relative;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech-category {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.95));
    padding: 40px 30px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tech-category::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.tech-category:hover::before {
    opacity: 1;
}

.tech-category:hover {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.98), rgba(20, 20, 20, 0.98));
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-5px) scale(1.02);
}

.tech-category-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: grayscale(100%) brightness(1.5);
    transition: all 0.5s ease;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

.tech-category:hover .tech-category-icon {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.2) rotate(5deg);
    animation: none;
}

.tech-category-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.tech-category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    transition: width 0.3s ease;
}

.tech-category:hover .tech-category-title::after {
    width: 100%;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

.tech-badge {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.tech-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tech-badge:hover::before {
    left: 100%;
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 700;
}

/* Badge entrance animation */
.tech-badge {
    animation: badgeFadeIn 0.5s ease forwards;
    opacity: 0;
}

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

/* Stagger animation delays */
.tech-badge:nth-child(1) { animation-delay: 0.05s; }
.tech-badge:nth-child(2) { animation-delay: 0.1s; }
.tech-badge:nth-child(3) { animation-delay: 0.15s; }
.tech-badge:nth-child(4) { animation-delay: 0.2s; }
.tech-badge:nth-child(5) { animation-delay: 0.25s; }
.tech-badge:nth-child(6) { animation-delay: 0.3s; }
.tech-badge:nth-child(7) { animation-delay: 0.35s; }
.tech-badge:nth-child(8) { animation-delay: 0.4s; }
.tech-badge:nth-child(9) { animation-delay: 0.45s; }
.tech-badge:nth-child(10) { animation-delay: 0.5s; }
.tech-badge:nth-child(n+11) { animation-delay: 0.55s; }

/* ===========================
   Projects Section
   =========================== */

.projects {
    padding: 150px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.project-card {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8), rgba(0, 0, 0, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 80px rgba(255, 255, 255, 0.2);
}

.project-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(0, 0, 0, 1));
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-link {
    padding: 15px 40px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 5px;
}

.project-link.secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.project-link:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

.project-link.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.project-info {
    padding: 40px;
}

.project-category {
    display: inline-block;
    padding: 5px 15px;
    background: #ffffff;
    color: #000000;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.project-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.project-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 25px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* ===========================
   Contact Section
   =========================== */

.contact {
    padding: 150px 0;
    background: rgba(0, 0, 0, 0.3);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-heading {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.4;
}

.contact-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 50px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    font-size: 2rem;
}

.contact-item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    padding: 15px 30px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
    border-color: #ffffff;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 20px;
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.form-input::placeholder {
    color: var(--text-gray);
}

textarea.form-input {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    padding: 20px 50px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.submit-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.5);
}

/* ===========================
   Footer
   =========================== */

.footer {
    padding: 50px;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

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

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 1200px) {
    .hero-title {
        font-size: 6rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Tech Admin Panel Styles
   =========================== */

.admin-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border: 3px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.4);
    transition: all 0.3s ease;
    display: none; /* Hidden by default */
}

.admin-toggle:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 15px 40px rgba(74, 222, 128, 0.6);
}

.admin-toggle.visible {
    display: block;
    animation: adminPulse 2s infinite;
}

@keyframes adminPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(74, 222, 128, 0.4); }
    50% { box-shadow: 0 15px 50px rgba(74, 222, 128, 0.8); }
}

.tech-admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.tech-admin-modal.active {
    display: flex;
}

.tech-admin-content {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(10, 10, 10, 0.98));
    border: 2px solid rgba(74, 222, 128, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.admin-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #4ade80;
}

.close-admin {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid #ef4444;
    color: #ef4444;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-admin:hover {
    background: rgba(239, 68, 68, 0.4);
    transform: rotate(90deg);
}

.admin-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.admin-stat {
    text-align: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(74, 222, 128, 0.3);
    border-radius: 15px;
}

.admin-stat-number {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #4ade80;
    margin-bottom: 5px;
}

.admin-stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.admin-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-btn-primary {
    background: #4ade80;
    color: #000;
}

.admin-btn-primary:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.4);
}

.admin-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.admin-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.admin-btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 2px solid #ef4444;
}

.admin-btn-danger:hover {
    background: rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.admin-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.admin-category {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
}

.admin-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-category-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-category-count {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
}

.admin-category-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.admin-small-btn {
    padding: 6px 15px;
    border: none;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.admin-select {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border: 1px solid #4ade80;
}

.admin-select:hover {
    background: rgba(74, 222, 128, 0.3);
}

.admin-deselect {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.admin-deselect:hover {
    background: rgba(239, 68, 68, 0.3);
}

.admin-tech-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.admin-tech-list::-webkit-scrollbar {
    width: 6px;
}

.admin-tech-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.admin-tech-list::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.5);
    border-radius: 10px;
}

.admin-tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-tech-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.admin-tech-item.selected {
    background: rgba(74, 222, 128, 0.1);
    border-color: #4ade80;
}

.admin-tech-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4ade80;
}

.admin-tech-label {
    font-size: 0.9rem;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    flex: 1;
}

@media (max-width: 768px) {
    .navbar {
        padding: 20px 30px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-name {
        font-size: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .container {
        padding: 0 30px;
    }
    
    .section-header {
        flex-wrap: wrap;
        margin-bottom: 50px;
    }
    
    .section-number {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-stack-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tech-category {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    body {
        cursor: auto;
    }
    
    .cursor,
    .cursor-follower {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}
