/* Custom styles for the portfolio website */

/* Body and main layout */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.main-content {
    padding-top: 80px; /* Account for fixed navbar */
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bs-dark) 0%, var(--bs-gray-900) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(13, 110, 253, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.profile-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 4px solid var(--bs-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.3) !important;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-link.active {
    color: var(--bs-primary) !important;
    font-weight: 600;
}

/* Cards and Components */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

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

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Experience Timeline */
.experience-item {
    position: relative;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--bs-primary), var(--bs-secondary));
}

.experience-item::after {
    content: '';
    position: absolute;
    left: -38px;
    top: 30px;
    width: 18px;
    height: 18px;
    background: var(--bs-primary);
    border-radius: 50%;
    border: 3px solid var(--bs-body-bg);
    box-shadow: 0 0 0 3px var(--bs-primary);
}

.experience-item:last-child::before {
    display: none;
}

.experience-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
    border-radius: 6px;
}

/* Tab styling */
.nav-tabs {
    border-bottom: 2px solid var(--bs-border-color);
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    padding: 12px 24px;
    margin-bottom: 2px;
}

.nav-tabs .nav-link.active {
    background-color: var(--bs-primary);
    color: white;
    border-bottom: 2px solid var(--bs-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .experience-item::before,
    .experience-item::after {
        display: none;
    }
    
    .main-content {
        padding-top: 70px;
    }
}

@media (max-width: 576px) {
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
}

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

.card, .experience-item {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Footer */
footer {
    margin-top: auto;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* Print styles */
@media print {
    .navbar,
    footer {
        display: none;
    }
    
    .main-content {
        padding-top: 0;
    }
    
    .card {
        break-inside: avoid;
    }
}
