/* Enhanced 3D Animations CSS */

/* 3D Particle Universe */
.particle-universe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

/* Floating Geometric Elements */
.geometric-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.geo-element {
    position: absolute;
    opacity: 0.15;
    filter: blur(1px);
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.cube {
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    top: 20%;
    left: 15%;
    animation: floatRotate 20s infinite linear;
}

.pyramid {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 80px solid rgba(255, 255, 255, 0.3);
    top: 65%;
    left: 75%;
    animation: floatRotate 25s infinite linear reverse;
}

.sphere {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    top: 80%;
    left: 30%;
    animation: pulsateFloat 18s infinite ease-in-out;
}

.ring {
    width: 150px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 30%;
    left: 80%;
    animation: tiltFloat 22s infinite ease-in-out;
}

.cylinder {
    width: 60px;
    height: 120px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    top: 70%;
    left: 10%;
    animation: spinFloat 28s infinite linear;
}

@keyframes floatRotate {
    0% {
        transform: translateY(0) rotateY(0) rotateX(0);
    }

    50% {
        transform: translateY(-100px) rotateY(180deg) rotateX(180deg);
    }

    100% {
        transform: translateY(0) rotateY(360deg) rotateX(360deg);
    }
}

@keyframes pulsateFloat {
    0% {
        transform: scale(1) translateY(0);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.2) translateY(-70px);
        opacity: 0.2;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 0.1;
    }
}

@keyframes tiltFloat {
    0% {
        transform: rotateX(70deg) rotateZ(0deg) translateY(0);
    }

    50% {
        transform: rotateX(70deg) rotateZ(180deg) translateY(-50px);
    }

    100% {
        transform: rotateX(70deg) rotateZ(360deg) translateY(0);
    }
}

@keyframes spinFloat {
    0% {
        transform: translateY(0) rotateZ(0);
    }

    50% {
        transform: translateY(-120px) rotateZ(180deg);
    }

    100% {
        transform: translateY(0) rotateZ(360deg);
    }
}

/* Enhanced Cosmic Background */
.warp-speed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
    perspective: 1000px;
}

.aurora-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgba(75, 0, 130, 0.05) 0%,
            rgba(0, 0, 0, 0) 20%,
            rgba(0, 206, 209, 0.05) 50%,
            rgba(0, 0, 0, 0) 80%,
            rgba(138, 43, 226, 0.05) 100%);
    background-size: 400% 400%;
    animation: aurora 15s ease infinite;
    filter: blur(20px);
    z-index: 0;
}

@keyframes aurora {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Enhanced Loader */
.galaxy-loader {
    width: 100px;
    height: 100px;
    position: relative;
    perspective: 800px;
    transform-style: preserve-3d;
}

.galaxy-center {
    position: absolute;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.7);
    animation: pulse 2s infinite ease-in-out;
}

.galaxy-arm {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    top: 0;
    left: 0;
    animation: spin 4s infinite linear;
}

.arm1 {
    animation-duration: 4s;
}

.arm2 {
    animation-duration: 5s;
    transform: rotate(45deg);
}

.arm3 {
    animation-duration: 6s;
    transform: rotate(90deg);
}

.arm4 {
    animation-duration: 7s;
    transform: rotate(135deg);
}

@keyframes spin {
    from {
        transform: rotateZ(0deg);
    }

    to {
        transform: rotateZ(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* Interactive Navigation - FIXED */
.logo {
    position: relative;
    padding-bottom: 5px;
}

.logo-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary, #64ffda);
    transition: width 0.3s ease;
}

.logo:hover .logo-underline {
    width: 100%;
}

/* REMOVED NAV UNDERLINE AND HAMBURGER */
.nav-hover-effect {
    position: relative;
    padding: 5px 0;
    display: inline-block;
}

/* Remove underline dashes under tabs */
.nav-hover-effect::before {
    display: none;
}

/* Remove active underline */
.nav-hover-effect.active::before {
    display: none;
}

/* Make sure active state is still visible through color */
.nav-links a.active {
    color: var(--secondary, #64ffda);
}

/* Remove hamburger menu */
.mobile-toggle {
    display: none !important;
}

/* Ensure navigation links are always visible (not hidden in mobile view) */
.nav-links {
    display: flex !important;
    transform: none !important;
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 900px) {
    .nav-links {
        padding: 0 !important;
        gap: 15px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .nav-links li {
        width: auto !important;
    }

    .nav-links a {
        padding: 5px !important;
        font-size: 0.8rem !important;
    }
}

/* Enhanced Hero Section */
.profile-image-container {
    position: relative;
    width: 320px;
    height: 320px;
    perspective: 1000px;
}

.parallax-tilt {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%);
    transition: filter 0.5s ease;
}

.profile-image:hover img {
    filter: grayscale(0%);
}

.profile-image-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.profile-image:hover .profile-image-glow {
    opacity: 1;
}

.profile-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: orbitFloat 20s infinite ease-in-out;
}

.orb1 {
    width: 40px;
    height: 40px;
    top: 10%;
    left: 0;
    animation-duration: 15s;
}

.orb2 {
    width: 20px;
    height: 20px;
    bottom: 20%;
    right: 10%;
    animation-duration: 18s;
}

.orb3 {
    width: 30px;
    height: 30px;
    bottom: 0;
    left: 20%;
    animation-duration: 20s;
}

@keyframes orbitFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(20px, -20px);
    }

    50% {
        transform: translate(0, -40px);
    }

    75% {
        transform: translate(-20px, -20px);
    }
}

.tech-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.tech-icon {
    position: absolute;
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    animation: techFloat 15s infinite ease-in-out;
}

.tech-icon[data-icon="kubernetes"] {
    top: 5%;
    right: -15%;
    background-image: url('assets/img/icons/kubernetes.svg');
    animation-delay: 0s;
}

.tech-icon[data-icon="aws"] {
    top: 30%;
    left: -15%;
    background-image: url('assets/img/icons/aws.svg');
    animation-delay: 3s;
}

.tech-icon[data-icon="azure"] {
    bottom: 10%;
    right: -10%;
    background-image: url('assets/img/icons/azure.svg');
    animation-delay: 6s;
}

.tech-icon[data-icon="gcp"] {
    bottom: 30%;
    left: -10%;
    background-image: url('assets/img/icons/gcp.svg');
    animation-delay: 9s;
}

.tech-icon[data-icon="terraform"] {
    top: 50%;
    right: -20%;
    background-image: url('assets/img/icons/terraform.svg');
    animation-delay: 12s;
}

@keyframes techFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.9;
    }
}

.animated-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards;
}

.animated-element {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards;
}

.hero-greeting {
    animation-delay: 0.5s;
}

.hero-name {
    animation-delay: 0.8s;
}

.hero-title {
    animation-delay: 1.1s;
}

.hero-divider {
    animation-delay: 1.4s;
}

.hero-description {
    animation-delay: 1.7s;
}

.hero-cta {
    animation-delay: 2.0s;
}

.social-links {
    animation-delay: 2.3s;
}

/* 3D Buttons */
.btn-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
}

.btn-3d:hover {
    transform: translateY(-5px) translateZ(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-3d:hover .btn-background {
    opacity: 1;
}

/* 3D Social Icons */
.social-3d {
    transform-style: preserve-3d;
    perspective: 500px;
}

.social-icon-container {
    transition: transform 0.5s ease;
}

.social-3d:hover .social-icon-container {
    transform: rotateY(360deg);
}

/* Scroll Indicator */
.scroll-indicator-3d {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0;
    animation: fadeIn 1s forwards 3s;
}

.scroll-indicator-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: scrollDots 1.5s infinite ease;
}

.scroll-indicator-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-indicator-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollDots {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.3;
    }

    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

/* Add missing animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Additional Responsive styles */
@media (max-width: 768px) {
    .profile-image-container {
        width: 260px;
        height: 260px;
    }

    .profile-image {
        width: 250px;
        height: 250px;
    }

    .tech-icon {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .profile-image-container {
        width: 220px;
        height: 220px;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }

    .geometric-elements {
        display: none;
    }
}