/* Card Components */
.bento-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: var(--space-md);
    position: relative;
    z-index: 10;
    /* Ensure content is above bubbles (z-index 1) */

    /* Glassmorphism Core */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
    position: relative;
}

.clickable-card {
    cursor: pointer;
}

.clickable-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Blog Mini Card Specifics */
.blog-mini-card {
    transition: all 0.3s ease;
}

.blog-mini-card:hover .blog-mini-thumb img {
    transform: scale(1.1);
}

.blog-mini-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CV Download Card */
.cv-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none !important;
    color: var(--text-color) !important;
}

.cv-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cv-content {
    flex: 1;
}

.cv-arrow {
    font-size: 1.2rem;
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cv-card:hover .cv-arrow {
    transform: translateX(5px);
    opacity: 1;
    color: var(--accent-color);
}


/* Profile Card - Anchor */
.profile-card {
    padding: 0;
    /* Transparent background as requested */
    background: rgba(0, 0, 0, 0.45);
    color: white;
    text-align: center;
    justify-content: flex-start !important;
    flex-direction: column;
    min-height: 600px;
    display: flex;
    align-items: center;
    /* justify-content: center; removed */
    border: 1px solid rgba(255, 255, 255, 0.1);
    break-inside: avoid;
}

.profile-bg-layer {
    display: none;
    /* Hide background image layer */
}

.profile-gradient-overlay {
    display: none;
    /* Hide gradient overlay */
}

.profile-content {
    position: relative;
    z-index: 2;
    padding: 80px var(--space-lg) var(--space-xl);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.profile-name {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.profile-role {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.profile-tags {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    color: #e67e22;
}

.social-links {
    margin-top: 2px;
    display: flex;
    gap: var(--space-md);
}

.social-icon {
    font-size: 1.6rem;
    opacity: 0.8;
    color: white;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: translateY(-2px);
    opacity: 1;
}

/* Projects */
.project-card {
    padding: 0;
    border: none;
    background: black;
}

.project-bg-img {
    transition: transform 0.5s ease;
}

.project-card:hover .project-bg-img {
    transform: scale(1.05);
}

.project-overlay {
    transition: opacity 0.3s;
}

/* Contact Card Logic */
.contact-card input::placeholder,
.contact-card textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-card input,
.contact-card textarea {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.contact-card input:focus,
.contact-card textarea:focus {
    outline: 2px solid #3498db;
    background: rgba(0, 0, 0, 0.5) !important;
}

/* Admin/Info Styling */
.skill-item {
    margin-bottom: 2px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.skill-progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    background: var(--secondary-color);
    height: 100%;
}

/* Swap Title */
.swap-title {
    height: 1.5em;
    overflow: hidden;
    position: relative;
    color: var(--text-color);
}

.swap-title span {
    display: block;
    transition: transform 0.3s ease;
}

.swap-title:hover .default-text {
    transform: translateY(-100%);
}

.swap-title:hover .hover-text {
    transform: translateY(-100%);
}

/* Modals */
.universal-modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.universal-modal.show {
    display: flex;
}

.universal-modal-content {
    background: rgba(30, 30, 30, 0.95);
    color: var(--text-color);
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10001;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10002;
}

.close-modal:hover {
    color: white;
}