/* Custom CSS Styles for 0nvx Portfolio */

body {
    font-family: 'Inter', sans-serif;
    color: #e5e7eb;
    background: linear-gradient(-45deg, #0f172a, #1f2937, #000000, #1f2937);
    background-size: 400% 400%;
    animation: gradient-animation 12s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
}



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

/* Pixel Text Styling */
.pixel-text {
    font-family: 'VT323', monospace;
    text-shadow: 2px 2px #000;
    color: #ffffff !important;
}

/* Glowing Text Effect */
.glow-text {
    animation: text-glow 2s ease-in-out infinite alternate;
}

@keyframes text-glow {
    from {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #00ff00, 0 0 40px #00ff00;
    }
    to {
        text-shadow: 0 0 20px #fff, 0 0 30px #00ff00, 0 0 40px #00ff00, 0 0 50px #00ff00;
    }
}

/* Logo in Corner Styling */
.logo-corner {
    height: 180px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-corner:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 25px rgba(107, 114, 128, 0.5));
}

/* Small Navigation Tab Styling */
#navbar {
    opacity: 0.9;
    transition: all 0.3s ease;
}

#navbar:hover {
    opacity: 1;
    transform: scale(1.02);
}

.nav-link-small {
    font-weight: 500;
    font-size: 0.875rem;
    position: relative;
}

.nav-link-small:hover {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.nav-link {
    position: relative;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.logo-image:hover {
    transform: translateY(-10px) scale(1.05);
    animation: flash-glow 0.6s ease-in-out infinite alternate;
}

@keyframes flash-glow {
    0% {
        filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    100% {
        filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 35px rgba(255, 255, 255, 0.6));
    }
}

/* Hover Effects */
.hover-effect {
    transition: transform 0.3s ease, color 0.3s ease;
}

.hover-effect:hover {
    transform: translateY(-5px);
}

/* Skill Tags */
.skill-tag {
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.skill-tag:hover::before {
    left: 100%;
}

/* Project Cards */
.project-card {
    border: 1px solid #374151;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

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

/* Social Links */
.social-link {
    text-align: center;
    position: relative;
    transition: transform 0.05s ease;
    z-index: 1;
}

.social-link:hover {
    transform: translateY(-8px) scale(1.05) !important;
    z-index: 10 !important;
}

.social-link::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.social-link:hover::before {
    width: 100%;
}

/* Social media icons in contact section - specific targeting */
#contact .flex.justify-center.space-x-8 {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Remove default space-x spacing for social icons since we'll use gap */
#contact .flex.justify-center.space-x-8 > * + * {
    margin-left: 0 !important;
}

/* Set consistent spacing with gap */
#contact .flex.justify-center.space-x-8 {
    gap: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-image {
        height: 120px;
    }
    
    .pixel-text {
        font-size: 2.5rem !important;
    }
    
    .social-link {
        flex: 0 0 auto; /* Prevent flex items from growing/shrinking */
    }
    
    .skill-tag {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.slide-left {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-left.fade-in {
    transform: translateX(0);
}

.animate-on-scroll.slide-right {
    transform: translateX(50px);
}

.animate-on-scroll.slide-right.fade-in {
    transform: translateX(0);
}

.animate-on-scroll.scale {
    transform: scale(0.8);
}

.animate-on-scroll.scale.fade-in {
    transform: scale(1);
}

/* Staggered animation for multiple elements */
.animate-on-scroll.delay-1 {
    transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
    transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
    transition-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
    transition-delay: 0.4s;
}

.animate-on-scroll.delay-5 {
    transition-delay: 0.5s;
}

/* Loading Animation (Legacy) */
.loading {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Matrix Rain Effect (Optional Easter Egg) */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

/* Animated About Me Header */
.animated-header {
    position: relative;
    background: linear-gradient(45deg, #ef4444, #dc2626, #f87171, #ef4444);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradient-text 3s ease infinite, float-header 4s ease-in-out infinite;
    text-shadow: none;
}

.animated-header::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -10px;
    right: -10px;
    bottom: -5px;
    background: linear-gradient(45deg, #ef4444, #dc2626, #f87171, #ef4444);
    background-size: 400% 400%;
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    animation: gradient-border 3s ease infinite;
}

.animated-header:hover::before {
    opacity: 0.3;
}

/* Float Header Animation */
.float-header {
    animation: float-header 4s ease-in-out infinite;
}

@keyframes gradient-text {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes gradient-border {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes float-header {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Pulse Icon Animation */
.pulse-icon {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% {
        color: #ef4444;
        text-shadow: 0 0 5px #ef4444;
    }
    100% {
        color: #dc2626;
        text-shadow: 0 0 15px #dc2626, 0 0 20px #dc2626;
    }
}

/* Professional Hero Button Styling */
.hero-btn {
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
                0 4px 16px rgba(107, 114, 128, 0.2);
}

/* Remove backdrop filter from hero buttons */
.hero-no-bg .hero-btn {
    backdrop-filter: none !important;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.hero-btn:hover::before {
    left: 100%;
}

/* Enhanced sections with professional appeal */
section {
    position: relative;
    backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Remove ALL background from hero section */
.hero-no-bg {
    background: none !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.hero-no-bg::before,
.hero-no-bg::after {
    display: none !important;
}

/* Also remove any blur from hero content */
.hero-no-bg .hero-btn {
    backdrop-filter: none !important;
}

.hero-no-bg h1,
.hero-no-bg div {
    backdrop-filter: none !important;
    background: none !important;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.08) 0%, rgba(75, 85, 99, 0.08) 50%, rgba(55, 65, 81, 0.08) 100%);
    border-radius: 24px;
    pointer-events: none;
    z-index: -1;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    /* Navigation adjustments */
    #navbar .hidden {
        display: none !important;
    }
    
    .logo-corner {
        height: 100px !important;
    }
    
    /* Move logo more to the left on mobile */
    .fixed.top-4.left-4 {
        left: 0.5rem !important; /* Move from 1rem to 0.5rem (more to the left) */
    }
    
    /* Remove any remaining blur on mobile */
    .hero-no-bg,
    .hero-no-bg * {
        backdrop-filter: none !important;
        background: none !important;
    }
    
    /* Hero section adjustments */
    .pixel-text {
        font-size: 2.5rem !important;
        line-height: 1.2;
        margin-bottom: 2rem !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    /* Button adjustments for mobile */
    .flex.justify-center.flex-wrap.gap-4 {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .hero-btn {
        width: 90%;
        max-width: 350px;
        text-align: center;
        padding: 1.2rem 2rem;
        font-size: 1.2rem;
        backdrop-filter: none !important;
    }
    
    /* Section spacing for mobile */
    section {
        margin-bottom: 8rem !important;
        padding: 2.5rem !important;
    }
    
    /* Skills tags for mobile */
    .skill-tag {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    /* Social links for mobile - specific to contact section */
    #contact .flex.justify-center.space-x-8 {
        gap: 1.5rem;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }
    
    /* Remove individual margins on mobile since we use gap */
    #contact .social-link {
        margin: 0 !important;
    }
    
    .social-link i {
        font-size: 2rem !important;
    }
    
    /* Improve text readability on mobile */
    .text-gray-300 {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Logo container blur effect mobile optimization */
    #logo-container {
        backdrop-filter: blur(4px) !important;
    }
}

@media (max-width: 480px) {
    .pixel-text {
        font-size: 2rem !important;
    }
    
    .logo-corner {
        height: 100px !important;
    }
    
    /* Better mobile spacing - more distance between logo and nav */
    #navbar {
        top: 0.75rem !important;
        right: 0.75rem !important;
    }
    
    .fixed.top-4.left-4 {
        top: 0.75rem !important;
        left: 0.5rem !important; /* Consistent with mobile positioning */
    }
    
    /* Make nav much smaller and more compact on mobile */
    #navbar .bg-gradient-to-r {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.625rem !important;
        border-radius: 0.375rem !important;
    }
    
    #navbar .space-x-4 > * + * {
        margin-left: 0.375rem !important;
    }
    
    /* Hide text on mobile, show only icons */
    @media (max-width: 400px) {
        .nav-link-small {
            font-size: 0 !important;
        }
        
        .nav-link-small i {
            font-size: 0.75rem !important;
            margin: 0 !important;
        }
        
        .text-gray-600 {
            display: none !important;
        }
        
        #navbar .space-x-4 > * + * {
            margin-left: 0.25rem !important;
        }
    }
    
    #navbar .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    #navbar .py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* Additional beautiful animations */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.shimmer-effect {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
}

/* Glitch effect for special elements */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch:hover::before {
    animation: glitch-1 0.5s ease infinite;
    color: #ef4444;
    z-index: -1;
}

.glitch:hover::after {
    animation: glitch-2 0.5s ease infinite;
    color: #10b981;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 14%, 15%, 49%, 50%, 99%, 100% { transform: translate(0, 0); opacity: 0; }
    1%, 13%, 16%, 48%, 51%, 98% { transform: translate(-2px, 1px); opacity: 0.7; }
}

@keyframes glitch-2 {
    0%, 20%, 21%, 62%, 63%, 99%, 100% { transform: translate(0, 0); opacity: 0; }
    1%, 19%, 22%, 61%, 64%, 98% { transform: translate(2px, -1px); opacity: 0.7; }
}

/* Professional pulsing background effects for sections */
.pulse-bg {
    animation: pulse-background-professional 6s ease infinite;
}

@keyframes pulse-background-professional {
    0%, 100% { 
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 
                    0 4px 16px rgba(0, 0, 0, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 
                    0 6px 20px rgba(107, 114, 128, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

/* Professional hover effects for sections */
section:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                0 8px 24px rgba(107, 114, 128, 0.2);
}

/* Custom Medium button styling - guaranteed to work without Tailwind */
.medium-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(to right, #059669, #2563eb) !important; /* green-600 to blue-600 */
    color: white !important;
    padding: 1rem 2rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    transform: translateY(0);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.medium-btn:hover {
    background: linear-gradient(to right, #10b981, #3b82f6) !important; /* green-500 to blue-500 */
    transform: translateY(-0.25rem) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    color: white !important;
}

.medium-btn i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.medium-btn i:last-child {
    margin-left: 0.5rem;
    margin-right: 0;
}


