@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Rajdhani', sans-serif;
}

.futuristic-text {
    font-family: 'Orbitron', sans-serif;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle 5s infinite;
}

.cube {
    transform-style: preserve-3d;
    animation: rotate 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.pyramid {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: rotate 15s infinite linear;
}

.pyramid-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(0, 221, 255, 0.7), rgba(126, 34, 206, 0.7));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border: 1px solid rgba(0, 221, 255, 0.5);
}

.pyramid-face:nth-child(1) { transform: rotateY(0deg) translateZ(-50px) rotateX(45deg); }
.pyramid-face:nth-child(2) { transform: rotateY(90deg) translateZ(-50px) rotateX(45deg); }
.pyramid-face:nth-child(3) { transform: rotateY(180deg) translateZ(-50px) rotateX(45deg); }
.pyramid-face:nth-child(4) { transform: rotateY(270deg) translateZ(-50px) rotateX(45deg); }

@keyframes rotate {
    from { transform: rotateX(0) rotateY(0) rotateZ(0); }
    to { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

.skill-card {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .skill-card {
    background: rgba(0, 0, 0, 0.2);
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 20px rgba(0, 221, 255, 0.5);
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dark .gradient-bg {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

.project-card {
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .project-card {
    background: rgba(0, 0, 0, 0.2);
}

.project-card:hover {
    transform: perspective(1000px) rotateY(10deg) rotateX(5deg) translateZ(20px);
    box-shadow: 0 0 25px rgba(0, 221, 255, 0.5);
}

.neon-border {
    border: 1px solid #00DDFF;
    box-shadow: 0 0 10px #00DDFF, inset 0 0 10px #00DDFF;
}

.grid-pattern {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(0, 221, 255, 0.1) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0, 221, 255, 0.1) 1px, transparent 1px);
}

.cyber-button {
    background: linear-gradient(45deg, #00DDFF, #7E22CE);
    border: none;
    color: white;
    overflow: hidden;
    position: relative;
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.2), rgba(255,255,255,0));
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.hologram-element {
    background: linear-gradient(45deg, rgba(0, 221, 255, 0.2), rgba(126, 34, 206, 0.2));
    box-shadow: 0 0 20px rgba(0, 221, 255, 0.3);
    border: 1px solid rgba(0, 221, 255, 0.5);
}

.terminal-window {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00DDFF;
    border-radius: 10px;
    box-shadow: 0 0 20px #00DDFF;
}

.terminal-header {
    background: #00DDFF;
    padding: 8px 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: black;
    font-weight: bold;
}

.terminal-body {
    padding: 20px;
    color: #00DDFF;
    font-family: monospace;
}

.cyber-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #00DDFF;
    color: white;
    padding: 12px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.cyber-input:focus {
    outline: none;
    box-shadow: 0 0 10px #00DDFF;
}

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
    transform: translateX(0);
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1e1e2f, #4a1e4a);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
    overflow: hidden;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}