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

:root {
    --primary-cyan: #00f3ff;
    --primary-blue: #0066ff;
    --primary-purple: #a200ff;
    --neon-cyan: #00f3ff;
    --neon-blue: #0066ff;
    --neon-purple: #a200ff;
    --dark-bg: #0a0e27;
    --darker-bg: #050816;
    --glass-bg: rgba(10, 14, 39, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #8892b0;
}

/* Light Mode Colors */
body.light-mode {
    --primary-cyan: #0099cc;
    --primary-blue: #0066ff;
    --primary-purple: #7733ff;
    --neon-cyan: #0099cc;
    --neon-blue: #0066ff;
    --neon-purple: #7733ff;
    --dark-bg: #f5f7fa;
    --darker-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--darker-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
    transition: background 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

/* Particle Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background: linear-gradient(135deg, #0a0e27 0%, #050816 100%);
    transition: background 0.3s ease;
}

body.light-mode #particles-js {
    background: linear-gradient(135deg, #e6f2ff 0%, #f0f4f8 100%);
}

/* Scan Lines Effect */
.scan-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 243, 255, 0.005) 0px,
        rgba(0, 243, 255, 0.005) 1px,
        transparent 1px,
        transparent 2px
    );
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* Boot Sequence */
.boot-sequence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 1s ease 3s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

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

.arc-reactor {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
}

.core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, var(--neon-cyan), var(--neon-blue));
    border-radius: 50%;
    box-shadow: 0 0 30px var(--neon-cyan),
                0 0 60px var(--neon-blue),
                inset 0 0 20px var(--neon-cyan);
    animation: pulse 2s ease-in-out infinite;
}

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

.ring {
    position: absolute;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--neon-cyan);
    animation: rotate 10s linear infinite;
}

.ring-1 {
    width: 70px;
    height: 70px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-2 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 15s;
    animation-direction: reverse;
}

.ring-3 {
    width: 130px;
    height: 130px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 20s;
}

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

.boot-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue));
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: loading 1s ease forwards;
}

@keyframes loading {
    from { width: 0%; }
    to { width: 100%; }
}

.boot-status {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    font-size: 1rem;
    letter-spacing: 3px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

/* Main Interface */
.main-interface {
    position: relative;
    z-index: 2;
}

.main-interface.hidden {
    display: none;
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5), 
                0 0 40px rgba(0, 243, 255, 0.3),
                0 0 60px rgba(0, 243, 255, 0.1);
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.logo-text {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.5rem;
    font-size: 1.5rem;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--neon-cyan);
    letter-spacing: 3px;
    opacity: 0.8;
    line-height: 1;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    position: relative;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.nav-link:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--neon-cyan);
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: blink 2s infinite;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    width: 35px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    margin-right: 1rem;
    position: relative;
    padding: 0;
}

.lamp-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.lamp-rope {
    width: 1.5px;
    height: 15px;
    background: linear-gradient(to bottom, rgba(100, 100, 100, 0.6), rgba(80, 80, 80, 0.8));
    margin-bottom: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.light-mode .lamp-rope {
    background: linear-gradient(to bottom, rgba(120, 120, 120, 0.7), rgba(100, 100, 100, 0.9));
}

.lamp-bulb {
    width: 32px;
    height: 35px;
    background: linear-gradient(180deg, rgba(40, 40, 40, 0.5) 0%, rgba(60, 60, 60, 0.3) 100%);
    border: 1px solid rgba(100, 100, 100, 0.4);
    border-radius: 45% 45% 50% 50% / 40% 40% 60% 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.lamp-bulb::before {
    content: '';
    position: absolute;
    top: -3px;
    width: 10px;
    height: 5px;
    background: linear-gradient(to bottom, #888, #555);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bulb-icon {
    font-size: 1.2rem;
    filter: grayscale(1) brightness(0.4);
    transition: all 0.3s ease;
    transform: rotate(180deg);
}

body.light-mode .bulb-icon {
    filter: grayscale(0) brightness(1.3);
    animation: glowPulse 2s ease-in-out infinite;
    transform: rotate(180deg);
}

body.light-mode .lamp-bulb {
    background: linear-gradient(180deg, rgba(255, 230, 100, 0.9) 0%, rgba(255, 200, 50, 1) 70%);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6),
                0 0 25px rgba(255, 215, 0, 0.4),
                inset 0 -2px 8px rgba(255, 180, 0, 0.5);
}

.theme-toggle:hover .lamp-rope {
    animation: swingRope 0.6s ease;
}

.theme-toggle:hover .lamp-bulb {
    transform: translateY(2px);
}

@keyframes swingRope {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(4deg); }
    75% { transform: rotate(-4deg); }
}

@keyframes glowPulse {
    0%, 100% { 
        filter: grayscale(0) brightness(1.3);
        text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
    }
    50% { 
        filter: grayscale(0) brightness(1.5);
        text-shadow: 0 0 12px rgba(255, 215, 0, 1);
    }
}

.theme-icon {
    transition: transform 0.3s ease;
}

/* Sections */
.section {
    min-height: auto;
    padding: 4rem 0;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateX(-100px);
    animation: slideInLeft 0.8s ease 0.3s forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.title-number {
    color: var(--neon-cyan);
    font-size: 2rem;
}

.title-text {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0;
    position: relative;
}

.hero-section .container {
    max-width: 100%;
    padding: 0;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.hud-frame {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 3rem;
    border: none;
    background: linear-gradient(135deg, 
        rgba(0, 102, 255, 0.15) 0%, 
        rgba(10, 14, 39, 0.9) 50%, 
        rgba(162, 0, 255, 0.15) 100%);
    backdrop-filter: blur(20px);
    border-radius: 0;
    box-shadow: none;
    background-image: 
        repeating-linear-gradient(0deg, rgba(0, 243, 255, 0.04) 0px, rgba(0, 243, 255, 0.04) 1px, transparent 1px, transparent 50px),
        repeating-linear-gradient(90deg, rgba(0, 243, 255, 0.04) 0px, rgba(0, 243, 255, 0.04) 1px, transparent 1px, transparent 50px),
        radial-gradient(ellipse at top left, rgba(0, 243, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(162, 0, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(10, 14, 39, 0.95) 50%, rgba(162, 0, 255, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

body.light-mode .hud-frame {
    background: linear-gradient(135deg, 
        rgba(0, 153, 204, 0.1) 0%, 
        rgba(255, 255, 255, 0.95) 50%, 
        rgba(119, 51, 255, 0.1) 100%);
    background-image: 
        repeating-linear-gradient(0deg, rgba(0, 153, 204, 0.03) 0px, rgba(0, 153, 204, 0.03) 1px, transparent 1px, transparent 50px),
        repeating-linear-gradient(90deg, rgba(0, 153, 204, 0.03) 0px, rgba(0, 153, 204, 0.03) 1px, transparent 1px, transparent 50px),
        radial-gradient(ellipse at top left, rgba(0, 153, 204, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(119, 51, 255, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(255, 255, 255, 0.98) 50%, rgba(119, 51, 255, 0.05) 100%);
}

.hero-content-inner {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
    max-width: 1400px;
}

.hero-left-image {
    flex: 0 0 450px;
    align-self: flex-start;
    margin-top: 0;
}

.hero-profile {
    max-width: 450px;
}

.hero-right-text {
    flex: 1;
    align-self: center;
}

.hud-frame:hover {
    box-shadow: none;
}

.corner-tl, .corner-tr, .corner-bl, .corner-br {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan),
                inset 0 0 10px rgba(0, 243, 255, 0.3);
}

.corner-tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.corner-tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.corner-bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.corner-br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.hero-greeting {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    font-size: 1rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 3s infinite;
    color: var(--neon-cyan);
    z-index: -1;
    opacity: 0.3;
}

.glitch::after {
    animation: glitch-2 3s infinite;
    color: var(--neon-purple);
    z-index: -2;
    opacity: 0.3;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(-1px, -1px); }
    60% { transform: translate(1px, 1px); }
    80% { transform: translate(1px, -1px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(1px, -1px); }
    40% { transform: translate(1px, 1px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(-2px, 2px); }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .line {
    display: block;
}

.glow-text {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
}

.subtitle {
    font-size: 2rem;
    color: var(--text-secondary);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    position: relative;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border: 2px solid;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--neon-cyan);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: 0;
}

.btn:hover::before {
    width: 100%;
    height: 100%;
}

.btn-primary {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.btn-primary:hover {
    color: var(--darker-bg);
    box-shadow: 0 0 30px var(--neon-cyan);
}

.btn-secondary {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(162, 0, 255, 0.3);
}

.btn-secondary::before {
    background: var(--neon-purple);
}

.btn-secondary:hover {
    color: var(--darker-bg);
    box-shadow: 0 0 30px var(--neon-purple);
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.8) rotateY(-15deg);
    animation: zoomIn 0.8s ease 0.5s forwards;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

.glass-panel:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 60px rgba(0, 243, 255, 0.3),
                0 0 40px rgba(0, 243, 255, 0.1);
}

/* About Section - Profile Image Styles */
.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.about-top {
    width: 100%;
    display: flex;
    justify-content: center;
}

.about-bottom {
    width: 100%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.profile-image-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.image-frame {
    position: relative;
    padding: 1rem;
    background: rgba(10, 14, 39, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5), 
                0 0 40px rgba(0, 243, 255, 0.3),
                0 0 60px rgba(0, 243, 255, 0.1);
    transition: all 0.3s ease;
}

body.light-mode .image-frame {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 153, 204, 0.3), 
                0 0 40px rgba(0, 153, 204, 0.2),
                0 0 60px rgba(0, 153, 204, 0.1);
}
}

.image-frame:hover {
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.7), 
                0 0 60px rgba(0, 243, 255, 0.5),
                0 0 90px rgba(0, 243, 255, 0.2);
}

.profile-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    filter: brightness(1.1) contrast(1.2);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.profile-image:hover {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(162, 0, 255, 0.1));
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.image-frame:hover .image-overlay {
    opacity: 1;
}

.scan-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.3), transparent);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
    animation: scan-vertical 3s linear infinite;
    z-index: 3;
    pointer-events: none;
}

@keyframes scan-vertical {
    0% { top: -3px; opacity: 0; }
    10%, 90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* About Section Content */
.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.category-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--neon-cyan);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.skill-item {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInRight 0.6s ease forwards;
}

.skill-item:nth-child(1) { animation-delay: 0.2s; }
.skill-item:nth-child(2) { animation-delay: 0.4s; }
.skill-item:nth-child(3) { animation-delay: 0.6s; }
.skill-item:nth-child(4) { animation-delay: 0.8s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
}

.skill-name {
    color: var(--text-primary);
    font-weight: 600;
}

.skill-percent {
    color: var(--neon-cyan);
}

.skill-bar {
    height: 10px;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue));
    box-shadow: 0 0 20px var(--neon-cyan);
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease;
}

/* Projects Section */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.hidden-project {
    display: none;
    opacity: 0;
}

.hidden-project.show {
    display: flex;
    animation: slideInUp 0.6s ease forwards;
}

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

.show-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

#show-more-btn {
    min-width: 250px;
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.project-card:hover {
    transform: translateX(10px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.3),
                0 0 20px rgba(0, 243, 255, 0.2);
}

.project-image {
    width: 300px;
    min-width: 300px;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(162, 0, 255, 0.1));
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-content {
    flex: 1;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

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

.project-icon {
    font-size: 3rem;
}

.project-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: var(--neon-cyan);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tech-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 20px;
    color: var(--neon-cyan);
    white-space: nowrap;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(162, 0, 255, 0.2));
    border: 1px solid var(--neon-purple);
    border-radius: 5px;
    color: var(--neon-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.3), rgba(162, 0, 255, 0.3));
    box-shadow: 0 0 20px rgba(162, 0, 255, 0.5);
    transform: translateY(-2px);
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: scale(1.05);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.achievement-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.achievement-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.achievement-year {
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}

/* Contact Section */
.work-together-cta {
    margin-bottom: 3rem;
    padding: 0;
}

.cta-content {
    text-align: center;
    padding: 2rem 2rem;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(162, 0, 255, 0.1));
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    transition: all 0.3s ease;
}

.cta-content:hover {
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.4);
    transform: translateY(-5px);
}

.cta-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
}

.cta-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.6);
    transform: translateY(-3px);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 243, 255, 0.05);
    border-left: 2px solid var(--neon-cyan);
}

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

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

.contact-link {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    font-family: 'Orbitron', sans-serif;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--neon-cyan);
    color: var(--darker-bg);
    box-shadow: 0 0 20px var(--neon-cyan);
}

/* Form */
.contact-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: var(--text-primary);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.form-input::placeholder {
    color: var(--text-secondary);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    text-align: center;
}

.footer-text {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 968px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero-grid,
    .contact-grid,
    .skills-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .nav {
        display: none;
    }
    
    .hologram-container {
        width: 100%;
        height: 300px;
    }
    
    .profile-image-container {
        max-width: 280px;
    }
    
    .projects-grid {
        gap: 1.5rem;
    }
    
    .project-card {
        flex-direction: column;
    }
    
    .project-image {
        width: 100%;
        min-width: 100%;
        height: 220px;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-container {
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title .subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .title-number {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .profile-image-container {
        max-width: 240px;
    }
    
    .project-card {
        flex-direction: column;
    }
    
    .project-image {
        width: 100%;
        height: 180px;
    }
    
    .project-content {
        padding: 1.25rem;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-description {
        font-size: 0.85rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .project-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
    
    .about-text {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .skill-name,
    .skill-percent {
        font-size: 0.9rem;
    }
    
    .project-title,
    .achievement-title {
        font-size: 1.1rem;
    }
    
    .project-description,
    .achievement-description {
        font-size: 0.9rem;
    }
    
    .contact-grid {
        gap: 2rem;
    }
    
    .contact-subtitle {
        font-size: 1.2rem;
    }
    
    .contact-text {
        font-size: 0.95rem;
    }
}

/* ============================================
   AI Chatbot Styles
   ============================================ */

.chatbot-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-left: 25px;
}

.chatbot-toggle-nav {
    background: transparent;
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.chatbot-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary-cyan);
    text-align: center;
}

.chatbot-toggle-nav:hover {
    background: var(--primary-cyan);
    color: var(--bg-dark);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.notification-badge-nav {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0066;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid var(--bg-dark);
    animation: bounce 1s ease-in-out infinite;
}

/* Hide old floating chatbot button */
.chatbot-toggle {
    display: none !important;
}

.chatbot-toggle-nav:hover {
    background: var(--primary-cyan);
    color: var(--bg-dark);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

/* Hide old floating chatbot button */
.chatbot-toggle {
    display: none !important;
}

/* Light mode navbar chatbot */
body.light-mode .chatbot-toggle-nav {
    border-color: #0099cc;
    color: #0099cc;
}

body.light-mode .chatbot-toggle-nav:hover {
    background: #0099cc;
    color: white;
}

body.light-mode .chatbot-label {
    color: #0099cc;
}

body.light-mode .notification-badge-nav {
    border-color: white;
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary-cyan);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 243, 255, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.chatbot-container.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-blue));
    padding: 15px 20px;
    border-radius: 18px 18px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.chatbot-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.chatbot-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(5, 8, 22, 0.8);
    backdrop-filter: blur(15px);
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 3px;
}

.message {
    display: flex;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-blue));
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
}

.message-content {
    background: rgba(0, 243, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 15px;
    border: 1px solid rgba(0, 243, 255, 0.4);
    max-width: 70%;
}

.user-message .message-content {
    background: rgba(162, 0, 255, 0.25);
    backdrop-filter: blur(10px);
    border-color: rgba(162, 0, 255, 0.4);
}

.message-content p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-reply {
    background: transparent;
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
}

.quick-reply:hover {
    background: var(--primary-cyan);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.chatbot-input {
    padding: 15px 20px;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 243, 255, 0.3);
    display: flex;
    gap: 10px;
    border-radius: 0 0 18px 18px;
}

.chatbot-input input {
    flex: 1;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 25px;
    padding: 12px 20px;
    color: var(--text-light);
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.chatbot-input input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.chatbot-input input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chatbot-input button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-blue));
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-input button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.4);
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 10px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary-cyan);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

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

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

/* Light Mode Chatbot */
body.light-mode .chatbot-toggle {
    background: linear-gradient(135deg, #0099cc, #0066ff);
    border-color: #0099cc;
    box-shadow: 0 4px 20px rgba(0, 153, 204, 0.4);
}

body.light-mode .chatbot-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-color: #0099cc;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

body.light-mode .chatbot-header {
    background: linear-gradient(135deg, #0099cc, #0066ff);
}

body.light-mode .chatbot-messages {
    background: rgba(245, 247, 250, 0.9);
    backdrop-filter: blur(15px);
}

body.light-mode .message-content {
    background: rgba(0, 153, 204, 0.15);
    backdrop-filter: blur(10px);
    border-color: rgba(0, 153, 204, 0.4);
}

body.light-mode .message-content p {
    color: #1a1a2e;
}

body.light-mode .user-message .message-content {
    background: rgba(119, 51, 255, 0.2);
    backdrop-filter: blur(10px);
    border-color: rgba(119, 51, 255, 0.4);
}

body.light-mode .quick-reply {
    border-color: #0099cc;
    color: #0099cc;
}

body.light-mode .quick-reply:hover {
    background: #0099cc;
    color: white;
}

body.light-mode .chatbot-input {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-top-color: rgba(0, 153, 204, 0.3);
}

body.light-mode .chatbot-input input {
    background: rgba(0, 153, 204, 0.05);
    border-color: rgba(0, 153, 204, 0.3);
    color: #1a1a2e;
}

body.light-mode .chatbot-input input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

body.light-mode .chatbot-messages::-webkit-scrollbar-thumb {
    background: #0099cc;
}

/* Responsive Chatbot */
@media (max-width: 640px) {
    .chatbot-container {
        width: calc(100% - 40px);
        height: calc(100vh - 140px);
        right: 20px;
        bottom: 90px;
    }

    .chatbot-toggle {
        right: 20px;
        bottom: 20px;
        width: 55px;
        height: 55px;
    }

    .message-content {
        max-width: 80%;
    }
}