/*** CREATIVE DEVELOPER HERO SECTION ***/

/* Matrix Canvas */
#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
}

/* Animated Grid Background */
.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 215, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 0;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particles::before,
.particles::after {
    content: '{ } [ ] < > ( ) ; : = + - * /';
    position: absolute;
    font-family: 'Courier New', monospace;
    color: var(--yellow);
    font-size: 20px;
    opacity: 0.1;
    animation: particleFloat 15s infinite ease-in-out;
}

.particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particles::after {
    bottom: 30%;
    right: 15%;
    animation-delay: 7s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, -50px) rotate(90deg);
    }
    50% {
        transform: translate(-50px, 50px) rotate(180deg);
    }
    75% {
        transform: translate(50px, 50px) rotate(270deg);
    }
}

/* Terminal Window */
.terminal-window {
    background: rgba(0, 0, 0, 0.95);
    border-radius: 12px;
    box-shadow:
        0 0 40px rgba(255, 215, 0, 0.3),
        inset 0 0 20px rgba(255, 215, 0, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    overflow: hidden;
    animation: terminalGlow 3s ease-in-out infinite;
}

@keyframes terminalGlow {
    0%, 100% {
        box-shadow:
            0 0 40px rgba(255, 215, 0, 0.3),
            inset 0 0 20px rgba(255, 215, 0, 0.05);
    }
    50% {
        box-shadow:
            0 0 60px rgba(255, 215, 0, 0.5),
            inset 0 0 30px rgba(255, 215, 0, 0.1);
    }
}

.terminal-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.terminal-dot.red {
    background: #ff5f56;
    box-shadow: 0 0 10px #ff5f56;
}

.terminal-dot.yellow {
    background: #ffbd2e;
    box-shadow: 0 0 10px #ffbd2e;
}

.terminal-dot.green {
    background: #27c93f;
    box-shadow: 0 0 10px #27c93f;
}

.terminal-title {
    color: rgba(255, 215, 0, 0.7);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin-left: auto;
}

.terminal-body {
    padding: 30px;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.8);
}

.terminal-line {
    margin: 15px 0;
    color: #00ff00;
    font-size: 16px;
}

.terminal-prompt {
    color: var(--yellow);
    margin-right: 10px;
    font-weight: 700;
}

.terminal-cmd {
    color: #ffffff;
    animation: typeText 2s steps(20) forwards;
}

.terminal-cmd-typing {
    color: #00ff00;
    animation: typing 3s steps(20) infinite;
}

@keyframes typeText {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes typing {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    color: #FFD700;
    font-weight: 800;
    animation: glitch 5s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitchTop 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.glitch-text::after {
    animation: glitchBottom 4s infinite;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

@keyframes glitchTop {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-5px, 2px);
    }
    40% {
        transform: translate(5px, -2px);
    }
    60% {
        transform: translate(-5px, 2px);
    }
    80% {
        transform: translate(2px, -3px);
    }
}

@keyframes glitchBottom {
    0%, 100% {
        transform: translate(0);
    }
    25% {
        transform: translate(5px, -2px);
    }
    50% {
        transform: translate(-3px, 3px);
    }
    75% {
        transform: translate(3px, 2px);
    }
}

/* Code Output */
.code-output {
    color: #00ff00;
    font-size: 1.8rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    text-shadow:
        0 0 10px #00ff00,
        0 0 20px #00ff00,
        0 0 30px #00ff00;
    letter-spacing: 1px;
}

.output-arrow {
    color: var(--yellow);
    margin-right: 10px;
    font-size: 1.8rem;
    font-weight: 700;
}

.cursor-blink {
    color: #00ff00;
    font-size: 1.8rem;
    font-weight: 700;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Skills List */
.skills-list {
    margin-top: 15px;
}

.skill-item {
    color: #ffffff;
    padding: 8px 0;
    font-size: 14px;
    animation: slideIn 1s ease-out forwards;
    opacity: 0;
}

.skill-item:nth-child(1) {
    animation-delay: 0.2s;
}

.skill-item:nth-child(2) {
    animation-delay: 0.4s;
}

.skill-item:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slideIn {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.skill-icon {
    margin-right: 10px;
    font-size: 18px;
}

/* Download Button */
.btn-download {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
    padding: 15px 30px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.btn-download:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 0 40px rgba(255, 215, 0, 0.8),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    color: #000000;
}

.download-icon {
    font-size: 1.5em;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.download-size {
    font-size: 0.8em;
    opacity: 0.8;
}

/* 3D Profile Container */
.profile-container-3d {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    perspective: 1000px;
}

/* Hexagon Grid */
.hex-grid {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hex {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
    animation: hexFloat 4s ease-in-out infinite;
}

.hex-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hex-2 {
    top: 30%;
    right: 15%;
    animation-delay: 1.3s;
}

.hex-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 2.6s;
}

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

/* Orbit Rings */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    animation: rotateRing 10s linear infinite;
}

.ring-1 {
    width: 400px;
    height: 400px;
    margin-left: -200px;
    margin-top: -200px;
    animation-duration: 10s;
}

.ring-2 {
    width: 480px;
    height: 480px;
    margin-left: -240px;
    margin-top: -240px;
    animation-duration: 15s;
    animation-direction: reverse;
}

@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--yellow);
    border-radius: 50%;
    top: 0;
    left: 50%;
    margin-left: -5px;
    box-shadow: 0 0 20px var(--yellow);
}

/* Profile Hexagon */
.profile-hexagon {
    position: relative;
    z-index: 2;
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
}

.profile-img-3d {
    width: 350px;
    height: 350px;
    object-fit: cover;
    animation: profileRotate 3s ease-in-out infinite;
}

@keyframes profileRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(2deg) scale(1.05);
    }
}

/* Scan Line */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--yellow), transparent);
    box-shadow: 0 0 20px var(--yellow);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Code Blocks */
.code-block {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--yellow);
    border-radius: 8px;
    padding: 10px 15px;
    font-family: 'Courier New', monospace;
    color: var(--yellow);
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    animation: float3d 4s ease-in-out infinite;
}

.block-1 {
    top: 15%;
    left: -10%;
    animation-delay: 0s;
}

.block-2 {
    top: 50%;
    right: -10%;
    animation-delay: 1.3s;
}

.block-3 {
    bottom: 15%;
    left: 10%;
    animation-delay: 2.6s;
}

@keyframes float3d {
    0%, 100% {
        transform: translateY(0) rotateY(0deg);
    }
    50% {
        transform: translateY(-30px) rotateY(180deg);
    }
}

/* Dev Stats */
.dev-stat {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--yellow);
    border-radius: 12px;
    padding: 15px 25px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    animation: statPulse 2s ease-in-out infinite;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--yellow);
    font-family: 'Courier New', monospace;
}

.stat-label {
    font-size: 0.9rem;
    color: #ffffff;
    font-family: 'Courier New', monospace;
}

.stat-1 {
    top: -20px;
    right: 10%;
    animation-delay: 0s;
}

.stat-2 {
    bottom: -20px;
    left: 10%;
    animation-delay: 1s;
}

@keyframes statPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .profile-img-3d {
        width: 250px;
        height: 250px;
    }

    .ring-1, .ring-2 {
        width: 300px;
        height: 300px;
        margin-left: -150px;
        margin-top: -150px;
    }

    .code-block, .dev-stat {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .terminal-body {
        padding: 20px;
    }
}
