/* Modern Reset & Variables */
:root {
    --primary-color: #03433C;
    --primary-dark: #022c28;
    --accent-color: #64ffda;
    --text-color: #e6f1ff;
    --text-secondary: #8892b0;
    --bg-color: #0a192f;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2rem;
    background: radial-gradient(circle at 50% 50%, #112240 0%, #0a192f 100%);
    overflow-x: hidden;
    overflow-y: auto;
}

/* Background Animation Container */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

/* Background Animation */
.bg-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(3, 67, 60, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Main Container - Glassmorphism Card */
#body {
    /* Keeping ID for compatibility, but restyling */
    width: 100%;
    max-width: 480px;
    margin: 0 2rem 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header & Cover */
header {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.headerImgC {
    width: 100%;
    height: 100%;
}

#cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: var(--transition);
}

#cover:hover {
    transform: scale(1.05);
}

/* Profile Photo */
#profilePhoto {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    margin: -70px auto 1rem;
    display: block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

#profilePhoto:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: var(--accent-color);
}

/* Content Area */
main {
    padding: 0 2rem 2rem;
    text-align: center;
    background: transparent !important;
    /* Override inline style */
}

#info {
    margin-bottom: 1.5rem;
}

.name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.jobtitle {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Buttons & Actions */
#cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(3, 67, 60, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(3, 67, 60, 0.6);
    filter: brightness(1.1);
}

#cta .icon {
    margin-right: 0.5rem;
}

#cta svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

/* Action Grid */
.actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.actionsC {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.actionBtn a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.actionBtn a:hover {
    background: var(--primary-color) !important;
    transform: translateY(-3px) rotate(5deg);
    border-color: var(--accent-color);
}

.actionBtn svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-color);
    transition: var(--transition);
}

.actionsC p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Modals & Overlays */
#modal,
#menuModal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(10, 25, 47, 0.95) !important;
}

#close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

#close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

#close svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-secondary);
    transition: var(--transition);
}

#close:hover svg {
    stroke: #fff;
}

#qr {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    max-width: 300px;
    width: 100%;
    aspect-ratio: 1/1;
}

#qr svg {
    width: 100%;
    height: 100%;
    display: block;
}

#qrView {
    text-align: center;
    padding: 1rem;
}

#menuModal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    border-left: 1px solid var(--glass-border);
}

/* Top Actions */
#topActions {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    gap: 0.5rem;
}

.topAction {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: var(--transition);
    cursor: pointer;
}

.topAction:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.topAction svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

#topActions .icon {
    width: 2rem;
    height: 2rem;
    margin-left: 0.5rem;
    cursor: pointer;
}

/* Menu Inner Layout */
#menuModal>div {
    padding: 1rem;
}

.menu-close {
    float: right;
    padding: 1rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.menu-close:hover {
    opacity: 1;
}

.menu-links {
    clear: both;
    padding-top: 2rem;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-item svg {
    margin-right: 1rem;
}

.menu-item span {
    font-size: 1.1rem;
}

/* Footer Links */
footer {
    margin-top: 2rem;
    padding-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Utilities */

/* Utility Classes for JS/HTML Compatibility */
.iconColor {
    color: #fff;
    transition: var(--transition);
}

.textColor {
    color: var(--text-color) !important;
}

.closeColor {
    color: var(--text-secondary);
    transition: var(--transition);
}

.closeColor:hover {
    color: #fff;
}

.hidden {
    display: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    body {
        padding-top: 0;
        align-items: stretch;
    }

    #body {
        margin: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border: none;
        min-height: 100vh;
    }

    main {
        padding: 0 1.5rem 2rem;
    }

    #profilePhoto {
        width: 120px;
        height: 120px;
        margin-top: -60px;
    }

    .name {
        font-size: 1.75rem;
    }

    #topActions {
        top: 0.5rem;
        right: 0.5rem;
    }
}