/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', monospace;
    background: #000;
    color: #00ff41;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
    z-index: 10000;
    position: relative;
}

.loading-logo {
    margin-bottom: 3rem;
}

.skull-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: skull-glow 2s ease-in-out infinite alternate;
}

@keyframes skull-glow {
    0% {
        text-shadow: 0 0 20px #ff0080, 0 0 30px #ff0080, 0 0 40px #ff0080;
        transform: scale(1);
    }
    100% {
        text-shadow: 0 0 30px #00ffff, 0 0 40px #00ffff, 0 0 50px #00ffff;
        transform: scale(1.1);
    }
}

.hacker-text {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41, 0 0 30px #00ff41;
    animation: text-flicker 1.5s infinite alternate;
}

@keyframes text-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.loading-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 400px;
    height: 4px;
    background: #1a1a1a;
    border: 1px solid #00ff41;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #00ffff, #ff0080);
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading-shine 2s infinite;
}

@keyframes loading-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.loading-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    margin-bottom: 0.5rem;
    animation: loading-text-glow 1s ease-in-out infinite alternate;
}

@keyframes loading-text-glow {
    0% { text-shadow: 0 0 10px #00ffff; }
    100% { text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff; }
}

.loading-percentage {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #00ff41;
    text-shadow: 0 0 5px #00ff41;
}

.loading-console {
    margin-bottom: 2rem;
    text-align: left;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff41;
    border-radius: 5px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    max-width: 500px;
    margin: 2rem auto;
}

.console-line {
    color: #00ff41;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: console-appear 0.8s ease-out forwards;
}

.console-line:nth-child(1) { animation-delay: 1s; }
.console-line:nth-child(2) { animation-delay: 2s; }
.console-line:nth-child(3) { animation-delay: 3s; }
.console-line:nth-child(4) { animation-delay: 4s; }

@keyframes console-appear {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: spinner-rotate 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: #00ff41;
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    border-right-color: #00ffff;
    animation-delay: 0.5s;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

.spinner-ring:nth-child(3) {
    border-bottom-color: #ff0080;
    animation-delay: 1s;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
}

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

/* Loading background effects */
.loading-matrix {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.loading-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 0%,
        rgba(0, 255, 65, 0.05) 50%,
        transparent 100%
    );
    background-size: 100% 3px;
    animation: loading-scanlines 0.1s linear infinite;
    z-index: -1;
}

@keyframes loading-scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(3px); }
}

.loading-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 98%, rgba(255, 0, 128, 0.1) 100%),
        linear-gradient(0deg, transparent 98%, rgba(0, 255, 255, 0.1) 100%);
    animation: loading-glitch 2s infinite;
    z-index: -1;
}

@keyframes loading-glitch {
    0%, 95%, 100% { transform: translateX(0); }
    96% { transform: translateX(-2px); }
    97% { transform: translateX(2px); }
    98% { transform: translateX(-1px); }
    99% { transform: translateX(1px); }
}

/* Hide main content initially */
.main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.main-content.show {
    opacity: 1;
    visibility: visible;
}

/* Matrix rain background */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    background: #000;
}

.matrix-char {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #00ff41;
    animation: matrix-fall linear infinite;
    opacity: 0.8;
}

@keyframes matrix-fall {
    0% {
        transform: translateY(-100vh);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Scanlines overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(
        transparent 0%,
        rgba(0, 255, 65, 0.03) 50%,
        transparent 100%
    );
    background-size: 100% 4px;
    animation: scanlines 0.1s linear infinite;
    pointer-events: none;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Glitch overlay */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        linear-gradient(90deg, transparent 98%, rgba(255, 0, 128, 0.1) 100%),
        linear-gradient(0deg, transparent 98%, rgba(0, 255, 255, 0.1) 100%);
    animation: glitch-overlay 3s infinite;
    pointer-events: none;
}

@keyframes glitch-overlay {
    0%, 90%, 100% { transform: translateX(0); }
    91% { transform: translateX(-2px); }
    92% { transform: translateX(2px); }
    93% { transform: translateX(-1px); }
    94% { transform: translateX(1px); }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

/* Header section */
.header-section {
    margin-bottom: 3rem;
}

/* Glitch text effect */
.glitch-text {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 900;
    color: #f1e208;
    text-shadow: 
        0 0 5px #ff0080,
        0 0 10px #ff0080,
        0 0 15px #ff0080,
        0 0 20px #ff0080;
    position: relative;
    display: inline-block;
    margin: 2rem 0;
    animation: glitch 2s 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: glitch-1 0.5s infinite;
    color: #00ffff;
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: #ff0080;
    z-index: -2;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, 2px); }
    20% { transform: translate(2px, -2px); }
    30% { transform: translate(-2px, -2px); }
    40% { transform: translate(2px, 2px); }
    50% { transform: translate(-2px, 2px); }
    60% { transform: translate(2px, -2px); }
    70% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
}

@keyframes glitch-1 {
    0%, 90%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, -2px); }
    20% { transform: translate(2px, 2px); }
    30% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    50% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    70% { transform: translate(-2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 90%, 100% { transform: translate(0); }
    10% { transform: translate(2px, 2px); }
    20% { transform: translate(-2px, -2px); }
    30% { transform: translate(2px, -2px); }
    40% { transform: translate(-2px, 2px); }
    50% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    70% { transform: translate(2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

/* Neon text */
.neon-text {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    color: #00ffff;
    text-shadow: 
        0 0 5px #00ffff,
        0 0 10px #00ffff,
        0 0 15px #00ffff,
        0 0 20px #00ffff,
        0 0 35px #00ffff;
    margin: 1rem 0;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Message section */
.message-section {
    margin: 3rem 0;
}

.neon-box {
    border: 2px solid #00ff41;
    border-radius: 10px;
    padding: 2rem;
    background: rgba(0, 255, 65, 0.05);
    box-shadow: 
        0 0 10px #00ff41,
        inset 0 0 10px rgba(0, 255, 65, 0.1);
    position: relative;
    overflow: hidden;
}

.neon-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff41, #00ffff, #ff0080, #00ff41);
    z-index: -1;
    border-radius: 10px;
    animation: border-glow 3s linear infinite;
}

@keyframes border-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hack-message {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    line-height: 1.6;
}

.glitch-text-small {
    color: #ff0080;
    text-shadow: 0 0 10px #ff0080;
    position: relative;
    display: inline-block;
    animation: glitch-small 1.5s infinite;
}

.glitch-text-small::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #00ffff;
    animation: glitch-small-1 0.3s infinite;
}

@keyframes glitch-small {
    0%, 95%, 100% { transform: translate(0); }
    96% { transform: translate(-1px, 1px); }
    97% { transform: translate(1px, -1px); }
    98% { transform: translate(-1px, -1px); }
    99% { transform: translate(1px, 1px); }
}

@keyframes glitch-small-1 {
    0%, 95%, 100% { transform: translate(0); }
    96% { transform: translate(1px, -1px); }
    97% { transform: translate(-1px, 1px); }
    98% { transform: translate(1px, 1px); }
    99% { transform: translate(-1px, -1px); }
}

.security-text {
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41;
    font-weight: 700;
    animation: flicker 1s infinite alternate;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Terminal section */
.contact-section {
    margin: 3rem 0;
}

.terminal-box {
    background: #1a1a1a;
    border: 1px solid #00ff41;
    border-radius: 8px;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.3),
        inset 0 0 20px rgba(0, 255, 65, 0.05);
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.terminal-header {
    background: #2a2a2a;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #00ff41;
}

.terminal-title {
    color: #00ff41;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.minimize { background: #ffff00; }
.maximize { background: #00ff00; }
.close { background: #ff0000; }

.terminal-body {
    padding: 1rem;
    font-family: 'Courier New', monospace;
    background: #000;
}

.terminal-text {
    color: #00ff41;
    font-size: 1rem;
    margin: 0;
}

.prompt {
    color: #00ffff;
    font-weight: bold;
}

.email-link {
    color: #ff0080;
    text-decoration: none;
    text-shadow: 0 0 5px #ff0080;
    transition: all 0.3s ease;
}

.email-link:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    text-decoration: underline;
}

.cursor {
    color: #00ff41;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Image section */
.image-section {
    margin: 3rem 0;
    position: relative;
}

.image-container {
    position: relative;
    display: inline-block;
    border: 3px solid transparent;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(45deg, #ff0080, #00ffff, #00ff41, #ff0080);
    background-size: 400% 400%;
    animation: rainbow-border 4s ease infinite;
    padding: 3px;
    box-shadow: 
        0 0 30px rgba(255, 0, 128, 0.6),
        0 0 60px rgba(0, 255, 255, 0.4),
        0 0 90px rgba(0, 255, 65, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
}

@keyframes rainbow-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hacker-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    border-radius: 12px;
    filter: 
        hue-rotate(90deg) 
        saturate(1.8) 
        contrast(1.4)
        brightness(1.1)
        drop-shadow(0 0 20px rgba(255, 0, 128, 0.5));
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

.hacker-image:hover {
    filter: 
        hue-rotate(180deg) 
        saturate(2.2) 
        contrast(1.6)
        brightness(1.3)
        drop-shadow(0 0 40px rgba(0, 255, 255, 0.8));
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: linear-gradient(
        45deg,
        rgba(255, 0, 128, 0.2) 0%,
        rgba(0, 255, 255, 0.1) 25%,
        transparent 50%,
        rgba(0, 255, 65, 0.1) 75%,
        rgba(255, 0, 128, 0.2) 100%
    );
    border-radius: 12px;
    pointer-events: none;
    animation: image-highlight-pulse 3s ease-in-out infinite;
    z-index: 3;
}

@keyframes image-highlight-pulse {
    0%, 100% { 
        opacity: 0.3;
        background: linear-gradient(
            45deg,
            rgba(255, 0, 128, 0.2) 0%,
            rgba(0, 255, 255, 0.1) 25%,
            transparent 50%,
            rgba(0, 255, 65, 0.1) 75%,
            rgba(255, 0, 128, 0.2) 100%
        );
    }
    50% { 
        opacity: 0.6;
        background: linear-gradient(
            45deg,
            rgba(0, 255, 255, 0.3) 0%,
            rgba(255, 0, 128, 0.2) 25%,
            rgba(0, 255, 65, 0.1) 50%,
            rgba(255, 0, 128, 0.2) 75%,
            rgba(0, 255, 255, 0.3) 100%
        );
    }
}

/* Background effect behind image */
.image-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 0, 128, 0.3) 0%,
        rgba(0, 255, 255, 0.2) 30%,
        rgba(0, 255, 65, 0.1) 60%,
        transparent 100%
    );
    border-radius: 25px;
    z-index: -1;
    animation: background-glow-pulse 4s ease-in-out infinite;
}

@keyframes background-glow-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Additional background particles around image */
.image-container::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 0, 128, 0.4) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 65, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 90% 70%, rgba(255, 0, 128, 0.3) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px, 40px 40px, 60px 60px;
    animation: floating-particles 8s linear infinite;
    z-index: -1;
    border-radius: 20px;
}

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

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -4;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ff41;
    border-radius: 50%;
    animation: float linear infinite;
    box-shadow: 0 0 5px #00ff41;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .neon-box {
        padding: 1.5rem;
    }
    
    .terminal-box {
        margin: 0 1rem;
    }
    
    .hack-message {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }
    
    .neon-box {
        padding: 1rem;
    }
    
    .terminal-header {
        padding: 0.3rem 0.5rem;
    }
    
    .terminal-body {
        padding: 0.5rem;
    }
    
    .terminal-text {
        font-size: 0.9rem;
    }
}

/* Additional cyberpunk effects */
@keyframes cyberpunk-glow {
    0%, 100% {
        text-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 15px currentColor;
    }
    50% {
        text-shadow: 
            0 0 10px currentColor,
            0 0 20px currentColor,
            0 0 30px currentColor;
    }
}

.cyberpunk-glow {
    animation: cyberpunk-glow 2s ease-in-out infinite;
}

/* Hover effects */
.neon-text:hover,
.glitch-text:hover {
    animation-duration: 0.1s;
}

.terminal-box:hover {
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.5),
        inset 0 0 30px rgba(0, 255, 65, 0.1);
}
