/* ==================== MODERN UI FEATURES ==================== */

/* ==================== GLASSMORPHISM CARDS ==================== */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: all 0.3s ease;
}

body.dark-mode .glass-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(102, 102, 102, 0.4);
}

/* Apply glassmorphism to existing cards */
.project-card,
.education-card,
.highlight-card,
.service-card,
.reference-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark-mode .project-card,
body.dark-mode .education-card,
body.dark-mode .highlight-card,
body.dark-mode .service-card,
body.dark-mode .reference-card {
    background: rgba(26, 26, 26, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== GRADIENT MESH BACKGROUND ==================== */
.gradient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float-orb 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    top: 50%;
    right: -10%;
    animation-delay: 5s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    bottom: -10%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

body.dark-mode .gradient-orb {
    opacity: 0.2;
}

/* ==================== NEON GLOW EFFECTS ==================== */
/* Light Mode - Purple + dark glow */
.neon-text {
    color: var(--text-dark);
    text-shadow: 
        0 0 5px rgba(0, 0, 0, 0.4),
        0 0 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(102, 126, 234, 0.6),
        0 0 40px rgba(102, 126, 234, 0.5),
        0 0 80px rgba(102, 126, 234, 0.4);
    animation: neon-flicker 3s ease-in-out infinite;
}

/* Dark Mode - Purple + dark glow (same as light) */
body.dark-mode .neon-text {
    color: #fff;
    text-shadow: 
        0 0 5px rgba(0, 0, 0, 0.4),
        0 0 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(102, 126, 234, 0.6),
        0 0 40px rgba(102, 126, 234, 0.5),
        0 0 80px rgba(102, 126, 234, 0.4);
    animation: neon-flicker 3s ease-in-out infinite;
}

/* Flicker animation - purple + dark glow for both modes */
@keyframes neon-flicker {
    0%, 100% {
        text-shadow: 
            0 0 5px rgba(0, 0, 0, 0.4),
            0 0 10px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(102, 126, 234, 0.6),
            0 0 40px rgba(102, 126, 234, 0.5),
            0 0 80px rgba(102, 126, 234, 0.4);
    }
    50% {
        text-shadow: 
            0 0 3px rgba(0, 0, 0, 0.5),
            0 0 8px rgba(0, 0, 0, 0.4),
            0 0 15px rgba(102, 126, 234, 0.7),
            0 0 30px rgba(102, 126, 234, 0.6),
            0 0 60px rgba(102, 126, 234, 0.5);
    }
}

.neon-border {
    border: 2px solid #667eea;
    box-shadow: 
        0 0 5px #667eea,
        0 0 10px #667eea,
        inset 0 0 5px #667eea,
        inset 0 0 10px #667eea;
    animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
    0%, 100% {
        box-shadow: 
            0 0 5px #667eea,
            0 0 10px #667eea,
            inset 0 0 5px #667eea,
            inset 0 0 10px #667eea;
    }
    50% {
        box-shadow: 
            0 0 10px #667eea,
            0 0 20px #667eea,
            inset 0 0 10px #667eea,
            inset 0 0 20px #667eea;
    }
}

/* Neon buttons */
.btn-neon {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.btn-neon:hover {
    background: #667eea;
    color: white;
    box-shadow: 
        0 0 20px #667eea,
        0 0 40px #667eea,
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* ==================== LIQUID/BLOB MORPHING ==================== */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blob-morph 8s ease-in-out infinite;
    opacity: 0.15;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    bottom: 10%;
    right: 10%;
    animation-delay: 2s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes blob-morph {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(20px, -20px) rotate(90deg);
    }
    50% {
        border-radius: 30% 70% 50% 50% / 50% 60% 40% 60%;
        transform: translate(-20px, 20px) rotate(180deg);
    }
    75% {
        border-radius: 70% 30% 60% 40% / 30% 50% 50% 70%;
        transform: translate(20px, 20px) rotate(270deg);
    }
}

body.dark-mode .blob {
    opacity: 0.1;
}

/* ==================== HOLOGRAM EFFECT ==================== */
.hologram {
    position: relative;
    animation: hologram-glitch 3s ease-in-out infinite;
}

.hologram::before,
.hologram::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.hologram::before {
    color: #00ffff;
    animation: hologram-shift-1 2s ease-in-out infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.hologram::after {
    color: #ff00ff;
    animation: hologram-shift-2 2s ease-in-out infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes hologram-glitch {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-2px, 2px);
    }
    94% {
        transform: translate(2px, -2px);
    }
    96% {
        transform: translate(-2px, -2px);
    }
    98% {
        transform: translate(2px, 2px);
    }
}

@keyframes hologram-shift-1 {
    0%, 100% {
        transform: translate(0);
    }
    50% {
        transform: translate(-2px, 0);
    }
}

@keyframes hologram-shift-2 {
    0%, 100% {
        transform: translate(0);
    }
    50% {
        transform: translate(2px, 0);
    }
}

.hologram-card {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.hologram-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: hologram-scan 3s linear infinite;
}

@keyframes hologram-scan {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ==================== ANIMATED SVG ILLUSTRATIONS ==================== */
.svg-illustration {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.svg-illustration path,
.svg-illustration circle,
.svg-illustration rect {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: svg-draw 2s ease-in-out forwards;
}

@keyframes svg-draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Animated developer illustration */
.developer-svg {
    animation: float 3s ease-in-out infinite;
}

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

/* ==================== INTERACTIVE INFOGRAPHIC RESUME ==================== */
.infographic-resume {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.info-stat {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

body.dark-mode .info-stat {
    background: rgba(26, 26, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    transition: left 0.5s ease;
}

.info-stat:hover::before {
    left: 100%;
}

.info-stat:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.info-stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.info-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    margin: 0.5rem 0;
}

.info-stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.info-stat-description {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    opacity: 0;
    max-height: 0;
    transition: all 0.3s ease;
}

.info-stat:hover .info-stat-description {
    opacity: 1;
    max-height: 100px;
}

/* Circular progress bars for skills */
.circular-progress {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    position: relative;
}

.circular-progress svg {
    transform: rotate(-90deg);
}

.circular-progress circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.circular-progress .bg-circle {
    stroke: rgba(102, 126, 234, 0.1);
}

.circular-progress .progress-circle {
    stroke: url(#gradient);
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 1s ease-in-out;
}

.circular-progress.active .progress-circle {
    stroke-dashoffset: calc(314 - (314 * var(--progress)) / 100);
}

.circular-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .gradient-orb,
    .blob {
        width: 200px !important;
        height: 200px !important;
    }
    
    .glass-card {
        padding: 1rem;
    }
    
    .infographic-resume {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .info-stat {
        padding: 1rem;
    }
    
    .info-stat-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .info-stat-number {
        font-size: 1.5rem;
        margin: 0.3rem 0;
    }
    
    .info-stat-label {
        font-size: 0.8rem;
    }
    
    .circular-progress {
        width: 80px;
        height: 80px;
        margin-bottom: 0.5rem;
    }
    
    .circular-progress-text {
        font-size: 1rem;
    }
    
    .neon-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .gradient-orb,
    .blob {
        width: 150px !important;
        height: 150px !important;
        filter: blur(50px);
    }
    
    .glass-card {
        padding: 0.8rem;
        border-radius: 12px;
    }
    
    .infographic-resume {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .info-stat {
        padding: 0.8rem 0.5rem;
    }
    
    .info-stat-icon {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }
    
    .info-stat-number {
        font-size: 1.3rem;
        margin: 0.2rem 0;
    }
    
    .info-stat-label {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .info-stat-description {
        font-size: 0.65rem;
    }
    
    .circular-progress {
        width: 70px;
        height: 70px;
        margin-bottom: 0.4rem;
    }
    
    .circular-progress circle {
        stroke-width: 5;
    }
    
    .circular-progress-text {
        font-size: 0.9rem;
    }
    
    .btn-neon {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* ==================== CURSOR TRAIL ==================== */
.cursor-trail {
    position: fixed;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: cursor-fade 0.5s ease-out forwards;
}

@keyframes cursor-fade {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* ==================== CONFETTI EFFECT ==================== */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 9999;
    pointer-events: none;
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ==================== ACHIEVEMENT NOTIFICATION ==================== */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: achievement-slide 0.5s ease-out;
    font-weight: 600;
}

@keyframes achievement-slide {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Sound toggle removed - not needed */

/* ==================== FADE IN SECTIONS ==================== */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== SVG ILLUSTRATION RESPONSIVE ==================== */
@media (max-width: 768px) {
    /* Hide SVG illustration on tablet and mobile */
    .svg-illustration.developer-svg {
        display: none !important;
    }
}


/* ==================== ADDITIONAL MOBILE OPTIMIZATIONS ==================== */
@media (max-width: 768px) {
    /* Reduce section spacing */
    section {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Optimize infographic resume spacing */
    .about .infographic-resume {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Optimize circular progress section */
    .skills .infographic-resume {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .skills .section-title {
        margin-top: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    /* Further reduce spacing on small mobile */
    section {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .container {
        padding-left: 0.8rem !important;
        padding-right: 0.8rem !important;
    }
    
    /* Compact infographic */
    .about .infographic-resume,
    .skills .infographic-resume {
        margin-top: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    /* Reduce section title spacing */
    .section-title {
        margin-bottom: 0.8rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .skills .section-title {
        margin-top: 1rem !important;
    }
    
    /* Hide SVG illustration on mobile */
    .svg-illustration.developer-svg {
        display: none !important;
    }
}

/* ==================== HIDE DECORATIVE ELEMENTS ON MOBILE ==================== */
@media (max-width: 480px) {
    /* Hide gradient orbs on very small screens for performance */
    .gradient-orb {
        display: none;
    }
    
    /* Simplify blob animations */
    .blob {
        animation-duration: 15s !important;
    }
}
