* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --terminal-green: #00ff41;
    --terminal-blue: #00d9ff;
    --terminal-bg: #000000;
    --terminal-text: #ffffff;
    --card-bg: #1a1a1a;
}

body {
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    background-color: var(--terminal-bg);
    color: var(--terminal-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header */
header {
    border-bottom: 1px solid var(--terminal-green);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.header-name {
    color: var(--terminal-green);
    font-size: 1.8em;
    font-weight: bold;
    margin: 0;
    letter-spacing: 2px;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
}

.header-title {
    color: var(--terminal-text);
    font-size: 0.9em;
    margin: 0;
    letter-spacing: 1px;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
}

.header-right {
    display: flex;
    align-items: center;
}

.featured-link {
    color: var(--terminal-green);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.featured-link:hover {
    opacity: 0.7;
}

/* Main Container */
.container {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 120px);
    border-bottom: 1px solid var(--terminal-green);
}

/* Left Section */
.left-section {
    flex: 0 0 35%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
}

.name-title {
    text-align: center;
}

.name {
    color: var(--terminal-green);
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.title {
    color: var(--terminal-text);
    font-size: 1.2em;
    letter-spacing: 1px;
}

/* 3D Card */
.card-container {
    position: relative;
    perspective: 1000px;
    margin: 20px 0;
    /* Static positioning - no dragging */
}

.lanyard {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 60px;
    background: linear-gradient(to bottom, #333, #000);
    z-index: 1;
}

.lanyard::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #333;
    border: 2px solid #555;
}

.lanyard-text {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    transform-origin: center;
    color: var(--terminal-text);
    font-size: 10px;
    letter-spacing: 2px;
    white-space: nowrap;
}

.card {
    width: 280px;
    height: 380px;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
    transform-origin: center center;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
    transform: rotateY(0deg);
}

.card.flipped .card-inner {
    transform: rotateY(180deg) !important;
}

.card-front,
.card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.2);
    overflow: hidden;
}

.card-front {
    transform: rotateY(0deg);
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 90, 43, 0.1) 2px,
            rgba(139, 90, 43, 0.1) 4px
        );
    border-radius: 8px;
    pointer-events: none;
    opacity: 0.3;
    z-index: 1;
}

/* Holographic Effect */
.card-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 65, 0.1),
        rgba(0, 217, 255, 0.1),
        rgba(255, 0, 150, 0.1),
        transparent
    );
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

.card:hover .card-front::after {
    left: 100%;
    transition: left 0.5s ease;
}

/* Glitch Effect */
.card.glitch {
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    20% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(90deg);
    }
    40% {
        transform: translate(-2px, -2px);
        filter: hue-rotate(180deg);
    }
    60% {
        transform: translate(2px, 2px);
        filter: hue-rotate(270deg);
    }
    80% {
        transform: translate(2px, -2px);
        filter: hue-rotate(360deg);
    }
}

.card-front {
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    position: relative;
    z-index: 1;
}

.card-logo {
    width: 40px;
    height: 40px;
    border: 2px solid var(--terminal-green);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terminal-green);
    font-size: 24px;
    font-weight: bold;
    background: rgba(0, 255, 65, 0.1);
}

.card-brand {
    color: var(--terminal-green);
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: bold;
}

.card-photo {
    width: 100%;
    height: 250px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 65, 0.2);
    position: relative;
    z-index: 1;
}

/* Card Back Styles */
.card-back-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.card-back-header {
    color: var(--terminal-green);
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.card-back-title {
    color: var(--terminal-text);
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.card-back-divider {
    width: 100%;
    height: 1px;
    background: rgba(0, 255, 65, 0.3);
    margin: 15px 0;
}

.card-back-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    color: var(--terminal-green);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.info-value {
    color: var(--terminal-text);
    font-size: 13px;
    letter-spacing: 0.5px;
}

.card-back-skills {
    margin-top: 10px;
}

.skills-title {
    color: var(--terminal-green);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.skills-list {
    color: var(--terminal-text);
    font-size: 12px;
    line-height: 1.6;
    white-space: normal;
    text-align: center;
}

.id-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.7);
}

.card-label {
    color: var(--terminal-green);
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
    letter-spacing: 1px;
}

/* Vertical Divider */
.vertical-divider {
    width: 1px;
    background-color: var(--terminal-green);
    flex-shrink: 0;
}

/* Right Section */
.right-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.terminal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.terminal-nav a,
.terminal-commands a {
    color: var(--terminal-green);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
    cursor: pointer;
}

.terminal-nav a:hover,
.terminal-commands a:hover {
    opacity: 0.7;
}

.separator {
    color: var(--terminal-green);
    margin: 0 5px;
}

.terminal-commands {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-top: -10px;
}

/* Terminal */
.terminal {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
}

.terminal-line {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: text;
}

.terminal-line .command-input {
    flex-shrink: 0;
}

.prompt {
    color: var(--terminal-blue);
    font-weight: bold;
}

.command {
    color: var(--terminal-text);
}

.cursor {
    color: var(--terminal-green);
    animation: blink 1s infinite;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.terminal-output {
    margin: 15px 0;
    padding-left: 0;
}

.terminal-output p {
    margin: 5px 0;
    color: var(--terminal-text);
}

.terminal-output p strong {
    font-weight: bold;
    color: var(--terminal-text);
}

/* Footer */
footer {
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--terminal-green);
}

.footer-time {
    color: var(--terminal-green);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .left-section {
        flex: 0 0 auto;
        padding: 20px;
    }
    
    .right-section {
        padding: 20px;
    }
    
    .card {
        width: 240px;
        height: 320px;
    }
}

@media (max-width: 768px) {
    .header-name {
        font-size: 1.4em;
    }
    
    .header-title {
        font-size: 0.8em;
    }
    
    .name {
        font-size: 2em;
    }
    
    .terminal-nav {
        font-size: 12px;
    }
    
    .card {
        width: 200px;
        height: 280px;
    }
}

