/* =======================
   GLASSMORPHISM & PANELS
   ======================= */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel-thick {
    background: var(--bg-primary); /* Less transparency on modal */
    border: 1px solid var(--glass-border);
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* =======================
   BUTTONS
   ======================= */
.btn-primary, .btn-secondary, .btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px var(--accent-primary-glow);
    transform: translateY(-2px);
    background: #1eb355;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    background: var(--border-subtle);
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

.btn-text {
    padding: 0;
    background: none;
    color: var(--accent-primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-text i {
    transition: transform 0.3s ease;
}

.btn-text:hover i {
    transform: translateX(5px);
}

.btn-primary.small, .btn-secondary.small {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.full-width {
    width: 100%;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--border-subtle);
    transform: scale(1.1);
}

/* =======================
   HERO CARD (Glass Profile)
   ======================= */
.hero-card {
    width: 300px;
    height: 400px;
    position: relative;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(0,0,0,0.2));
    animation: float 6s infinite alternate ease-in-out;
}

.profile-container {
    width: 90%;
    height: 90%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--border-highlight);
    background: radial-gradient(circle, var(--bg-tertiary), transparent);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.hero-card:hover .profile-img {
    transform: scale(1.05);
}

.card-glow {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: var(--accent-secondary-glow);
    filter: blur(50px);
    z-index: -1;
    border-radius: 50%;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

/* =======================
   BADGES
   ======================= */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

/* =======================
   FORMS
   ======================= */
.modern-form {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group textarea {
    background: rgba(255,255,255,0.5);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary-glow);
    background: rgba(0,0,0,0.3);
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary-glow);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

/* =======================
   PROJECT CARDS
   ======================= */
.project-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
}

.project-image-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 1;
}

.gradient-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, var(--bg-primary) 5%, transparent 70%);
    z-index: 3;
    transition: background 0.4s ease;
}

.project-placeholder {
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.bg-pattern-1 {
    background: radial-gradient(circle at 50% 50%, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
}
.bg-pattern-1::after {
    content: '';
    position: absolute; top:0; left:0; width:100%; height:100%;
    background-image: repeating-linear-gradient(45deg, var(--border-subtle) 0, var(--border-subtle) 1px, transparent 1px, transparent 20px);
}

.bg-pattern-2 {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    position: relative;
}
.bg-pattern-2::after {
    content: '';
    position: absolute; top:0; left:0; width:100%; height:100%;
    background-image: radial-gradient(var(--border-highlight) 1px, transparent 1px);
    background-size: 20px 20px;
}

.project-info {
    position: relative;
    z-index: 4;
    padding: 2rem;
    margin: 1.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.interactive-hover:hover .project-placeholder {
    transform: scale(1.05);
}

.interactive-hover:hover .gradient-overlay {
    background: linear-gradient(to top, var(--bg-primary) 20%, transparent 60%);
}

.interactive-hover:hover .project-info {
    transform: translateY(0);
}

.project-card-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* =======================
   FULLSCREEN MODAL
   ======================= */
.fullscreen-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 10000;
    display: flex; justify-content: center; align-items: center;
}

.modal-backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

.modal-content-container {
    position: relative;
    width: 90%; max-width: 1200px; height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.close-modal-btn {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 1.5rem;
    display: flex; justify-content: center; align-items: center;
    z-index: 10;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    background: var(--accent-primary);
    transform: rotate(90deg);
}

.modal-scroll-area {
    overflow-y: auto;
    height: 100%;
    scrollbar-width: none;
}
.modal-scroll-area::-webkit-scrollbar { display: none; }

.modal-hero {
    height: 40vh;
    min-height: 300px;
}

.modal-banner-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(34, 197, 94, 0.2));
}

.modal-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; 
    margin-top: 2rem;
}

.modal-column {
    padding: 2.5rem;
}

.modal-subheading {
    font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-primary);
    display: flex; align-items: center; gap: 0.5rem;
}

.modal-subheading i { color: var(--accent-primary); }

@media (max-width: 768px) {
    .modal-grid { grid-template-columns: 1fr; }
    .modal-title { font-size: 2rem; }
    .project-info { margin: 1rem; padding: 1.5rem; }
}

/* =======================
   TIMELINE
   ======================= */
.timeline {
    position: relative; max-width: 800px; margin: 4rem auto 0;
}

.timeline-line {
    position: absolute; top: 0; left: 24px; width: 2px; height: 100%;
    background: var(--glass-border);
}

.timeline-item {
    position: relative; margin-bottom: 4rem; padding-left: 70px;
    opacity: 0; transform: translateX(-30px);
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute; top: 0; left: 16px; width: 18px; height: 18px;
    border-radius: 50%; background: var(--bg-primary); border: 2px solid var(--accent-primary);
    z-index: 2;
}

.timeline-content { padding: 2rem; }

.timeline-date {
    display: inline-block; padding: 0.3rem 1rem; border-radius: 12px;
    font-size: 0.85rem; font-weight: 600; color: var(--accent-primary);
    background: var(--accent-primary-glow); margin-bottom: 1rem;
}

.timeline-role { font-size: 1.4rem; margin-bottom: 0.8rem; }
.timeline-desc { color: var(--text-secondary); }

/* =======================
   SKILL TOOLTIP
   ======================= */
.glass-tooltip {
    position: fixed; pointer-events: none;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-highlight);
    border-radius: 12px; padding: 1.2rem;
    z-index: 2000; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0; transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}
.glass-tooltip.show { opacity: 1; transform: translateY(0); }
.glass-tooltip h4 { color: var(--accent-primary); margin-bottom: 0.3rem; }
.glass-tooltip p { color: var(--text-secondary); font-size: 0.85rem; }

.skill-node {
    position: absolute; transform: translate(-50%, -50%);
    width: max-content; padding: 0.5rem 1rem;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 20px; font-size: 0.9rem; font-weight: 500;
    cursor: crosshair; transition: all 0.3s;
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.skill-node:hover {
    background: var(--accent-primary); color: white;
    border-color: var(--accent-primary-glow); box-shadow: 0 0 15px var(--accent-primary-glow);
    z-index: 100; transform: translate(-50%, -50%) scale(1.1);
}

/* =======================
   BLURRED SECRETS
   ======================= */
.private-contact {
    margin-top: 2rem;
    max-width: 400px;
}

.blur-reveal-container {
    position: relative;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    overflow: hidden;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.blur-reveal-container i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.blurred-text {
    filter: blur(6px);
    user-select: none;
    transition: filter 0.5s ease;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.blur-reveal-container.revealed .blurred-text {
    filter: blur(0);
    user-select: text;
}

.blur-reveal-container .reveal-overlay {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-30%, -50%);
    background: var(--bg-primary);
    border: 1px solid var(--accent-primary);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.blur-reveal-container.revealed .reveal-overlay {
    opacity: 0;
}
