/* Iron Man Holographic Interface */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: #e0e0e0;
    overflow-x: hidden;
}

/* Holographic Background Grid */
.holographic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(0, 188, 212, 0.05) 25%, rgba(0, 188, 212, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 188, 212, 0.05) 75%, rgba(0, 188, 212, 0.05) 76%, transparent 77%, transparent 100%),
        linear-gradient(90deg, transparent 24%, rgba(0, 188, 212, 0.05) 25%, rgba(0, 188, 212, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 188, 212, 0.05) 75%, rgba(0, 188, 212, 0.05) 76%, transparent 77%, transparent 100%);
    background-size: 50px 50px;
    background-color: #0a0a0f;
    z-index: -1;
    animation: gridPulse 3s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.15; }
}

/* Main Container */
.main-container {
    position: relative;
    width: 100%;
    height: 500vh;
}

/* 3D Perspective Container */
.perspective-container {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    perspective: 1200px;
    z-index: 10;
}

.gallery-viewport {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1200px;
}

/* Project Card - Main Style */
.project-card {
    position: absolute;
    width: 350px;
    height: 450px;
    background: linear-gradient(135deg, rgba(30, 30, 63, 0.9) 0%, rgba(42, 42, 78, 0.9) 100%);
    border: 2px solid #00bcd4;
    border-radius: 8px;
    padding: 1.8rem;
    cursor: grab;
    transform-style: preserve-3d;
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.3), inset 0 0 20px rgba(0, 188, 212, 0.1);
    overflow: hidden;
    will-change: transform;
    transition: box-shadow 0.3s ease;
    pointer-events: auto;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00e5ff, transparent);
    animation: scanline 3s ease-in-out infinite;
}

@keyframes scanline {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.project-card:hover {
    box-shadow: 0 0 50px rgba(0, 188, 212, 0.6), inset 0 0 30px rgba(0, 188, 212, 0.2);
    border-color: #00e5ff;
}

.project-card.active {
    box-shadow: 0 0 80px rgba(0, 188, 212, 1), inset 0 0 40px rgba(0, 188, 212, 0.3);
    border-color: #00e5ff;
}

.project-card.dragging {
    cursor: grabbing;
    box-shadow: 0 0 100px rgba(0, 188, 212, 1);
}

/* Card Header */
.card-header {
    position: relative;
    z-index: 10;
    margin-bottom: 1rem;
    text-align: center;
}

.card-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #00e5ff;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.card-subtitle {
    font-size: 0.85rem;
    color: #00bcd4;
    margin-top: 0.3rem;
}

.card-description {
    font-size: 0.9rem;
    color: #b0b0b0;
    line-height: 1.5;
    position: relative;
    z-index: 10;
    margin: 1rem 0;
}

.card-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    margin: 1rem 0;
    justify-content: center;
}

.tag {
    padding: 0.25rem 0.6rem;
    background: rgba(0, 188, 212, 0.15);
    border: 1px solid #00bcd4;
    border-radius: 12px;
    font-size: 0.7rem;
    color: #00bcd4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-buttons {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    position: relative;
    z-index: 10;
    justify-content: center;
}

.card-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, #00bcd4, #00e5ff);
    border: 1px solid #00e5ff;
    border-radius: 4px;
    color: #0f0f1e;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

.card-btn:hover {
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.6);
    transform: scale(1.05);
}

.card-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.control-btn {
    width: 28px;
    height: 28px;
    background: rgba(0, 188, 212, 0.15);
    border: 1px solid #00bcd4;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00bcd4;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    padding: 0;
}

.control-btn:hover {
    background: rgba(0, 188, 212, 0.3);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
    transform: scale(1.1);
}

/* Info Panel */
.info-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    background: linear-gradient(135deg, rgba(15, 15, 30, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
    border: 2px solid #00bcd4;
    border-radius: 8px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 0 40px rgba(0, 188, 212, 0.4);
    transform: translateX(calc(100% + 40px));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
}

.info-panel.active {
    transform: translateX(0);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 188, 212, 0.3);
    padding-bottom: 1rem;
}

.panel-header h3 {
    color: #00bcd4;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.close-btn {
    background: none;
    border: none;
    color: #00bcd4;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    padding: 0;
}

.close-btn:hover {
    color: #00e5ff;
    transform: scale(1.2);
}

.panel-content {
    color: #b0b0b0;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Instructions Overlay */
.instructions-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(5px);
}

.instructions-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.instructions-card {
    background: linear-gradient(135deg, #1e1e3f 0%, #2a2a4e 100%);
    border: 2px solid #00bcd4;
    border-radius: 8px;
    padding: 2.5rem;
    max-width: 450px;
    box-shadow: 0 0 50px rgba(0, 188, 212, 0.5);
}

.instructions-card h2 {
    color: #00e5ff;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.instructions-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.instructions-card li {
    color: #b0b0b0;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.instructions-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00bcd4;
    font-weight: bold;
}

.instructions-card strong {
    color: #00e5ff;
}

.close-instructions {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(45deg, #00bcd4, #00e5ff);
    border: none;
    border-radius: 4px;
    color: #0f0f1e;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.close-instructions:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 188, 212, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .project-card {
        width: 280px;
        height: 380px;
        padding: 1.2rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-description {
        font-size: 0.8rem;
    }

    .info-panel {
        width: 85%;
        right: 10px;
        top: 10px;
    }

    .instructions-card {
        margin: 1rem;
        padding: 1.5rem;
    }
}
