:root {
    --bg-color: #050510;
    --accent-cyan: #00f3ff;
    --accent-green: #00ff9d;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 90%);
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    width: 100%;
    max-width: 500px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 1;
}

/* Header */
.profile-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.banner-container {
    width: 100%;
    max-width: 480px;
    /* Slightly less than container max-width to allow padding */
    height: 200px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    border: 1px solid var(--glass-border);
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.banner-container:hover .banner-img {
    transform: scale(1.05);
}

/* Optional: Add a technological overlay to the banner */
.banner-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, var(--bg-color), transparent);
    z-index: 1;
}

h1.glitch {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

h1.glitch::before,
h1.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

h1.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #00f3ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

h1.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00ff9d;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Links Grid */
.links-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Tech Card */
.tech-card {
    position: relative;
    display: block;
    text-decoration: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    color: var(--text-primary);
    transform-style: preserve-3d;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.tech-card:hover::before {
    left: 100%;
}

.tech-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 12px;
    color: var(--accent-cyan);
    transition: 0.3s;
}

.tech-card:hover .icon-box {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--accent-cyan);
}

.text-box {
    flex: 1;
}

.text-box h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.text-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.arrow-box {
    font-size: 1.2rem;
    color: var(--glass-border);
    transition: 0.3s;
}

.tech-card:hover .arrow-box {
    color: var(--accent-cyan);
    transform: translateX(5px);
}

/* Footer */
footer {
    margin-top: auto;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Animations */
@keyframes rotateFrame {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(32px, 9999px, 2px, 0);
    }

    20% {
        clip: rect(74px, 9999px, 86px, 0);
    }

    40% {
        clip: rect(20px, 9999px, 70px, 0);
    }

    60% {
        clip: rect(98px, 9999px, 6px, 0);
    }

    80% {
        clip: rect(56px, 9999px, 34px, 0);
    }

    100% {
        clip: rect(12px, 9999px, 94px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(45px, 9999px, 12px, 0);
    }

    20% {
        clip: rect(2px, 9999px, 67px, 0);
    }

    40% {
        clip: rect(88px, 9999px, 3px, 0);
    }

    60% {
        clip: rect(23px, 9999px, 99px, 0);
    }

    80% {
        clip: rect(66px, 9999px, 44px, 0);
    }

    100% {
        clip: rect(10px, 9999px, 5px, 0);
    }
}