:root {
    /* Modern Professional Color Palette - Tech/Data Science Theme */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --accent-color: #14b8a6;
    --accent-dark: #0d9488;
    --secondary-color: #64748b;
    --dark-color: #0f172a;
    --dark-lighter: #1e293b;
    --light-bg: #f8fafc;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Gradient Combinations */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #14b8a6 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(20, 184, 166, 0.05));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-color);
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/*                                                                             
   ENHANCED NAVIGATION
                                                                                */
.navbar {
    padding: 1rem 0;
    background: var(--gradient-dark) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
    font-weight: 800;
    position: relative;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-light) !important;
    background: rgba(99, 102, 241, 0.1);
}

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

/*                                                                             
   EXTRAORDINARY HERO SECTION
                                                                                */
.hero-section {
    background: var(--gradient-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    animation: heroGlow 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
    animation: heroGlow 20s ease-in-out infinite reverse;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
    50% { transform: translate(20px, -20px) scale(1.1); opacity: 0.8; }
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.hero-section .text-primary {
    color: var(--accent-color) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400;
    font-size: 1.25rem;
}

/* Enhanced Stat Boxes */
.stat-box {
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-box:hover::before {
    transform: scaleX(1);
}

.stat-box:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.stat-box h3 {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-box p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/*                                                                             
   ENHANCED BUTTONS
                                                                                */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn-outline-dark,
.btn-outline-info,
.btn-outline-danger {
    border-width: 2px;
    font-weight: 600;
}

.btn-outline-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-info:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/*                                                                             
   SECTION STYLING
                                                                                */
.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    font-weight: 800;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin-top: 1rem;
    border-radius: 2px;
}

/*                                                                             
   ENHANCED CARDS
                                                                                */
.card {
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15) !important;
    border-color: rgba(99, 102, 241, 0.2);
}

/*                                                                             
   PROJECT CARDS - EXTRAORDINARY DESIGN
                                                                                */
.project-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: white;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    border-radius: 16px;
}

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

.project-card .card-body {
    position: relative;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.2) !important;
}

.project-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: 16px;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
}

.featured-project {
    border-left: 4px solid var(--primary-color) !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(20, 184, 166, 0.03));
}

.ribbon {
    position: absolute;
    top: 20px;
    right: -5px;
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    z-index: 10;
    border-radius: 4px 0 0 4px;
}

.ribbon::before {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid var(--primary-dark);
    border-bottom: 8px solid transparent;
}

/*                                                                             
   INFO ITEMS
                                                                                */
.info-item {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    border-left: 2px solid transparent;
    padding-left: 1rem;
    margin-left: -1rem;
    transition: all 0.3s ease;
}

.info-item:hover {
    border-left-color: var(--primary-color);
    padding-left: 1.5rem;
    background: rgba(99, 102, 241, 0.02);
}

.info-item i {
    width: 24px;
    text-align: center;
}

/*                                                                             
   BADGES - MODERN TECH STYLE
                                                                                */
.badge {
    padding: 0.6rem 1rem;
    font-weight: 600;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.badge.bg-light {
    background: var(--light-bg) !important;
    color: var(--dark-color) !important;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.badge.bg-light:hover {
    background: var(--gradient-primary) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.badge.bg-primary {
    background: var(--gradient-primary) !important;
}

.badge.bg-secondary {
    background: var(--gradient-dark) !important;
}

/*                                                                             
   CONTACT SECTION
                                                                                */
.contact-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-color);
}

.card:hover .contact-icon {
    transform: scale(1.15) rotate(5deg);
    color: var(--accent-color);
}

/*                                                                             
   SOCIAL LINKS - FLOATING EFFECT
                                                                                */
.social-links a {
    width: 65px;
    height: 65px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
}

.social-links a:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a i {
    position: relative;
    z-index: 1;
}

.social-links .btn-outline-primary:hover i,
.social-links .btn-outline-dark:hover i,
.social-links .btn-outline-info:hover i,
.social-links .btn-outline-danger:hover i {
    color: white;
}

/*                                                                             
   BACKGROUND SECTIONS
                                                                                */
.bg-light {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
}

section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 30%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/*                                                                             
   FOOTER
                                                                                */
footer {
    background: var(--gradient-dark);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

/*                                                                             
   SCROLL ANIMATIONS & MICRO-INTERACTIONS
                                                                                */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.card:hover .project-icon {
    animation: pulse 2s infinite;
}

/*                                                                             
   ACCESSIBILITY ENHANCEMENTS
                                                                                */
.btn:focus,
.nav-link:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 8px;
}

a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/*                                                                             
   RESPONSIVE ENHANCEMENTS
                                                                                */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }

    .stat-box {
        padding: 1.5rem 1rem;
    }

    .stat-box h3 {
        font-size: 2.2rem;
    }

    .project-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .social-links a {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .btn {
        padding: 0.65rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .stat-box h3 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
}

/*                                                                             
   ADVANCED VISUAL EFFECTS
                                                                                */

/* Glassmorphism effect for cards */
.card.shadow-sm {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Smooth list animations */
ul li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

ul li:hover {
    border-left-color: var(--primary-color);
    padding-left: 1rem;
}

/* Text selection color */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/*                                                                             
   PRINT STYLES
                                                                                */
@media print {
    .navbar,
    footer,
    .social-links {
        display: none;
    }

    .hero-section {
        background: white;
        color: black;
    }

    a {
        text-decoration: none;
        color: black;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
