/* 
 * CSS Personalizzato per il sito DevOps Engineer
 * Design moderno e accattivante ottimizzato per Azure deployment
 */

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

/* Reset e Base Styles */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004499;
    --secondary-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 48px rgba(0,0,0,0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-hero: linear-gradient(135deg, #0066cc 0%, #004499 50%, #002266 100%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.7;
    color: var(--gray-800);
    padding-top: 80px;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

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

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

/* Navigation con design moderno */
.navbar {
    background: var(--bs-primary) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

/* Utility Classes */
.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Modern Navigation Styles */
.modern-nav {
    background: var(--primary-color) !important;
    padding: 0.75rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-height: 80px;
    z-index: 1000;
}

.modern-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.brand-icon {
    font-size: 1.8rem;
    margin-right: 0.75rem;
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.brand-text {
    font-weight: 600;
    letter-spacing: -0.5px;
}

.modern-nav-list {
    gap: 1rem;
    align-items: center;
}

.modern-nav-link {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem !important;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(214, 36, 36, 0.85) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    min-width: 85px;
    position: relative;
    background: transparent;
}

.nav-icon-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 0.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-icon-container i {
    font-size: 1.3rem;
    color: white;
    transition: all 0.3s ease;
}

.nav-text {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

/* Hover Effects */
.modern-nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.modern-nav-link:hover .nav-icon-container {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modern-nav-link:hover .nav-icon-container i {
    color: #FFD700;
}

/* Active State */
.modern-nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
}

.modern-nav-link.active .nav-icon-container {
    background: #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.modern-nav-link.active .nav-icon-container i {
    color: var(--primary-color);
}

.modern-nav-link.active .nav-text {
    color: #FFD700;
    font-weight: 600;
}

/* Brand Hover */
.modern-brand:hover {
    transform: scale(1.05);
}

.modern-brand:hover .brand-icon {
    background: rgba(255, 215, 0, 0.2);
    transform: rotate(5deg);
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    .modern-nav-list {
        gap: 0.5rem;
        padding-top: 1rem;
    }
    
    .modern-nav-link {
        flex-direction: row;
        justify-content: flex-start;
        min-width: auto;
        padding: 0.75rem 1rem !important;
    }
    
    .nav-icon-container {
        width: 35px;
        height: 35px;
        margin-bottom: 0;
        margin-right: 0.75rem;
    }
    
    .nav-icon-container i {
        font-size: 1.1rem;
    }
    
    .nav-text {
        font-size: 0.95rem;
    }
}

/* Navbar Scrolled State */
.navbar-scrolled {
    background: var(--bs-primary) !important;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    transition: all 0.3s ease;
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    font-weight: 500;
    color: rgba(255,255,255,0.9) !important;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    margin: 0 0.25rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
}

/* Navbar Toggle Button */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Navigation Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-link {
        text-align: center;
        margin: 0.25rem 0;
        border-radius: 8px;
    }
    
    .navbar-nav {
        gap: 0;
    }
}

/* Hero Section ultra-moderna */
.hero-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    padding-top: 2rem;
    padding-bottom: 2rem;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(40, 167, 69, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(23, 162, 184, 0.1) 0%, transparent 50%);
    animation: gradientShift 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-width="0.05" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

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

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff, #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-content .lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-badges {
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-badges .badge {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.hero-badges .badge::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;
}

.hero-badges .badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

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

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-image i {
    color: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

/* Animazioni moderne e fluide */
.animate-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.animate-fade-in-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.animate-slide-in {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

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

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(2deg);
    }
    66% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 102, 204, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 102, 204, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 102, 204, 0.6);
    }
}

.animated {
    animation-fill-mode: both;
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-icons i {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.floating-icon-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon-2 {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.floating-icon-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

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

/* Cards moderne con glassmorphism */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
}

.hover-card {
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.95);
}

.card-header {
    background: var(--gradient-primary) !important;
    border: none;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0 !important;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

.card-header h4 {
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-body {
    padding: 2rem;
}

.card-icon {
    transition: var(--transition-base);
    display: inline-block;
}

.hover-card:hover .card-icon i {
    transform: scale(1.2) rotateY(10deg);
    animation: glow 2s infinite;
}

.card-title {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--gray-700);
    line-height: 1.6;
}

/* Bottoni moderni e accattivanti */
.btn {
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    border: none;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
    background: var(--gradient-primary);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #e0a800);
    color: var(--dark-color);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    color: var(--dark-color);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.btn-outline-info{
    border: 2px solid var(--info-color);
    color: var(--info-color);
    background: transparent;
    backdrop-filter: blur(10px);
}

.btn-outline-info:hover {
    background: var(--info-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.3);
}

.btn-outline-success{
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
    backdrop-filter: blur(10px);
}

.btn-outline-success:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
    outline: none;
}

/* Skills e Progress Bars moderne */
.skill-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-base);
}

.skill-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-lg);
}

.progress {
    background: rgba(233, 236, 239, 0.5);
    border-radius: 50px;
    overflow: hidden;
    height: 12px;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar {
    border-radius: 50px;
    position: relative;
    background: var(--gradient-primary);
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1.5rem 1.5rem;
    animation: progress-bar-stripes 2s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position-x: 1.5rem;
    }
}

.endorsements {
    font-style: italic;
    padding: 0.5rem;
    background: rgba(0, 102, 204, 0.1);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.badge {
    font-weight: 600;
    padding: 0.6em 1em;
    border-radius: var(--border-radius);
    font-size: 0.85em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

/* Tech Items con effetti moderni */
.tech-item {
    transition: var(--transition-base);
    cursor: pointer;
    padding: 2rem 1rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-item:hover {
    transform: scale(1.1) rotateY(5deg);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.tech-item:hover i {
    animation: bounce 1s infinite;
    color: var(--warning-color) !important;
}

/* Portfolio Cards moderne */
.project-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-base);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.95);
}

.project-status .badge {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Form Controls */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid rgba(0, 0, 0, 0.1);
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition-base);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
    background: white;
    transform: translateY(-2px);
}

/* Timeline moderna */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1rem;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.3);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.2rem;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    background: var(--gradient-primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color), 0 0 15px rgba(0, 102, 204, 0.3);
    animation: pulse 2s infinite;
}

/* Achievement Cards */
.achievement-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    transition: var(--transition-base);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.achievement-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.95);
}

/* Certification Cards */
.certification-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.certification-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.95);
}

.cert-icon {
    margin-bottom: 1.5rem;
}

.cert-icon i {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: var(--transition-base);
}

.certification-card:hover .cert-icon i {
    transform: scale(1.1) rotateY(10deg);
}

/* Social Links */
.social-links a {
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 193, 7, 0.9);
    color: var(--dark-color) !important;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

/* Floating Elements */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icons i {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 3rem;
    animation: float 8s ease-in-out infinite;
}

.floating-icon-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon-2 {
    top: 65%;
    right: 15%;
    animation-delay: 2.5s;
}

.floating-icon-3 {
    bottom: 25%;
    left: 15%;
    animation-delay: 5s;
}

/* Error Pages */
.error-icon {
    animation: shake 2s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Loading States */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Section Backgrounds */
.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* Footer */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero-actions {
        justify-content: center;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .navbar-nav {
        gap: 0;
        text-align: center;
        padding: 1rem 0;
    }
    
    .nav-link {
        margin: 0.25rem 0;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
    
    .hero-section {
        text-align: center;
        padding: 2rem 0;
        min-height: calc(100vh - 80px);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .floating-icons {
        display: none;
    }
    
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline::before {
        left: 0.5rem;
    }
    
    .timeline-item {
        margin-left: 0.5rem;
    }
    
    .timeline-item::before {
        left: -1.7rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .skill-item {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    footer,
    .btn,
    .floating-icons {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        font-size: 12pt;
        line-height: 1.4;
        background: white !important;
    }
    
    .container {
        max-width: 100%;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        background: white !important;
        page-break-inside: avoid;
    }
}

/* Profile Image Styles */
.profile-image-container {
    position: relative;
    display: inline-block;
}

.profile-image-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--warning-color), var(--info-color));
    z-index: -1;
    animation: profile-glow 3s ease-in-out infinite alternate;
}

.profile-hero-container img {
    transition: var(--transition-base);
    animation: profile-float 6s ease-in-out infinite;
}

.profile-hero-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,102,204,0.3);
}

@keyframes profile-glow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

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

/* ===== PORTFOLIO STYLES ===== */

/* Portfolio Hero Section */
.portfolio-hero {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        #667eea 50%, 
        #764ba2 100%);
    box-shadow: 0 20px 60px rgba(0, 102, 204, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(255, 193, 7, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* Portfolio Section Titles */
.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
    position: relative;
    overflow: hidden;
}

.icon-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

.title-decoration {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
    margin: auto 0;
}

/* Modern Project Cards */
.project-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-color), 
        #667eea, 
        #764ba2, 
        var(--warning-color));
    transition: height 0.3s ease;
}

.project-card:hover::before {
    height: 6px;
}

.project-card:hover {
    transform: translateY(-15px) rotateY(3deg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

.project-card-inner {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Project Header */
.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.project-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-right: 1rem;
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotateY(15deg);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.3);
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
    background: linear-gradient(135deg, var(--gray-800), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Project Body */
.project-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-description {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Tech Stack Badges */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-badge {
    background: linear-gradient(135deg, 
        rgba(0, 102, 204, 0.1), 
        rgba(102, 126, 234, 0.1));
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(0, 102, 204, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-badge:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

/* Achievements Section */
.achievements-section {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.achievements-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.achievements-title i {
    color: var(--warning-color);
    margin-right: 0.5rem;
}

.achievements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievement-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-size: 0.85rem;
    line-height: 1.5;
}

.achievement-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Project Footer */
.project-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.project-status {
    display: flex;
    justify-content: flex-end;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
}

.status-completed {
    background: linear-gradient(135deg, 
        rgba(40, 167, 69, 0.1), 
        rgba(40, 167, 69, 0.2));
    color: var(--success-color);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

/* Portfolio Stats */
.stats-container {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9), 
        rgba(248, 250, 255, 0.9));
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.stats-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 102, 204, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.stats-header h3 {
    background: linear-gradient(135deg, var(--gray-800), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stat Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotateY(15deg);
}

.stat-primary .stat-icon {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
}

.stat-success .stat-icon {
    background: linear-gradient(135deg, var(--success-color), #20c997);
}

.stat-warning .stat-icon {
    background: linear-gradient(135deg, var(--warning-color), #fd7e14);
}

.stat-info .stat-icon {
    background: linear-gradient(135deg, var(--info-color), #6f42c1);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--gray-800), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.stat-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 0 0 20px 20px;
    transition: height 0.3s ease;
}

.stat-primary .stat-decoration {
    background: linear-gradient(90deg, var(--primary-color), #667eea);
}

.stat-success .stat-decoration {
    background: linear-gradient(90deg, var(--success-color), #20c997);
}

.stat-warning .stat-decoration {
    background: linear-gradient(90deg, var(--warning-color), #fd7e14);
}

.stat-info .stat-decoration {
    background: linear-gradient(90deg, var(--info-color), #6f42c1);
}

.stat-card:hover .stat-decoration {
    height: 8px;
}

/* Responsive Portfolio */
@media (max-width: 768px) {
    .portfolio-hero {
        margin: 0 1rem;
    }
    
    .project-card-inner {
        padding: 1.5rem;
    }
    
    .project-header {
        flex-direction: column;
        text-align: center;
    }
    
    .project-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .tech-stack {
        justify-content: center;
    }
    
    .stats-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}
