/* ==================== PREMIUM EFFECTS CSS ==================== */
/* Award-winning portfolio visual polish */

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==================== FLOATING ACTION BUTTONS ==================== */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-actions.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.fab-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.fab-btn .fab-tooltip {
    position: absolute;
    right: 60px;
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.fab-btn:hover .fab-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.fab-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Back to top specific */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

.back-to-top:active {
    transform: scale(0.95);
}

/* ==================== CURRENTLY BUILDING CARD ==================== */
.currently-building-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1)) !important;
    border: 2px solid transparent !important;
    background-clip: padding-box !important;
    position: relative;
}

.currently-building-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.currently-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.currently-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.currently-icon {
    font-size: 1.5rem;
}

.currently-label {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.currently-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.currently-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.currently-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    margin: 15px 0;
}

.currently-learning {
    margin-top: 10px;
}

.learning-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 10px;
}

.learning-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.learning-list li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.learning-list li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* ==================== CONFETTI ANIMATION ==================== */
@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ==================== LOGO WIGGLE ANIMATION ==================== */
@keyframes logoWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* ==================== TEXT SCRAMBLE ==================== */
.scramble-char {
    color: var(--accent-color);
}

/* ==================== 3D CARD TILT ==================== */
.project-card,
.course-card,
.research-card,
.hobby-card {
    transition: transform 0.15s ease-out;
    transform-style: preserve-3d;
}

/* ==================== CURRENTLY WIDGET ==================== */
.currently-widget {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    max-width: 400px;
}

.currently-widget .currently-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.currently-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.currently-item {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
}

.currently-widget .currently-label {
    color: var(--text-muted);
    min-width: 90px;
}

.currently-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Light theme */
[data-theme="light"] .currently-widget {
    background: rgba(255, 255, 255, 0.8);
}

/* ==================== QUOTE ROTATOR ==================== */
.inspirational-quote {
    text-align: center;
    padding: 30px;
    margin: 30px 0;
    transition: opacity 0.5s ease;
}

.quote-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.quote-author {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
}

/* ==================== TIME GREETING ==================== */
.time-greeting {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==================== SCROLL PROGRESS BAR ==================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    width: 100%;
    transform-origin: left;
    transform: scaleX(0);
    z-index: 10000;
    transition: transform 0.1s linear;
}

/* ==================== IMAGE LAZY LOADING ==================== */
img[data-src] {
    filter: blur(10px);
    transition: filter 0.5s ease;
}

img[data-src].loaded {
    filter: blur(0);
}

/* ==================== MAGNETIC BUTTON ENHANCEMENT ==================== */
.btn-primary,
.btn-secondary,
.btn-outline {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== CLICK-TO-COPY STYLING ==================== */
a[href^="mailto:"],
a[href^="tel:"] {
    position: relative;
    transition: transform 0.15s ease;
}

a[href^="mailto:"]::after,
a[href^="tel:"]::after {
    content: '📋';
    position: absolute;
    right: -25px;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 0.8em;
}

a[href^="mailto:"]:hover::after,
a[href^="tel:"]:hover::after {
    opacity: 0.7;
}

/* ==================== STAT COUNTER ANIMATION ==================== */
.stat-number,
.gpa-value {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .toast-notification {
        bottom: 20px;
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .currently-widget {
        max-width: 100%;
    }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    .toast-notification,
    .back-to-top,
    .confetti,
    .project-card,
    .course-card,
    .research-card,
    .hobby-card {
        transition: none !important;
        animation: none !important;
    }
    
    img[data-src] {
        filter: none;
    }
}

/* ==================== SVG PATH DIVIDERS ==================== */
.svg-divider-container {
    width: 100%;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.svg-path-divider {
    width: 70%;
    max-width: 800px;
    height: 60px;
}

.divider-path {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    transition: stroke-dashoffset 0.1s linear;
}

.divider-path.animated {
    stroke-dashoffset: 0;
}

/* ==================== STATS SECTION ==================== */
.stats-section {
    padding: 40px 0;
    margin: 30px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 25px 15px;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
    display: block;
}

/* ==================== ACHIEVEMENT BADGES ==================== */
.badges-section {
    margin-top: 40px;
}

.badges-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badges-title i {
    color: #eab308;
}

.badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.badge-item {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.badge-item:hover {
    transform: scale(1.15);
    z-index: 10;
}

.badge-item.gold {
    border-color: #eab308;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.3);
}

.badge-item.purple {
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.badge-item.green {
    border-color: #22c55e;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.badge-item.orange {
    border-color: #f97316;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

.badge-item.blue {
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.badge-item.indigo {
    border-color: #6366f1;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.badge-item.teal {
    border-color: #14b8a6;
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.3);
}

.badge-item.amber {
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.badge-item.pink {
    border-color: #ec4899;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}

.badge-item.red {
    border-color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.badge-item.bronze {
    border-color: #cd7f32;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.3);
}

.badge-item.silver {
    border-color: #c0c0c0;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.4);
}

.badge-item.lime {
    border-color: #84cc16;
    box-shadow: 0 0 15px rgba(132, 204, 22, 0.3);
}

.badge-item.violet {
    border-color: #8b5cf6;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.badge-item.sky {
    border-color: #0ea5e9;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

.badge-item.rose {
    border-color: #f43f5e;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 100;
}

.badge-item:hover .badge-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
}

/* ==================== SPLIT TEXT ANIMATION ==================== */
/* DISABLED - was causing section titles to be invisible */
/* 
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
}

.split-text.animated .char {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
*/

/* ==================== PRINT STYLES ==================== */
@media print {
    .back-to-top,
    .toast-notification,
    .scroll-progress,
    .currently-widget,
    .floating-actions,
    .svg-divider-container {
        display: none !important;
    }
}
