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

body {
    font-family: 'Arial', sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.circuit-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 98%, #00ffff22 100%),
        linear-gradient(180deg, transparent 98%, #9d4edd22 100%);
    background-size: 100px 100px;
    animation: circuitFlow 20s linear infinite;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #00ffff;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes circuitFlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100px, -100px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Page Container */
.page {
    position: absolute;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page.active {
    opacity: 1;
    transform: translateX(0);
}

.page.prev {
    transform: translateX(-100%);
}

/* Page 1: Robot Introduction */
.intro-page {
    flex-direction: column;
    text-align: center;
}

.robot-container {
    position: relative;
    margin-bottom: 40px;
}

.robot {
    width: 200px;
    height: 250px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.robot:hover {
    transform: scale(1.05);
}

/* Robot Body */
.robot-body {
    width: 80px;
    height: 100px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 20px;
    margin: 0 auto;
    position: relative;
    border: 2px solid #00ffff;
    box-shadow: 0 0 20px #00ffff44;
}

/* Robot Head */
.robot-head {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    top: -10px;
    border: 2px solid #9d4edd;
    box-shadow: 0 0 15px #9d4edd44;
}

.robot-eyes {
    display: flex;
    justify-content: space-between;
    padding: 15px 12px;
}

.eye {
    width: 8px;
    height: 8px;
    background: #00ffff;
    border-radius: 50%;
    animation: blink 3s infinite;
    box-shadow: 0 0 10px #00ffff;
}

@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

.robot-mouth {
    width: 20px;
    height: 3px;
    background: #9d4edd;
    border-radius: 2px;
    margin: 5px auto;
    box-shadow: 0 0 8px #9d4edd;
}

/* Robot Arms */
.robot-arm {
    position: absolute;
    width: 30px;
    height: 8px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 4px;
    top: 30px;
    border: 1px solid #00ffff;
}

.arm-left {
    left: -25px;
    transform-origin: right center;
    animation: wave 2s ease-in-out infinite;
}

.arm-right {
    right: -25px;
    transform-origin: left center;
}

@keyframes wave {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(-45deg); }
}

.robot-hand {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #2a2a2a;
    border: 1px solid #00ffff;
    border-radius: 50%;
    top: -2px;
}

.hand-left {
    left: -6px;
}

.hand-right {
    right: -6px;
}

/* Holographic Book */
.hologram {
    position: absolute;
    right: -80px;
    top: 20px;
    width: 60px;
    height: 40px;
    background: linear-gradient(145deg, #00ffff22, #9d4edd22);
    border: 2px solid #00ffff;
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.5) rotateY(90deg);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 20px #00ffff66;
}

.hologram.show {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
}

.hologram::before {
    content: "📁";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

/* Greeting */
.greeting {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #00ffff, #9d4edd);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: brightness(1); }
    to { filter: brightness(1.3); }
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-btn {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border: 2px solid transparent;
    background-clip: padding-box;
    color: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, #9d4edd, #00ffff);
    border-radius: 50px;
    z-index: -1;
    animation: rotateBorder 3s linear infinite;
}

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

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #00ffff22, transparent);
    transition: left 0.5s;
    border-radius: 50px;
}

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

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

/* Page 2: Projects */
.projects-page {
    flex-direction: column;
    padding: 40px 20px;
    max-width: 1200px;
}

.projects-header {
    text-align: center;
    margin-bottom: 40px;
}

.projects-title {
    font-size: 3rem;
    background: linear-gradient(45deg, #00ffff, #9d4edd);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.project-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid #333;
    color: #aaa;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 0 0 20px #00ffff44;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.projects-grid.switching {
    opacity: 0;
    transform: translateY(20px);
}

.project-card {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #9d4edd);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #00ffff;
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.2);
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #9d4edd;
}

.project-title {
    font-size: 1.4rem;
    color: #00ffff;
    margin-bottom: 10px;
}

.project-desc {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 15px;
}

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

.tech-tag {
    background: rgba(157, 78, 221, 0.2);
    color: #9d4edd;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    border: 1px solid rgba(157, 78, 221, 0.3);
}

/* Page 3: Contact */
.contact-page {
    flex-direction: column;
    padding: 40px 20px;
    max-width: 1000px;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-title {
    font-size: 3rem;
    background: linear-gradient(45deg, #00ffff, #9d4edd);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

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

.contact-card {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: #00ffff;
    box-shadow: 0 20px 50px rgba(0, 255, 255, 0.1);
}

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

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #333;
    border-radius: 10px;
    padding: 15px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

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

.send-btn {
    background: linear-gradient(145deg, #00ffff, #9d4edd);
    border: none;
    color: #000;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
}

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

.social-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-item:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateX(5px);
}

.social-icon {
    font-size: 1.5rem;
    color: #00ffff;
}

/* Back Button */
.back-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid #00ffff;
    color: #00ffff;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateX(-3px);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #666;
    border-top: 1px solid #333;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .projects-title,
    .contact-title {
        font-size: 2rem;
    }
    
    .greeting {
        font-size: 2rem;
    }
}