/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --bg-dark: #0f0f1a;
    --bg-darker: #0a0a12;
    --accent-blue: #00f0ff;
    --accent-purple: #8a2be2;
    --text-light: #ffffff;
    --text-gray: #b0b0cc;
    --card-bg: rgba(30, 30, 50, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --section-padding: 100px 0;
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', monospace;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-animation {
    display: flex;
    gap: 10px;
}
.logo {
    text-decoration: none;
    color: #00eaff;
    font-weight: bold;
    font-size: 24px;
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: bounce 1.5s infinite ease-in-out;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
}

/* Cursor Follower */
.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

.cursor-follower.active {
    transform: translate(-50%, -50%) scale(2);
    background: var(--accent-blue);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-blue);
    text-shadow: 0 0 10px var(--accent-blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-blue);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.three-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--text-gray);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    color: var(--bg-darker);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--accent-blue);
    color: var(--bg-darker);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--accent-blue);
    padding: 8px 20px;
}

.btn-outline:hover {
    background: var(--accent-blue);
    color: var(--bg-darker);
}

/* Sections */
.section {
    padding: var(--section-padding);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.profile-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 50%;
    border: 3px solid var(--accent-blue);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3),
                inset 0 0 20px rgba(138, 43, 226, 0.1);
    transition: all 0.3s ease;
    background: linear-gradient(45deg, rgba(0, 240, 255, 0.1), rgba(138, 43, 226, 0.1));
}

.profile-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.5);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.skill-tag {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 10px 15px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--accent-blue);
    color: var(--bg-darker);
    transform: translateY(-3px);
}

/* Work Section */
.work-timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.work-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.work-item:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-blue);
}

.work-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-blue);
}

.work-description {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.work-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.tech {
    color: var(--accent-blue);
}

.role {
    color: var(--accent-purple);
}

.date {
    color: var(--text-gray);
}

.work-actions {
    display: flex;
    gap: 15px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-blue);
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--accent-blue);
}

.project-info p {
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tag {
    background: rgba(138, 43, 226, 0.2);
    color: var(--accent-purple);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

/* 3D Laptop Element */
.laptop-3d {
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
    justify-self: center;
}

.laptop-screen {
    width: 280px;
    height: 170px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 12px 12px 0 0;
    position: relative;
    transform: rotateX(12deg) rotateY(3deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
                0 0 50px rgba(0, 240, 255, 0.3),
                0 0 100px rgba(138, 43, 226, 0.2);
    border: 2px solid rgba(0, 240, 255, 0.4);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.laptop-screen:hover {
    transform: rotateX(5deg) rotateY(0deg) translateY(-15px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6),
                0 0 70px rgba(0, 240, 255, 0.5),
                0 0 120px rgba(138, 43, 226, 0.4),
                inset 0 0 30px rgba(0, 240, 255, 0.1);
}

.screen-content {
    width: 100%;
    height: 100%;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    background: #000;
    position: relative;
}

.code-terminal {
    width: 100%;
    height: 100%;
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #00ff00;
    background: #0a0a12;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    margin-bottom: 6px;
}

.terminal-dots {
    display: flex;
    gap: 4px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    color: #b0b0cc;
    font-size: 7px;
    flex: 1;
    text-align: center;
}

.terminal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.code-line {
    display: block;
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    animation: typing 3s infinite;
}

@keyframes typing {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.laptop-base {
    width: 300px;
    height: 18px;
    background: linear-gradient(135deg, #0f0f1a, #1a1a2e);
    border-radius: 0 0 15px 15px;
    position: relative;
    top: -6px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(138, 43, 226, 0.3);
}

.laptop-shadow {
    position: absolute;
    width: 340px;
    height: 30px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.4), transparent);
    border-radius: 50%;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(8px);
    z-index: 1;
}

.skill-orbit {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-circle {
    position: relative;
    width: 250px;
    height: 250px;
    animation: rotate 20s linear infinite;
}

.skill-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-progress {
    margin-bottom: 15px;
}

.skill-name {
    margin-bottom: 8px;
    color: var(--accent-blue);
}

.progress-bar {
    height: 8px;
    background: var(--glass-bg);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    border-radius: 4px;
    transition: width 1s ease;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-gray);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: var(--bg-dark);
    padding: 0 5px;
    color: var(--accent-blue);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 15px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.social-link:hover {
    background: var(--accent-blue);
    color: var(--bg-darker);
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* AI Assistant */
.ai-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.ai-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 3s ease-in-out infinite;
}

.ai-toggle:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.5);
}

.ai-icon {
    width: 24px;
    height: 24px;
    color: var(--bg-darker);
    animation: pulse 2s infinite;
}

.ai-chat-container {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 450px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.ai-assistant.active .ai-chat-container {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.ai-header {
    padding: 20px;
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.1), rgba(138, 43, 226, 0.1));
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-blue);
    opacity: 0.3;
    animation: ai-pulse 2s infinite;
}

.ai-avatar svg {
    width: 20px;
    height: 20px;
    color: var(--bg-darker);
    z-index: 1;
}

.ai-title h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-light);
}

.ai-status {
    font-size: 0.8rem;
    color: var(--accent-blue);
    text-shadow: 0 0 5px var(--accent-blue);
}

.ai-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-close:hover {
    color: var(--accent-blue);
    transform: rotate(90deg);
}

.ai-messages {
    height: 300px;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    animation: messageSlide 0.3s ease-out;
}

.ai-message-bot {
    align-self: flex-start;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 5px;
}

.ai-message-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: var(--bg-darker);
    border-bottom-right-radius: 5px;
}

.message-content {
    font-size: 0.9rem;
    line-height: 1.5;
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-gray);
    margin-top: 5px;
    text-align: right;
}

.ai-input-area {
    padding: 15px 20px;
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
}

.ai-input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.ai-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.ai-input::placeholder {
    color: var(--text-gray);
}

.ai-send {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-send:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.ai-send svg {
    width: 18px;
    height: 18px;
    color: var(--bg-darker);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes ai-pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hardware & PC Building Section */
.hardware-section {
    background: linear-gradient(135deg, #0a0a12, #0f0f1a, #1a0a1a);
    position: relative;
    overflow: hidden;
    perspective: 1200px;
}

.hardware-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.05) 0%, transparent 70%),
                radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.05) 0%, transparent 70%),
                linear-gradient(45deg, transparent 60%, rgba(0, 240, 255, 0.03) 100%),
                linear-gradient(135deg, transparent 60%, rgba(138, 43, 226, 0.03) 100%);
    pointer-events: none;
    animation: volumetricLight 8s infinite;
}

.hardware-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.pc-assembly-scene {
    position: relative;
    perspective: 1500px;
    transform-style: preserve-3d;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.assembly-stage {
    position: relative;
    width: 400px;
    height: 450px;
    transform-style: preserve-3d;
    transform: rotateX(25deg) rotateY(-15deg);
}

.pc-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    opacity: 0.7;
}

.case-skeleton {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.case-top, .case-bottom, .case-left, .case-right, .case-back {
    position: absolute;
    background: rgba(30, 30, 50, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.case-top {
    width: 100%;
    height: 20px;
    top: 0;
    background: linear-gradient(to bottom, rgba(0, 240, 255, 0.1), transparent);
}

.case-bottom {
    width: 100%;
    height: 20px;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 240, 255, 0.1), transparent);
}

.case-left {
    width: 20px;
    height: 100%;
    left: 0;
    background: linear-gradient(to right, rgba(138, 43, 226, 0.1), transparent);
}

.case-right {
    width: 20px;
    height: 100%;
    right: 0;
    background: linear-gradient(to left, rgba(138, 43, 226, 0.1), transparent);
}

.case-back {
    width: 100%;
    height: 100%;
    transform: translateZ(-50px);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(138, 43, 226, 0.05));
    border: 1px solid rgba(138, 43, 226, 0.1);
}

.connection-points {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.point {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.5);
    animation: pulseGlow 2s infinite;
    z-index: 10;
}

.mb-slot { top: 40%; left: 50%; transform: translate(-50%, -50%) translateZ(10px); }
.cpu-slot { top: 45%; left: 55%; transform: translate(-50%, -50%) translateZ(10px); }
.ram-slot { top: 50%; left: 45%; transform: translate(-50%, -50%) translateZ(10px); }
.gpu-slot { top: 35%; left: 60%; transform: translate(-50%, -50%) translateZ(10px); }
.psu-slot { bottom: 20%; left: 40%; transform: translate(-50%, 50%) translateZ(10px); }
.ssd-slot { bottom: 25%; left: 60%; transform: translate(-50%, 50%) translateZ(10px); }

.pc-component {
    position: absolute;
    transform-style: preserve-3d;
    opacity: 0;
    transition: all 2s cubic-bezier(0.23, 1, 0.32, 1), filter 0.5s ease;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.pc-component[data-stage] {
    animation: componentFloat 0.1s forwards;
}

.motherboard {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(50px) scale(0.8);
    width: 120px;
    height: 90px;
    animation-delay: 0.5s;
}

.component-body {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.pcb-texture {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(0, 240, 255, 0.1) 2px,
        rgba(0, 240, 255, 0.1) 4px
    );
    border-radius: 6px;
}

.rgb-lights {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.rgb-light {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00f0ff;
    box-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff;
    animation: rgbPulse 1.5s infinite alternate;
}

.chipsets {
    position: absolute;
    top: 10px;
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.chipset {
    width: 20px;
    height: 15px;
    background: linear-gradient(135deg, #3a3a4e, #2a2a3e);
    border-radius: 3px;
    border: 1px solid rgba(138, 43, 226, 0.4);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.slots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.slot {
    width: 25px;
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 2px;
}

.ports {
    position: absolute;
    bottom: 5px;
    left: 5px;
    display: flex;
    gap: 3px;
}

.port {
    width: 8px;
    height: 12px;
    background: #333;
    border-radius: 2px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.cpu {
    top: 45%;
    left: 55%;
    transform: translate(-50%, -50%) translateZ(60px) scale(0.7);
    width: 40px;
    height: 40px;
    animation-delay: 1s;
}

.cpu-core {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #4a4a5e, #2a2a3e);
    border-radius: 4px;
    border: 2px solid rgba(138, 43, 226, 0.5);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4),
                inset 0 0 10px rgba(138, 43, 226, 0.2);
}

.core-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(138, 43, 226, 0.2) 1px,
        rgba(138, 43, 226, 0.2) 3px
    );
}

.cpu-socket {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 3px;
}

.heatpipe {
    position: absolute;
    width: 35px;
    height: 3px;
    background: linear-gradient(to right, #555, #333);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 2px;
}

.ram {
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%) translateZ(70px) scale(0.6);
    width: 25px;
    height: 50px;
    animation-delay: 1.5s;
}

.ram-stick {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #2a2a3e, #1a1a2e);
    border-radius: 3px;
    border: 1px solid rgba(0, 240, 255, 0.4);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.ram-chips {
    position: absolute;
    top: 5px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
}

.ram-chip {
    width: 20px;
    height: 6px;
    background: linear-gradient(135deg, #3a3a4e, #2a2a3e);
    border-radius: 2px;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.ram-led {
    position: absolute;
    width: 100%;
    height: 3px;
    background: #00f0ff;
    bottom: 3px;
    border-radius: 1px;
    animation: rgbPulse 1s infinite alternate;
    box-shadow: 0 0 10px #00f0ff;
}

.gpu {
    top: 35%;
    left: 60%;
    transform: translate(-50%, -50%) translateZ(80px) scale(0.7);
    width: 80px;
    height: 40px;
    animation-delay: 2s;
}

.gpu-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
    border-radius: 4px;
    border: 2px solid rgba(0, 240, 255, 0.5);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.gpu-fans {
    position: absolute;
    top: 5px;
    left: 5px;
    display: flex;
    gap: 10px;
}

.fan {
    width: 15px;
    height: 15px;
    border: 1px solid rgba(0, 240, 255, 0.5);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.fan::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.3);
    animation: spin 0.5s linear infinite reverse;
}

.gpu-rgb {
    position: absolute;
    right: 5px;
    top: 5px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rgb-zone {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00f0ff;
    animation: rgbPulse 1.2s infinite alternate;
    box-shadow: 0 0 10px #00f0ff;
}

.gpu-vents {
    position: absolute;
    bottom: 3px;
    left: 3px;
    right: 3px;
    height: 5px;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 1px,
        rgba(0, 240, 255, 0.2) 1px,
        rgba(0, 240, 255, 0.2) 2px
    );
}

.psu {
    bottom: 20%;
    left: 40%;
    transform: translate(-50%, 50%) translateZ(90px) scale(0.6);
    width: 70px;
    height: 35px;
    animation-delay: 2.5s;
}

.psu-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #0a0a12);
    border-radius: 4px;
    border: 2px solid rgba(138, 43, 226, 0.4);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

.psu-fan {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 1px solid rgba(138, 43, 226, 0.5);
    border-radius: 50%;
    top: 10px;
    right: 5px;
    animation: spin 1.5s linear infinite;
}

.cable-port {
    position: absolute;
    width: 8px;
    height: 12px;
    background: #333;
    border-radius: 2px;
    bottom: 5px;
    left: 5px;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.vent-lines {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    height: 3px;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 1px,
        rgba(138, 43, 226, 0.3) 1px,
        rgba(138, 43, 226, 0.3) 2px
    );
}

.ssd {
    bottom: 25%;
    left: 60%;
    transform: translate(-50%, 50%) translateZ(100px) scale(0.5);
    width: 50px;
    height: 25px;
    animation-delay: 3s;
}

.ssd-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
    border-radius: 3px;
    border: 1px solid rgba(0, 240, 255, 0.4);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.ssd-label {
    position: absolute;
    width: 30px;
    height: 15px;
    background: rgba(0, 240, 255, 0.2);
    top: 5px;
    left: 5px;
    border-radius: 2px;
}

.ssd-led {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #00f0ff;
    bottom: 5px;
    right: 5px;
    border-radius: 50%;
    animation: blink 2s infinite;
    box-shadow: 0 0 8px #00f0ff;
}

.cooling {
    top: 30%;
    left: 70%;
    transform: translate(-50%, -50%) translateZ(110px) scale(0.6);
    width: 60px;
    height: 40px;
    animation-delay: 3.5s;
}

.cooling-unit {
    width: 100%;
    height: 100%;
    position: relative;
}

.radiator {
    position: absolute;
    width: 100%;
    height: 20px;
    background: repeating-linear-gradient(
        to bottom,
        #333,
        #333 1px,
        transparent 1px,
        transparent 3px
    );
    border-radius: 3px;
    border: 1px solid rgba(0, 240, 255, 0.4);
    top: 10px;
}

.fin {
    position: absolute;
    width: 100%;
    height: 1px;
    background: rgba(0, 240, 255, 0.3);
    left: 0;
}

.cooling-fan {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(0, 240, 255, 0.5);
    border-radius: 50%;
    top: 0;
    right: 0;
    animation: spin 1.2s linear infinite;
}

.fan-blades {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.3);
    animation: spin 0.8s linear infinite reverse;
}

.tubing {
    position: absolute;
    width: 40px;
    height: 2px;
    background: rgba(0, 240, 255, 0.3);
    top: 25px;
    left: 0;
    transform: rotate(-45deg);
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.case-panel {
    top: 50%;
    left: 85%;
    transform: translate(-50%, -50%) translateZ(120px) scale(0.7);
    width: 80px;
    height: 120px;
    animation-delay: 4s;
}

.panel-glass {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    position: relative;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2),
                inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.panel-vents {
    position: absolute;
    top: 10px;
    width: 100%;
    height: 20px;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 2px,
        rgba(0, 240, 255, 0.2) 2px,
        rgba(0, 240, 255, 0.2) 4px
    );
}

.panel-logo {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(0, 240, 255, 0.3);
    border-radius: 50%;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.connection-effects {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.energy-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00f0ff;
    border-radius: 50%;
    animation: particleFloat 3s infinite linear;
    box-shadow: 0 0 10px #00f0ff;
}

.neon-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f0ff, transparent);
    animation: neonPulse 2s infinite alternate;
}

.assembly-lighting {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.light-beam {
    position: absolute;
    width: 200px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(0, 240, 255, 0.1), transparent 70%);
    border-radius: 50%;
    animation: rotateBeam 10s linear infinite;
}

.focus-spotlight {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1), transparent 60%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spotlightPulse 3s infinite alternate;
}

@keyframes componentFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateZ(250px) scale(0.1);
        filter: blur(5px) brightness(0.5);
    }
    20% {
        opacity: 0.3;
        transform: translate(-50%, -50%) translateZ(150px) scale(0.3);
        filter: blur(3px) brightness(0.7);
    }
    40% {
        opacity: 0.6;
        transform: translate(-50%, -50%) translateZ(80px) scale(0.6);
        filter: blur(1px) brightness(0.9);
    }
    60% {
        opacity: 0.8;
        transform: translate(-50%, -50%) translateZ(30px) scale(0.85);
    }
    80% {
        opacity: 0.95;
        transform: translate(-50%, -50%) translateZ(5px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) translateZ(0) scale(1);
        filter: blur(0) brightness(1);
    }
}

@keyframes rgbPulse {
    0% { opacity: 0.5; box-shadow: 0 0 5px currentColor; }
    100% { opacity: 1; box-shadow: 0 0 20px currentColor, 0 0 30px currentColor; }
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--tx, 20px), var(--ty, -20px)) scale(1);
        opacity: 0;
    }
}

@keyframes neonPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

@keyframes rotateBeam {
    from { transform: rotate(0deg) translateX(-100px); }
    to { transform: rotate(360deg) translateX(-100px); }
}

@keyframes spotlightPulse {
    0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(0, 240, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.8), 0 0 30px rgba(0, 240, 255, 0.6); }
    100% { box-shadow: 0 0 5px rgba(0, 240, 255, 0.5); }
}

@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes componentAssembly {
    0% {
        opacity: 0;
        transform: translateZ(150px) translateX(50px) translateY(50px) scale(0.3);
        filter: blur(5px);
    }
    30% {
        opacity: 0.7;
        transform: translateZ(50px) translateX(-20px) translateY(-20px) scale(0.7);
        filter: blur(2px);
    }
    60% {
        opacity: 0.9;
        transform: translateZ(20px) translateX(10px) translateY(10px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateZ(0) translateX(0) translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rgbGlow {
    0% {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.3),
                    0 0 40px rgba(0, 240, 255, 0.15),
                    inset 0 0 10px rgba(0, 240, 255, 0.1);
    }
    25% {
        box-shadow: 0 0 25px rgba(0, 240, 255, 0.4),
                    0 0 50px rgba(138, 43, 226, 0.2),
                    inset 0 0 12px rgba(0, 240, 255, 0.15);
    }
    50% {
        box-shadow: 0 0 30px rgba(138, 43, 226, 0.4),
                    0 0 60px rgba(0, 240, 255, 0.2),
                    inset 0 0 15px rgba(138, 43, 226, 0.15);
    }
    75% {
        box-shadow: 0 0 25px rgba(0, 240, 255, 0.4),
                    0 0 50px rgba(138, 43, 226, 0.2),
                    inset 0 0 12px rgba(0, 240, 255, 0.15);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.3),
                    0 0 40px rgba(0, 240, 255, 0.15),
                    inset 0 0 10px rgba(0, 240, 255, 0.1);
    }
}

@keyframes volumetricLight {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

.hardware-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hardware-desc p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 15px;
}

.hardware-skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.skill-badge {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 10px 15px;
    border-radius: 20px;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: var(--bg-darker);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content,
    .skills-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .laptop-3d {
        order: 2;
    }
    
    .skill-orbit {
        order: 1;
    }
    
    .skill-list {
        order: 3;
    }
    
    .laptop-screen {
        width: 200px;
        height: 120px;
    }
    
    .laptop-base {
        width: 220px;
    }
    
    .laptop-shadow {
        width: 240px;
    }
    
    .code-terminal {
        padding: 8px;
        font-size: 9px;
    }
    
    .profile-image img {
        max-width: 200px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .work-details {
        flex-direction: column;
        gap: 5px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        order: 2;
    }
    
    .nav-menu {
        order: 1;
        flex-wrap: wrap;
        justify-content: center;
    }
}
/* Enhanced Interactive Assembly Styles */
.pc-component.assembled {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.pc-component.assembled:hover {
    transform: translate(-50%, -50%) translateZ(30px) scale(1.15) !important;
    filter: drop-shadow(0 15px 30px rgba(0, 240, 255, 0.4)) !important;
    z-index: 100;
}

.pc-component.assembled:active {
    transform: translate(-50%, -50%) translateZ(40px) scale(1.2) !important;
    filter: drop-shadow(0 20px 40px rgba(138, 43, 226, 0.6)) !important;
}

/* Enhanced connection point highlighting */
.point {
    transition: all 0.3s ease;
}

.point.highlight {
    transform: translate(-50%, -50%) translateZ(20px) scale(1.5);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.8), 0 0 30px rgba(0, 240, 255, 0.6);
}

/* Premium UI showcase effects */
.assembly-stage {
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.assembly-stage:hover {
    transform: rotateX(28deg) rotateY(-12deg) scale(1.05);
}

/* Smooth motion illusion effects */
@keyframes smoothParallax {
    0%, 100% { transform: translateZ(0) translateX(0) translateY(0); }
    25% { transform: translateZ(-5px) translateX(-2px) translateY(-1px); }
    50% { transform: translateZ(-8px) translateX(1px) translateY(1px); }
    75% { transform: translateZ(-3px) translateX(2px) translateY(-2px); }
}

.pc-assembly-scene {
    animation: smoothParallax 8s ease-in-out infinite;
}

/* Enhanced particle effects */
.energy-particle {
    transition: all 0.5s ease;
}

.connection-effect {
    animation: connectionPulse 0.6s ease-out;
}

@keyframes connectionPulse {
    0% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        box-shadow: 0 0 5px #00f0ff;
    }
    50% { 
        transform: translate(-50%, -50%) scale(2);
        opacity: 0.8;
        box-shadow: 0 0 20px #00f0ff, 0 0 30px #00f0ff;
    }
    100% { 
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
        box-shadow: 0 0 5px #00f0ff;
    }
}
