/* ===== ROOT VARIABLES ===== */
:root {
    --primary-cyan: #00f0ff;
    --primary-purple: #a020f0;
    --primary-pink: #ff006e;
    --bg-dark: #0a0e27;
    --bg-darker: #050813;
    --text-light: #e0e0e0;
    --text-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a3e 50%, #0a0e27 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

/* ===== ANIMATED BACKGROUND ===== */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--primary-cyan) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary-cyan) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.03;
    z-index: 1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* ===== CONTAINER ===== */
.container {
    position: relative;
    z-index: 10;
    max-width: 600px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CORNER DECORATIONS ===== */
.corner-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-cyan);
    z-index: 5;
    opacity: 0.6;
    animation: pulse 2s ease-in-out infinite;
}

.corner-decoration::before,
.corner-decoration::after {
    content: '';
    position: absolute;
    background: var(--primary-cyan);
}

.corner-decoration::before {
    width: 10px;
    height: 2px;
}

.corner-decoration::after {
    width: 2px;
    height: 10px;
}

.top-left {
    top: -20px;
    left: -20px;
    border-right: none;
    border-bottom: none;
}

.top-left::before { top: 0; left: 0; }
.top-left::after { top: 0; left: 0; }

.top-right {
    top: -20px;
    right: -20px;
    border-left: none;
    border-bottom: none;
}

.top-right::before { top: 0; right: 0; }
.top-right::after { top: 0; right: 0; }

.bottom-left {
    bottom: -20px;
    left: -20px;
    border-right: none;
    border-top: none;
}

.bottom-left::before { bottom: 0; left: 0; }
.bottom-left::after { bottom: 0; left: 0; }

.bottom-right {
    bottom: -20px;
    right: -20px;
    border-left: none;
    border-top: none;
}

.bottom-right::before { bottom: 0; right: 0; }
.bottom-right::after { bottom: 0; right: 0; }

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ===== GLASS CARD ===== */
.glass-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 
        0 8px 32px 0 rgba(0, 240, 255, 0.1),
        inset 0 0 100px rgba(0, 240, 255, 0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: 
        0 8px 32px 0 rgba(0, 240, 255, 0.2),
        inset 0 0 100px rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.3);
}

/* ===== SCAN LINE EFFECT ===== */
.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-cyan), 
        transparent);
    top: 0;
    left: 0;
    animation: scan 3s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes scan {
    0%, 100% { transform: translateY(0); opacity: 0; }
    10% { opacity: 0.5; }
    50% { transform: translateY(400px); opacity: 0.5; }
    90% { opacity: 0.5; }
}

/* ===== PROFILE IMAGE ===== */
.profile-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

.profile-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-cyan), var(--primary-purple), var(--primary-pink));
    animation: rotate 3s linear infinite;
    opacity: 0.8;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-image {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-dark);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
    z-index: 2;
    transition: transform 0.3s ease;
}

.profile-container:hover .profile-image {
    transform: scale(1.05);
}

/* ===== CONTENT ===== */
.content {
    text-align: center;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.status-text {
    color: #00ff00;
}

/* ===== GREETING TEXT ===== */
.greeting {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 300;
    color: var(--primary-cyan);
    letter-spacing: 2px;
    margin: 0 0 10px 0;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

/* ===== GLITCH TEXT ===== */
.glitch-text {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 10px 0 20px 0;
    position: relative;
    text-shadow: 
        0 0 10px var(--primary-cyan),
        0 0 20px var(--primary-cyan),
        0 0 30px var(--primary-cyan);
    animation: glitchText 3s infinite;
}

@keyframes glitchText {
    0%, 90%, 100% {
        text-shadow: 
            0 0 10px var(--primary-cyan),
            0 0 20px var(--primary-cyan);
    }
    95% {
        text-shadow: 
            -2px 0 10px var(--primary-pink),
            2px 2px 20px var(--primary-cyan);
    }
}

/* ===== TITLE ===== */
.title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.bracket {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--primary-cyan);
    font-weight: bold;
    animation: bracketPulse 2s ease-in-out infinite;
}

@keyframes bracketPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.typewriter {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--primary-purple);
    letter-spacing: 2px;
    font-weight: 600;
    border-right: 2px solid var(--primary-cyan);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(17) 1s forwards, blinker 0.7s infinite;
    max-width: 0;
}

@keyframes typing {
    from { max-width: 0; }
    to { max-width: 100%; }
}

@keyframes blinker {
    50% { border-color: transparent; }
}

/* ===== BIO ===== */
.bio {
    color: var(--text-light);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin: 25px 0 35px;
    opacity: 0.8;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

/* ===== CYBER BUTTONS ===== */
.cyber-button {
    position: relative;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid var(--primary-cyan);
    color: var(--text-white);
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(
        0 0,
        calc(100% - 15px) 0,
        100% 15px,
        100% 100%,
        15px 100%,
        0 calc(100% - 15px)
    );
}

.button-content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.button-content i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.button-glitch {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 240, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.cyber-button:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 
        0 0 20px rgba(0, 240, 255, 0.5),
        inset 0 0 20px rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
}

.cyber-button:hover .button-glitch {
    left: 100%;
}

.cyber-button:hover .button-content i {
    transform: scale(1.2);
}

.cyber-button:active {
    transform: translateY(0);
}

/* ===== TECH TICKER ===== */
.tech-ticker {
    margin-top: 40px;
    padding: 15px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
    color: var(--primary-cyan);
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 500;
}

.ticker-content span {
    padding: 0 10px;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== FOOTER ===== */
.cyber-footer {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-top: 20px;
    width: 100%;
    max-width: 600px;
}

.coffee-button {
    position: relative;
    padding: 12px 35px;
    background: linear-gradient(135deg, rgba(255, 221, 0, 0.1), rgba(255, 150, 0, 0.1));
    border: 2px solid #FFDD00;
    color: var(--text-white);
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(
        0 0,
        calc(100% - 15px) 0,
        100% 15px,
        100% 100%,
        15px 100%,
        0 calc(100% - 15px)
    );
}

.coffee-button .button-content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    justify-content: center;
}

.coffee-button .button-content i {
    font-size: 18px;
    transition: transform 0.3s ease;
    color: #FFDD00;
}

.coffee-button .button-glitch {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 221, 0, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.coffee-button:hover {
    background: linear-gradient(135deg, rgba(255, 221, 0, 0.2), rgba(255, 150, 0, 0.2));
    box-shadow: 
        0 0 20px rgba(255, 221, 0, 0.5),
        inset 0 0 20px rgba(255, 221, 0, 0.2);
    transform: translateY(-2px);
    border-color: #FFE84D;
}

.coffee-button:hover .button-glitch {
    left: 100%;
}

.coffee-button:hover .button-content i {
    transform: scale(1.2) rotate(15deg);
}

.coffee-button:active {
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .glass-card {
        padding: 40px 25px;
    }
    
    .corner-decoration {
        width: 30px;
        height: 30px;
    }
    
    .profile-container {
        width: 120px;
        height: 120px;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .glitch-text {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .typewriter {
        font-size: 1rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .cyber-button {
        width: 100%;
        padding: 12px 25px;
        font-size: 13px;
    }
    
    .bio {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 30px 20px;
    }
    
    .profile-container {
        width: 100px;
        height: 100px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .glitch-text {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .status-indicator {
        font-size: 10px;
        padding: 6px 12px;
    }
    
    .tech-ticker {
        font-size: 12px;
    }
    
    .corner-decoration {
        display: none;
    }
}

/* ===== SMOOTH SCROLLING ===== */
@media (max-height: 700px) {
    body {
        align-items: flex-start;
        padding-top: 50px;
    }
}