/* Modern Portfolio CSS with Bootstrap 5 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

/* Root Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    
    --font-family-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-monospace: 'JetBrains Mono', Consolas, 'Courier New', monospace;
    
    --border-radius: 0.5rem;
    --border-radius-sm: 0.25rem;
    --border-radius-lg: 1rem;
    
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Base Styles */
body {
    font-family: var(--font-family-sans-serif);
    line-height: 1.6;
    color: var(--dark-color);
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%) !important;
    position: relative;
    overflow: hidden;
    color: white !important;
    min-height: 100vh;
}

.hero-section,
.hero-section *,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.hero-section p,
.hero-section span,
.hero-section div {
    color: white !important;
}

.hero-section .text-light {
    color: rgba(255, 255, 255, 0.9) !important;
}

.hero-section .text-warning {
    color: #ffc107 !important;
}

.hero-section .text-white {
    color: #ffffff !important;
}

/* Bootstrap override for hero section */
.hero-section.text-white,
.hero-section .text-white {
    color: #ffffff !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="500" cy="200" r="200" fill="url(%23a)"/><circle cx="800" cy="600" r="150" fill="url(%23a)"/><circle cx="200" cy="700" r="100" fill="url(%23a)"/></svg>');
    pointer-events: none;
}

.profile-img {
    border: 4px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

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

.quote-container {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn {
    transition: all 0.3s ease;
    border-width: 2px;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.text-gradient {
    background: linear-gradient(45deg, #fff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Cards */
.card {
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
    border: none;
}

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

.card-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Badges */
.badge {
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

/* Social Links */
.social-links .btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--white-color);
    box-shadow: 0 0 0 3px var(--primary-color);
}

/* Section Titles */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--info-color));
    border-radius: 2px;
}

/* Skills Section */
.tool-item {
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-item:hover {
    background-color: var(--light-color);
    transform: translateY(-2px);
}

/* Hover Cards */
.hover-card {
    transition: all 0.3s ease;
    border-radius: var(--border-radius-lg);
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.hover-card:hover .icon-box {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.1);
}

/* Certifications */
.cert-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(45deg, var(--primary-color), var(--info-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    margin: 0.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cert-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Statistics */
.stat-card {
    text-align: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Background Gradients */
.bg-gradient {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%) !important;
    color: white !important;
}

.bg-gradient * {
    color: white !important;
}

.bg-gradient .text-light {
    color: rgba(255, 255, 255, 0.9) !important;
}

.bg-gradient .text-warning {
    color: #ffc107 !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6f42c1 100%);
}

/* Utilities */
.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.min-vh-100 {
    min-height: 100vh !important;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* Loading Animation */
body.loaded {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .bg-light {
        background-color: #1a202c !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section .display-2 {
        font-size: 2.5rem;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
    }
    
    .social-btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section .display-2 {
        font-size: 2rem;
    }
    
    .hero-section .fs-3 {
        font-size: 1.5rem !important;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Navbar scrolled state */
.navbar-scrolled {
    background-color: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Print Styles */
@media print {
    .navbar,
    .social-links,
    .back-to-top {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: #000 !important;
    }
    
    .hero-section * {
        color: #000 !important;
    }
}

/* Project Cards */
.project-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
}

.project-card .badge {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Smooth Scrolling Enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Mobile Improvements */
@media (max-width: 768px) {
    .project-card {
        margin-bottom: 1.5rem;
    }
    
    .hero-section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Loading Animation */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

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

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--info-color));
    z-index: 9999;
    transition: width 0.25s ease-out;
}
