:root {
    --bg-deep: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.4); /* Glassmorphism base */
    --accent-blue: #0ea5e9;
    --accent-glow: rgba(14, 165, 233, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border-soft: rgba(255, 255, 255, 0.08);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.bg-blur {
    position: fixed;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 10% 10%, rgba(14, 165, 233, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    z-index: -2;
    animation: backgroundShift 20s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(5%, 5%) scale(1.1); }
}

.grid-overlay {
    position: fixed;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(14, 165, 233, 0.08) 1px, transparent 1px),
                  linear-gradient(90deg, rgba(14, 165, 233, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
}

header {
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(11, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.home-nav {
    text-decoration: none;
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(14, 165, 233, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    background: rgba(14, 165, 233, 0.03);
}

.home-nav:hover {
    background: rgba(14, 165, 233, 0.1);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    transform: translateX(-5px) scale(1.05);
    border-color: var(--accent-blue);
}

.logo-wrap h1 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
    transition: all 0.3s ease;
}

.logo-wrap p {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 4px;
    opacity: 0.8;
}

.live-status {
    font-size: 0.7rem;
    font-weight: 700;
    color: #10b981;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.05);
    box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.05);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 1.5s infinite; /* Faster blink */
    box-shadow: 0 0 10px #10b981;
}

.mini-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 1.5s infinite; /* Faster blink */
    box-shadow: 0 0 8px #10b981;
}

.mini-dot-grey {
    width: 6px;
    height: 6px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    opacity: 0.6;
}

.disabled-card {
    cursor: not-allowed;
    pointer-events: none; /* Disables click and hover */
    filter: grayscale(90%);
    opacity: 0.5;
}

.disabled-card .card-status {
    color: var(--text-secondary);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.3; } /* More noticeable blink */
    100% { transform: scale(1); opacity: 1; }
}

.container {
    max-width: 850px;
    margin: 4rem auto;
    padding: 0 2rem;
    flex-grow: 1;
}

.profile-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 5rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(15px);
}

.profile-pic-wrap {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent-blue), #8b5cf6);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.2);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease;
}

.profile-intro:hover .profile-pic-wrap {
    transform: rotate(5deg) scale(1.05);
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Reduced gap */
    flex-wrap: wrap;
}

.image-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.image-badges img {
    height: 36px; /* Larger badge */
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.profile-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 400;
    color: #b8c7db;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.profile-certs {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap; /* Allow tags to wrap */
    margin-top: 0.2rem; /* Add some space if they wrap */
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--accent-blue);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 0.25rem 0.8rem;
    border-radius: 4px;
    background: rgba(14, 165, 233, 0.1);
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.cert-badge i {
    margin-right: 0.35rem;
}

.cert-badge:hover {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-blue);
}

.profile-pic {
    width: 160%;
    height: 160%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 0%;
    background: #000;
}

.link-category {
    margin-bottom: 5rem;
}

.category-header {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.9;
}

.category-header::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.3), transparent);
    margin-left: 1rem;
}

.links-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.modern-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.modern-card::before {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.modern-card > * {
    position: relative;
    z-index: 1;
}

.modern-card:hover {
    border-color: rgba(14, 165, 233, 0.5);
    transform: translateY(-8px) scale(1.01);
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(14, 165, 233, 0.1);
}

.modern-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 1.8rem;
    color: #f97316; /* Vibrant Orange */
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(249, 115, 22, 0.1);
    transition: all 0.3s ease;
}

.modern-card:hover .card-icon {
    transform: rotate(-10deg) scale(1.1);
    background: rgba(249, 115, 22, 0.15);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
}

.card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: 1px;
    color: #fff;
}

.card-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    max-width: 90%;
}

.card-url {
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 700;
    display: block;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.modern-card:hover .card-url {
    opacity: 1;
    text-shadow: 0 0 10px var(--accent-blue);
}

.view-hint {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-blue);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.modern-card:hover .view-hint {
    text-shadow: 0 0 15px var(--accent-blue);
    transform: translateX(8px);
}

.card-status {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 0.6rem;
    font-weight: 900;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

footer {
    padding: 5rem;
    text-align: center;
    border-top: 1px solid var(--border-soft);
    background: rgba(11, 15, 26, 0.9);
}

footer p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 650px) {
    header {
        padding: 1.2rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }
    .header-left {
        display: contents;
    }
    .logo-wrap {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 1.2rem;
    }
    .home-nav {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }
    .logo-wrap h1 {
        font-size: 1.1rem;
    }
    .live-status {
        padding: 0.4rem 0.8rem;
        font-size: 0.65rem;
    }
    .profile-intro {
        flex-direction: row;
        text-align: left;
        gap: 1.25rem;
        padding: 1.25rem; /* Match modern-card padding */
        align-items: center;
        border-radius: 16px; /* Match modern-card radius */
    }
    .profile-pic-wrap {
        width: 90px; /* Increased size */
        height: 90px;
    }
    .profile-name {
        font-size: 1rem; /* Increased size */
    }
    .profile-title {
        font-size: 0.7rem; /* Increased size */
        margin-bottom: 0.5rem;
    }
    .cert-badge {
        font-size: 0.6rem; /* Increased size */
        padding: 0.2rem 0.6rem;
        white-space: normal;
        line-height: 1.3;
    }
    .modern-card {
        flex-direction: row;
        padding: 1.25rem;
        gap: 1.25rem;
        align-items: center;
    }
    .card-icon {
        min-width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
    .card-body h3 {
        font-size: 1rem;
    }
    .card-body p {
        max-width: 100%;
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    .card-url {
        font-size: 0.75rem;
    }
    .view-hint {
        position: absolute;
        bottom: 0.75rem;
        right: 1rem;
        font-size: 0.55rem;
    }
    .card-status {
        top: 0.75rem;
        right: 1rem;
        font-size: 0.5rem;
    }
}
