/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0a0f;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: #00d9ff;
    font-weight: 600;
}

/* ===== INITIAL STATE ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-content.active {
    display: block;
    opacity: 1;
}

/* ===== LOADING SCREEN ANIMATIONS ===== */
.loading-content {
    text-align: center;
    animation: fadeIn 1s ease;
    position: relative;
    z-index: 2;
}

.tech-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.tech-icon {
    position: absolute;
    font-family: 'Courier New', monospace, 'Segoe UI Emoji';
    font-weight: bold;
    color: #00d9ff;
    opacity: 0;
    text-shadow: 0 0 10px currentColor;
    animation: techFloat 8s linear infinite;
    filter: drop-shadow(0 0 8px currentColor);
    z-index: 2;
    pointer-events: none;
}

@keyframes techFloat {
    0% {
        transform: translateY(110vh) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    5% { opacity: 0.8; }
    95% { opacity: 0.8; }
    100% {
        transform: translateY(-150px) rotate(180deg) scale(1.2);
        opacity: 0;
    }
}

.neural-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.4), transparent);
    height: 2px;
    transform-origin: left center;
    animation: neuralPulse 2.5s ease-in-out infinite;
    z-index: 1;
}

@keyframes neuralPulse {
    0%, 100% {
        opacity: 0.2;
        width: 0;
    }
    50% {
        opacity: 0.8;
        width: 120px;
    }
}

.brain-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    opacity: 0.6;
    z-index: 3;
}

.brain-part {
    position: absolute;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.5), transparent 70%);
    border-radius: 50%;
    animation: brainPulse 1.8s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
}

.brain-part:nth-child(1) {
    width: 70px;
    height: 90px;
    top: 15px;
    left: 25px;
    animation-delay: 0s;
}

.brain-part:nth-child(2) {
    width: 70px;
    height: 90px;
    top: 15px;
    right: 25px;
    animation-delay: 0.9s;
}

@keyframes brainPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

.loading-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #00d9ff, #0088ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: pulse 2s infinite;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.loading-title {
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #00d9ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loading-bar {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 20px auto;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #00d9ff, #0088ff);
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.loading-percent {
    font-size: 1.2rem;
    color: #00d9ff;
    margin: 10px 0;
}

.loading-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-top: 10px;
    position: relative;
    z-index: 4;
}

/* ===== WELCOME SCREEN ===== */
.welcome-screen.active {
    display: flex;
    opacity: 1;
}

.welcome-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    height: 300%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 170, 0, 0.1) 0%, transparent 50%);
    animation: bgMove 20s linear infinite;
    z-index: -1;
}

@keyframes bgMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50%, -50%); }
}

.welcome-content {
    text-align: center;
    position: relative;
    z-index: 2;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 30px;
    padding: 60px 80px;
    box-shadow: 
        0 0 100px rgba(0, 217, 255, 0.2),
        inset 0 0 50px rgba(0, 217, 255, 0.1);
    animation: welcomeEntrance 1.5s ease-out;
    overflow: hidden;
}

@keyframes welcomeEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.welcome-title {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #00d9ff, #00ff9d, #ff00ff, #ffaa00, #00d9ff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.welcome-subtitle {
    font-size: 1.8rem;
    color: #ccc;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.welcome-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #00d9ff, #ff00ff);
    border-radius: 2px;
}

.welcome-tagline {
    margin: 30px 0 40px;
    font-size: 1.1rem;
    color: #888;
    font-style: italic;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.welcome-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-stat {
    text-align: center;
}

.welcome-stat h3 {
    font-size: 2.5rem;
    color: #00d9ff;
    margin-bottom: 5px;
    font-weight: 700;
}

.welcome-stat p {
    color: #aaa;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-logo {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #00d9ff, #ff00ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: logoRotate 10s linear infinite;
    box-shadow: 0 0 50px rgba(0, 217, 255, 0.5);
}

@keyframes logoRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.welcome-logo i {
    font-size: 3rem;
    color: white;
}

/* ===== FLOATING AI ICONS FOR WELCOME SCREEN ===== */
.floating-ai-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    border-radius: 30px;
    overflow: hidden;
}

.ai-icon {
    position: absolute;
    font-size: 35px;
    opacity: 0.1;
    animation: floatAI 20s linear infinite;
    filter: drop-shadow(0 0 8px currentColor);
}

@keyframes floatAI {
    0% {
        transform: translateY(110%) translateX(-10%) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.2; }
    90% { opacity: 0.2; }
    100% {
        transform: translateY(-20%) translateX(10%) rotate(360deg);
        opacity: 0;
    }
}

/* Make sure welcome content is above icons */
.welcome-content {
    position: relative;
    z-index: 2;
}

.enter-btn {
    padding: 20px 50px;
    background: linear-gradient(45deg, #00d9ff, #0088ff, #00d9ff);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 217, 255, 0.4),
        0 0 50px rgba(0, 217, 255, 0.2);
    animation: buttonGlow 2s ease-in-out infinite alternate;
}

@keyframes buttonGlow {
    0% {
        box-shadow: 
            0 10px 30px rgba(0, 217, 255, 0.4),
            0 0 50px rgba(0, 217, 255, 0.2);
    }
    100% {
        box-shadow: 
            0 15px 40px rgba(0, 217, 255, 0.6),
            0 0 80px rgba(0, 217, 255, 0.4);
    }
}

.enter-btn:hover {
    transform: translateY(-5px) scale(1.05);
    animation: none;
    box-shadow: 
        0 20px 50px rgba(0, 217, 255, 0.8),
        0 0 100px rgba(0, 217, 255, 0.6);
}

.enter-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.enter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.enter-btn:hover::before {
    left: 100%;
}

.enter-btn i {
    transition: transform 0.4s;
}

.enter-btn:hover i {
    transform: translateX(10px) rotate(90deg);
}

/* ===== NAVIGATION ===== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.glass-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.logo-icon {
    font-size: 1.5rem;
    color: #00d9ff;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: #00d9ff;
}

.nav-links a.active {
    color: #00d9ff;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00d9ff, #ff00ff);
    border-radius: 2px;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 217, 255, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 30px;
}

.hero-badge span {
    color: #00d9ff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(45deg, #00d9ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.typing-text {
    color: #00d9ff;
    font-weight: 300;
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: #00d9ff;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

/* GLASS BUTTONS - RESTORED FEATURE */
.glass-btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 255, 0.3);
    background: rgba(0, 217, 255, 0.1);
    color: #00d9ff;
}

.glass-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50px;
    z-index: -1;
}

.glass-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #00d9ff, #0088ff, #00d9ff);
    border-radius: 52px;
    z-index: -2;
    opacity: 0.3;
    transition: opacity 0.4s;
}

.glass-btn:hover::after {
    opacity: 0.6;
}

.glass-btn:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 30px rgba(0, 217, 255, 0.3),
        0 0 60px rgba(0, 217, 255, 0.2);
    color: white;
    background: rgba(0, 217, 255, 0.2);
}

.glass-btn i {
    transition: transform 0.3s;
}

.glass-btn:hover i {
    transform: translateX(5px);
}

.primary-btn {
    background: transparent;
    color: #00d9ff;
}

.secondary-btn {
    background: transparent;
    color: #00d9ff;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid rgba(0, 217, 255, 0.3);
    max-width: 400px;
}

.stat {
    text-align: center;
    width: 100%;
}

.stat:not(:last-child) {
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 80%;
    margin-bottom: 20px;
}

.stat h3 {
    font-size: 3.5rem;
    color: #00d9ff;
    margin-bottom: 5px;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.stat p {
    font-size: 1.2rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.hero-image {
    position: relative;
}

.floating-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating-card i {
    font-size: 3rem;
    color: #00d9ff;
    margin-bottom: 20px;
}

.floating-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.floating-card p {
    color: #888;
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-subtitle {
    color: #888;
    font-size: 1.1rem;
}

/* ===== PROJECTS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    --x: 50%;
    --y: 50%;
}

/* GLOW HOVER EFFECT - RESTORED FEATURE */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at var(--x) var(--y),
        rgba(0, 217, 255, 0.15) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 15px;
    pointer-events: none;
    z-index: 0;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 20px 40px rgba(0, 217, 255, 0.2),
        0 0 60px rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.project-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #00d9ff;
}

.project-badge {
    background: linear-gradient(45deg, #00d9ff, #0088ff);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.project-description {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

/* COLOR HOVER FOR TECH TAGS - RESTORED FEATURE */
.project-tech span {
    background: rgba(0, 217, 255, 0.1);
    color: #00d9ff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: default;
    border: 1px solid transparent;
}

.project-tech span:hover {
    background: rgba(0, 217, 255, 0.2);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.2);
    border: 1px solid rgba(0, 217, 255, 0.3);
}

/* Individual tag colors on hover */
.project-tech span:nth-child(1):hover { /* Python */
    background: rgba(0, 217, 255, 0.2);
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.2);
    color: #00d9ff;
}

.project-tech span:nth-child(2):hover { /* HTML5 */
    background: rgba(0, 255, 157, 0.2);
    border-color: rgba(0, 255, 157, 0.3);
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.2);
    color: #00ff9d;
}

.project-tech span:nth-child(3):hover { /* CSS3 */
    background: rgba(255, 0, 255, 0.2);
    border-color: rgba(255, 0, 255, 0.3);
    box-shadow: 0 5px 15px rgba(255, 0, 255, 0.2);
    color: #ff00ff;
}

.project-tech span:nth-child(4):hover { /* JavaScript */
    background: rgba(255, 170, 0, 0.2);
    border-color: rgba(255, 170, 0, 0.3);
    box-shadow: 0 5px 15px rgba(255, 170, 0, 0.2);
    color: #ffaa00;
}

.project-tech span:nth-child(5):hover { /* UI/UX */
    background: rgba(255, 85, 85, 0.2);
    border-color: rgba(255, 85, 85, 0.3);
    box-shadow: 0 5px 15px rgba(255, 85, 85, 0.2);
    color: #ff5555;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #00d9ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    padding: 8px 20px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 50px;
}

.project-link:hover {
    gap: 15px;
    background: rgba(0, 217, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.2);
}

/* ===== SKILLS SECTION - RESTORED EXPERTISE ===== */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.skill-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

/* FLOATING ANIMATION FOR SKILL CATEGORIES */
.skill-category {
    animation: floatCategory 6s ease-in-out infinite;
}

@keyframes floatCategory {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.skill-category:nth-child(1) { animation-delay: 0s; }
.skill-category:nth-child(2) { animation-delay: 2s; }
.skill-category:nth-child(3) { animation-delay: 4s; }

.skill-category:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 217, 255, 0.1),
        0 0 60px rgba(0, 217, 255, 0.05);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #00d9ff, #0088ff);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    animation: iconPulse 3s infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(0, 217, 255, 0.8);
    }
}

.category-header h3 {
    font-size: 1.5rem;
    color: white;
    flex-grow: 1;
}

.category-badge {
    background: rgba(0, 217, 255, 0.15);
    color: #00d9ff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.6s forwards;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-tag:nth-child(1) { animation-delay: 0.1s; }
.skill-tag:nth-child(2) { animation-delay: 0.2s; }
.skill-tag:nth-child(3) { animation-delay: 0.3s; }
.skill-tag:nth-child(4) { animation-delay: 0.4s; }
.skill-tag:nth-child(5) { animation-delay: 0.5s; }

.skill-tag:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.1);
}

/* ICON SPIN ON HOVER */
.skill-tag i {
    font-size: 1.4rem;
    color: #00d9ff;
    width: 30px;
    transition: transform 0.5s;
}

.skill-tag:hover i {
    transform: rotate(360deg) scale(1.2);
}

.skill-tag span {
    color: #ccc;
    font-weight: 500;
    font-size: 1rem;
}

/* Individual skill tag colors */
.skill-tag:nth-child(1) i { color: #00d9ff; }
.skill-tag:nth-child(2) i { color: #00ff9d; }
.skill-tag:nth-child(3) i { color: #ff00ff; }
.skill-tag:nth-child(4) i { color: #ffaa00; }
.skill-tag:nth-child(5) i { color: #ff5555; }

/* ===== CONTACT ===== */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.3);
    transform: translateX(8px);
    cursor: pointer;
}

.email-card:hover {
    cursor: pointer;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.email-icon {
    background: rgba(137, 234, 53, 0.1);
    color: #71ea35;
    border: 1px solid rgba(122, 226, 57, 0.2);
}

.github-icon {
    background: rgba(33, 121, 146, 0.12);
    color: #00cae0;
    border: 1px solid rgba(40, 228, 242, 0.25);
}

.linkedin-icon {
    background: rgba(10, 102, 194, 0.1);
    color: #0A66C2;
    border: 1px solid rgba(10, 102, 194, 0.2);
}

.contact-card:hover .contact-icon {
    transform: scale(1.05);
}

.contact-content {
    flex-grow: 1;
}

.contact-content h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-content p {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    margin-bottom: 6px;
}

.contact-action {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    display: inline-block;
}

.contact-card:hover .contact-content p {
    color: #00d9ff;
}

.contact-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    transition: all 0.25s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.contact-card:hover .contact-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #00d9ff;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(10, 10, 15, 0.8);
    padding: 60px 0;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #00d9ff;
}

.footer-text {
    color: #888;
    max-width: 500px;
    margin: 0 auto 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d9ff;
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.social-links a:hover::before {
    width: 100%;
    height: 100%;
}

.social-links a:hover {
    background: #00d9ff;
    color: #0a0a0f;
    transform: translateY(-5px) scale(1.1);
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

/* ===== ANIMATED BACKGROUND ===== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: linear-gradient(45deg, #00d9ff, #0088ff);
    border-radius: 50%;
    opacity: 0.1;
    animation: floatParticle 20s infinite linear;
}

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-100px) translateX(100px); }
    50% { transform: translateY(0) translateX(200px); }
    75% { transform: translateY(100px) translateX(100px); }
}

.particle:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.particle:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

.particle:nth-child(4) {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 20%;
    animation-delay: 15s;
}

.particle:nth-child(5) {
    width: 90px;
    height: 90px;
    bottom: 40%;
    right: 30%;
    animation-delay: 20s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-stats {
        margin: 40px auto 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid rgba(0, 217, 255, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .welcome-content {
        padding: 40px 30px;
        margin: 20px;
    }
    
    .welcome-stats {
        gap: 20px;
    }
    
    .welcome-stat h3 {
        font-size: 1.8rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .enter-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .glass-btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat h3 {
        font-size: 2.5rem;
    }
    
    .loading-bar {
        width: 250px;
    }
    
    .project-tech {
        gap: 8px;
    }
    
    .project-tech span {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* ===== UTILITY ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== CLICK PARTICLES ===== */
.click-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #00d9ff, #ff00ff);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: particleExplode 0.6s ease-out forwards;
}

@keyframes particleExplode {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(
            calc(-50% + var(--tx, 0px)),
            calc(-50% + var(--ty, 0px))
        ) scale(0);
        opacity: 0;
    }
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #00d9ff, #0088ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.4);
}