/* Custom CSS Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #059669;
    --accent-color: #7c3aed;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --border-color: #e2e8f0;
}

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

/* Loading styles */
#loading-indicator {
    transition: opacity 0.5s ease-in-out;
}

#loading-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Gradient background */
.gradient-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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

/* Enhanced card hover effects */
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.stat-card::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;
}

.stat-card:hover::before {
    left: 100%;
}

.value-card {
    transition: all 0.3s ease;
    position: relative;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Navigation styles */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Section animations */
.section-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Tech stack grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tech-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

/* Tech Stack Specific Styles */
.tech-stack-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.tech-stack-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tech-benefits-grid .benefit-card {
    position: relative;
    overflow: hidden;
}

.tech-benefits-grid .benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Tech Stack Table Enhancements */
.tech-table-row {
    transition: all 0.2s ease;
}

.tech-table-row:hover {
    background: linear-gradient(90deg, #f8fafc, #f1f5f9);
    transform: translateX(2px);
}

.tech-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin: 1px 2px;
}

/* Architecture Highlights */
.architecture-card {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.architecture-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.architecture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Stats Cards */
.stat-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.2);
}

/* Roadmap styles */
.roadmap-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.roadmap-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #2563eb, #059669);
    border-radius: 2px;
}

.roadmap-item::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 1rem;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid #2563eb;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.roadmap-item.completed::after {
    background: #059669;
    border-color: #059669;
}

.roadmap-item.in-progress::after {
    background: #d97706;
    border-color: #d97706;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-complete {
    background-color: #d1fae5;
    color: #065f46;
}

.status-progress {
    background-color: #fef3c7;
    color: #92400e;
}

.status-pending {
    background-color: #e5e7eb;
    color: #374151;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .stat-card {
        padding: 1.5rem;
    }
    
    .value-card {
        padding: 1.5rem;
    }
    
    .tech-card {
        padding: 1.5rem;
    }
    
    .roadmap-item {
        padding-left: 2rem;
        margin-bottom: 2rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .stat-card,
    .value-card,
    .tech-card {
        border: 2px solid #000;
    }
    
    .gradient-bg {
        background: #000 !important;
        color: #fff !important;
    }
}
