/* Tech-savvy styles for Zeecode website - Minimal JavaScript approach */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Grid pattern background */
.bg-grid-pattern {
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Tech button styles */
.tech-button {
    position: relative;
    overflow: hidden;
}

.tech-button::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 ease;
}

.tech-button:hover::before {
    left: 100%;
}

.tech-button-outline {
    position: relative;
    background: rgba(59, 130, 246, 0.05);
    backdrop-filter: blur(10px);
}

.tech-button-outline:hover {
    background: rgba(59, 130, 246, 0.9);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* Tech card hover effects */
.tech-card {
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.tech-card:hover {
    transform: translateY(-4px);
}

/* Mobile menu animation - CSS only */
#mobile-menu {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 300px;
}

/* Navigation active state - simplified */
.nav-link:hover, .mobile-nav-link:hover {
    color: #3b82f6 !important;
    font-weight: 600;
}

/* Form focus states */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

/* Back to top - CSS only, no JavaScript needed */
.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Show back to top when scrolled - CSS only using :target */
html:not([data-scroll="0"]) .back-to-top {
    opacity: 1;
    visibility: visible;
}

/* Alternative: Show back to top on scroll using viewport */
@media (min-height: 800px) {
    .back-to-top {
        opacity: 1;
        visibility: visible;
    }
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Terminal-style elements */
.terminal-window {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Gradient text effects */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Code syntax highlighting */
.code-snippet {
    background: #1e293b;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
}

.code-snippet .keyword { color: #f59e0b; }
.code-snippet .string { color: #10b981; }
.code-snippet .comment { color: #6b7280; }
.code-snippet .function { color: #3b82f6; }

/* Loading animation for form */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Success message animation */
#form-success {
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tech stack badges */
.tech-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    border: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.05);
    transition: all 0.2s ease;
}

.tech-badge:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.05);
}

/* Navbar scroll effect - CSS only */
#navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #3b82f6, #06b6d4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #1d4ed8, #0891b2);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .tech-card {
        margin-bottom: 1rem;
    }
    
    .terminal-window {
        font-size: 0.75rem;
    }
    
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
}

/* Dark mode terminal styling */
.terminal-bg {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Remove all complex animations to minimize JavaScript dependencies */
.no-js-animation {
    animation: none !important;
    transition: none !important;
}

/* Focus styles for accessibility */
button:focus, a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Tech-focused color scheme */
:root {
    --primary-blue: #3b82f6;
    --primary-cyan: #06b6d4;
    --dark-bg: #0f172a;
    --tech-green: #10b981;
    --code-bg: #1e293b;
}

/* Status indicators */
.status-online {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Modern card designs */
.modern-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.modern-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}