/* Add custom font */
@font-face {
    font-family: 'CustomFont';
    src: url('font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Update base font for entire site */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'CustomFont', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Remove the old font-family from body */
body,
.card-page-body {
    line-height: 1.6;
    color: #fff;
    background: #000000;
    position: relative;
    overflow-x: hidden;
}

body::before,
.card-page-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(157, 78, 221, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(157, 78, 221, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(179, 131, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -2;
}

/* Enhanced Space Background for 3D Synchronization - Global */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 2000px;
    transition: transform 0.3s ease;
}

/* Global Space Background for All Sections */
body::after,
.card-page-body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Random Stars Pattern 1 */
        radial-gradient(1px 1px at 15% 25%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 85% 15%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 25% 75%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 75% 85%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 45% 35%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 65% 55%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 35% 65%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 95% 45%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 5% 75%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 55% 5%, rgba(255, 255, 255, 0.7), transparent),
        /* Random Stars Pattern 2 */
        radial-gradient(1px 1px at 20% 40%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 80% 60%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 40% 20%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 60% 80%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 10% 90%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90% 10%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 30% 50%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 70% 30%, rgba(255, 255, 255, 0.6), transparent),
        /* Random Stars Pattern 3 */
        radial-gradient(1px 1px at 12% 68%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 88% 32%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 42% 78%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 78% 22%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 22% 42%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 58% 58%, rgba(255, 255, 255, 0.7), transparent),
        /* Professional Nebula effects - Subtle */
        radial-gradient(ellipse 80px 40px at 18% 88%, rgba(255, 255, 255, 0.03), transparent),
        radial-gradient(ellipse 60px 30px at 82% 12%, rgba(255, 255, 255, 0.02), transparent),
        radial-gradient(ellipse 70px 35px at 48% 72%, rgba(255, 255, 255, 0.025), transparent);
    background-size: 
        100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
        100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
        100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
        100% 100%, 100% 100%, 100% 100%;
    animation: global-star-field 40s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

@keyframes global-star-field {
    0%, 100% { 
        opacity: 0.5;
    }
    25% { 
        opacity: 0.7;
    }
    50% { 
        opacity: 0.8;
    }
    75% { 
        opacity: 0.6;
    }
}

/* 3D Space Elements with Depth */
.star, .planet, .comet, .nebula, .shooting-star {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

/* Enhanced Professional Space Elements - Main Portfolio */

/* Stars - More Professional */
.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: subtle-twinkle 8s ease-in-out infinite;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

.star.small {
    width: 1.5px;
    height: 1.5px;
    box-shadow: 
        0 0 6px rgba(255, 255, 255, 0.7),
        0 0 10px rgba(255, 255, 255, 0.4);
}

.star.medium {
    width: 2.5px;
    height: 2.5px;
    box-shadow: 
        0 0 8px rgba(255, 255, 255, 0.8),
        0 0 14px rgba(255, 255, 255, 0.5);
}

.star.large {
    width: 3.5px;
    height: 3.5px;
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.9),
        0 0 18px rgba(255, 255, 255, 0.6);
}

@keyframes subtle-twinkle {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1); 
        filter: brightness(0.9);
    }
    25% { 
        opacity: 0.7; 
        transform: scale(1.1); 
        filter: brightness(1.1);
    }
    50% { 
        opacity: 0.9; 
        transform: scale(1.2); 
        filter: brightness(1.3);
    }
    75% { 
        opacity: 0.8; 
        transform: scale(1.15); 
        filter: brightness(1.05);
    }
}

/* Professional Planets - Refined */
.planet {
    position: absolute;
    border-radius: 50%;
    animation: refined-float 30s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.15));
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.planet.earth {
    width: 25px;
    height: 25px;
    background: 
        radial-gradient(circle at 30% 30%, #ffffff 0%, #f5f5f5 15%, #e8e8e8 35%, #d0d0d0 55%, #b8b8b8 75%, #909090 100%);
    box-shadow: 
        inset -8px -8px 16px rgba(0, 0, 0, 0.8),
        inset 2px 2px 8px rgba(255, 255, 255, 0.4),
        0 0 12px rgba(255, 255, 255, 0.15);
}

.planet.mars {
    width: 18px;
    height: 18px;
    background: 
        radial-gradient(circle at 35% 25%, #f8f8f8 0%, #e5e5e5 20%, #d2d2d2 45%, #b5b5b5 70%, #959595 100%);
    box-shadow: 
        inset -6px -6px 12px rgba(0, 0, 0, 0.8),
        inset 1px 1px 5px rgba(255, 255, 255, 0.5),
        0 0 10px rgba(255, 255, 255, 0.12);
}

.planet.jupiter {
    width: 35px;
    height: 35px;
    background: 
        linear-gradient(45deg, 
            #ffffff 0%, #f2f2f2 8%, #e5e5e5 16%, #d8d8d8 24%, #cbcbcb 32%,
            #bebebe 40%, #b1b1b1 48%, #a4a4a4 56%, #979797 64%, #8a8a8a 72%, #7d7d7d 80%, #707070 88%, #636363 100%);
    box-shadow: 
        inset -10px -10px 20px rgba(0, 0, 0, 0.7),
        inset 4px 4px 10px rgba(255, 255, 255, 0.4),
        0 0 16px rgba(255, 255, 255, 0.18);
}

@keyframes refined-float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-20px) rotate(90deg) scale(1.03); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-12px) rotate(180deg) scale(1.05); 
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-28px) rotate(270deg) scale(1.02); 
        opacity: 0.7;
    }
}

/* Professional Nebula - More Subtle */
.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: gentle-drift 40s ease-in-out infinite;
    opacity: 0.15;
}

.nebula.purple {
    background: 
        radial-gradient(circle, 
            rgba(255, 255, 255, 0.2) 0%, 
            rgba(220, 220, 220, 0.12) 25%, 
            rgba(180, 180, 180, 0.08) 50%, 
            rgba(140, 140, 140, 0.04) 75%, 
            transparent 100%);
}

.nebula.blue {
    background: 
        radial-gradient(circle, 
            rgba(250, 250, 250, 0.18) 0%, 
            rgba(200, 200, 200, 0.1) 30%, 
            rgba(160, 160, 160, 0.06) 60%, 
            rgba(120, 120, 120, 0.03) 80%, 
            transparent 100%);
}

.nebula.pink {
    background: 
        radial-gradient(circle, 
            rgba(255, 255, 255, 0.16) 0%, 
            rgba(230, 230, 230, 0.09) 28%, 
            rgba(190, 190, 190, 0.05) 55%, 
            rgba(150, 150, 150, 0.02) 75%, 
            transparent 100%);
}

@keyframes gentle-drift {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) scale(1) rotate(0deg); 
        opacity: 0.12;
    }
    25% { 
        transform: translateX(40px) translateY(-25px) scale(1.08) rotate(90deg); 
        opacity: 0.18;
    }
    50% { 
        transform: translateX(-25px) translateY(-50px) scale(0.92) rotate(180deg); 
        opacity: 0.22;
    }
    75% { 
        transform: translateX(-50px) translateY(-18px) scale(1.05) rotate(270deg); 
        opacity: 0.16;
    }
}

/* Enhanced Realistic Comets - Bigger and More Random */
.comet {
    position: absolute;
    width: 4px;
    height: 4px;
    background: 
        radial-gradient(circle, 
            #ffffff 0%, 
            rgba(255, 255, 255, 0.95) 25%, 
            rgba(255, 255, 255, 0.8) 45%, 
            rgba(255, 255, 255, 0.6) 65%, 
            rgba(255, 255, 255, 0.3) 85%, 
            transparent 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.9),
        0 0 25px rgba(255, 255, 255, 0.6),
        0 0 35px rgba(255, 255, 255, 0.4),
        0 0 50px rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.comet::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    width: 150px;
    height: 2px;
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 255, 255, 0.05) 5%, 
            rgba(255, 255, 255, 0.15) 15%, 
            rgba(255, 255, 255, 0.35) 35%, 
            rgba(255, 255, 255, 0.6) 60%, 
            rgba(255, 255, 255, 0.8) 80%, 
            rgba(255, 255, 255, 0.95) 100%);
    transform: translateY(-50%);
    border-radius: 2px;
    filter: blur(1px);
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.15);
}

/* Random Comet Variations */
.comet:nth-child(odd) {
    width: 6px;
    height: 6px;
}

.comet:nth-child(odd)::after {
    width: 200px;
    height: 3px;
}

.comet:nth-child(3n) {
    width: 3px;
    height: 3px;
}

.comet:nth-child(3n)::after {
    width: 120px;
    height: 2px;
}

.comet:nth-child(4n) {
    width: 5px;
    height: 5px;
}

.comet:nth-child(4n)::after {
    width: 180px;
    height: 2.5px;
}

.comet.falling {
    animation: realistic-comet-fall 15s linear infinite;
}

/* Random comet trajectories */
.comet:nth-child(even) {
    animation: realistic-comet-fall-alt1 18s linear infinite;
}

.comet:nth-child(3n) {
    animation: realistic-comet-fall-alt2 12s linear infinite;
}

.comet:nth-child(4n) {
    animation: realistic-comet-fall-alt3 20s linear infinite;
}

@keyframes realistic-comet-fall {
    0% {
        transform: translateX(-300px) translateY(-200px) rotate(35deg);
        opacity: 0;
        filter: brightness(0.4) blur(2px);
    }
    5% {
        opacity: 0.3;
        filter: brightness(0.7) blur(1px);
    }
    15% {
        opacity: 0.8;
        filter: brightness(1.2) blur(0px);
    }
    85% {
        opacity: 0.9;
        filter: brightness(1.3) blur(0px);
    }
    95% {
        opacity: 0.4;
        filter: brightness(0.8) blur(1px);
    }
    100% {
        transform: translateX(calc(100vw + 300px)) translateY(calc(100vh + 200px)) rotate(35deg);
        opacity: 0;
        filter: brightness(0.3) blur(2px);
    }
}

@keyframes realistic-comet-fall-alt1 {
    0% {
        transform: translateX(-250px) translateY(-150px) rotate(25deg);
        opacity: 0;
        filter: brightness(0.5) blur(1.5px);
    }
    8% {
        opacity: 0.4;
        filter: brightness(0.8) blur(0.5px);
    }
    20% {
        opacity: 0.9;
        filter: brightness(1.4) blur(0px);
    }
    80% {
        opacity: 0.8;
        filter: brightness(1.2) blur(0px);
    }
    92% {
        opacity: 0.3;
        filter: brightness(0.6) blur(1px);
    }
    100% {
        transform: translateX(calc(100vw + 250px)) translateY(calc(100vh + 150px)) rotate(25deg);
        opacity: 0;
        filter: brightness(0.4) blur(2px);
    }
}

@keyframes realistic-comet-fall-alt2 {
    0% {
        transform: translateX(-200px) translateY(-100px) rotate(55deg);
        opacity: 0;
        filter: brightness(0.6) blur(1px);
    }
    12% {
        opacity: 0.6;
        filter: brightness(1.0) blur(0px);
    }
    25% {
        opacity: 1;
        filter: brightness(1.5) blur(0px);
    }
    75% {
        opacity: 0.9;
        filter: brightness(1.3) blur(0px);
    }
    88% {
        opacity: 0.4;
        filter: brightness(0.7) blur(0.5px);
    }
    100% {
        transform: translateX(calc(100vw + 200px)) translateY(calc(100vh + 100px)) rotate(55deg);
        opacity: 0;
        filter: brightness(0.3) blur(1.5px);
    }
}

@keyframes realistic-comet-fall-alt3 {
    0% {
        transform: translateX(-350px) translateY(-250px) rotate(15deg);
        opacity: 0;
        filter: brightness(0.3) blur(2.5px);
    }
    3% {
        opacity: 0.2;
        filter: brightness(0.6) blur(1.5px);
    }
    10% {
        opacity: 0.7;
        filter: brightness(1.1) blur(0px);
    }
    90% {
        opacity: 0.8;
        filter: brightness(1.4) blur(0px);
    }
    97% {
        opacity: 0.3;
        filter: brightness(0.5) blur(1.5px);
    }
    100% {
        transform: translateX(calc(100vw + 350px)) translateY(calc(100vh + 250px)) rotate(15deg);
        opacity: 0;
        filter: brightness(0.2) blur(3px);
    }
}

/* Professional Shooting Stars - Enhanced */
.shooting-star {
    position: absolute;
    width: 2.5px;
    height: 2.5px;
    background: 
        radial-gradient(circle, 
            #ffffff 0%, 
            rgba(255, 255, 255, 0.9) 45%, 
            rgba(255, 255, 255, 0.6) 80%, 
            transparent 100%);
    border-radius: 50%;
    animation: refined-shoot 5s linear infinite;
    box-shadow: 
        0 0 8px rgba(255, 255, 255, 0.7),
        0 0 16px rgba(255, 255, 255, 0.35);
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    width: 90px;
    height: 1.5px;
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 255, 255, 0.15) 25%, 
            rgba(255, 255, 255, 0.5) 60%, 
            rgba(255, 255, 255, 0.8) 90%, 
            rgba(255, 255, 255, 0.95) 100%);
    transform: translateY(-50%);
    border-radius: 1.5px;
    filter: blur(0.4px);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}

@keyframes refined-shoot {
    0% {
        transform: translateX(-90px) translateY(-60px) rotate(25deg);
        opacity: 0;
        filter: brightness(0.7);
    }
    12% {
        opacity: 0.5;
        filter: brightness(0.95);
    }
    20% {
        opacity: 0.9;
        filter: brightness(1.25);
    }
    80% {
        opacity: 0.9;
        filter: brightness(1.2);
    }
    88% {
        opacity: 0.6;
        filter: brightness(0.85);
    }
    100% {
        transform: translateX(calc(100vw + 90px)) translateY(calc(60vh + 60px)) rotate(25deg);
        opacity: 0;
        filter: brightness(0.5);
    }
}

/* Card Version Display Fix */
.card-version {
        display: none;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.card-version.active {
    display: block;
}

/* Simple Card - Complete Information Display */
.simple-business-card {
    width: 420px;
    height: auto;
    min-height: 320px;
    background: rgba(10, 10, 26, 0.95);
    border: 2px solid rgba(157, 78, 221, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(157, 78, 221, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
    position: relative;
    overflow: visible;
    text-align: center;
}

.simple-business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    pointer-events: none;
}

.simple-business-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(157, 78, 221, 0.3);
    border-color: rgba(157, 78, 221, 0.5);
}

.simple-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
    z-index: 2;
    position: relative;
    text-align: center;
}

.simple-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1a1a2e;
    border: 2px solid #9d4edd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #9d4edd;
    box-shadow: 0 8px 20px rgba(157, 78, 221, 0.3);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.simple-info {
    text-align: center;
}

.simple-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #9d4edd;
    margin: 0 0 0.3rem 0;
}

.simple-info p {
    font-size: 1rem;
    color: #fff;
    margin: 0;
    font-weight: 500;
}

.simple-skills {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 0.6rem;
    z-index: 2;
    position: relative;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.simple-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
    position: relative;
    align-items: center;
    width: 100%;
}

.contact-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    padding: 0.6rem 0.8rem;
    background: rgba(10, 10, 26, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(157, 78, 221, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    width: 100%;
    max-width: 100%;
}

.contact-row:hover {
    background: rgba(157, 78, 221, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.2);
}

.contact-row i {
    color: #9d4edd;
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.contact-row span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Old navbar styles removed - replaced with floating buttons */

/* Hero Section - Restored to Original Size */
.hero {
    padding: 6rem 0 4rem 0; /* Restored from 80% scaling */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.hero-image {
    position: relative;
    display: inline-block;
    margin: 0 auto 2rem; /* Restored from 80% scaling */
    z-index: 1;
}

.hero-image::before,
.hero-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.hero-image::before {
    width: 176px; /* Restored from 80% scaling */
    height: 176px;
    border: 2px solid rgba(157, 78, 221, 0.5);
    animation: rotate 4s linear infinite;
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.5);
}

.hero-image::after {
    width: 192px; /* Restored from 80% scaling */
    height: 192px;
    border: 2px solid rgba(157, 78, 221, 0.3);
    animation: rotateAndScale 6s ease-in-out infinite;
}

.hero-image img {
    position: relative;
    z-index: 1;
    width: 160px; /* Restored from 80% scaling */
    height: 160px;
    border-radius: 50%;
    border: 4px solid #9d4edd;
    padding: 5px; /* Restored from 80% scaling */
    object-fit: cover;
    display: block;
}

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

@keyframes rotateAndScale {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1.1);
    }
}

.hero h1 {
    font-size: 2.8rem; /* Restored from 80% scaling */
    font-weight: 700;
    margin-bottom: 1rem; /* Restored from 80% scaling */
    color: #9d4edd;
    line-height: 1.2;
}

.hero h2 {
    font-size: 1.6rem; /* Restored from 80% scaling */
    margin-bottom: 2rem; /* Restored from 80% scaling */
    color: #fff;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.2rem; /* Restored from 80% scaling */
    color: #ccc;
    margin-bottom: 2rem; /* Restored from 80% scaling */
    line-height: 1.8;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Restored from 80% scaling */
    margin: 2rem 0; /* Restored from 80% scaling */
    flex-wrap: wrap;
}

.contact-info a {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.5rem; /* Restored from 80% scaling */
    border-radius: 10px; /* Restored from 80% scaling */
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem; /* Restored from 80% scaling */
    transition: all 0.3s ease;
    white-space: nowrap;
}

.contact-info a i {
    color: #9d4edd;
    font-size: 1.2rem; /* Restored from 80% scaling */
}

.contact-info a:hover {
    transform: translateY(-2px); /* Restored from 80% scaling */
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.3); /* Restored from 80% scaling */
}

.social-links {
    display: flex;
    gap: 2rem; /* Restored from 80% scaling */
    justify-content: center;
    margin-top: 1.5rem; /* Restored from 80% scaling */
}

.social-links a {
    color: #fff;
    font-size: 1.44rem; /* Restored from 80% scaling */
    transition: all 0.3s ease;
}

/* Remove the background block styles */
.social-links a::before {
    display: none;
}


/* Clean hover effect - only glow */
.social-links a:hover {
    color: #9d4edd;
    filter: drop-shadow(0 0 10px rgba(157, 78, 221, 0.7));
    transform: none;
}

/* Consistent Section Spacing */
.section {
    padding: 4rem 0;
    margin: 0;
    position: relative;
}

/* Ensure no gaps between sections */
.hero + .section {
    margin-top: 0;
    padding-top: 4rem;
}

/* Responsive Design - Hero Scales Like Other Sections */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .hero {
        padding: 8rem 0 6rem 0; /* Restored from 80% scaling */
    }
    
    .hero h1 {
        font-size: 3.2rem; /* Restored from 80% scaling */
    }
    
    .hero h2 {
        font-size: 1.8rem; /* Restored from 80% scaling */
    }
    
    .hero-image img {
        width: 180px; /* Restored from 80% scaling */
        height: 180px;
    }
    
    .hero-image::before {
        width: 196px; /* Restored from 80% scaling */
        height: 196px;
    }
    
    .hero-image::after {
        width: 212px; /* Restored from 80% scaling */
        height: 212px;
    }
}

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .hero {
        padding: 7rem 0 5rem 0; /* Restored from 80% scaling */
    }
    
    .hero h1 {
        font-size: 3rem; /* Restored from 80% scaling */
    }
    
    .hero h2 {
        font-size: 1.7rem; /* Restored from 80% scaling */
    }
}

/* Tablet Landscape (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .hero {
        padding: 6rem 0 4rem 0; /* Restored from 80% scaling */
    }
    
    .hero h1 {
        font-size: 2.5rem; /* Restored from 80% scaling */
    }
    
    .hero h2 {
        font-size: 1.5rem; /* Restored from 80% scaling */
    }
    
    .hero-image img {
        width: 140px; /* Restored from 80% scaling */
        height: 140px;
    }
    
    .hero-image::before {
        width: 156px; /* Restored from 80% scaling */
        height: 156px;
    }
    
    .hero-image::after {
        width: 172px; /* Restored from 80% scaling */
        height: 172px;
    }
    
    .contact-info {
        gap: 1rem; /* Restored from 80% scaling */
    }
    
    .contact-info a {
        padding: 0.7rem 1.2rem; /* Restored from 80% scaling */
        font-size: 0.9rem; /* Restored from 80% scaling */
    }
}

/* Tablet Portrait (577px - 767px) */
@media (max-width: 767px) and (min-width: 577px) {
    .hero {
        padding: 5rem 0 3rem 0; /* Restored from 80% scaling */
    }

    .hero-image {
        margin-bottom: 1.5rem; /* Restored from 80% scaling */
    }

    .hero-image img {
        width: 120px; /* Restored from 80% scaling */
        height: 120px;
    }

    .hero-image::before {
        width: 136px; /* Restored from 80% scaling */
        height: 136px;
    }

    .hero-image::after {
        width: 152px; /* Restored from 80% scaling */
        height: 152px;
    }

    .hero h1 {
        font-size: 2rem; /* Restored from 80% scaling */
        margin-bottom: 0.8rem; /* Restored from 80% scaling */
    }

    .hero h2 {
        font-size: 1.2rem; /* Restored from 80% scaling */
        margin-bottom: 1.5rem; /* Restored from 80% scaling */
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem; /* Restored from 80% scaling */
        margin: 1.5rem 0; /* Restored from 80% scaling */
    }

    .contact-info a {
        width: 100%;
        max-width: 280px; /* Restored from 80% scaling */
        padding: 0.7rem 1rem; /* Restored from 80% scaling */
        font-size: 0.85rem; /* Restored from 80% scaling */
        justify-content: center;
    }

    .social-links {
        gap: 1.5rem; /* Restored from 80% scaling */
        margin-top: 1rem; /* Restored from 80% scaling */
    }
    
    .social-links a {
        font-size: 1.3rem; /* Restored from 80% scaling */
    }
}

/* Mobile (up to 576px) */
@media (max-width: 576px) {
    .hero {
        padding: 4rem 0 2.5rem 0; /* Restored from 80% scaling */
    }

    .hero-image {
        margin-bottom: 1.5rem; /* Increased from 1rem */
    }

    .hero-image img {
        width: 140px; /* Increased from 100px */
        height: 140px;
    }

    .hero-image::before {
        width: 156px; /* Increased accordingly */
        height: 156px;
    }

    .hero-image::after {
        width: 172px; /* Increased accordingly */
        height: 172px;
    }

    .hero h1 {
        font-size: 1.6rem; /* Restored from 80% scaling */
        margin-bottom: 0.6rem; /* Restored from 80% scaling */
    }

    .hero h2 {
        font-size: 0.96rem; /* Restored from 80% scaling */
        margin-bottom: 1rem; /* Restored from 80% scaling */
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem; /* Restored from 80% scaling */
        margin: 1rem 0; /* Restored from 80% scaling */
    }

    .contact-info a {
        width: 100%;
        max-width: 260px; /* Restored from 80% scaling */
        padding: 0.6rem 0.8rem; /* Restored from 80% scaling */
        font-size: 0.8rem; /* Restored from 80% scaling */
        justify-content: center;
    }

    .social-links {
        gap: 1rem; /* Restored from 80% scaling */
        margin-top: 0.8rem; /* Restored from 80% scaling */
    }
    
    .social-links a {
        font-size: 1.2rem; /* Restored from 80% scaling */
    }
}

/* Extra Small Mobile (up to 400px) */
@media (max-width: 400px) {
    .hero {
        padding: 3rem 0 2rem 0; /* Restored from 80% scaling */
    }

    .hero-image img {
        width: 120px; /* Increased from 90px */
        height: 120px;
    }

    .hero-image::before {
        width: 136px; /* Increased accordingly */
        height: 136px;
    }

    .hero-image::after {
        width: 152px; /* Increased accordingly */
        height: 152px;
    }

    .hero h1 {
        font-size: 1.4rem; /* Restored from 80% scaling */
    }

    .hero h2 {
        font-size: 0.85rem; /* Restored from 80% scaling */
    }

    .contact-info a {
        padding: 0.5rem 0.6rem; /* Restored from 80% scaling */
        font-size: 0.75rem; /* Restored from 80% scaling */
        max-width: 240px; /* Restored from 80% scaling */
    }
    
    .social-links a {
        font-size: 1.1rem; /* Restored from 80% scaling */
    }
}

/* Section Styles */
.section {
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

.section-title {
    color: #9d4edd;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #9d4edd;
}

/* Profile Section */
.profile-content {
    max-width: 900px;
    margin: 0 auto;
}

.bio-section {
    background: rgba(10, 10, 26, 0.7) !important;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    border: 1px solid rgba(157, 78, 221, 0.2);
    backdrop-filter: blur(10px);
}

.bio-text {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

/* Skills Section */
.skills-grid {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin-top: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.skill-category {
    min-width: 300px;
    flex: 0 0 300px;
    background: rgba(10, 10, 26, 0.7) !important;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(157, 78, 221, 0.2);
    backdrop-filter: blur(10px);
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
}

/* Update slide-in animation for horizontal movement */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Add animation delay for each category */
.skill-category:nth-child(1) { animation-delay: 0.1s; }
.skill-category:nth-child(2) { animation-delay: 0.2s; }
.skill-category:nth-child(3) { animation-delay: 0.3s; }
.skill-category:nth-child(4) { animation-delay: 0.4s; }

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.2);
    background: rgba(10, 10, 26, 0.8) !important;
}

.skill-category h3 {
    color: #9d4edd;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #9d4edd;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.8rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(157, 78, 221, 0.005);
}

.skill-item i {
    font-size: 1.5rem;
    color: #9d4edd;
    transition: all 0.3s ease;
}

.skill-item span {
    color: #fff;
    font-size: 0.85rem;
    text-align: center;
}

.skill-item:hover {
    transform: scale(1.05);
    background: rgba(157, 78, 221, 0.03);
}

.skill-item:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(157, 78, 221, 0.7));
}

.skill-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: inherit;
}

.skill-item:hover a {
    color: inherit;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .bio-section {
        padding: 1.5rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .bio-text {
        font-size: 1rem;
    }

    .info-card h3 {
        font-size: 1.2rem;
    }

    .education-item h4 {
        font-size: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-items {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .skill-item {
        padding: 0.6rem;
    }

    .skill-category {
        min-width: 280px;
        flex: 0 0 280px;
    }
}

/* Update hover effect styles */
.skill-item,
.info-card {
    transition: all 0.3s ease-in-out;
}

.skill-item:hover,
.info-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(66, 133, 244, 0.6);
    cursor: pointer;
}

/* Remove the transform effect from existing social hover */
.social-links a:hover {
    transform: none;
}

/* Remove hero image hover effect completely */
.hero-image {
    transition: none;
}

.hero-image:hover {
    transform: none;
    box-shadow: none;
}

/* Projects Section Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem 0.5rem;
}

.project-card {
    height: 100%;
    background: rgba(10, 10, 26, 0.7) !important;
    border-radius: 15px;
    border: 1px solid rgba(157, 78, 221, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.2);
    background: rgba(10, 10, 26, 0.8) !important;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: #9d4edd;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #ccc;
}

.project-date {
    color: #9d4edd;
    font-weight: 500;
}

.project-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #fff;
}

.project-description li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.project-description li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #9d4edd;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.project-tech span {
    background: rgba(157, 78, 221, 0.03);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #9d4edd;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-demo {
    background: #9d4edd;
    color: #fff;
}

.btn-github {
    background: rgba(157, 78, 221, 0.03);
    color: #9d4edd;
}

.btn-demo:hover {
    background: #8a2be2;
    transform: translateY(-2px);
}

.btn-github:hover {
    background: rgba(157, 78, 221, 0.05);
    transform: translateY(-2px);
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Remove horizontal scroll styles */
.projects-grid::-webkit-scrollbar {
    display: none;
}

/* Update responsive design */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: 1fr; /* Stack vertically on smaller screens */
    }
}

/* Contact Section Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info-card {
    background: rgba(10, 10, 26, 0.7) !important;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(157, 78, 221, 0.2);
    backdrop-filter: blur(10px);
}

.contact-info-card h3 {
    color: #9d4edd;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    color: #9d4edd;
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.contact-text h4 {
    color: #fff;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.contact-text a,
.contact-text p {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #9d4edd;
}

.social-links-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(157, 78, 221, 0.1);
}

.social-links-contact a {
    color: #fff;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.social-links-contact a:hover {
    color: #9d4edd;
    filter: drop-shadow(0 0 10px rgba(157, 78, 221, 0.7));
}

/* Form Styles */
.contact-form-container {
    background: rgba(10, 10, 26, 0.4) !important;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(157, 78, 221, 0.2);
    backdrop-filter: blur(10px);
}

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

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(157, 78, 221, 0.015);
    border: 1px solid rgba(157, 78, 221, 0.1);
    border-radius: 5px;
    color: #fff;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9d4edd;
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.3);
}

.btn-submit {
    background: #9d4edd;
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-submit:hover {
    background: #8a2be2;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info-card,
    .contact-form-container {
        padding: 1.5rem;
    }
}

/* Add these smooth scrolling and animation styles */

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal on Scroll Class */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero h2 {
        font-size: 0.96rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .project-links {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .skill-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading Performance Optimization */
.lazy-load {
    transition: opacity 0.3s ease;
    opacity: 0;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #9d4edd;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: #8a2be2;
    transform: translateY(-3px);
}

/* Experience Section Styles */
.experience-card {
    background: rgba(10, 10, 26, 0.7) !important;
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.2);
    background: rgba(10, 10, 26, 0.8) !important;
}

.experience-header {
    margin-bottom: 1rem;
}

.experience-header h3 {
    color: #9d4edd;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.company-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.company-name {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 500;
}

.job-type {
    background: rgba(157, 78, 221, 0.03);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #9d4edd;
}

.experience-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.experience-duration i {
    color: #9d4edd;
}

.experience-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-description li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
    color: #fff;
}

.experience-description li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #9d4edd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .experience-card {
        padding: 1.5rem;
    }

    .experience-header h3 {
        font-size: 1.3rem;
    }

    .company-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Education Section Styles */
.education-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.education-card {
    background: rgba(10, 10, 26, 0.7) !important;
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.2);
    background: rgba(10, 10, 26, 0.8) !important;
}

.education-card h4 {
    color: #9d4edd;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.education-card .grade {
    color: #9d4edd;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.education-card .institution {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.education-card .coursework {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 0.8rem;
}

/* Add custom scrollbar for education section */
.education-grid::-webkit-scrollbar {
    height: 8px;
}

.education-grid::-webkit-scrollbar-track {
    background: rgba(157, 78, 221, 0.1);
    border-radius: 4px;
}

.education-grid::-webkit-scrollbar-thumb {
    background: #9d4edd;
    border-radius: 4px;
}

.education-grid::-webkit-scrollbar-thumb:hover {
    background: #8a2be2;
}

/* Update responsive design */
@media (max-width: 768px) {
    .education-card {
        min-width: 300px;
        flex: 0 0 300px;
        padding: 1.5rem;
    }
}

/* Add custom scrollbar for skills section */
.skills-grid::-webkit-scrollbar {
    height: 8px;
}

.skills-grid::-webkit-scrollbar-track {
    background: rgba(157, 78, 221, 0.1);
    border-radius: 4px;
}

.skills-grid::-webkit-scrollbar-thumb {
    background: #9d4edd;
    border-radius: 4px;
}

.skills-grid::-webkit-scrollbar-thumb:hover {
    background: #8a2be2;
}

/* Add these styles for Certifications and Activities sections */
#certifications .education-grid,
#activities .education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    #certifications .education-grid,
    #activities .education-grid {
        grid-template-columns: 1fr;
    }
}

/* Add styles for club logo */
.club-logo {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.club-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Update education card padding for activities */
#activities .education-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

#activities .education-card h4 {
    margin-bottom: 0.5rem;
}

/* Update Activities Section Styles */
#activities .education-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
}

#activities .card-content {
    flex: 1;
}

#activities .club-logo {
    margin-left: 1rem;
    padding-top: 0.5rem;
}

#activities .club-logo img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

/* Add styles for certification logos */
#certifications .education-card {
    position: relative;
    padding-right: 4rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

#certifications .institution-logo {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

#certifications .institution-logo img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

/* Update grid layout for certifications */
#certifications .education-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Adjust card heights */
#certifications .education-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#certifications .education-card h4 {
    font-size: 1.2rem;
    line-height: 1.4;
}

/* Get in Touch Section Styles */
#get-in-touch {
    text-align: center;
    padding: 60px 0;
    background: #000000;
}

.get-in-touch-title {
    color: #9d4edd;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.get-in-touch-text {
    color: #fff;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-contact,
.btn-schedule {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-contact {
    background: #9d4edd;
    color: #fff;
    border: none;
}

.btn-schedule {
    background: transparent;
    color: #9d4edd;
    border: 2px solid #9d4edd;
}

.btn-contact:hover,
.btn-schedule:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.3);
}

.btn-contact:hover {
    background: #8a2be2;
    color: #fff;
}

.btn-schedule:hover {
    background: rgba(157, 78, 221, 0.1);
    color: #9d4edd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .get-in-touch-title {
        font-size: 2rem;
    }
    
    .get-in-touch-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .btn-contact,
    .btn-schedule {
        width: 100%;
        justify-content: center;
    }
}

/* Adjust profile section specific spacing */
#profile {
    padding-top: 20px;
}

/* Update Loader Styles */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.5s ease;
}

.loader {
    position: relative;
    width: 150px;
    height: 150px;
    perspective: 500px;
    transform-style: preserve-3d;
    animation: loaderFloat 3s ease-in-out infinite;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #9d4edd;
    animation: spin 1.5s linear infinite;
}

.loader-ring:nth-child(1) {
    animation-delay: 0s;
    transform: rotateX(0deg) rotateY(0deg);
}

.loader-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #8a2be2;
    animation-delay: 0.2s;
    animation-direction: reverse;
    transform: rotateX(45deg) rotateY(45deg);
}

.loader-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #a44efc;
    animation-delay: 0.4s;
    transform: rotateX(-45deg) rotateY(-45deg);
}

.loader-ring:nth-child(4) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-top-color: #c77dff;
    animation-delay: 0.6s;
    animation-direction: reverse;
}

.loader-core {
    position: absolute;
    width: 20%;
    height: 20%;
    top: 40%;
    left: 40%;
    background: #9d4edd;
    border-radius: 50%;
    animation: pulse 1s ease-in-out infinite;
    box-shadow: 0 0 20px #9d4edd;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes loaderFloat {
    0%, 100% { transform: translateY(0) rotateX(20deg); }
    50% { transform: translateY(-10px) rotateX(-20deg); }
}

.loader-wrapper.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
}

/* Add 3D glowing effect */
.loader-ring::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(157, 78, 221, 0.2), transparent 70%);
    animation: glow 1.5s ease-in-out infinite;
    filter: blur(8px);
}

@keyframes glow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* 3D Business Card Styles - Dark Blue Theme */
#card {
    padding: 100px 0 120px 0;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 30%, #16213e 60%, #0a0a1a 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: 0;
}

#card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(157, 78, 221, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(157, 78, 221, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.card-section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Floating Particles */
.particles-container {
    position: absolute;
    width: 600px;
    height: 400px;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #9d4edd, #B383FF);
    border-radius: 50%;
    animation: float-particle 6s ease-in-out infinite;
    opacity: 0.7;
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.6);
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 6s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: 3s;
    animation-duration: 5s;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-40px) translateX(-10px);
        opacity: 1;
    }
    75% {
        transform: translateY(-20px) translateX(5px);
        opacity: 0.6;
    }
}

/* Main Business Card */
.business-card {
    width: 420px;
    height: 260px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    margin-bottom: 40px;
    z-index: 2;
    will-change: transform;
    backface-visibility: visible;
    /* Hardware acceleration and anti-aliasing fixes */
    transform: translateZ(0);
    -webkit-transform-style: preserve-3d;
    -webkit-backface-visibility: visible;
    -webkit-perspective: 1200px;
    /* Prevent fragmentation */
    outline: 1px solid transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.business-card.rotating {
    animation: continuous-rotate 4s ease-in-out infinite;
}

.business-card.zoomed-in {
    transform: scale(1.2) translateZ(50px);
}

.business-card.zoomed-out {
    transform: scale(0.8) translateZ(-50px);
}

@keyframes continuous-rotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Black Transparent Glass Card Faces */
.card-front,
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.3),
        0 5px 10px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    transform-style: preserve-3d;
    will-change: transform;
    /* Anti-fragmentation fixes */
    -webkit-backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    -webkit-font-smoothing: antialiased;
    outline: 1px solid transparent;
    contain: layout style;
}

.card-front {
    transform: rotateY(0deg) translateZ(1px);
    z-index: 2;
}

.card-back {
    transform: rotateY(180deg) translateZ(1px);
    justify-content: center !important;
    z-index: 1;
}

/* Optimize card back layout - more compact */
.card-back .quote-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 0;
    margin: 0;
}

.card-back .quote-icon {
    margin-bottom: 1rem;
    font-size: 24px;
    color: #9d4edd;
}

.card-back blockquote {
    margin: 0 0 0.8rem 0;
    font-size: 14px;
    line-height: 1.5;
    padding: 0 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.card-back cite {
    margin-bottom: 1rem;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.card-back .social-section {
    margin-top: 0.5rem;
    }

.social-icons-card {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

/* Enhanced Glass Reflection Effect */
.card-front::after,
.card-back::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 25%,
        transparent 40%,
        transparent 60%,
        rgba(255, 255, 255, 0.03) 75%,
        rgba(255, 255, 255, 0.08) 100%);
        
    border-radius: 24px;
    pointer-events: none;
    opacity: 0.8;
    animation: glass-reflection 6s ease-in-out infinite;
}

@keyframes glass-reflection {
    0%, 100% { 
        opacity: 0.6;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 25%,
            transparent 40%,
            transparent 60%,
            rgba(255, 255, 255, 0.03) 75%,
            rgba(255, 255, 255, 0.08) 100%);
    }
    25% { 
        opacity: 0.9;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.08) 20%,
            transparent 35%,
            transparent 65%,
            rgba(255, 255, 255, 0.05) 80%,
            rgba(255, 255, 255, 0.12) 100%);
    }
    50% { 
        opacity: 1;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.1) 15%,
            transparent 30%,
            transparent 70%,
            rgba(255, 255, 255, 0.08) 85%,
            rgba(255, 255, 255, 0.15) 100%);
    }
    75% { 
        opacity: 0.8;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.06) 25%,
            transparent 40%,
            transparent 60%,
            rgba(255, 255, 255, 0.04) 75%,
            rgba(255, 255, 255, 0.1) 100%);
    }
}

/* Clean glass effect - Single set of pseudo-elements */

/* Card Background Space Elements */
.business-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Stars */
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 90% 40%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 60% 10%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 10% 80%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 80% 90%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 30% 50%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 70% 20%, rgba(255, 255, 255, 0.9), transparent),
        /* Galaxy/Nebula effects */
        radial-gradient(ellipse 30px 15px at 85% 15%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(ellipse 25px 12px at 15% 85%, rgba(255, 255, 255, 0.08), transparent),
        /* Comet trails */
        linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 45%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.1) 55%, transparent 100%);
    background-size: 
        100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
        100% 100%, 100% 100%,
        200% 200%;
    background-position:
        0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0,
        0 0, 0 0,
        -50% -50%;
    border-radius: 24px;
    z-index: -2;
    opacity: 0.4;
    animation: card-space-elements 12s ease-in-out infinite;
    pointer-events: none;
}

@keyframes card-space-elements {
    0%, 100% { 
        opacity: 0.3; 
        background-position:
            0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0,
            0 0, 0 0,
            -50% -50%;
    }
    25% { 
        opacity: 0.5; 
        background-position:
            2% 1%, -1% 2%, 1% -1%, 3% 2%, -2% 1%, 1% 3%, 2% -1%, -1% 1%,
            2% 1%, -1% 2%,
            -45% -45%;
    }
    50% { 
        opacity: 0.6; 
        background-position:
            1% 2%, 2% -1%, -1% 1%, 2% 3%, 1% -2%, 3% 1%, -1% 2%, 2% 1%,
            1% 2%, 2% -1%,
            -40% -40%;
    }
    75% { 
        opacity: 0.4; 
        background-position:
            -1% 1%, 1% 2%, 2% 1%, -2% 1%, 3% 2%, 1% -1%, 2% 3%, 1% 2%,
            -1% 1%, 1% 2%,
            -45% -45%;
    }
}

/* Add floating space elements inside card */
.business-card::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 15%;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(200, 200, 200, 0.3) 50%, transparent 100%);
    border-radius: 50%;
    z-index: -1;
    animation: card-planet-float 15s ease-in-out infinite;
    box-shadow: 
        inset -2px -2px 4px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(255, 255, 255, 0.2);
}

/* Additional floating elements */
.business-card {
    position: relative;
}

.business-card:hover::after {
    animation-duration: 8s;
}

.business-card:hover::before {
    animation-duration: 10s;
}

@keyframes card-planet-float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.4;
    }
    50% { 
        transform: translateY(-10px) rotate(180deg); 
        opacity: 0.7;
    }
}

/* Duplicate pseudo-element rules removed to fix double back issue */

/* Enhanced text visibility on crystal clear glass - No Glow */
.name-title h3 {
    font-size: 26px;
    font-weight: 700;
    color: #9d4edd;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.name-title p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    margin: 5px 0 0 0;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.specialization {
    color: #9d4edd;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.contact-item-quick {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 10px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: fit-content;
    margin: 2px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.contact-item-quick span {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    font-size: 9px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.logo-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(157, 78, 221, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 20px rgba(157, 78, 221, 0.4),
        0 0 15px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.initial {
    font-size: 22px;
    font-weight: bold;
    color: #9d4edd;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Back card content with enhanced visibility - No Glow */
blockquote {
    font-style: italic;
    font-size: 14px;
    margin: 10px 0;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.motto-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.motto-section h5 {
    color: #B383FF;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.motto-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Card Instructions */
.card-instructions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.instruction-item:hover {
    background: rgba(157, 78, 221, 0.2);
    color: #9d4edd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.2);
}

.instruction-item i {
    color: #9d4edd;
    font-size: 16px;
}

/* Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #9d4edd;
    border-radius: 50%;
    animation: float-particle 6s ease-in-out infinite;
    opacity: 0.6;
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.4);
}

/* Glow Ring Effect */
.glow-ring {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 110%;
    height: 8px;
    background: rgba(157, 78, 221, 0.3);
    border-radius: 50px;
    filter: blur(8px);
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Shine Effect */
.shine-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.business-card:hover .shine-effect {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.2; transform: translateX(-50%) scaleX(0.8); }
    50% { opacity: 0.4; transform: translateX(-50%) scaleX(1.1); }
}

/* Card Content Styles */
.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    text-align: center;
}

.logo-section {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.name-title {
    text-align: center;
}

.card-body {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
    margin: 5px 0;
}

.card-footer {
    z-index: 2;
    position: relative;
    text-align: center;
}

.contact-quick {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.contact-item-quick:hover {
    background: rgba(157, 78, 221, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(157, 78, 221, 0.2);
}

.contact-item-quick i {
    color: #9d4edd;
    font-size: 11px;
    width: 12px;
    text-align: center;
}

/* Back Card Content */
.quote-icon {
    margin-bottom: 10px;
}

.quote-icon i {
    font-size: 20px;
    color: #9d4edd;
    opacity: 0.7;
}

cite {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-top: 5px;
}

.social-section {
    margin-top: 15px;
}

.social-icons-card {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

.social-icons-card a:hover {
    background: rgba(157, 78, 221, 0.3);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.3);
}

/* Card Instructions */
.card-instructions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.instruction-item:hover {
    background: rgba(157, 78, 221, 0.2);
    color: #9d4edd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.2);
}

.instruction-item i {
    color: #9d4edd;
    font-size: 16px;
}

/* Responsive Design for Card Page */
@media (max-width: 768px) {
    #card {
        padding: 80px 0 100px 0;
        min-height: 90vh;
    }
    
    .business-card {
        width: 360px;
        height: 230px;
    }
    
    .card-front,
    .card-back {
        padding: 22px;
    }
    
    .card-header {
        gap: 6px;
        margin-bottom: 6px;
    }
    
    .logo-section {
        margin-bottom: 3px;
    }
    
    .logo-circle {
        width: 55px;
        height: 55px;
    }
    
    .initial {
        font-size: 20px;
    }
    
    .name-title h3 {
        font-size: 22px;
    }
    
    .name-title p {
        font-size: 13px;
        margin: 3px 0 0 0;
    }
    
    .contact-item-quick span {
        font-size: 11px;
    }
    
    .card-instructions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .particles-container {
        width: 400px;
        height: 300px;
    }

    .back-button-container {
        top: 15px;
        left: 15px;
    }
    
    .back-button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .card-page-header {
        padding: 60px 15px 30px;
    }
    
    .card-page-title {
        font-size: 2.2rem;
    }
    
    .card-page-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .version-toggle {
        flex-direction: row;
        align-items: center;
        gap: 0;
        margin: 1.5rem auto;
        padding: 0;
        border-radius: 20px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
        overflow: hidden;
    }

    .version-btn {
        padding: 10px 16px;
        font-size: 12px;
        min-width: 100px;
        height: 42px;
        border-radius: 0;
        flex: 1;
    }

    .version-btn:first-child {
        border-radius: 18px 0 0 18px;
        background: rgba(157, 78, 221, 0.8);
        color: #ffffff;
    }

    .version-btn:last-child {
        border-radius: 0 18px 18px 0;
        background: rgba(0, 0, 0, 0.6);
        color: rgba(255, 255, 255, 0.9);
    }
}

@media (max-width: 480px) {
    .business-card {
        width: 320px;
        height: 210px;
    }
    
    .card-header {
        gap: 15px;
    }
    
    .name-title h3 {
        font-size: 20px;
    }
    
    .contact-item-quick {
        flex-direction: row; /* Keep icon on left side instead of column */
        justify-content: flex-start; /* Align to left */
        text-align: left; /* Ensure text aligns left */
        gap: 6px; /* Good spacing for smaller screens */
        margin: 3px 0;
        padding: 5px 8px; /* Appropriate padding for small screens */
    }
    
    .motto-section {
        padding: 12px;
    }
    
    .social-icons-card a {
        width: 35px;
        height: 35px;
    }
    
    .social-icons-card a i {
        font-size: 16px;
    }
    
    .particles-container {
        width: 350px;
        height: 250px;
    }

    .simple-business-card {
        width: 320px;
        height: 210px;
        padding: 1.2rem;
    }
    
    .simple-header {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        margin-bottom: 0.8rem;
        padding-bottom: 0.8rem;
    }
    
    .simple-logo {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .simple-info h2 {
        font-size: 1.3rem;
    }
    
    .simple-info p {
        font-size: 0.85rem;
    }
    
    .contact-row {
        padding: 0.4rem 0.5rem;
    }
}

/* Card Page Specific Styles */
.card-page-body {
    background: #000000 !important;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.card-page-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: -3;
}

/* Back Button */
.back-button-container {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 9999;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(10, 10, 26, 0.8);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 25px;
    color: #B383FF;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-button:hover {
    background: rgba(157, 78, 221, 0.2);
    border-color: rgba(157, 78, 221, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.3);
    color: #B383FF;
}

.back-button i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-3px);
}

/* Card Page Header */
.card-page-header {
    text-align: center;
    padding: 80px 20px 20px;
    background: #000000;
}

.card-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #B383FF, #9d4edd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.card-page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Version Toggle - Single Horizontal Capsule */
.version-toggle {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 2rem auto;
    padding: 0;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(157, 78, 221, 0.6);
    border-radius: 25px;
    width: fit-content;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.version-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    min-width: 120px;
    height: 50px;
    text-align: center;
    border-radius: 0;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    white-space: nowrap;
}

.version-btn:first-child {
    border-radius: 23px 0 0 23px;
}

.version-btn:last-child {
    border-radius: 0 23px 23px 0;
}

.version-btn:hover {
    color: #ffffff;
    background: rgba(157, 78, 221, 0.6);
}

.version-btn.active {
    background: rgba(157, 78, 221, 0.8);
    color: #ffffff;
    box-shadow: inset 0 2px 10px rgba(157, 78, 221, 0.4);
}

/* Card Page Container */
.card-page-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #000000;
}

.card-version {
    display: none;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.card-version.active {
    display: block;
}

/* Card Section Container */
.card-section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    position: relative;
    background: #000000;
    perspective: 1200px;
    perspective-origin: center center;
}

/* Instructions */
.card-instructions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(10, 10, 26, 0.6);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.instruction-item:hover {
    background: rgba(157, 78, 221, 0.2);
    border-color: rgba(157, 78, 221, 0.4);
    transform: translateY(-2px);
}

.instruction-item i {
    color: #9d4edd;
    font-size: 1rem;
}

/* Simple Card Styles */
.simple-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    background: transparent;
}

.simple-business-card {
    width: 420px;
    height: 280px;
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 20px;
    backdrop-filter: blur(2px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 5px 10px rgba(0, 0, 0, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.simple-business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.03) 0%,
        transparent 30%,
        transparent 70%,
        rgba(255, 255, 255, 0.01) 100%);
    border-radius: 24px;
    pointer-events: none;
    opacity: 0.5;
}

.simple-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
    z-index: 2;
    position: relative;
    text-align: center;
}

.simple-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #9d4edd, #B383FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.simple-info {
    text-align: center;
    z-index: 2;
    position: relative;
}

.simple-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.2rem 0;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.simple-info p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.2;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.simple-skills {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 0.002rem;
    z-index: 2;
    position: relative;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.simple-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 10;
    position: relative;
    width: 100%;
    align-items: center;
}

.simple-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.6rem;
    z-index: 2;
    position: relative;
    align-items: center;
}

.simple-contact-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.simple-contact-item i {
    color: #9d4edd;
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.simple-social-icons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    z-index: 2;
    position: relative;
    width: 100%;
}

.simple-social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.simple-social-icons a:hover {
    background: rgba(157, 78, 221, 0.2);
    border-color: rgba(157, 78, 221, 0.4);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 18px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(157, 78, 221, 0.3);
}

/* Responsive Design for Card Page */
@media (max-width: 768px) {
    .back-button-container {
        top: 20px;
        left: 20px;
    }
    
    .back-button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .card-page-header {
        padding: 60px 15px 30px;
    }
    
    .card-page-title {
        font-size: 2rem;
    }
    
    .card-page-subtitle {
        font-size: 1rem;
    }
    
    .version-toggle {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }
    
    .version-btn {
        width: 200px;
        text-align: center;
    }
    
    .card-instructions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .simple-business-card {
        width: 350px;
        height: 220px;
        padding: 1.5rem;
    }
    
    .simple-header {
        margin-bottom: 0.8rem;
    }
    
    .simple-info h2 {
        font-size: 1.3rem;
    }
    
    .simple-skills {
        font-size: 0.8rem;
        margin: 0.8rem 0;
    }
    
    .simple-social-icons {
        gap: 0.8rem;
    }
    
    .simple-social-icons a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Floating Menu Overlay - Enhanced */
.floating-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floating-menu-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 320px;
    background: rgba(10, 10, 26, 0.95);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(25px);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(157, 78, 221, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Card Page Space Background - Professional Black Theme */
.card-page-body .space-background {
    background: #000000;
    opacity: 0.6;
}

/* Professional Stars - Subtle and Elegant */
.card-page-body .star {
    background: #ffffff;
    border-radius: 50%;
    animation: professional-twinkle 6s ease-in-out infinite;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
}

.card-page-body .star.small {
    width: 1px;
    height: 1px;
    box-shadow: 
        0 0 4px rgba(255, 255, 255, 0.6),
        0 0 8px rgba(255, 255, 255, 0.3);
}

.card-page-body .star.medium {
    width: 2px;
    height: 2px;
    box-shadow: 
        0 0 6px rgba(255, 255, 255, 0.7),
        0 0 12px rgba(255, 255, 255, 0.4);
}

.card-page-body .star.large {
    width: 3px;
    height: 3px;
    box-shadow: 
        0 0 8px rgba(255, 255, 255, 0.8),
        0 0 16px rgba(255, 255, 255, 0.5);
}

@keyframes professional-twinkle {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.2); 
    }
}

/* Professional Planets - Minimalist Design */
.card-page-body .planet {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
    animation: professional-float 20s ease-in-out infinite;
    opacity: 0.4;
}

.card-page-body .planet.earth {
    width: 30px;
    height: 30px;
    background: 
        radial-gradient(circle at 30% 30%, #ffffff 0%, #e0e0e0 30%, #c0c0c0 60%, #808080 100%);
    box-shadow: 
        inset -8px -8px 16px rgba(0, 0, 0, 0.6),
        inset 2px 2px 8px rgba(255, 255, 255, 0.3),
        0 0 12px rgba(255, 255, 255, 0.1);
}

.card-page-body .planet.mars {
    width: 20px;
    height: 20px;
    background: 
        radial-gradient(circle at 35% 25%, #f0f0f0 0%, #d0d0d0 40%, #a0a0a0 80%, #606060 100%);
    box-shadow: 
        inset -6px -6px 12px rgba(0, 0, 0, 0.7),
        inset 1px 1px 6px rgba(255, 255, 255, 0.4),
        0 0 8px rgba(255, 255, 255, 0.08);
}

.card-page-body .planet.jupiter {
    width: 40px;
    height: 40px;
    background: 
        linear-gradient(45deg, 
            #ffffff 0%, #e8e8e8 20%, #d0d0d0 40%, #b8b8b8 60%, #a0a0a0 80%, #808080 100%);
    box-shadow: 
        inset -12px -12px 24px rgba(0, 0, 0, 0.5),
        inset 3px 3px 12px rgba(255, 255, 255, 0.3),
        0 0 16px rgba(255, 255, 255, 0.1);
}

@keyframes professional-float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-15px) rotate(180deg); 
        opacity: 0.5;
    }
}

/* Professional Nebula - Subtle and Minimal */
.card-page-body .nebula {
    filter: blur(30px);
    animation: professional-drift 25s ease-in-out infinite;
    opacity: 0.1;
}

.card-page-body .nebula.purple {
    background: 
        radial-gradient(circle, 
            rgba(255, 255, 255, 0.15) 0%, 
            rgba(200, 200, 200, 0.08) 40%, 
            transparent 80%);
}

.card-page-body .nebula.blue {
    background: 
        radial-gradient(circle, 
            rgba(240, 240, 240, 0.12) 0%, 
            rgba(180, 180, 180, 0.06) 50%, 
            transparent 80%);
}

.card-page-body .nebula.pink {
    background: 
        radial-gradient(circle, 
            rgba(255, 255, 255, 0.1) 0%, 
            rgba(220, 220, 220, 0.05) 45%, 
            transparent 80%);
}

@keyframes professional-drift {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) scale(1); 
        opacity: 0.08;
    }
    50% { 
        transform: translateX(30px) translateY(-20px) scale(1.1); 
        opacity: 0.15;
    }
}

/* Professional Comets - Subtle Streaks */
.card-page-body .comet {
    width: 3px;
    height: 3px;
    background: 
        radial-gradient(circle, 
            #ffffff 0%, 
            rgba(255, 255, 255, 0.6) 60%, 
            transparent 100%);
    box-shadow: 
        0 0 8px rgba(255, 255, 255, 0.5),
        0 0 16px rgba(255, 255, 255, 0.2);
    opacity: 0.6;
}

.card-page-body .comet::after {
    width: 80px;
    height: 2px;
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 255, 255, 0.05) 30%, 
            rgba(255, 255, 255, 0.2) 70%, 
            rgba(255, 255, 255, 0.4) 100%);
    filter: blur(0.5px);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}

.card-page-body .comet.falling {
    animation: professional-fall 12s linear infinite;
}

@keyframes professional-fall {
    0% {
        transform: translateX(-100px) translateY(-100px) rotate(45deg);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(calc(100vh + 100px)) rotate(45deg);
        opacity: 0;
    }
}

/* Professional Shooting Stars - Minimal */
.card-page-body .shooting-star {
    width: 2px;
    height: 2px;
    background: 
        radial-gradient(circle, 
            #ffffff 0%, 
            rgba(255, 255, 255, 0.7) 70%, 
            transparent 100%);
    animation: professional-shoot 6s linear infinite;
    box-shadow: 
        0 0 6px rgba(255, 255, 255, 0.4),
        0 0 12px rgba(255, 255, 255, 0.2);
    opacity: 0.5;
}

.card-page-body .shooting-star::after {
    width: 60px;
    height: 1px;
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 255, 255, 0.1) 40%, 
            rgba(255, 255, 255, 0.3) 80%, 
            rgba(255, 255, 255, 0.5) 100%);
    filter: blur(0.3px);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
}

@keyframes professional-shoot {
    0% {
        transform: translateX(-60px) translateY(-40px) rotate(25deg);
        opacity: 0;
    }
    15% {
        opacity: 0.6;
    }
    85% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(calc(100vw + 60px)) translateY(calc(60vh + 40px)) rotate(25deg);
        opacity: 0;
    }
}

/* Navigation Bar Styles - Transparent with Icons Only */
.navbar {
    background: transparent !important;
    backdrop-filter: none;
    border-bottom: none !important;
    border: none !important;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    box-shadow: none !important;
    outline: none !important;
}

/* Remove any Bootstrap default borders */
.navbar::before,
.navbar::after {
    display: none !important;
}

.navbar-nav {
    border: none !important;
    outline: none !important;
}

.navbar-collapse {
    border-top: none !important;
}

/* Ensure no borders on any navbar elements */
.navbar *,
.navbar *::before,
.navbar *::after {
    border-top: none !important;
    border-bottom: none !important;
    outline: none !important;
}

.navbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    width: 100%;
    padding-right: 0; /* Remove padding to reach absolute edge */
    padding-left: 0.5rem;
}

.navbar-brand-placeholder {
    display: none;
}

/* Right side icons container - Position at absolute right corner */
.navbar-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    position: relative;
    z-index: 10000;
    padding-right: 1rem; /* Add padding to icons container instead */
}

/* Card Icon */
.navbar-icon {
    font-size: 1.8rem;
    color: #9d4edd !important;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(10, 10, 26, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(157, 78, 221, 0.2);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-icon:hover {
    color: #B383FF !important;
    transform: scale(1.1);
    background: rgba(157, 78, 221, 0.2);
    border-color: rgba(157, 78, 221, 0.4);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
}

.navbar-icon i {
    font-size: 1.3rem;
    color: inherit;
}

/* Remove old navbar-brand styles */
.navbar-brand {
    display: none;
}

/* Hamburger Menu Button */
.navbar-toggler {
    width: 60px;
    height: 60px;
    background: rgba(157, 78, 221, 0.1);
    border: 2px solid rgba(157, 78, 221, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar-toggler:hover {
    background: rgba(157, 78, 221, 0.2);
    border-color: #9d4edd;
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Fixed Hamburger to Cross Animation */
.navbar-toggler-icon {
    width: 1.5rem;
    height: 1.5rem;
    position: relative;
    display: block;
    background: transparent !important;
    border: none !important;
}

/* Create 3 horizontal lines */
.navbar-toggler-icon,
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    width: 24px;
    height: 2px;
    background: #9d4edd;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.navbar-toggler-icon::before {
    top: -6px;
}

.navbar-toggler-icon::after {
    top: 6px;
}

/* Transform to X when expanded */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent !important;
    transform: rotate(180deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Dropdown Menu Container */
.navbar-collapse {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    width: 320px !important;
    background: transparent !important;
    backdrop-filter: blur(15px) !important;
    border-radius: 0 0 16px 16px !important;
    margin-top: 0 !important;
    padding: 1.5rem 0 !important;
    border: 1px solid rgba(157, 78, 221, 0.2) !important;
    border-top: none !important;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(157, 78, 221, 0.1) !important;
    z-index: 9999 !important;
    /* Smooth opening animation */
    transform: translateY(-15px) scale(0.9) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Show dropdown with smooth spring animation */
.navbar-collapse.show {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 800px !important;
    overflow: visible !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Collapsing animation state - Fixed blinking */
.navbar-collapse.collapsing {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    width: 320px !important;
    max-width: calc(100vw - 2rem) !important; /* Prevent overflow on very small screens */
    background: transparent !important;
    backdrop-filter: blur(15px) !important;
    border-radius: 0 0 16px 16px !important;
    margin-top: 0 !important;
    padding: 1.5rem 0 !important;
    border: 1px solid rgba(157, 78, 221, 0.2) !important;
    border-top: none !important;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(157, 78, 221, 0.1) !important;
    z-index: 9999 !important;
    /* Smooth closing transition - no blinking */
    transform: translateY(0) scale(1) !important;
    opacity: 0 !important;
    visibility: visible !important;
    max-height: 800px !important;
    overflow: visible !important;
    transition: opacity 0.15s ease !important;
}

/* Ensure nav links stay visible during closing to prevent blinking */
.navbar-collapse.collapsing .navbar-nav .nav-link {
    opacity: 0.4 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition: opacity 0.2s ease !important;
}

/* Navigation List - Vertical Layout */
.navbar-nav {
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    list-style: none !important;
}

/* Navigation Items */
.navbar-nav .nav-item {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Navigation Links - Initially Hidden */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    padding: 1rem 1.5rem !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    font-size: 1rem !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    text-decoration: none !important;
    width: 100% !important;
    /* Initially hidden */
    transform: translateY(-20px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Show nav links when menu is open with staggered animation */
.navbar-collapse.show .nav-link {
    visibility: visible !important;
    animation: dropDownItem 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
}

/* Staggered animation delays for each menu item */
.navbar-collapse.show .nav-item:nth-child(1) .nav-link { animation-delay: 0.1s !important; }
.navbar-collapse.show .nav-item:nth-child(2) .nav-link { animation-delay: 0.15s !important; }
.navbar-collapse.show .nav-item:nth-child(3) .nav-link { animation-delay: 0.2s !important; }
.navbar-collapse.show .nav-item:nth-child(4) .nav-link { animation-delay: 0.25s !important; }
.navbar-collapse.show .nav-item:nth-child(5) .nav-link { animation-delay: 0.3s !important; }
.navbar-collapse.show .nav-item:nth-child(6) .nav-link { animation-delay: 0.35s !important; }
.navbar-collapse.show .nav-item:nth-child(7) .nav-link { animation-delay: 0.4s !important; }
.navbar-collapse.show .nav-item:nth-child(8) .nav-link { animation-delay: 0.45s !important; }
.navbar-collapse.show .nav-item:nth-child(9) .nav-link { animation-delay: 0.5s !important; }
.navbar-collapse.show .nav-item:nth-child(10) .nav-link { animation-delay: 0.55s !important; }

/* Nav link hover effects */
.navbar-nav .nav-link:hover {
    background: rgba(157, 78, 221, 0.15) !important;
    color: #B383FF !important;
    transform: translateY(0) translateX(10px) !important;
    padding-left: 2rem !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.navbar-nav .nav-link:last-child {
    border-bottom: none !important;
}

.navbar-nav .nav-link.active {
    background: rgba(157, 78, 221, 0.2) !important;
    color: #B383FF !important;
    border-left: 3px solid #9d4edd !important;
}

/* Icons in nav links */
.navbar-nav .nav-link i {
    font-size: 1.1rem !important;
    color: #9d4edd !important;
    width: 20px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.navbar-nav .nav-link:hover i {
    color: #B383FF !important;
    transform: scale(1.1) !important;
}

/* Text spans */
.navbar-nav .nav-link span {
    flex: 1 !important;
    text-align: left !important;
}

/* Dropdown Animation Keyframes */
@keyframes dropDownItem {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
        visibility: hidden;
    }
    50% {
        opacity: 0.7;
        transform: translateY(-5px) scale(0.98);
        visibility: visible;
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        visibility: visible;
    }
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar .container {
        padding-right: 0; /* Remove padding to reach absolute edge */
        padding-left: 0.5rem;
        justify-content: flex-end;
    }
    
    .navbar-icons {
        gap: 0.5rem;
        margin-left: auto;
        padding-right: 0.5rem; /* Small padding only on icons */
    }
    
    .navbar-icon,
    .navbar-toggler {
        width: 50px;
        height: 50px;
    }
    
    .navbar-icon i {
        font-size: 1.2rem;
    }
    
    .navbar-toggler-icon {
        width: 1.2rem;
        height: 1.2rem;
    }
    
    /* Keep compact dropdown design on mobile - same as desktop */
    .navbar-collapse,
    .navbar-collapse.collapsing {
        width: 320px !important;
        right: 0 !important; /* Align to absolute right edge */
        left: auto !important;
        max-width: calc(100vw - 2rem) !important;
        position: absolute !important;
        top: 100% !important;
    }
}

/* Desktop - Ensure dropdown always works */
@media (min-width: 992px) {
    /* Keep all dropdown functionality on desktop */
    .navbar-collapse {
        width: 320px !important;
        right: 0 !important;
        left: auto !important;
    }
    
    .navbar-collapse.collapsing {
        width: 320px !important;
        right: 0 !important;
        left: auto !important;
    }
    
    /* Ensure toggler is always visible and functional */
    .navbar-toggler {
        display: flex !important;
    }
    
    /* Make sure nav links work properly */
    .navbar-nav .nav-link {
        font-size: 1rem !important;
    }
    
    .navbar-nav .nav-link i {
        font-size: 1.1rem !important;
    }
    
    .navbar-nav .nav-link:hover {
        padding-left: 2.5rem !important;
    }
}

/* Ensure navbar doesn't interfere with content */
.navbar + * {
    margin-top: 0;
}

/* 3D Enhanced Space Background for Business Card Page */
  
/* Force nav links to be visible - Override */
.navbar-collapse.show .navbar-nav .nav-link {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: flex !important;
}

/* Also make them visible in collapsing state */
.navbar-collapse.collapsing .navbar-nav .nav-link {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: flex !important;
}

/* Fixed Collapsing State - No Blinking at All */
.navbar-collapse.collapsing {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    width: 320px !important;
    max-width: calc(100vw - 2rem) !important; /* Prevent overflow on very small screens */
    background: transparent !important;
    backdrop-filter: blur(15px) !important;
    border-radius: 0 0 16px 16px !important;
    margin-top: 0 !important;
    padding: 1.5rem 0 !important;
    border: 1px solid rgba(157, 78, 221, 0.2) !important;
    border-top: none !important;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(157, 78, 221, 0.1) !important;
    z-index: 9999 !important;
    /* Simple fade out - no transform changes */
    transform: translateY(0) scale(1) !important;
    opacity: 0 !important;
    visibility: visible !important;
    max-height: 800px !important;
    overflow: visible !important;
    transition: opacity 0.15s ease !important;
}

/* Keep nav links fully visible during closing */
.navbar-collapse.collapsing .navbar-nav .nav-link {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition: none !important;
}

/* Final Fix - No Blinking Dropdown Menu */
.navbar-collapse.collapsing {
    opacity: 0 !important;
    transform: translateY(0) scale(1) !important;
    visibility: visible !important;
    max-height: 800px !important;
    overflow: visible !important;
    transition: opacity 0.15s ease !important;
}

.navbar-collapse.collapsing .navbar-nav .nav-link {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition: none !important;
}

/* Ensure hamburger to cross animation works */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent !important;
    transform: rotate(180deg) !important;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    top: 0 !important;
    transform: rotate(45deg) !important;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    top: 0 !important;
    transform: rotate(-45deg) !important;
}

/* Show nav links with faster, smoother staggered animation */
.navbar-collapse.show .nav-link {
    visibility: visible !important;
    animation: dropDownItem 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

/* Faster staggered animation delays */
.navbar-collapse.show .nav-item:nth-child(1) .nav-link { animation-delay: 0.05s !important; }
.navbar-collapse.show .nav-item:nth-child(2) .nav-link { animation-delay: 0.08s !important; }
.navbar-collapse.show .nav-item:nth-child(3) .nav-link { animation-delay: 0.11s !important; }
.navbar-collapse.show .nav-item:nth-child(4) .nav-link { animation-delay: 0.14s !important; }
.navbar-collapse.show .nav-item:nth-child(5) .nav-link { animation-delay: 0.17s !important; }
.navbar-collapse.show .nav-item:nth-child(6) .nav-link { animation-delay: 0.20s !important; }
.navbar-collapse.show .nav-item:nth-child(7) .nav-link { animation-delay: 0.23s !important; }
.navbar-collapse.show .nav-item:nth-child(8) .nav-link { animation-delay: 0.26s !important; }
.navbar-collapse.show .nav-item:nth-child(9) .nav-link { animation-delay: 0.29s !important; }
.navbar-collapse.show .nav-item:nth-child(10) .nav-link { animation-delay: 0.32s !important; }

/* Ultra-Smooth Closing Animation - Final Polish */
.navbar-collapse.collapsing {
    opacity: 0 !important;
    transform: translateY(-10px) scale(0.95) !important;
    visibility: visible !important;
    max-height: 800px !important;
    overflow: visible !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.navbar-collapse.collapsing .navbar-nav .nav-link {
    opacity: 0.8 !important;
    visibility: visible !important;
    transform: translateY(-5px) !important;
    transition: all 0.2s ease !important;
}

/* Force 3-Bar Hamburger Icon Override */
.navbar-toggler-icon {
    background: #9d4edd !important;
    width: 20px !important;
    height: 2px !important;
    border-radius: 1px !important;
    position: relative !important;
    display: block !important;
    transition: all 0.3s ease !important;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    width: 20px !important;
    height: 2px !important;
    background: #9d4edd !important;
    border-radius: 1px !important;
    transition: all 0.3s ease !important;
}

.navbar-toggler-icon::before {
    top: -6px !important;
}

.navbar-toggler-icon::after {
    top: 6px !important;
}

/* X transformation when opened */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent !important;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    top: 0 !important;
    transform: rotate(45deg) !important;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    top: 0 !important;
    transform: rotate(-45deg) !important;
}

/* Moving Planets Animation - Black & White with Reduced Size */
.moving-planet {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6; /* Reduced opacity for more subtle effect */
    z-index: 1;
    animation: movePlanetAcross 15s linear infinite;
}

.moving-planet.small {
    width: 12px; /* Reduced from 20px */
    height: 12px;
}

.moving-planet.medium {
    width: 18px; /* Reduced from 30px */
    height: 18px;
}

.moving-planet.large {
    width: 24px; /* Reduced from 40px */
    height: 24px;
}

.moving-planet.earth {
    background: radial-gradient(circle at 30% 30%, #888888, #666666, #444444); /* Black and white gradient */
    box-shadow: 
        0 0 8px rgba(136, 136, 136, 0.2), /* Reduced and grayscale */
        inset -3px -3px 6px rgba(0, 0, 0, 0.3);
}

.moving-planet.mars {
    background: radial-gradient(circle at 30% 30%, #aaaaaa, #777777, #555555); /* Black and white gradient */
    box-shadow: 
        0 0 8px rgba(170, 170, 170, 0.2), /* Reduced and grayscale */
        inset -3px -3px 6px rgba(0, 0, 0, 0.3);
}

.moving-planet.jupiter {
    background: radial-gradient(circle at 30% 30%, #cccccc, #999999, #666666); /* Black and white gradient */
    box-shadow: 
        0 0 10px rgba(204, 204, 204, 0.2), /* Reduced and grayscale */
        inset -3px -3px 6px rgba(0, 0, 0, 0.3);
}

/* Moving Planet Animation Keyframes */
@keyframes movePlanetAcross {
    0% {
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) rotate(360deg);
        opacity: 0;
    }
}

/* Different animation for right-to-left movement */
.moving-planet[style*="right:"] {
    animation: movePlanetAcrossReverse 15s linear infinite;
}

@keyframes movePlanetAcrossReverse {
    0% {
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(calc(-100vw - 100px)) rotate(-360deg);
        opacity: 0;
    }
}

.social-icons-card {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

/* Social Icons Card Links - White Color for Card Back */
.social-icons-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff; /* White color for icons */
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-icons-card a i {
    font-size: 18px;
    color: #ffffff; /* White color for icon fonts */
}

.social-icons-card a:hover {
    background: rgba(157, 78, 221, 0.3);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.3);
}

/* Enhanced Mobile Responsive Design for Card Page */
@media (max-width: 768px) {
    /* Card Page Layout */
    #card {
        padding: 60px 0 80px 0;
        min-height: 100vh;
    }
    
    /* 3D Business Card Mobile Optimization */
    .business-card {
        width: 340px;
        height: 220px;
        margin: 0 auto;
    }
    
    .card-front,
    .card-back {
        padding: 18px;
    }
    
    /* Card Header Mobile */
    .card-header {
        display: flex;
        flex-direction: column; /* Keep column layout like desktop */
        align-items: center;
        gap: 6px;
        margin-bottom: 6px;
        text-align: center;
    }
    
    .logo-section {
        display: flex;
        justify-content: center;
        margin-bottom: 5px;
    }
    
    .logo-circle {
        width: 50px;
        height: 50px;
    }
    
    .initial {
        font-size: 18px;
    }
    
    .name-title h3 {
        font-size: 20px;
        margin: 0;
    }
    
    .name-title p {
        font-size: 12px;
        margin: 2px 0 0 0;
    }
    
    /* Card Body Mobile */
    .specialization {
        font-size: 11px;
        margin: 8px 0;
        line-height: 1.3;
    }
    
    /* Card Footer Mobile */
    .contact-item-quick {
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Align to left */
        gap: 8px; /* Increased gap for better spacing */
        margin: 4px 0;
        padding: 6px 10px; /* Increased padding */
        text-align: left; /* Ensure text aligns left */
    }
    
    .contact-item-quick i {
        font-size: 11px;
        width: 14px;
        text-align: center; /* Center icon within its width */
        flex-shrink: 0; /* Prevent icon from shrinking */
        color: #9d4edd; /* Ensure icon color is visible */
    }
    
    .contact-item-quick span {
        font-size: 9px;
        flex: 1; /* Allow text to take remaining space */
        text-align: left; /* Align text to left */
    }
    
    /* Card Back Mobile */
    .card-back .quote-section {
        padding: 8px;
        text-align: center;
    }
    
    .card-back blockquote {
        font-size: 13px;
        margin: 8px 0;
        line-height: 1.4;
    }
    
    .card-back cite {
        font-size: 11px;
    }
    
    .card-back .quote-icon i {
        font-size: 20px;
    }
    
    /* Social Icons Mobile */
    .social-icons-card {
        gap: 0.6rem;
        margin-top: 10px;
    }
    
    .social-icons-card a {
        width: 32px;
        height: 32px;
    }
    
    .social-icons-card a i {
        font-size: 14px;
    }
    
    /* Particles Container Mobile */
    .particles-container {
        width: 380px;
        height: 280px;
    }
    
    /* Page Header Mobile */
    .back-button-container {
        top: 15px;
        left: 15px;
    }
    
    .back-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    
    .card-page-header {
        padding: 50px 15px 25px;
    }
    
    .card-page-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .card-page-subtitle {
        font-size: 0.9rem;
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Version Toggle Mobile */
    .version-toggle {
        flex-direction: row;
        align-items: center;
        gap: 0;
        margin: 1.2rem auto;
        padding: 0;
        border-radius: 18px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
        overflow: hidden;
        width: fit-content;
    }

    .version-btn {
        padding: 8px 16px;
        font-size: 11px;
        min-width: 90px;
        height: 36px;
        border-radius: 0;
        flex: 1;
    }

    .version-btn:first-child {
        border-radius: 16px 0 0 16px;
        background: rgba(157, 78, 221, 0.8);
        color: #ffffff;
    }

    .version-btn:last-child {
        border-radius: 0 16px 16px 0;
        background: rgba(0, 0, 0, 0.6);
        color: rgba(255, 255, 255, 0.9);
    }
    
    /* Card Instructions Mobile */
    .card-instructions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 20px;
        padding: 0 20px;
    }
    
    .instruction-item {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 15px;
    }
    
    .instruction-item i {
        font-size: 14px;
    }
    
    /* Simple Card Mobile Optimization */
    .simple-business-card {
        width: 340px;
        height: 220px;
        padding: 1.3rem;
        margin: 0 auto;
    }
    
    .simple-header {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.8rem;
        text-align: left;
    }
    
    .simple-logo {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .simple-info h2 {
        font-size: 1.4rem;
        margin: 0;
    }
    
    .simple-info p {
        font-size: 0.9rem;
        margin: 2px 0 0 0;
    }
    
    .simple-skills {
        font-size: 0.75rem;
        margin: 0.8rem 0;
        line-height: 1.4;
        text-align: center;
    }
    
    .simple-contact {
        margin-top: 1rem;
    }
    
    .simple-contact-info {
        margin-bottom: 0.8rem;
    }
    
    .simple-contact-item {
        margin: 4px 0;
        font-size: 0.75rem;
    }
    
    .simple-contact-item i {
        width: 16px;
        font-size: 12px;
    }
    
    .simple-social-icons {
        gap: 0.6rem;
        justify-content: center;
    }
    
    .simple-social-icons a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    /* 3D Card Extra Small */
    .business-card {
        width: 300px;
        height: 200px;
    }
    
    .card-front,
    .card-back {
        padding: 15px;
    }
    
    .card-header {
        gap: 6px;
        margin-bottom: 6px;
    }
    
    .logo-circle {
        width: 45px;
        height: 45px;
    }
    
    .initial {
        font-size: 16px;
    }
    
    .name-title h3 {
        font-size: 18px;
    }
    
    .name-title p {
        font-size: 11px;
    }
    
    .specialization {
        font-size: 10px;
        margin: 6px 0;
    }
    
    .contact-item-quick {
        flex-direction: column;
        text-align: center;
        gap: 2px;
        margin: 3px 0;
    }
    
    .contact-item-quick span {
        font-size: 9px;
    }
    
    .contact-item-quick i {
        font-size: 11px;
    }
    
    /* Card Back Extra Small */
    .card-back blockquote {
        font-size: 12px;
        margin: 6px 0;
    }
    
    .card-back cite {
        font-size: 10px;
    }
    
    .card-back .quote-icon i {
        font-size: 18px;
    }
    
    .social-icons-card a {
        width: 28px;
        height: 28px;
    }
    
    .social-icons-card a i {
        font-size: 12px;
    }
    
    /* Particles Container Extra Small */
    .particles-container {
        width: 320px;
        height: 240px;
    }
    
    /* Simple Card Extra Small */
    .simple-business-card {
        width: 300px;
        height: 200px;
        padding: 1.1rem;
    }
    
    .simple-header {
        flex-direction: column;
        text-align: center;
        gap: 0.6rem;
        margin-bottom: 0.8rem;
        padding-bottom: 0.6rem;
    }
    
    .simple-logo {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .simple-info h2 {
        font-size: 1.2rem;
    }
    
    .simple-info p {
        font-size: 0.8rem;
    }
    
    .simple-skills {
        font-size: 0.7rem;
        margin: 0.6rem 0;
    }
    
    .simple-contact-item {
        font-size: 0.7rem;
        margin: 3px 0;
    }
    
    .simple-contact-item i {
        font-size: 11px;
    }
    
    .simple-social-icons a {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    /* Page Elements Extra Small */
    .card-page-title {
        font-size: 1.8rem;
    }
    
    .card-page-subtitle {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
    
    .version-btn {
        padding: 6px 12px;
        font-size: 10px;
        min-width: 80px;
        height: 32px;
    }
    
    .instruction-item {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .instruction-item i {
        font-size: 12px;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .card-page-header {
        padding: 30px 15px 20px;
    }
    
    .card-page-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .card-page-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .business-card,
    .simple-business-card {
        margin: 10px auto;
    }
    
    .card-instructions {
        margin-top: 15px;
        gap: 8px;
    }
    
    .version-toggle {
        margin: 1rem auto;
    }
}

/* Extra Small Mobile Screens */
@media (max-width: 576px) {
    .navbar .container {
        padding-right: 0; /* Remove padding to reach absolute edge */
        padding-left: 0.8rem;
        justify-content: flex-end;
    }
    
    .navbar-icons {
        gap: 0.6rem;
        margin-left: auto;
        padding-right: 0.6rem; /* Small padding only on icons */
    }
    
    .navbar-icon,
    .navbar-toggler {
        width: 45px;
        height: 45px;
    }
    
    .navbar-icon i {
        font-size: 1.1rem;
    }
    
    .navbar-toggler-icon {
        width: 1.1rem;
        height: 1.1rem;
    }
    
    .navbar-collapse,
    .navbar-collapse.collapsing {
        width: 300px !important;
        max-width: calc(100vw - 1.2rem) !important;
        right: 0 !important; /* Align to absolute right edge */
        left: auto !important;
    }
}

/* Very Small Mobile Screens */
@media (max-width: 400px) {
    .navbar .container {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
        justify-content: flex-end;
    }
    
    .navbar-icons {
        gap: 0.5rem;
        margin-left: auto;
        padding-right: 0;
    }
    
    .navbar-icon,
    .navbar-toggler {
        width: 40px;
        height: 40px;
    }
    
    .navbar-icon i {
        font-size: 1rem;
    }
    
    .navbar-toggler-icon {
        width: 1rem;
        height: 1rem;
    }
    
    .navbar-collapse,
    .navbar-collapse.collapsing {
        width: 280px !important;
        max-width: calc(100vw - 1rem) !important;
        right: 0 !important;
        left: auto !important;
    }
}
  

/* Client Projects Section Styles */
.client-project {
    position: relative;
    overflow: hidden;
    height: auto;
    transition: all 0.3s ease;
}

.client-project:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(157, 78, 221, 0.15);
}

.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(0.8);
}

.client-project:hover .project-image img {
    transform: scale(1.05);
    filter: brightness(1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(157, 78, 221, 0.7) 0%,
        rgba(179, 131, 255, 0.5) 50%,
        rgba(10, 10, 26, 0.8) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    opacity: 0;
    transition: all 0.4s ease;
}

.client-project:hover .project-overlay {
    opacity: 1;
}

.project-year {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-tech-overlay {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-tech-overlay .tech-tag {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.project-tech-overlay .tech-tag:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-tags .tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Client project content adjustments */
.client-project .project-content {
    padding: 1.5rem;
    border-radius: 0 0 15px 15px;
}

.client-project .project-description p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

/* Enhanced project grid for client projects */
#client-projects .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* Responsive adjustments for client projects */
@media (max-width: 1200px) {
    #client-projects .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #client-projects .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 180px;
    }
    
    .client-project .project-content {
        padding: 1.2rem;
    }
    
    .project-tech-overlay {
        gap: 0.3rem;
    }
    
    .project-tech-overlay .tech-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}