/* Custom Configuration and Utilities */

@layer utilities {
    .glass {
        background: rgba(30, 41, 59, 0.4);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .glass-card {
        background: rgba(30, 41, 59, 0.6);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
    }

    .glass-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
        border-color: rgba(14, 165, 233, 0.4);
    }

    .glass-input {
        background: rgba(15, 23, 42, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #f1f5f9;
        transition: all 0.3s ease;
    }

    .glass-input:focus {
        outline: none;
        border-color: #0ea5e9;
        box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
        background: rgba(15, 23, 42, 0.8);
    }

    .text-gradient {
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-image: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    }

    .bg-gradient-hover {
        background-size: 200% auto;
        transition: 0.5s;
    }

    .bg-gradient-hover:hover {
        background-position: right center;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0ea5e9;
}

/* GSAP Start States (prevents flash of unstyled content) */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale,
.progress-fill {
    visibility: hidden;
}

/* Typing Cursor Animation */
.cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: #0ea5e9;
    margin-left: 0.1rem;
    vertical-align: middle;
    animation: blink 1s infinite;
}

.cursor.typing {
    animation: none;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Floating Animation */
.float-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Glow Effect */
.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6, #0ea5e9);
    border-radius: inherit;
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
    opacity: 1;
}

/* Profile Image Border Animation */
.profile-border {
    position: relative;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6, #3b82f6);
    background-size: 200% 200%;
    animation: gradientMove 5s ease infinite;
}

.profile-border img {
    border-radius: 50%;
    border: 4px solid #0f172a;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Timeline dot styling */
.timeline-dot {
    position: absolute;
    left: -29px;
    top: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0ea5e9;
    border: 4px solid #0f172a;
    box-shadow: 0 0 0 2px #334155;
    z-index: 10;
}

@media (min-width: 768px) {
    .timeline-dot {
        left: 50%;
        transform: translateX(-50%);
    }
}



/* Preloader fade out class */
.fade-out {
    opacity: 0;
    pointer-events: none;
}