/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #60A5FA;
    --secondary-color: #3B82F6;
    --primary-light: #93C5FD;
    --primary-dark: #2563EB;
    --text-primary: #FFFFFF;
    --text-secondary: #BFC6D0;
    --text-muted: #A0A5AF;
    --bg-primary: #0C0F17;
    --bg-secondary: #1A1D29;
    --bg-tertiary: #2D3142;
    --accent-color: #4DA8FF;
    --gradient-primary: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    --gradient-secondary: linear-gradient(135deg, #4DA8FF 0%, #2563EB 100%);
    --animation-duration: 0.4s;
    --transition-duration: 0.3s;
}

/* Live Background System - Enhanced */
#live-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at top left, rgba(77, 168, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(138, 43, 226, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(255, 119, 198, 0.2) 0%, transparent 60%),
        linear-gradient(135deg, rgba(12, 15, 23, 0.9) 0%, rgba(26, 29, 41, 0.95) 100%);
}

/* Floating Particles Container */
.bg-particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 20;
}

/* Floating Particles */
.floating-particle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #4DA8FF;
    border-radius: 50%;
    opacity: 1;
    animation: particleFloat 8s linear infinite;
    box-shadow: 0 0 30px #4DA8FF, 0 0 60px rgba(77, 168, 255, 0.8), 0 0 90px rgba(77, 168, 255, 0.4);
    z-index: 25;
}

.floating-particle:nth-child(1) { 
    top: 20%; 
    left: 10%; 
    animation-delay: 0s; 
    animation-duration: 12s;
}
.floating-particle:nth-child(2) { 
    top: 60%; 
    left: 20%; 
    animation-delay: 2s; 
    animation-duration: 10s;
}
.floating-particle:nth-child(3) { 
    top: 30%; 
    left: 80%; 
    animation-delay: 4s; 
    animation-duration: 14s;
}
.floating-particle:nth-child(4) { 
    top: 80%; 
    left: 70%; 
    animation-delay: 1s; 
    animation-duration: 11s;
}
.floating-particle:nth-child(5) { 
    top: 10%; 
    left: 50%; 
    animation-delay: 3s; 
    animation-duration: 13s;
}
.floating-particle:nth-child(6) { 
    top: 70%; 
    left: 90%; 
    animation-delay: 5s; 
    animation-duration: 9s;
}
.floating-particle:nth-child(7) { 
    top: 40%; 
    left: 30%; 
    animation-delay: 1.5s; 
    animation-duration: 15s;
}
.floating-particle:nth-child(8) { 
    top: 90%; 
    left: 40%; 
    animation-delay: 3.5s; 
    animation-duration: 8s;
}
.floating-particle:nth-child(9) { 
    top: 15%; 
    left: 75%; 
    animation-delay: 2.5s; 
    animation-duration: 16s;
}
.floating-particle:nth-child(10) { 
    top: 55%; 
    left: 5%; 
    animation-delay: 4.5s; 
    animation-duration: 7s;
}
.floating-particle:nth-child(11) { 
    top: 85%; 
    left: 25%; 
    animation-delay: 0.5s; 
    animation-duration: 18s;
}
.floating-particle:nth-child(12) { 
    top: 25%; 
    left: 60%; 
    animation-delay: 6s; 
    animation-duration: 6s;
}
.floating-particle:nth-child(13) { 
    top: 45%; 
    left: 85%; 
    animation-delay: 1.8s; 
    animation-duration: 9s;
}
.floating-particle:nth-child(14) { 
    top: 75%; 
    left: 15%; 
    animation-delay: 3.2s; 
    animation-duration: 11s;
}
.floating-particle:nth-child(15) { 
    top: 35%; 
    left: 45%; 
    animation-delay: 4.8s; 
    animation-duration: 7s;
}
.floating-particle:nth-child(16) { 
    top: 65%; 
    left: 95%; 
    animation-delay: 2.1s; 
    animation-duration: 13s;
}
.floating-particle:nth-child(17) { 
    top: 5%; 
    left: 35%; 
    animation-delay: 5.5s; 
    animation-duration: 8s;
}
.floating-particle:nth-child(18) { 
    top: 95%; 
    left: 55%; 
    animation-delay: 0.8s; 
    animation-duration: 12s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-40px) translateX(-10px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-20px) translateX(15px) scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.6;
    }
}

/* Animated Connections */
.bg-connections {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(77, 168, 255, 0.4) 49%, rgba(77, 168, 255, 0.4) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(138, 43, 226, 0.4) 49%, rgba(138, 43, 226, 0.4) 51%, transparent 52%);
    background-size: 100px 100px, 80px 80px;
    animation: connectionFlow 12s linear infinite;
    opacity: 0.8;
    z-index: 15;
}

/* Gradient Orb */
.bg-gradient-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(77, 168, 255, 0.6) 0%, rgba(138, 43, 226, 0.4) 40%, transparent 70%);
    border-radius: 50%;
    animation: orbFloat 10s ease-in-out infinite;
    filter: blur(1px);
    z-index: 12;
}

/* Mesh Pattern */
.bg-mesh {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(77, 168, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(138, 43, 226, 0.05) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
    animation: meshShift 15s linear infinite;
    z-index: 11;
}

/* Aurora Effect */
.bg-aurora {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(77, 168, 255, 0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(138, 43, 226, 0.1) 50%, transparent 70%);
    animation: auroraFlow 20s ease-in-out infinite;
    filter: blur(3px);
    z-index: 13;
}

/* Simple Light Effect - Much Lighter */
.spotlight-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
}

.spotlight-effect .light-flare {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle at center,
        transparent 0%,
        transparent 60%,
        rgba(77, 168, 255, 0.1) 70%,
        rgba(77, 168, 255, 0.2) 80%,
        transparent 90%,
        transparent 100%
    );
    animation: simpleRotate 8s linear infinite;
}

@keyframes simpleRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Pause animations when tab is not visible for better performance */
@media (prefers-reduced-motion: reduce) {
    .spotlight-effect .light-flare {
        animation: none;
    }
}

/* Pause animations when page is hidden */
.spotlight-effect .light-flare {
    animation-play-state: running;
}

/* Reduce animation intensity for better performance */
.spotlight-effect .light-flare {
    will-change: transform;
    transform: translateZ(0); /* Force hardware acceleration */
}

/* Enhanced Animations */
@keyframes floatParticle {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.7;
    }
    25% { 
        transform: translateY(-30px) translateX(15px) scale(1.2);
        opacity: 1;
    }
    50% { 
        transform: translateY(-20px) translateX(-10px) scale(0.8);
        opacity: 0.5;
    }
    75% { 
        transform: translateY(-40px) translateX(20px) scale(1.1);
        opacity: 0.9;
    }
}

@keyframes connectionFlow {
    0% { 
        transform: translateX(0) translateY(0);
        opacity: 0.3;
    }
    50% { 
        transform: translateX(50px) translateY(-30px);
        opacity: 0.6;
    }
    100% { 
        transform: translateX(0) translateY(0);
        opacity: 0.3;
    }
}

@keyframes orbFloat {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.3;
    }
    33% { 
        transform: translate(-60%, -40%) scale(1.2) rotate(120deg);
        opacity: 0.5;
    }
    66% { 
        transform: translate(-40%, -60%) scale(0.8) rotate(240deg);
        opacity: 0.4;
    }
}

@keyframes meshShift {
    0% { 
        transform: translate(0, 0);
        opacity: 0.1;
    }
    50% { 
        transform: translate(30px, 30px);
        opacity: 0.3;
    }
    100% { 
        transform: translate(0, 0);
        opacity: 0.1;
    }
}

@keyframes auroraFlow {
    0%, 100% { 
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0.2;
    }
    25% { 
        transform: translateX(-50px) translateY(-30px) rotate(90deg);
        opacity: 0.4;
    }
    50% { 
        transform: translateX(30px) translateY(-60px) rotate(180deg);
        opacity: 0.3;
    }
    75% { 
        transform: translateX(-20px) translateY(-40px) rotate(270deg);
        opacity: 0.5;
    }
}

/* Scroll-responsive enhancements */
body.scrolled .floating-particle {
    animation-duration: 6s;
    box-shadow: 0 0 15px rgba(77, 168, 255, 0.8);
}

body.scrolled .bg-connections {
    animation-duration: 8s;
    opacity: 0.5;
}

body.scrolled .bg-gradient-orb {
    animation-duration: 7s;
    opacity: 0.6;
    filter: blur(1px);
}

body.scrolled .bg-mesh {
    animation-duration: 10s;
    opacity: 0.4;
}

body.scrolled .bg-aurora {
    animation-duration: 15s;
    opacity: 0.4;
    filter: blur(2px);
}

body {
    font-family: 'Lato', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}

body.menu-open {
    overflow: hidden;
}

/* Global scrollbar styling is applied at the end of the file */

/* Hide scrollbars on all containers and specific elements, but keep main page scrollbar */
.tech-stack-grid,
.tech-column,
.tech-items,
.contact-grid,
.contact-info-card,
.contact-form-card,
.contact-methods,
.social-grid,
.works-grid,
.certifications-grid,
.certification-category,
.certification-list,
.achievements-grid,
.timeline-subsection,
.values-grid,
.about-content,
.works-content,
.container,
section,
.hero .content,
.nav,
.tech-detail-header-inline {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.tech-stack-grid::-webkit-scrollbar,
.tech-column::-webkit-scrollbar,
.tech-items::-webkit-scrollbar,
.contact-grid::-webkit-scrollbar,
.contact-info-card::-webkit-scrollbar,
.contact-form-card::-webkit-scrollbar,
.contact-methods::-webkit-scrollbar,
.social-grid::-webkit-scrollbar,
.works-grid::-webkit-scrollbar,
.certifications-grid::-webkit-scrollbar,
.certification-category::-webkit-scrollbar,
.certification-list::-webkit-scrollbar,
.achievements-grid::-webkit-scrollbar,
.timeline-subsection::-webkit-scrollbar,
.values-grid::-webkit-scrollbar,
.about-content::-webkit-scrollbar,
.works-content::-webkit-scrollbar,
.container::-webkit-scrollbar,
section::-webkit-scrollbar,
.hero .content::-webkit-scrollbar,
.nav::-webkit-scrollbar,
.tech-detail-header-inline::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
}

/* Prevent any element from causing horizontal overflow */
* {
    max-width: 100%;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loading-content {
    text-align: center;
    margin-bottom: 2rem;
    animation: breathing 3s ease-in-out infinite;
}

@keyframes breathing {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.02);
        opacity: 0.9;
    }
}

.loading-name {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    animation: elegantBreathing 4s ease-in-out infinite;
}

@keyframes elegantBreathing {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    25% { 
        transform: scale(1.01);
        filter: brightness(1.05);
    }
    50% { 
        transform: scale(1.02);
        filter: brightness(1.1);
    }
    75% { 
        transform: scale(1.01);
        filter: brightness(1.05);
    }
}

.name-main {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.1em;
}

.name-script {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 0.05em;
}

.loading-underline {
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 1rem auto;
    border-radius: 2px;
    animation: underlineBreathing 3.5s ease-in-out infinite;
}

@keyframes underlineBreathing {
    0%, 100% { 
        width: 100px;
        opacity: 1;
    }
    50% { 
        width: 120px;
        opacity: 0.8;
    }
}

.loading-tagline {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.4;
    animation: taglineBreathing 5s ease-in-out infinite;
}

@keyframes taglineBreathing {
    0%, 100% { 
        opacity: 0.8;
        transform: translateY(0px);
    }
    50% { 
        opacity: 1;
        transform: translateY(-2px);
    }
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Elegant Top Scroll Progress Tracker */
#top-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: rgba(12, 15, 23, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    opacity: 0.9;
}

#top-scroll-progress.hidden {
    transform: translateY(-100%);
}

.top-progress-bar {
    position: relative;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::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: topProgressShimmer 3s infinite;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.4), transparent);
    filter: blur(4px);
    transition: width 0.1s ease;
}

@keyframes topProgressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.scroll-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px;
    height: 33px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.current-section {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: capitalize;
    letter-spacing: 0.2px;
    position: relative;
    opacity: 0.8;
}

.current-section::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.6;
}

.scroll-percentage {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 35px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.scroll-percentage:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(96, 165, 250, 0.3);
    opacity: 1;
}

/* Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

#scroll-progress .progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.1s ease;
}

/* Header */
header {
    position: fixed;
    top: 35px; /* Adjusted for compact top progress tracker */
    left: 0;
    width: 100%;
    background: rgba(12, 15, 23, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: top 0.3s ease;
}

header.top-progress-hidden {
    top: 0;
}

.logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    text-transform: lowercase;
    transition: all 0.3s ease;
}

.logo span {
    font-family: 'Dancing Script', cursive;
    font-weight: 500;
    font-style: italic;
    color: var(--accent-color);
    font-size: 1.2em;
    letter-spacing: 0.05em;
    margin-left: 0.3em;
    text-transform: lowercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

.scramble-link {
    position: relative;
    overflow: hidden;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    align-items: flex-end;
    position: relative;
    z-index: 1002;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: 0.3s;
    border-radius: 2px;
    display: block;
}

.hamburger .line:nth-child(2) {
    width: 20px;
    align-self: flex-end;
}

.hamburger .line:nth-child(3) {
    width: 18px;
    align-self: flex-end;
}

.hamburger.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 25px;
}

.nav-backdrop {
    display: none;
}

.hamburger:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
    background: transparent;
}

.image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.1s ease-out;
    overflow: hidden;
    z-index: 1;
}

.image-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.image-layer.base img {
    opacity: 1;
}

.image-layer.base {
    background-image: url('../images/polygon-portrait.jpg');
    filter: blur(0px);
    transition: none;
    will-change: transform;
    transform-origin: center center;
    opacity: 1;
    mask: radial-gradient(circle at center, black 40%, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.2) 80%, transparent 100%);
    -webkit-mask: radial-gradient(circle at center, black 40%, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.2) 80%, transparent 100%);
}

.image-layer.reveal {
    background-image: url('../images/doodle-portrait.png');
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    transition: none;
    will-change: clip-path, transform;
    transform-origin: center center;
    mask: radial-gradient(circle at center, black 20%, transparent 100%);
    -webkit-mask: radial-gradient(circle at center, black 20%, transparent 100%);
}

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

/* Image Switching Buttons */
.image-switcher {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

/* Ensure buttons are accessible on mobile */
@media (max-width: 768px) {
    .image-switcher {
        padding: 0 1rem;
    }
    
    .image-switch-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        /* Larger touch targets for mobile */
    }
}

@media (max-width: 480px) {
    .image-switcher {
        padding: 0 0.5rem;
    }
    
    .image-switch-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

.image-switch-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.image-switch-btn:hover {
    background: rgba(77, 168, 255, 0.3);
    border-color: rgba(77, 168, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(77, 168, 255, 0.3);
}

.image-switch-btn:active {
    transform: scale(0.95);
}

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

.image-switch-btn:hover i {
    transform: scale(1.2);
}

.prev-btn {
    margin-right: auto;
}

.next-btn {
    margin-left: auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.role-banner {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.role-tag {
    background: rgba(77, 168, 255, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.role-tag::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.6s ease;
}

.role-tag:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 10px 25px rgba(96, 165, 250, 0.4),
        0 0 20px rgba(96, 165, 250, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

.role-tag:hover::before {
    left: 100%;
}

.role-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.role-tag:hover::after {
    width: 100px;
    height: 100px;
}

/* Click Animation Effects */
.role-tag.clicked {
    animation: clickPulse 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.role-tag.clicked::before {
    animation: clickShimmer 0.8s ease-out;
}

.role-tag.clicked::after {
    animation: clickRipple 0.6s ease-out;
}

@keyframes clickPulse {
    0% {
        transform: translateY(-3px) scale(1.05);
    }
    25% {
        transform: translateY(-3px) scale(1.15);
        box-shadow: 
            0 15px 35px rgba(96, 165, 250, 0.6),
            0 0 30px rgba(96, 165, 250, 0.8);
    }
    50% {
        transform: translateY(-3px) scale(1.1);
        box-shadow: 
            0 20px 40px rgba(96, 165, 250, 0.7),
            0 0 35px rgba(96, 165, 250, 0.9);
    }
    75% {
        transform: translateY(-3px) scale(1.08);
    }
    100% {
        transform: translateY(-3px) scale(1.05);
    }
}

@keyframes clickShimmer {
    0% {
        left: -100%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes clickRipple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    50% {
        width: 120px;
        height: 120px;
        opacity: 0.8;
    }
    100% {
        width: 150px;
        height: 150px;
        opacity: 0;
    }
}

.scroll-hint {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.bottom-text {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.bottom-text span {
    display: block;
    margin-bottom: 0.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    z-index: 100;
    opacity: 1;
    visibility: visible;
    animation: scrollIndicatorGlow 3s ease-in-out infinite;
}

@keyframes scrollIndicatorGlow {
    0%, 100% { 
        transform: translateY(0);
        filter: drop-shadow(0 0 5px rgba(138, 43, 226, 0.3));
    }
    50% { 
        transform: translateY(-3px);
        filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.6));
    }
}

.scroll-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: all 0.3s ease;
    animation: scrollTextPulse 2s ease-in-out infinite, scrollTextGlow 3s ease-in-out infinite;
    position: relative;
}

.scroll-text::before {
    content: 'Scroll Down';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, var(--accent-color), transparent);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: scrollTextShimmer 3s ease-in-out infinite;
}

@keyframes scrollTextShimmer {
    0% { 
        background-position: -200% 0;
    }
    100% { 
        background-position: 200% 0;
    }
}

@keyframes scrollTextGlow {
    0%, 100% { 
        text-shadow: 0 0 5px rgba(138, 43, 226, 0.3);
    }
    50% { 
        text-shadow: 0 0 15px rgba(138, 43, 226, 0.6);
    }
}

.scroll-indicator:hover .scroll-text {
    color: var(--primary-color);
    opacity: 1;
    transform: translateY(-2px);
}

.scroll-indicator:hover .scroll-dot {
    background: var(--primary-color);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
}

.scroll-indicator:hover .scroll-arrow {
    background: var(--primary-color);
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
}

@keyframes scrollTextPulse {
    0%, 100% { 
        opacity: 0.8; 
        transform: translateY(0);
    }
    50% { 
        opacity: 1; 
        transform: translateY(-2px);
    }
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--accent-color);
    position: relative;
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
    animation: scrollArrowPulse 2s ease-in-out infinite;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
    border-radius: 1px;
    animation: scrollArrowFlow 2s ease-in-out infinite;
}

@keyframes scrollArrowFlow {
    0% { 
        top: -8px;
        opacity: 0;
    }
    50% { 
        opacity: 1;
    }
    100% { 
        top: 30px;
        opacity: 0;
    }
}

@keyframes scrollArrowPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
    }
}

.scroll-line {
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 1px;
}

@keyframes scrollArrowPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
    }
}

.scroll-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s infinite, scrollDotGlow 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.5);
}

.scroll-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    animation: scrollDotRipple 2s ease-in-out infinite;
}

@keyframes scrollDotRipple {
    0% { 
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes scrollDotGlow {
    0%, 100% { 
        box-shadow: 0 0 8px rgba(138, 43, 226, 0.5);
    }
    50% { 
        box-shadow: 0 0 15px rgba(138, 43, 226, 0.8);
    }
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
        opacity: 0.8;
    }
    60% {
        transform: translateX(-50%) translateY(-8px);
        opacity: 0.9;
    }
}

/* About Section */
.about-section {
    padding: 8rem 0;
    background: radial-gradient(ellipse at center, rgba(12, 15, 23, 0.8) 0%, rgba(12, 15, 23, 0.4) 70%, transparent 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 100vh;
    display: flex;
    align-items: center;
}



.about-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-label {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.about-main {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.about-text {
    max-width: 900px;
}

.about-text p {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Statistics Section */
.stats-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.stat-label {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.stat-label span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Values Section */
.values-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.values-header {
    text-align: center;
    margin-bottom: 2rem;
}

.values-header p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.values-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 0.05em;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.value-item {
    background: var(--bg-secondary);
    padding: 1.8rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(96, 165, 250, 0.1);
}

.value-item:hover::before {
    transform: scaleX(1);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: grayscale(0);
    transition: transform 0.3s ease;
}

.value-item:hover .value-icon {
    transform: scale(1.1);
}

.value-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
    text-align: center;
}

.value-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

/* Timeline Section */
.timeline-section {
    padding: 5rem 0;
    background: var(--bg-primary);
}

/* Timeline Subsections */
.timeline-subsection {
    margin-bottom: 4rem;
}

.timeline-subsection:last-child {
    margin-bottom: 0;
}

.subsection-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Education Timeline Specific Styles */
.education-timeline .timeline-content {
    border-left: 3px solid var(--accent-color);
}

.education-timeline .timeline-item.left .timeline-content {
    border-right: 3px solid var(--accent-color);
    border-left: none;
}

/* Professional Timeline Specific Styles */
.professional-timeline .timeline-content {
    border-left: 3px solid var(--primary-color);
}

.professional-timeline .timeline-item.left .timeline-content {
    border-right: 3px solid var(--primary-color);
    border-left: none;
}

.neo-timeline {
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.timeline-title {
    color: var(--text-primary);
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.timeline-neo {
    position: relative;
    width: min(1100px, 92vw);
    margin: 0 auto;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-neo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(77,168,255,0.1);
    box-shadow: 0 0 8px rgba(77,168,255,0.1);
    transition: all 0.3s ease;
}

.timeline-neo::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: var(--timeline-progress, 0%);
    background: linear-gradient(to bottom, rgba(77,168,255,0.9), rgba(77,168,255,0.7), rgba(77,168,255,0.5));
    box-shadow: 0 0 20px rgba(77,168,255,0.8);
    transition: height 0.3s ease;
}

.timeline-neo .timeline-item {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    display: flex;
    align-items: center;
}

.timeline-neo .timeline-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(77,168,255,0.2);
    border-radius: 12px;
    padding: 1.8rem;
    width: min(600px, 40vw);
    line-height: 1.6;
    box-shadow: 0 0 12px rgba(77,168,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
}

.timeline-neo .timeline-content:hover {
    transform: translateY(-6px);
    border-color: rgba(77,168,255,0.4);
    box-shadow: 0 0 20px rgba(77,168,255,0.4);
}

.timeline-neo .timeline-item.left .timeline-content {
    margin-right: auto;
    margin-left: 4rem;
    max-width: calc(40vw - 5rem);
}

.timeline-neo .timeline-item.right .timeline-content {
    margin-left: auto;
    margin-right: 4rem;
    max-width: calc(40vw - 5rem);
}

.timeline-neo .timeline-content h3 {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: left;
}

.timeline-neo .timeline-content .company {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    text-align: left;
}

.timeline-neo .timeline-content .description {
    color: var(--text-secondary);
    font-size: 0.93rem;
    text-align: left;
}

.timeline-year-marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 0;
    z-index: 2;
}

.timeline-year-marker .dot {
    width: 16px;
    height: 16px;
    background: rgba(77,168,255,0.3);
    border-radius: 50%;
    margin-bottom: 8px;
    box-shadow: 0 0 8px rgba(77,168,255,0.3);
    border: 2px solid var(--bg-primary);
    transition: all 0.3s ease;
}

.timeline-year-marker .dot.crossed {
    background: var(--accent-color);
    box-shadow: 0 0 16px rgba(77,168,255,0.8);
    transform: scale(1.2);
}

.timeline-year-marker .year {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    white-space: nowrap;
}

/* Tech Stack Section - Redesigned */
.tech-stack-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, 
        rgba(15, 15, 25, 0.98) 0%, 
        rgba(25, 25, 35, 0.95) 50%, 
        rgba(20, 20, 30, 0.98) 100%);
    position: relative;
    overflow: visible;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.tech-stack-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 119, 198, 0.05) 0%, transparent 50%);
    animation: techBackgroundFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes techBackgroundFloat {
    0%, 100% { 
        opacity: 0.3;
        transform: translateY(0px);
    }
    50% { 
        opacity: 0.6;
        transform: translateY(-10px);
    }
}

.tech-stack-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.tech-stack-header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: techHeaderSlideIn 1s ease-out 0.3s both;
}

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

.tech-stack-header h2 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
    animation: techTitleGlow 3s ease-in-out infinite alternate;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
}

@keyframes techTitleGlow {
    from { 
        filter: brightness(1) drop-shadow(0 0 10px rgba(96, 165, 250, 0.3));
    }
    to { 
        filter: brightness(1.1) drop-shadow(0 0 20px rgba(96, 165, 250, 0.5));
    }
}

.tech-stack-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    animation: techSubtitleFadeIn 1s ease-out 0.6s both;
}

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

/* Modern Tech Stack Grid */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    animation: techGridFadeIn 1s ease-out 0.9s both;
    min-height: 500px;
    overflow: visible;
}

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

.tech-column {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem 1.2rem 2rem 1.2rem;
    position: relative;
    overflow: visible;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: techColumnFloat 6s ease-in-out infinite;
    min-height: 450px;
}

.tech-column:nth-child(1) { animation-delay: 0s; }
.tech-column:nth-child(2) { animation-delay: 0.5s; }
.tech-column:nth-child(3) { animation-delay: 1s; }
.tech-column:nth-child(4) { animation-delay: 1.5s; }

@keyframes techColumnFloat {
    0%, 100% { 
        transform: translateY(0px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    50% { 
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(96, 165, 250, 0.1);
    }
}

.tech-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 100%;
    animation: techColumnShimmer 3s ease-in-out infinite;
}

@keyframes techColumnShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.tech-column:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 25px 50px rgba(96, 165, 250, 0.2);
}

.tech-column:hover::before {
    animation-duration: 1s;
}

.column-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.column-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 1px;
}

.column-icon {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    display: block;
    animation: techIconPulse 4s ease-in-out infinite;
}

@keyframes techIconPulse {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.05);
        filter: brightness(1.1);
    }
}

.column-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.5rem;
    position: relative;
    padding: 0.8rem 0.4rem 1.2rem 0.4rem;
    overflow: visible;
}


.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: techItemFloat 8s ease-in-out infinite;
    margin: 0.5rem;
}

.tech-item:nth-child(odd) { animation-delay: 0s; }
.tech-item:nth-child(even) { animation-delay: 1s; }

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

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(138, 43, 226, 0.1));
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.tech-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(96, 165, 250, 0.3);
    transform: translate3d(0, -8px, 0) scale(1.05);
    box-shadow: 0 15px 30px rgba(96, 165, 250, 0.2);
}

.tech-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.4rem;
    position: relative;
    z-index: 2;
}

.tech-icon i {
    font-size: 1rem;
    color: var(--accent-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-icon img {
    width: 1rem;
    height: 1rem;
    filter: brightness(0) saturate(100%) invert(60%) sepia(100%) saturate(2000%) hue-rotate(250deg) brightness(1.2) contrast(1.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-icon div {
    width: 1rem;
    height: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-item:hover .tech-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: var(--primary-color);
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 15px 35px rgba(96, 165, 250, 0.4), 0 0 25px rgba(96, 165, 250, 0.3);
}

.tech-item:hover .tech-icon i,
.tech-item:hover .tech-icon img,
.tech-item:hover .tech-icon div {
    color: white;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
    transform: scale(1.1);
}

/* Enhanced Tooltip */
.tech-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-20px) scale(0.9);
    background: linear-gradient(135deg, rgba(15, 15, 25, 0.98), rgba(25, 25, 35, 0.98));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 220px;
    max-width: 280px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
    overflow: visible;
}

.tech-tooltip::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(96, 165, 250, 0.4);
}

.tech-tooltip h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.8rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-tooltip p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
    text-align: center;
    line-height: 1.5;
}

.tech-tooltip .proficiency-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.tech-tooltip .proficiency-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    transition: width 0.6s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.tech-tooltip .proficiency-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: white;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.tech-item:hover .tech-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-30px) scale(1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .tech-stack-header h2 {
        font-size: 2.5rem;
    }
    
    .tech-stack-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        min-height: 400px;
        padding: 1rem 0;
    }
    
    .tech-column {
        padding: 1.2rem;
        min-height: 350px;
    }
    
    .tech-items {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
        padding: 0.6rem 0.3rem 1rem 0.3rem;
    }
    
    .tech-icon {
        width: 28px;
        height: 28px;
    }
    
    .tech-icon i {
        font-size: 0.9rem;
    }
    
    .tech-tooltip {
        min-width: 160px;
        max-width: 200px;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .tech-stack-header h2 {
        font-size: 2rem;
    }
    
    .tech-stack-grid {
        min-height: 350px;
        padding: 0.8rem 0;
    }
    
    .tech-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
        padding: 0.5rem 0.2rem 0.8rem 0.2rem;
    }
    
    .tech-column {
        padding: 1rem;
        min-height: 300px;
    }
    
    .tech-icon {
        width: 24px;
        height: 24px;
    }
    
    .tech-icon i {
        font-size: 0.8rem;
    }
}

/* Tech Categories */
.tech-categories {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 4rem;
}

.tech-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.tech-category:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(96, 165, 250, 0.15);
}

.tech-category:hover::before {
    transform: scaleX(1);
}

/* Category Header */
.category-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(96, 165, 250, 0.3));
    animation: float 3s ease-in-out infinite;
}

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

.category-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
}

.category-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Tech Item */
.tech-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    cursor: pointer;
    animation: subtleFloat 6s ease-in-out infinite;
}

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

/* Staggered animation delays for wave effect */
.tech-item:nth-child(1) { animation-delay: 0s; }
.tech-item:nth-child(2) { animation-delay: 0.5s; }
.tech-item:nth-child(3) { animation-delay: 1s; }
.tech-item:nth-child(4) { animation-delay: 1.5s; }
.tech-item:nth-child(5) { animation-delay: 2s; }
.tech-item:nth-child(6) { animation-delay: 2.5s; }
.tech-item:nth-child(7) { animation-delay: 3s; }
.tech-item:nth-child(8) { animation-delay: 3.5s; }

/* Removed tech-item ::before pseudo-element for clean hover */


/* Removed basic hover effect with ::before */


/* Tech Icon */
.tech-icon {
    width: 1.8rem;
    height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tech-icon i {
    font-size: 1rem;
    color: var(--accent-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tech-icon img {
    width: 1rem;
    height: 1rem;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(64%) sepia(87%) saturate(1953%) hue-rotate(200deg) brightness(102%) contrast(101%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tech-icon div {
    font-size: 0.6rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tech-icon-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.5px;
}

/* Premium Elegant Hover Effects */
.tech-item:hover .tech-icon {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(147, 51, 234, 0.2));
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.15), 0 0 20px rgba(96, 165, 250, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tech-item:hover .tech-icon i,
.tech-item:hover .tech-icon img,
.tech-item:hover .tech-icon div {
    filter: brightness(1.1) saturate(1.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Removed icon text hover effects for clean look */

/* Premium Elegant Tech Tooltip */
.tech-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    top: auto;
    transform: translateX(-50%) translateY(-15px) scale(0.95);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 16px;
    padding: 1.2rem 1.8rem;
    min-width: 200px;
    max-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 99999;
    pointer-events: none;
    white-space: normal;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 25px rgba(96, 165, 250, 0.15);
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: visible;
    max-height: none;
}

.tech-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: rgba(30, 41, 59, 0.95);
}

/* Premium Elegant Tooltip Hover */
.tech-item:hover .tech-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-25px) scale(1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.6);
}

/* Tooltip positioning handled by CSS */

/* Enhanced Hover Effects */
.tech-item.enhanced-hover .tech-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: var(--primary-color);
    transform: scale(1.15) rotate(3deg);
    box-shadow: 0 12px 30px rgba(96, 165, 250, 0.4), 0 0 20px rgba(96, 165, 250, 0.3);
}

.tech-item.enhanced-hover .tech-icon i,
.tech-item.enhanced-hover .tech-icon img,
.tech-item.enhanced-hover .tech-icon div {
    color: white;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
    transform: scale(1.1);
}

/* Tech Ripple Effect */
.tech-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(77, 168, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* Tech Detail Header Inline (replaces category title) */
.tech-detail-header-inline {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(77, 168, 255, 0.15), rgba(138, 43, 226, 0.15));
    border: 1px solid rgba(77, 168, 255, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(77, 168, 255, 0.1);
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    align-self: center;
    justify-self: center;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tech-detail-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 6px 20px rgba(77, 168, 255, 0.4);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.tech-detail-icon img {
    width: 2.2rem;
    height: 2.2rem;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
}

.tech-detail-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tech-detail-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
    /* Allow text to wrap for longer names */
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.tech-detail-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    word-wrap: break-word;
    hyphens: auto;
    /* Show full description, allow wrapping */
    display: block;
    overflow: visible;
    text-overflow: unset;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.tech-detail-proficiency {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.tech-detail-proficiency span {
    color: var(--accent-color);
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.95rem;
}

.proficiency-bar-small {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    min-width: 80px;
    max-width: 150px;
}

.proficiency-fill-small {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    transition: width 1.2s ease;
    position: relative;
    overflow: hidden;
}

.proficiency-fill-small::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: shimmer 2s infinite;
}

.tech-detail-close {
    width: 2.2rem;
    height: 2.2rem;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tech-detail-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Ensure proper spacing and layout for all screen sizes */
.tech-detail-header-inline * {
    box-sizing: border-box;
}

/* Handle very long tech names */
.tech-detail-info h3 {
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Ensure descriptions are fully visible */
.tech-detail-description {
    max-height: none;
    overflow: visible;
    text-overflow: unset;
}

/* Better contrast for text readability */
.tech-detail-header-inline {
    background: linear-gradient(135deg, rgba(77, 168, 255, 0.2), rgba(138, 43, 226, 0.2));
    border: 1px solid rgba(77, 168, 255, 0.5);
}

.tech-detail-info h3 {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tech-detail-description {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Force centering for all column content */
.tech-column > * {
    align-self: center !important;
    justify-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Ensure column headers stay centered regardless of content */
.column-header > * {
    align-self: center !important;
    justify-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Force tech detail headers to stay centered */
.tech-detail-header-inline {
    align-self: center !important;
    justify-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Prevent horizontal overflow in tech stack */
.tech-stack-section .container {
    overflow-x: hidden;
    max-width: 100%;
}

/* Ensure all tech content fits within bounds while allowing tooltips to appear */
.tech-column,
.tech-items,
.tech-item,
.tech-detail-header-inline {
    max-width: 100%;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Hide scrollbars only on specific elements that need it */
.tech-stack-section .container,
.tech-stack-section {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tech-stack-grid,
.tech-column,
.tech-items {
    overflow: visible;
    max-width: 100%;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tech-stack-section .container::-webkit-scrollbar,
.tech-stack-section::-webkit-scrollbar,
.tech-stack-grid::-webkit-scrollbar,
.tech-column::-webkit-scrollbar,
.tech-items::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Selected tech item styling */
.tech-item.selected {
    background: linear-gradient(135deg, rgba(77, 168, 255, 0.1), rgba(138, 43, 226, 0.1));
    border-color: rgba(77, 168, 255, 0.3);
    box-shadow: 0 4px 15px rgba(77, 168, 255, 0.2);
}

.tech-item.selected .tech-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(77, 168, 255, 0.4);
}

.tech-item.selected .tech-icon i,
.tech-item.selected .tech-icon img,
.tech-item.selected .tech-icon div {
    color: white;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
    transform: scale(1.05);
}

.tech-tooltip h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tech-tooltip p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin: 0 0 0.75rem 0;
    text-align: center;
    line-height: 1.5;
    font-weight: 400;
    opacity: 0.9;
}

.tech-tooltip .proficiency-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.75rem;
    position: relative;
    border: 1px solid rgba(96, 165, 250, 0.15);
}

.tech-tooltip .proficiency-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.tech-tooltip .proficiency-fill {
    height: 100%;
    background: linear-gradient(90deg, #60a5fa, #3b82f6, #1d4ed8);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
    position: relative;
}

/* Tech Info */
.tech-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.tech-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.tech-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Proficiency Bar */
.proficiency-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.proficiency-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    width: 0%;
    transition: width 1.5s ease-out;
    position: relative;
    overflow: hidden;
}

.proficiency-fill::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%); }
}

/* Tech Stats */
.tech-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.tech-stat {
    text-align: center;
    padding: 2rem;
    background: rgba(96, 165, 250, 0.05);
    border: 1px solid rgba(96, 165, 250, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tech-stat:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(96, 165, 250, 0.2);
}

.tech-stat:hover::before {
    transform: scaleX(1);
}

.tech-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

.tech-stat .stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design for Tech Stack */
@media (max-width: 1024px) {
    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        align-items: start;
        overflow: visible;
        max-width: 100%;
    }
    
    .tech-column {
        min-height: 350px;
        align-items: center;
        justify-content: flex-start;
        overflow: visible;
        max-width: 100%;
    }
    
    .column-header {
        min-height: 100px;
        align-items: center;
        justify-content: center;
        overflow: visible;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .tech-stack-header h2 {
        font-size: 2.2rem;
    }
    
    .tech-stack-header p {
        font-size: 1rem;
    }
    
    .tech-stack-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: start;
        overflow: visible;
        max-width: 100%;
    }
    
    .tech-column {
        padding: 1.5rem;
        min-height: 300px;
        align-items: center;
        justify-content: flex-start;
        overflow: visible;
        max-width: 100%;
    }
    
    .column-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .column-header {
        min-height: 80px;
        align-items: center;
        justify-content: center;
    }
    
    .column-header h3 {
        font-size: 1.3rem;
    }
    
    .tech-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        justify-items: center;
    }
    
    .tech-item {
        padding: 0.7rem;
        justify-content: center;
    }
    
    .tech-icon {
        width: 1.6rem;
        height: 1.6rem;
    }
    
    .tech-icon i {
        font-size: 0.9rem;
    }
    
    .tech-icon img {
        width: 0.9rem;
        height: 0.9rem;
    }
    
    .tech-icon div {
        font-size: 0.5rem;
    }
    
    .tech-tooltip {
        min-width: 160px;
        padding: 0.8rem;
    }
    
    .tech-tooltip h4 {
        font-size: 0.9rem;
    }
    
    .tech-tooltip p {
        font-size: 0.8rem;
    }
    
    .tech-info {
        flex: 1;
    }
}

/* Very small screens - single column */
@media (max-width: 480px) {
    .tech-items {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .tech-item {
        padding: 1rem;
    }
    
    .tech-icon {
        width: 1.4rem;
        height: 1.4rem;
    }
    
    .tech-icon i {
        font-size: 0.8rem;
    }
    
    .tech-icon img {
        width: 0.8rem;
        height: 0.8rem;
    }
    
    .tech-icon div {
        font-size: 0.45rem;
    }
    
    .tech-info h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .tech-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2rem;
        margin-top: 3rem;
    }
    
    .tech-stat {
        padding: 1.5rem;
    }
    
    .tech-stat .stat-number {
        font-size: 2rem;
    }
    
    .tech-stat .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .tech-stats {
        grid-template-columns: 1fr;
    }
    
    .tech-stack-section {
        padding: 4rem 0;
    }
}

/* Certifications Section */
.certifications-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.certifications-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cert-grid" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(96,165,250,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23cert-grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.certifications-content {
    position: relative;
    z-index: 1;
}

.certifications-header {
    text-align: center;
    margin-bottom: 4rem;
}

.certifications-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

.certifications-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

/* iPad Pro specific layout - 2 columns side by side */
/* iPad Pro - Broader detection for better compatibility */
@media screen and (min-width: 834px) and (max-width: 1366px) and (min-height: 1024px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
        gap: 2.5rem !important;
        max-width: 1200px;
        margin: 0 auto 4rem auto;
        height: auto;
    }
    
    /* First row: MLOps & Advanced ML, Machine Learning & NLP */
    .certification-category:nth-child(1) {
        grid-column: 1 !important;
        grid-row: 1 !important;
        min-height: 400px;
        display: flex;
        flex-direction: column;
    }
    
    .certification-category:nth-child(2) {
        grid-column: 2 !important;
        grid-row: 1 !important;
        min-height: 400px;
        display: flex;
        flex-direction: column;
    }
    
    /* Second row: Data Science & Process, Advanced Programs */
    .certification-category:nth-child(3) {
        grid-column: 1 !important;
        grid-row: 2 !important;
        min-height: 400px;
        display: flex;
        flex-direction: column;
    }
    
    .certification-category:nth-child(4) {
        grid-column: 2 !important;
        grid-row: 2 !important;
        min-height: 400px;
        display: flex;
        flex-direction: column;
    }
    
    .certification-category.advanced-programs-horizontal {
        grid-column: 2 !important;
        grid-row: 2 !important;
        max-width: 100%;
    }
    
    .certification-list.horizontal-layout {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    .certification-list.horizontal-layout .certification-item {
        flex: none !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Override the horizontal layout class for iPad Pro */
    .certification-category.advanced-programs-horizontal .certification-list {
        flex-direction: column !important;
    }
}


.certification-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.certification-category:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(96, 165, 250, 0.15);
}

.certification-category:hover::before {
    transform: scaleX(1);
}

.category-header {
    text-align: center;
    margin-bottom: 2rem;
    }
    
    .category-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(96, 165, 250, 0.3));
    animation: float 3s ease-in-out infinite;
    }
    
    .category-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    }
    
.certification-list {
    display: flex;
    flex-direction: column;
        gap: 1.5rem;
    }
    
/* Horizontal layout for Advanced Programs */
.certification-category.advanced-programs-horizontal {
    grid-column: 1 / -1;
    max-width: 1200px;
    margin: 0 auto;
}

.certification-list.horizontal-layout {
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
}

.certification-list.horizontal-layout .certification-item {
    flex: 1;
    min-width: 0;
    max-width: 500px;
}

.certification-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
        padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
        gap: 1rem;
    position: relative;
    overflow: hidden;
}

.certification-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(59, 130, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certification-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(96, 165, 250, 0.2);
}

.certification-item:hover::before {
    opacity: 1;
}

.cert-icon {
        width: 50px;
        height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(96, 165, 250, 0.1);
    border: 2px solid rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.cert-icon i {
    font-size: 1.8rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.cert-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(64%) sepia(87%) saturate(1953%) hue-rotate(200deg) brightness(102%) contrast(101%);
    transition: all 0.3s ease;
}

.certification-item:hover .cert-icon {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.4);
}

.certification-item:hover .cert-icon i,
.certification-item:hover .cert-icon img {
    color: white;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
}

.cert-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.cert-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
}

.cert-info .issuer {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.cert-info .date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.cert-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-badge.verified {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.cert-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.cert-stat {
    text-align: center;
    padding: 2rem;
    background: rgba(96, 165, 250, 0.05);
    border: 1px solid rgba(96, 165, 250, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cert-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cert-stat:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(96, 165, 250, 0.2);
}

.cert-stat:hover::before {
    transform: scaleX(1);
}

.cert-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

.cert-stat .stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design for Certifications */
@media (max-width: 768px) {
    .certifications-header h2 {
        font-size: 2.2rem;
    }
    
    .certifications-header p {
        font-size: 1rem;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .certification-category {
        padding: 2rem;
    }
    
    /* Reset horizontal layout on mobile */
    .certification-category.advanced-programs-horizontal {
        grid-column: span 1;
    }
    
    .certification-list.horizontal-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .category-header h3 {
        font-size: 1.3rem;
    }
    
    .certification-item {
        padding: 1.2rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .cert-icon {
        width: 45px;
        height: 45px;
    }
    
    .cert-icon i {
        font-size: 1.5rem;
    }
    
    .cert-icon img {
        width: 24px;
        height: 24px;
    }
    
    .cert-info h4 {
        font-size: 1rem;
    }
    
    .cert-info .issuer,
    .cert-info .date {
        font-size: 0.8rem;
    }
    
    .cert-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2rem;
        margin-top: 3rem;
    }
    
    .cert-stat {
        padding: 1.5rem;
    }
    
    .cert-stat .stat-number {
        font-size: 2rem;
    }
    
    .cert-stat .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cert-stats {
        grid-template-columns: 1fr;
    }
    
    .certifications-section {
        padding: 4rem 0;
    }
}

/* Achievements Section */
.achievements-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.achievements-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="achievement-grid" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1.5" fill="rgba(96,165,250,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23achievement-grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.achievements-content {
    position: relative;
    z-index: 1;
}

.achievements-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.achievements-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

.achievements-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.achievement-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.achievement-category:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(96, 165, 250, 0.15);
}

.achievement-category:hover::before {
    transform: scaleX(1);
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.achievement-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.achievement-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(59, 130, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(96, 165, 250, 0.2);
}

.achievement-item:hover::before {
    opacity: 1;
}

.achievement-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(96, 165, 250, 0.1);
    border: 2px solid rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.achievement-icon i {
    font-size: 1.8rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.achievement-item:hover .achievement-icon {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.4);
}

.achievement-item:hover .achievement-icon i {
    color: white;
}

.achievement-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.achievement-info h4 {
        font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.achievement-info .platform,
.achievement-info .company {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.achievement-info .date {
        font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.achievement-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.achievement-badge.featured {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.achievement-badge.award {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.achievement-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.achievement-stat {
    text-align: center;
    padding: 2rem;
    background: rgba(96, 165, 250, 0.05);
    border: 1px solid rgba(96, 165, 250, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.achievement-stat:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(96, 165, 250, 0.2);
}

.achievement-stat:hover::before {
    transform: scaleX(1);
}

.achievement-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

.achievement-stat .stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design for Achievements */
@media (max-width: 768px) {
    .achievements-header h2 {
        font-size: 2.2rem;
    }
    
    .achievements-header p {
        font-size: 1rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .achievement-category {
        padding: 1.8rem;
    }
    
    .achievement-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.6rem;
    }
    
    .achievement-icon {
        width: 40px;
        height: 40px;
    }
    
    .achievement-icon i {
        font-size: 1.5rem;
    }
    
    .achievement-info h4 {
        font-size: 1rem;
    }
    
    .achievement-info .platform,
    .achievement-info .company,
    .achievement-info .date {
        font-size: 0.8rem;
    }
    
    .achievement-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2rem;
        margin-top: 3rem;
    }
    
    .achievement-stat {
        padding: 1.5rem;
    }
    
    .achievement-stat .stat-number {
        font-size: 2rem;
    }
    
    .achievement-stat .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .achievement-stats {
        grid-template-columns: 1fr;
    }
    
    .achievements-section {
        padding: 3rem 0;
    }
}

/* Works Section */
.works-section {
    padding: 5rem 0;
    background: radial-gradient(ellipse at center, rgba(26, 29, 41, 0.8) 0%, rgba(26, 29, 41, 0.4) 70%, transparent 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.works-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.works-content > p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}


.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.loading-projects {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(77, 168, 255, 0.3);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.error-state i {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.error-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.error-state p {
    margin-bottom: 2rem;
    max-width: 400px;
}

/* Update Indicator */
.update-indicator {
    margin-bottom: 2rem;
    animation: slideInDown 0.5s ease;
}

.update-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(77, 168, 255, 0.1);
    border: 1px solid rgba(77, 168, 255, 0.3);
    border-radius: 25px;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.update-banner .spinning {
    animation: spin 1s linear infinite;
}

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

.work-item {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(77, 168, 255, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.work-item:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(77, 168, 255, 0.4);
    box-shadow: 0 25px 50px rgba(77, 168, 255, 0.2);
}

.work-item:hover::before {
    opacity: 1;
}

.work-item:hover .work-thumbnail-link {
    transform: scale(1.02);
}

.work-item:hover .work-thumbnail img {
    transform: scale(1.1);
}

.work-image {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


.work-thumbnail-link:hover {
    transform: scale(1.02);
}

.work-thumbnail-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(96, 165, 250, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.work-thumbnail-link:hover::after {
    opacity: 1;
}

.work-thumbnail-link::before {
    content: '\f09b';
    font-family: 'Font Awesome 6 Brands';
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.work-thumbnail-link:hover::before {
    opacity: 1;
}

.work-thumbnail-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.work-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Custom Project Cards - Elegant Glassmorphism Design */
.custom-project-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 2rem;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 16px;
    pointer-events: none;
}

.custom-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.15);
}

.project-header {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.project-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 2;
}

.project-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    font-weight: 400;
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 2;
}

.tech-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.tech-icon {
    font-size: 1.8rem;
    width: 3.2rem;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 2;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tech-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    border-radius: 50%;
}

.tech-icon:hover {
    transform: scale(1.12) rotate(3deg);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tech-icon:hover::before {
    transform: translateX(100%);
}

/* Modern Works Section - Optimized */
.modern-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

.card-link:focus {
    outline: none;
}

.card-link:focus .modern-work-card {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.modern-work-card {
    position: relative;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    will-change: transform, opacity;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: cardFloat 6s ease-in-out infinite;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .modern-work-card {
        animation: none;
        transition: transform 0.2s ease;
    }
}

/* Staggered animation delays - reduced for performance */
.modern-work-card:nth-child(1) { animation-delay: 0s; }
.modern-work-card:nth-child(2) { animation-delay: 2s; }
.modern-work-card:nth-child(3) { animation-delay: 4s; }
.modern-work-card:nth-child(4) { animation-delay: 1s; }
.modern-work-card:nth-child(5) { animation-delay: 3s; }
.modern-work-card:nth-child(6) { animation-delay: 5s; }

@keyframes cardFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -4px, 0); }
}

.modern-work-card:hover {
    transform: translate3d(0, -12px, 0) scale(1.05);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
    animation: none;
    cursor: pointer;
}

.card-link:hover .modern-work-card::after {
    content: 'Click to view on GitHub';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
    z-index: 10;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.gradient-overlay {
    width: 100%;
    height: 100%;
    opacity: 0.6;
    transition: opacity 0.4s ease, transform 0.4s ease;
    animation: gradientShift 8s ease-in-out infinite;
    will-change: opacity, transform;
}

@keyframes gradientShift {
    0%, 100% { 
        opacity: 0.6;
        transform: scale3d(1, 1, 1);
    }
    50% { 
        opacity: 0.8;
        transform: scale3d(1.05, 1.05, 1);
    }
}

.modern-work-card:hover .gradient-overlay {
    opacity: 1;
    transform: scale(1.1);
    animation: none;
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-icon {
    margin-bottom: 1.5rem;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease;
    position: relative;
    overflow: hidden;
    will-change: transform, background;
    animation: iconPulse 4s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.05); }
}

.modern-work-card:hover .icon-wrapper {
    transform: scale3d(1.15, 1.15, 1) rotate(8deg);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    animation: iconSpin 0.6s ease-in-out;
}

@keyframes iconSpin {
    0% { transform: scale3d(1, 1, 1) rotate(0deg); }
    50% { transform: scale3d(1.2, 1.2, 1) rotate(180deg); }
    100% { transform: scale3d(1.15, 1.15, 1) rotate(8deg); }
}

.icon-wrapper i {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.modern-work-card:hover .icon-wrapper i {
    color: white;
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.6rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    width: 100%;
    transition: transform 0.4s ease, text-shadow 0.4s ease;
    will-change: text-shadow;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
    50% { text-shadow: 0 0 15px rgba(255, 255, 255, 0.5); }
}

.modern-work-card:hover .project-title {
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    animation: none;
}

.project-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin-bottom: 1.2rem;
    font-weight: 400;
    text-align: center;
    width: 100%;
    max-width: 280px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.modern-work-card:hover .project-description {
    opacity: 1;
    transform: translateY(-1px);
    color: rgba(255, 255, 255, 0.95);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
    justify-content: center;
    align-items: center;
    max-width: 280px;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    transform: translateY(0);
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    justify-content: center;
    align-items: center;
}

.action-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    pointer-events: none;
    cursor: default;
}

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

.action-btn:hover::before {
    left: 100%;
}

.github-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.external-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.action-btn:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.action-btn i {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.1);
}

.card-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%, rgba(255, 255, 255, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modern-work-card:hover .card-hover-effect {
    opacity: 1;
}

/* Modern Gradient Themes */
.sage-maker-gradient {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.3) 0%, rgba(160, 82, 45, 0.2) 100%);
}

.text-summarizer-gradient {
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.3) 0%, rgba(138, 43, 226, 0.2) 100%);
}

.student-prediction-gradient {
    background: linear-gradient(135deg, rgba(105, 105, 105, 0.3) 0%, rgba(128, 128, 128, 0.2) 100%);
}

.blog-generation-gradient {
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.3) 0%, rgba(34, 139, 34, 0.2) 100%);
}

.grafana-dashboard-gradient {
    background: linear-gradient(135deg, rgba(128, 0, 128, 0.3) 0%, rgba(186, 85, 211, 0.2) 100%);
}

.mobile-classification-gradient {
    background: linear-gradient(135deg, rgba(47, 79, 79, 0.3) 0%, rgba(95, 158, 160, 0.2) 100%);
}

/* Responsive Design for Modern Work Cards */
@media (max-width: 768px) {
    .modern-works-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .modern-work-card {
        height: 260px;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .icon-wrapper i {
        font-size: 1.5rem;
    }
    
    .project-info {
        text-align: center;
        padding: 0 0.5rem;
    }
    
    .project-title {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
        text-align: center;
    }
    
    .project-description {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
        text-align: center;
        max-width: 240px;
    }
    
    .tech-stack {
        justify-content: center;
        max-width: 240px;
    }
    
    .tech-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
    
    .card-actions {
        justify-content: center;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .modern-works-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }
    
    .modern-work-card {
        height: 240px;
    }
    
    .card-content {
        padding: 1.2rem;
    }
    
    .icon-wrapper {
        width: 45px;
        height: 45px;
        margin-bottom: 1rem;
    }
    
    .icon-wrapper i {
        font-size: 1.3rem;
    }
    
    .project-info {
        text-align: center;
        padding: 0 0.5rem;
    }
    
    .project-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .project-description {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        text-align: center;
        max-width: 200px;
    }
    
    .tech-stack {
        gap: 0.4rem;
        margin-bottom: 1rem;
        justify-content: center;
        max-width: 200px;
    }
    
    .tech-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
    
    .card-actions {
        gap: 0.8rem;
        justify-content: center;
    }
    
    .action-btn {
        width: 36px;
        height: 36px;
    }
}

.work-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-overlay {
    text-align: center;
    color: white;
    padding: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.work-links {
    pointer-events: auto;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.work-overlay p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.work-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(77, 168, 255, 0.1);
    border: 1px solid rgba(77, 168, 255, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 500;
}

.work-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.work-link {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.work-link:hover {
    transform: scale(1.2);
}

.works-more {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

.works-more .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.works-more .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(96, 165, 250, 0.4);
}

/* Contact Section - Redesigned */
.contact-section {
    padding: 6rem 0;
    background: radial-gradient(ellipse at center, rgba(15, 15, 25, 0.8) 0%, rgba(25, 25, 35, 0.4) 70%, transparent 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    animation: contactSectionFadeIn 1.2s ease-out;
}

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

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Contact Header */
.contact-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
    animation: headerSlideIn 1s ease-out 0.3s both;
}

@keyframes headerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.4));
    }
}

.contact-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: gridFadeIn 1s ease-out 0.6s both;
}

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

/* Contact Info Card */
.contact-info-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardSlideInLeft 1s ease-out 0.9s both;
}

@keyframes cardSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-info-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(96, 165, 250, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* Contact Info Header */
.contact-info-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: avatarFloat 3s ease-in-out infinite;
}

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

.contact-info-card:hover .contact-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(96, 165, 250, 0.4);
}

.contact-avatar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    z-index: -1;
}

.avatar-icon {
    font-size: 2.5rem;
    color: white;
}

.contact-info-title h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
}

.contact-info-title p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 1rem;
}

/* Contact Methods */
.contact-methods {
    margin-bottom: 2.5rem;
}

.contact-method:nth-child(1) {
    animation: methodSlideIn 0.8s ease-out 1.5s both;
}

.contact-method:nth-child(2) {
    animation: methodSlideIn 0.8s ease-out 1.7s both;
}

.contact-method:nth-child(3) {
    animation: methodSlideIn 0.8s ease-out 1.9s both;
}

@keyframes methodSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-method:last-child {
    border-bottom: none;
}

.method-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-method:hover .method-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(96, 165, 250, 0.2);
    box-shadow: 0 5px 15px rgba(96, 165, 250, 0.3);
}

.method-icon svg {
    width: 20px;
    height: 20px;
}

.method-content {
    flex: 1;
}

.method-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.method-value {
    display: block;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.method-value:hover {
    color: var(--primary-color);
}

/* Social Links */
.social-links h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 60px;
    height: 60px;
    box-sizing: border-box;
    flex: 1;
}

/* Ensure GitHub link has same flex properties */
.social-link.github {
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    flex: 1 !important;
}

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

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.15);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
}

.social-link:hover .social-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    min-width: 20px;
    min-height: 20px;
    object-fit: contain;
    display: block;
}

/* Specific fix for GitHub icon to ensure consistent sizing */
.social-link.github .social-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.social-link.github .social-icon svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    display: block !important;
    object-fit: contain !important;
    fill: currentColor !important;
}

/* Contact Form Card */
.contact-form-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardSlideInRight 1s ease-out 1.2s both;
}

@keyframes cardSlideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-form-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(138, 43, 226, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(138, 43, 226, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
}

.form-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 1rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    animation: formRowSlideIn 0.8s ease-out 1.5s both;
}

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

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form .form-group:nth-child(1) {
    animation: formGroupSlideIn 0.8s ease-out 1.7s both;
}

.contact-form .form-group:nth-child(2) {
    animation: formGroupSlideIn 0.8s ease-out 1.9s both;
}

.contact-form .form-group:nth-child(3) {
    animation: formGroupSlideIn 0.8s ease-out 2.1s both;
}

.contact-form .form-group:nth-child(4) {
    animation: formGroupSlideIn 0.8s ease-out 2.3s both;
}

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

.form-group label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 0 3px rgba(96, 165, 250, 0.1),
        0 5px 20px rgba(96, 165, 250, 0.2);
    transform: translateY(-3px) scale(1.02);
}

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

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(96, 165, 250, 0);
    }
}

.submit-btn::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;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(96, 165, 250, 0.4),
        0 0 25px rgba(138, 43, 226, 0.3);
    animation: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(3px) scale(1.1);
}

/* Social Links Staggered Animation */
.social-link:nth-child(1) {
    animation: socialSlideIn 0.6s ease-out 2.1s both;
}

.social-link:nth-child(2) {
    animation: socialSlideIn 0.6s ease-out 2.3s both;
}

.social-link:nth-child(3) {
    animation: socialSlideIn 0.6s ease-out 2.5s both;
}

.social-link:nth-child(4) {
    animation: socialSlideIn 0.6s ease-out 2.7s both;
}

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

/* Floating Particles Background Effect */
.contact-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 119, 198, 0.05) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate(20px, -20px) rotate(1deg);
        opacity: 0.5;
    }
    50% {
        transform: translate(-10px, 10px) rotate(-1deg);
        opacity: 0.4;
    }
    75% {
        transform: translate(15px, 5px) rotate(0.5deg);
        opacity: 0.6;
    }
}

/* Responsive Design for Contact Section */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-header h2 {
        font-size: 2.8rem;
    }
    
    .contact-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 0;
        min-height: auto;
    }
    
    .contact-header {
        margin-bottom: 3rem;
    }
    
    .contact-header h2 {
        font-size: 2.2rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 2rem;
    }
    
    .contact-info-header {
        flex-direction: column;
        text-align: center;
    gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .contact-avatar {
        width: 70px;
        height: 70px;
    }
    
    .avatar-icon {
        font-size: 2rem;
    }
    
    .contact-info-title h3 {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-header h2 {
    font-size: 1.8rem;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .contact-methods {
        margin-bottom: 2rem;
    }
    
    .contact-method {
        padding: 0.8rem 0;
    }
    
    .method-icon {
        width: 35px;
        height: 35px;
    }
    
    .method-icon svg {
        width: 18px;
        height: 18px;
    }
    
    /* Reduce animations on mobile for performance */
    .contact-section,
    .contact-header,
    .contact-grid,
    .contact-info-card,
    .contact-form-card {
        animation-duration: 0.5s;
    }
    
    .avatarFloat,
    .titleGlow,
    .buttonPulse,
    .backgroundFloat {
        animation-duration: 2s;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .contact-section,
    .contact-header,
    .contact-grid,
    .contact-info-card,
    .contact-form-card,
    .contact-method,
    .contact-form .form-group,
    .social-link,
    .submit-btn {
        animation: none !important;
        transition: none !important;
    }
    
    .avatarFloat,
    .titleGlow,
    .buttonPulse,
    .backgroundFloat {
        animation: none !important;
    }
}

.card-icon {
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 8px;
    flex-shrink: 0;
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.connect-description {
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    text-align: center;
}

.contact-details {
    margin-bottom: 1.2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    overflow: visible;
    /* Extra padding to accommodate hover effects */
    padding: 1.5rem;
    margin: 0 -1.5rem;
    width: 100%;
    justify-items: center;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.contact-detail-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 1rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(96, 165, 250, 0.1);
    border-radius: 6px;
    flex-shrink: 0;
}

.contact-detail-content h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-detail-content p,
.contact-detail-content a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0;
    font-size: 0.8rem;
}

.contact-detail-content a:hover {
    color: var(--accent-color);
}

/* Social Links */
.social-links h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    overflow: visible;
    /* Extra padding to accommodate hover effects */
    padding: 1.5rem;
    margin: 0 -1.5rem;
    width: 100%;
    justify-items: center;
    align-items: center;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    justify-content: center;
}

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

.social-button:hover::before {
    left: 100%;
}

.social-button:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(96, 165, 250, 0.2);
    text-decoration: none;
}

.social-button .social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(96, 165, 250, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.social-button .social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-button:hover .social-icon {
    background: var(--accent-color);
    transform: scale(1.1);
}

.social-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.social-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.social-handle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Platform-specific colors */
.social-button.linkedin:hover {
    border-color: #0077b5;
    box-shadow: 0 10px 20px rgba(0, 119, 181, 0.2);
}

.social-button.linkedin:hover .social-icon {
    background: #0077b5;
}

.social-button.github:hover {
    border-color: #333;
    box-shadow: 0 10px 20px rgba(51, 51, 51, 0.2);
}

.social-button.github:hover .social-icon {
    background: #333;
}

.social-button.medium:hover {
    border-color: #00ab6c;
    box-shadow: 0 10px 20px rgba(0, 171, 108, 0.2);
}

.social-button.medium:hover .social-icon {
    background: #00ab6c;
}

.social-button.email:hover {
    border-color: #ea4335;
    box-shadow: 0 10px 20px rgba(234, 67, 53, 0.2);
}

.social-button.email:hover .social-icon {
    background: #ea4335;
}

.social-button.instagram:hover {
    border-color: #E4405F;
    box-shadow: 0 10px 20px rgba(228, 64, 95, 0.2);
}

.social-button.instagram:hover .social-icon {
    background: #E4405F;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    /* Completely hide all scrollbar elements */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    overflow-x: hidden; /* Hide horizontal scrollbar */
    overflow-y: auto; /* Keep vertical scrolling but hide scrollbar */
}

/* Hide all scrollbar elements for textarea */
.form-group textarea::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
    width: 0 !important;
    height: 0 !important;
}

.form-group textarea::-webkit-scrollbar-track {
    display: none !important;
}

.form-group textarea::-webkit-scrollbar-thumb {
    display: none !important;
}

.form-group textarea::-webkit-scrollbar-corner {
    display: none !important;
}

/* Additional Firefox scrollbar hiding */
.form-group textarea {
    scrollbar-width: none !important;
    scrollbar-color: transparent transparent !important;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(96, 165, 250, 0.3);
}

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

.btn-outline:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(2px);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form Status Messages */
.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.status-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.status-message svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.status-message.success {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-message.error {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Availability Card */
.availability-card {
    text-align: center;
}

.availability-info {
    margin-bottom: 2rem;
}

.availability-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.availability-item:hover {
    background: rgba(96, 165, 250, 0.1);
    transform: translateX(5px);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.available {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.availability-item span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.contact-cta {
    background: rgba(96, 165, 250, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.contact-cta h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.status-available {
    color: #10B981 !important;
    font-weight: 500 !important;
}

/* Mobile responsive adjustments for elegant top progress tracker */
@media (max-width: 768px) {
    #top-scroll-progress {
        height: 30px;
    }
    
    .scroll-info {
        padding: 4px 12px;
        height: 28px;
    }
    
    .current-section {
        font-size: 0.7rem;
    }
    
    .current-section::before {
        width: 2px;
        height: 2px;
        left: -6px;
    }
    
    .scroll-percentage {
        font-size: 0.65rem;
        padding: 2px 4px;
        min-width: 30px;
    }
    
    /* Header Mobile */
    header {
        top: 30px; /* Adjusted for compact mobile top progress tracker */
    }
    
    header.top-progress-hidden {
        top: 0;
    }
}

@media (max-width: 480px) {
    .scroll-percentage {
        font-size: 0.65rem;
        padding: 2px 4px;
        min-width: 30px;
    }
    
    .current-section {
        font-size: 0.7rem;
    }
    
    .scroll-info {
        padding: 4px 12px;
    }

    header {
        padding: 0.75rem 1.25rem;
    }

    .hero {
        padding-top: 4.5rem;
    }

    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero h1 br {
        display: none;
    }

    .role-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.85rem;
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    header {
        padding: 0.85rem 1.5rem;
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(12, 15, 23, 0.65);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-duration) ease;
        z-index: 1000;
    }

    .nav-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(320px, 80vw);
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        background: rgba(12, 15, 23, 0.94);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        transform: translateX(110%);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--transition-duration) ease, opacity var(--transition-duration) ease, visibility var(--transition-duration) ease;
        pointer-events: none;
        z-index: 1001;
        padding: 6rem 2rem 3rem;
        box-shadow: -12px 0 32px rgba(0, 0, 0, 0.45);
        overflow-y: auto;
    }

    nav.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.75rem;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        text-align: left;
    }

    nav ul li a {
        font-size: 1.1rem;
        letter-spacing: 0.08em;
        display: block;
        width: 100%;
        padding: 0.25rem 0;
    }

    .timeline-neo .timeline-content {
        width: 85vw;
        margin: 0 auto !important;
        max-width: 85vw !important;
    }
    
    .timeline-neo .timeline-item.left .timeline-content {
        margin-left: 2rem !important;
    }
    
    .timeline-neo .timeline-item.right .timeline-content {
        margin-right: 2rem !important;
    }
    
    .timeline-neo .timeline-item {
        flex-direction: column;
        margin: 2rem 0;
    }
    
    .timeline-year-marker {
        margin: 1rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .role-banner {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .image-switcher {
        padding: 0 1rem;
    }
    
    .image-switch-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    #scroll-progress {
        display: none;
    }

    .bg-connections,
    .bg-gradient-orb,
    .bg-mesh,
    .bg-aurora,
    .spotlight-effect {
        display: none;
    }

    .hero {
        min-height: 100vh;
        padding-top: 5rem;
    }

    .hero .content {
        padding: 0 1.25rem;
    }

    .role-banner {
        gap: 0.8rem;
    }

    .role-tag {
        font-size: 0.85rem;
        padding: 0.45rem 0.9rem;
    }

    .cta-buttons {
        width: 100%;
        flex-direction: column;
        gap: 0.9rem;
        align-items: stretch;
    }

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

    .hero h1 {
        font-size: 2rem;
    }
    
    .name-main {
        font-size: 3rem;
    }
    
    .image-switcher {
        padding: 0 0.5rem;
    }
    
    .image-switch-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .key-points {
        grid-template-columns: 1fr;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .works-filter {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .about-section {
        padding: 4rem 0;
        min-height: auto;
    }
    
    .about-text p {
        font-size: 1.2rem;
        line-height: 1.5;
    }
    
    .stats-section {
        flex-direction: column;
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .stat-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0;
    }
    
    .stat-label {
        text-align: right;
    }
    
    .stat-label span {
        font-size: 0.8rem;
    }
    
    .values-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .values-section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-top: 0.8rem;
    }
    
    .value-item {
        padding: 1.5rem 1.2rem;
    }
    
    .value-icon {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .value-item h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
        text-align: center;
    }
    
    .value-item p {
        font-size: 0.85rem;
        line-height: 1.4;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

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

    .social-button {
        padding: 0.8rem;
    }

    .social-button .social-icon {
        width: 35px;
        height: 35px;
    }

    .social-button .social-icon svg {
        width: 18px;
        height: 18px;
    }

    .social-name {
        font-size: 0.9rem;
    }

    .social-handle {
        font-size: 0.8rem;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .contact-detail-item {
        gap: 0.8rem;
        margin-bottom: 0.6rem;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }

    .availability-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .contact-cta {
        padding: 1.2rem;
    }

    .contact-cta h4 {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .availability-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .side-label {
        display: none;
    }
}

/* Enhanced 3D Effects and Animations */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.hover-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(96, 165, 250, 0.2);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* 3D Interactive Elements */
.btn, .work-item, .timeline-content, .value-item, .contact-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.work-item {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.work-item:hover {
    transform-style: preserve-3d;
}

/* Staggered Animation Classes */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
}

.stagger-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Reveal Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Image Effects */
.image-breathing {
    animation: imageBreathing 6s ease-in-out infinite;
}

@keyframes imageBreathing {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.03) rotate(0.5deg);
        filter: brightness(1.1);
    }
}

/* Breathing Animation */
.breathing {
    animation: breathing 4s ease-in-out infinite;
}

@keyframes breathing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Parallax Container */
.parallax-container {
    overflow: hidden;
}

.parallax-element {
    will-change: transform;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Vertical Side Labels - Banner Style */
.side-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
}

.left-label {
    left: 30px;
    flex-direction: row;
}

.right-label {
    right: 30px;
    flex-direction: row-reverse;
}

.label-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    transform: rotate(180deg);
    opacity: 0.9;
    transition: all 0.3s ease;
    padding: 20px 8px;
    background: rgba(96, 165, 250, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    backdrop-filter: blur(10px);
}

.right-label .label-text {
    transform: rotate(0deg);
}

.label-oval {
    width: 80px;
    height: 200px;
    position: relative;
    opacity: 0.7;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 40px;
    border: 2px solid rgba(96, 165, 250, 0.3);
    backdrop-filter: blur(5px);
}

.left-label .label-oval {
    border-radius: 40px 0 0 40px;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.2) 0%, rgba(96, 165, 250, 0.05) 100%);
}

.right-label .label-oval {
    border-radius: 0 40px 40px 0;
    background: linear-gradient(270deg, rgba(96, 165, 250, 0.2) 0%, rgba(96, 165, 250, 0.05) 100%);
}

.side-label:hover .label-text {
    opacity: 1;
    color: var(--accent-color);
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.15);
}

.side-label:hover .label-oval {
    opacity: 1;
    transform: scale(1.05);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.2);
}

.left-label:hover .label-oval {
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.3) 0%, rgba(96, 165, 250, 0.1) 100%);
}

.right-label:hover .label-oval {
    background: linear-gradient(270deg, rgba(96, 165, 250, 0.3) 0%, rgba(96, 165, 250, 0.1) 100%);
}

/* Main Page Scrollbar Styling - Only for body/html */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Hide scrollbars on all other elements */
*:not(html):not(body)::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

*:not(html):not(body) {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Additional scrollbar hiding for specific elements */
.tech-tooltip,
.modal,
.overlay,
.popup,
.dropdown,
.select-dropdown,
.nav-dropdown,
.mobile-menu,
.sidebar,
.panel,
.card,
.box,
.frame,
.wrapper,
.content-wrapper {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tech-tooltip::-webkit-scrollbar,
.modal::-webkit-scrollbar,
.overlay::-webkit-scrollbar,
.popup::-webkit-scrollbar,
.dropdown::-webkit-scrollbar,
.select-dropdown::-webkit-scrollbar,
.nav-dropdown::-webkit-scrollbar,
.mobile-menu::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.panel::-webkit-scrollbar,
.card::-webkit-scrollbar,
.box::-webkit-scrollbar,
.frame::-webkit-scrollbar,
.wrapper::-webkit-scrollbar,
.content-wrapper::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .point,
    .work-item,
    .timeline-neo .timeline-content {
        transition: none !important;
    }
    
    .point:hover,
    .work-item:hover {
        transform: none !important;
    }
    
    .point i,
    .work-link {
        transition: none !important;
    }
}

/* Comprehensive Mobile and Responsive Optimizations */

/* Mobile First - Base Styles */
@media (max-width: 480px) {
    /* Typography */
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .name-main {
        font-size: 2.5rem;
    }
    
    /* Navigation */
    .logo {
        font-size: 1.2rem;
    }
    
    /* Hero Section */
    .hero .content {
        padding: 0 1rem;
    }
    
    .role-banner {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .role-tag {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    /* Buttons */
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Tech Stack */
    .tech-stack-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: start;
    }
    
    .tech-column {
        padding: 1.5rem;
        min-height: 280px;
        align-items: center;
        justify-content: flex-start;
    }
    
    .column-header {
        min-height: 70px;
        align-items: center;
        justify-content: center;
    }
    
    .tech-items {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        justify-items: center;
    }
    
    /* Certifications */
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .certification-list.horizontal-layout {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Achievements */
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Works */
    .works-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Values */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .values-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .values-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    /* Tech Detail Header Mobile */
    .tech-detail-header-inline {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
        align-items: center;
        position: relative;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .tech-detail-close {
        position: absolute;
        top: 0.8rem;
        right: 0.8rem;
        align-self: auto;
        margin-top: 0;
        z-index: 10;
    }
    
    .tech-detail-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
        margin: 0;
        align-self: center;
    }
    
    .tech-detail-icon img {
        width: 1.8rem;
        height: 1.8rem;
    }
    
    .tech-detail-info {
        width: 100%;
        align-items: center;
        gap: 0.8rem;
    }
    
    .tech-detail-info h3 {
        font-size: 1.2rem;
        text-align: center;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.3;
    }
    
    .tech-detail-description {
        font-size: 0.9rem;
        text-align: center;
        line-height: 1.4;
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
        max-width: 100%;
    }
    
    .tech-detail-proficiency {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        width: 100%;
    }
    
    .tech-detail-proficiency span {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .proficiency-bar-small {
        width: 100%;
        max-width: 200px;
        height: 5px;
    }
    
    /* Timeline */
    .timeline {
        padding: 2rem 1rem;
    }
    
    .timeline-item {
        padding: 1.5rem;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

/* Very small screens - single column for social grid */
@media (max-width: 480px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    
    /* Stats */
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn, .nav-link, .image-switch-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects only on actual touch devices */
    .btn:hover,
    .social-button:hover {
        transform: none;
    }
}

/* Hover effects removed for clean look */
    
    /* Ensure proper spacing for touch */
    .nav ul li {
        margin: 0 0.5rem;
    }
    
    /* Optimize form inputs for touch */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
    }
}

/* Landscape Mobile Optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .content {
        padding: 1rem;
    }
    
    .stats-section {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}