/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #08080c;
    font-family: 'Inter', 'Poppins', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: #08080c;
}
::-webkit-scrollbar-thumb {
    background: #1a1a25;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2a2a35;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ===== ANIMATED BORDER CIRCLE (Profile Picture) ===== */
.animated-border-circle {
    position: relative;
    border-radius: 50%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
    background-size: 300% 100%;
    animation: borderGlow 3s linear infinite;
}

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

/* ===== SHIMMER TEXT ANIMATION (Name) ===== */
.shimmer-text {
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #e2e8f0 20%,
        #ffffff 40%,
        #94a3b8 60%,
        #ffffff 80%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
    display: inline-block;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: rgba(15, 15, 21, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px -15px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

/* ===== SKILL BARS ===== */
.skill-bar-container {
    background: rgba(15, 15, 21, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    transition: all 0.4s ease;
}

.skill-bar-container:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
    transform: translateY(-3px);
}

.skill-bar-bg {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 999px;
    width: var(--skill-width);
    background: var(--skill-color);
    box-shadow: 0 0 20px var(--skill-color);
    animation: fillBar 1.5s ease-out forwards;
    transform-origin: left;
}

@keyframes fillBar {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* ===== PROJECT CARDS ===== */
.project-card {
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-glow-border {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.5), 
        rgba(139, 92, 246, 0.5), 
        rgba(236, 72, 153, 0.3),
        rgba(59, 130, 246, 0.5)
    );
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
}

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

/* Project Button */
.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.project-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ===== CONTACT UNIFIED BOX ===== */
.contact-unified-box {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 15, 21, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.contact-unified-box:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px -15px rgba(139, 92, 246, 0.2);
}

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

/* Vertical Dividers Between Links */
.contact-link-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    animation: dividerPulse 3s ease-in-out infinite;
}

@keyframes dividerPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.contact-link-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.contact-link-item i {
    transition: all 0.3s ease;
}

.contact-link-item:hover i {
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .contact-unified-box {
        flex-direction: column;
        border-radius: 1.5rem;
    }
    
    .contact-link-item:not(:last-child)::after {
        top: auto;
        bottom: 0;
        right: 10%;
        width: 80%;
        height: 1px;
    }
    
    .contact-link-item {
        padding: 1rem 1.5rem;
        width: 100%;
        justify-content: center;
    }
}

/* ===== STAGGERED DELAY FOR REVEAL ===== */
.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }
.reveal:nth-child(5) { transition-delay: 0.5s; }
.reveal:nth-child(6) { transition-delay: 0.6s; }
.reveal:nth-child(7) { transition-delay: 0.7s; }
.reveal:nth-child(8) { transition-delay: 0.8s; }
.reveal:nth-child(9) { transition-delay: 0.9s; }