/*
* Glassmorphism Effects - Modern UI Glass Elements
* Creates translucent glass-like effects with backdrop filters
* Version: 1.0
* Last Modified: August 26, 2025
*/

/* ============================================
   Base Glassmorphism Classes
============================================ */

.glass {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.circle-btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    font-size: 1.2rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 10px;
    animation: social-pulse 3s ease-in-out infinite alternate;
}

.glass-light {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ============================================
   Navigation Glass Effects
============================================ */

.header.glass-nav {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-items.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Card Glass Effects
============================================ */

.skill-card.glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.skill-card.glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.project-card.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.project-card.glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Timeline Glass Effects
============================================ */

.timeline-item .timeline-content.glass {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.timeline-item .timeline-content.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* ============================================
   Form Glass Effects
============================================ */

.contact-form.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
}

.form-group input.glass,
.form-group textarea.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-text);
}

.form-group input.glass:focus,
.form-group textarea.glass:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* ============================================
   Button Glass Effects
============================================ */

.btn.glass-primary {
    background: rgba(106, 125, 254, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(106, 125, 254, 0.3);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn.glass-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn.glass-primary:hover::before {
    left: 100%;
}

.btn.glass-primary:hover {
    background: rgba(106, 125, 254, 0.3);
    border-color: rgba(106, 125, 254, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(106, 125, 254, 0.3);
}

.btn.glass-secondary {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
}

.btn.glass-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* ============================================
   Modal Glass Effects
============================================ */

.modal-backdrop.glass {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Certificate Showcase Glass Effects
============================================ */

.certificate-card.glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
}

.certificate-card.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(255, 215, 0, 0.8),
        rgba(255, 165, 0, 0.8),
        rgba(255, 69, 0, 0.8)
    );
}

.certificate-card.glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Theme Panel Glass Effects
============================================ */

.theme-panel.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Loading Overlay Glass Effects
============================================ */

.loader.glass {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.loader-content.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
}

/* ============================================
   Scroll Indicator Glass Effects
============================================ */

.scroll-progress.glass {
    background: rgba(106, 125, 254, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 3px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-header);
    transition: width 0.1s ease;
}

/* ============================================
   Circular Glowing Social Media Buttons
============================================ */

.circle-btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    font-size: 1.2rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 10px;
}

.circle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.circle-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid transparent;
    z-index: -1;
}

.circle-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.circle-btn:hover::before {
    opacity: 1;
}

/* GitHub Button */
.github-btn::after {
    border-color: #333;
    box-shadow: 0 0 15px rgba(51, 51, 51, 0.6);
}

.github-btn:hover {
    background: rgba(51, 51, 51, 0.8);
}

/* LinkedIn Button */
.linkedin-btn::after {
    border-color: #0077B5;
    box-shadow: 0 0 15px rgba(0, 119, 181, 0.6);
}

.linkedin-btn:hover {
    background: rgba(0, 119, 181, 0.8);
}

/* YouTube Button */
.youtube-btn::after {
    border-color: #FF0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
}

.youtube-btn:hover {
    background: rgba(255, 0, 0, 0.8);
}

/* Instagram Button */
.instagram-btn::after {
    border-color: #E1306C;
    box-shadow: 0 0 15px rgba(225, 48, 108, 0.6);
}

.instagram-btn:hover {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

/* Award Button */
.award-btn::after {
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.award-btn:hover {
    background: linear-gradient(45deg, #FFD700, #FFA500);
}

/* ============================================
   Responsive Adjustments
============================================ */

@media (max-width: 768px) {
    .glass,
    .glass-light,
    .glass-dark,
    .glass-strong {
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }

    .header.glass-nav {
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
    }
}

/* ============================================
   Fallback for Browsers without backdrop-filter
============================================ */

@supports not (backdrop-filter: blur(10px)) {
    .glass {
        background: rgba(255, 255, 255, 0.2);
    }

    .glass-light {
        background: rgba(255, 255, 255, 0.35);
    }

    .glass-dark {
        background: rgba(0, 0, 0, 0.4);
    }

    .glass-strong {
        background: rgba(255, 255, 255, 0.25);
    }
}
