.flipping-text {
    position: relative;
}

.flip-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    animation: flipText 9s infinite;
}

.flip-text:nth-child(1) {
    animation-delay: 0s;
}

.flip-text:nth-child(2) {
    animation-delay: 3s;
}

.flip-text:nth-child(3) {
    animation-delay: 6s;
}

@keyframes flipText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    10%,
    25% {
        opacity: 1;
        transform: translateY(0);
    }

    35%,
    100% {
        opacity: 0;
        transform: translateY(-20px);
    } }

.alumni-sc {
    font-family: "Alumni Sans SC", sans-serif;
}

.alumni {
    font-family: "Alumni Sans", sans-serif;
}

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

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.nav-item:hover {
    background: rgba(65, 105, 225, 0.1);
    width: 120px;
    border-radius: 25px;
    justify-content: flex-start;
    padding-left: 15px;
}

.nav-text {
    position: absolute;
    left: 45px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.nav-item:hover .nav-text {
    opacity: 1;
    transform: translateX(0);
}

.nav-icon {
    transition: transform 0.3s ease;
    z-index: 1;
}

.nav-item:hover .nav-icon {
    transform: translateX(-10px);
}

.royal-blue {
    color: #4169e1;
}

.bg-royal-blue {
    background-color: #4169e1;
}

.border-royal-blue {
    border-color: #4169e1;
}

.hover-royal-blue:hover {
    background-color: #4169e1;
}

.gradient-royal-blue {
    background: linear-gradient(135deg, #4169e1, #1e40af);
}

.gradient-royal-light {
    background: linear-gradient(135deg, #4169e1, #60a5fa);
}

.slide-container {
    overflow: hidden;
    white-space: nowrap;
}

.slide-track {
    display: inline-flex;
    animation: slide 25s linear infinite;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(65, 105, 225, 0.25);
}

.btn-royal {
    background: linear-gradient(135deg, #4169e1, #1e40af);
    transition: all 0.3s ease;
}

.btn-royal:hover {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(65, 105, 225, 0.3);
}

.btn-outline-royal {
    border: 2px solid #4169e1;
    color: #4169e1;
    transition: all 0.3s ease;
}

.btn-outline-royal:hover {
    background: #4169e1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(65, 105, 225, 0.3);
}

.smooth-scroll {
    scroll-behavior: smooth;
}

.hero-bg {
    position: relative;
    overflow: hidden;
}

#home canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

body.dark-mode {
    background-color: #1a202c;
    color: #e2e8f0;
}

body.dark-mode .floating-nav {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body.dark-mode .nav-item {
    color: #90cdf4;
}

body.dark-mode .nav-item:hover {
    background: rgba(144, 205, 244, 0.1);
}

body.dark-mode .royal-blue {
    color: #90cdf4;
}

body.dark-mode .text-gray-600 {
    color: #a0aec0;
}

body.dark-mode .text-gray-700 {
    color: #cbd5e0;
}

body.dark-mode .hero-bg {
}

body.dark-mode .hero-bg::before {
    background: radial-gradient(circle at 20% 50%, rgba(144, 205, 244, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(144, 205, 244, 0.05) 0%, transparent 50%);
}

body.dark-mode .bg-white {
    background-color: #2d3748;
}

body.dark-mode .bg-gray-50 {
    background-color: #1a202c;
}

body.dark-mode .bg-gradient-to-br {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

body.dark-mode .text-gray-800 {
    color: #e2e8f0;
}

body.dark-mode .text-blue-600 {
    color: #90cdf4;
}

body.dark-mode .card-hover {
    background-color: #2d3748;
}

body.dark-mode .card-hover:hover {
    box-shadow: 0 25px 50px -12px rgba(144, 205, 244, 0.25);
}

body.dark-mode .btn-royal {
    background: linear-gradient(135deg, #90cdf4, #63b3ed);
}

body.dark-mode .btn-royal:hover {
    background: linear-gradient(135deg, #63b3ed, #4299e1);
    box-shadow: 0 10px 25px rgba(144, 205, 244, 0.3);
}

body.dark-mode .btn-outline-royal {
    border: 2px solid #90cdf4;
    color: #90cdf4;
}

body.dark-mode .btn-outline-royal:hover {
    background: #90cdf4;
    color: #1a202c;
    box-shadow: 0 10px 25px rgba(144, 205, 244, 0.3);
}

body.dark-mode .gradient-royal-blue {
    background: linear-gradient(135deg, #90cdf4, #63b3ed);
}

body.dark-mode .gradient-royal-light {
    background: linear-gradient(135deg, #63b3ed, #4299e1);
}

body.dark-mode {
    cursor: none;
}

#glow-effect {
    pointer-events: none;
    will-change: transform, opacity;
}

.profile-photo-container {
    perspective: 1000px;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.flip-container {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
    transform-style: preserve-3d;
}

.rotate-y-180 {
    transform: rotateY(180deg);
}

.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    --glow-color: rgba(65, 105, 225, 0.8);
    box-shadow:
        0 0 5px var(--glow-color),
        0 0 10px var(--glow-color),
        0 0 15px var(--glow-color),
        0 0 20px var(--glow-color),
        0 4px 8px rgba(0, 0, 0, 0.2);
    animation: glow-pulse 2.5s infinite ease-in-out;
}

.flip-back {
    transform: rotateY(180deg);
}

.glowing-border {
    --glow-color: rgba(65, 105, 225, 0.8);
    box-shadow:
        0 0 5px var(--glow-color),
        0 0 10px var(--glow-color),
        0 0 15px var(--glow-color),
        0 0 20px var(--glow-color);
    animation: glow-pulse 2.5s infinite ease-in-out;
}

@keyframes glow-pulse {
    0% {
        box-shadow:
            0 0 5px var(--glow-color),
            0 0 10px var(--glow-color),
            0 0 15px var(--glow-color),
            0 0 20px var(--glow-color);
    }

    50% {
        box-shadow:
            0 0 7px var(--glow-color),
            0 0 14px var(--glow-color),
            0 0 21px var(--glow-color),
            0 0 28px var(--glow-color);
    }

    100% {
        box-shadow:
            0 0 5px var(--glow-color),
            0 0 10px var(--glow-color),
            0 0 15px var(--glow-color),
            0 0 20px var(--glow-color);
    }
}

@keyframes slideFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide {
    animation: slideFromLeft 1s ease-in-out forwards;
    transform: translateX(-100%);
    opacity: 0;
}

@keyframes slideFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-right {
    animation: slideFromRight 1s ease-in-out forwards;
    transform: translateX(100%);
    opacity: 0;
}

@keyframes checkPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.verified-check {
    animation: checkPulse 2s infinite;
    transition: color 0.3s ease;
}

.verified-check:hover {
    animation-play-state: paused;
}

body:not(.dark-mode) .verified-check {
    color: #4169e1;
}

body.dark-mode .verified-check {
    color: #ffffff;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.hover\:animate-bounce:hover {
    animation: bounce 0.5s;
}

.cert-flip-container {
    perspective: 1000px;
    width: 100%;
    height: 300px;
}

.cert-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.cert-flip-container:hover .cert-flip-inner {
    transform: rotateY(180deg);
}

.cert-front, .cert-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 0.5rem;
}

.cert-front {
    background-color: #f9fafb;
}

.cert-back {
    background-color: #f9fafb;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.work-history {
    margin-top: 2rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #4169e1, #90cdf4);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

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

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: #4169e1;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #4169e1;
}

.timeline-content {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #4169e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark-mode .timeline::before {
    background: linear-gradient(to bottom, #90cdf4, #63b3ed);
}

body.dark-mode .timeline-marker {
    background: #90cdf4;
    border-color: #2d3748;
    box-shadow: 0 0 0 2px #90cdf4;
}

body.dark-mode .timeline-content {
    background: #2d3748;
    border-left-color: #90cdf4;
}
