/* =========================================
   Custom Portfolio Styles
   Professional but Approachable
   ========================================= */

/* Root Variables for Easy Color Customization */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004c99;
    --primary-light: #3385d6;
    --secondary-color: #28a745;
    --accent-color: #ff6b35;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-light);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Headings - Friendly but Professional */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
    margin-bottom: 1.5rem;
}

/* Links - More Inviting */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

    a:hover {
        color: var(--primary-dark);
        text-decoration: none;
    }

/* Navbar Customization */
.navbar {
    background-color: var(--bg-white) !important;
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    transition: transform 0.3s ease;
}

    .navbar-brand:hover {
        transform: scale(1.05);
    }

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .nav-link:hover {
        background-color: var(--bg-light);
        color: var(--primary-color) !important;
    }

    .nav-link.active {
        background-color: var(--primary-color);
        color: white !important;
    }

/* Cards - Modern and Friendly */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    background-color: var(--bg-white);
}

    .card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-hover);
    }

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.5rem;
}

.card-text {
    color: var(--text-light);
    font-size: 1rem;
}

/* Buttons - Approachable Style */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 102, 204, 0.2);
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 102, 204, 0.3);
    }

.btn-success {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2);
}

    .btn-success:hover {
        background-color: #218838;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
    }

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        color: white;
        transform: translateY(-2px);
    }

/* Badges - Pop of Color */
.badge {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    font-size: 0.85rem;
}

    .badge.bg-primary {
        background-color: var(--primary-color) !important;
    }

    .badge.bg-secondary {
        background-color: var(--text-light) !important;
    }

/* Featured Projects - Special Highlight */
.border-primary {
    border: 3px solid var(--primary-color) !important;
    position: relative;
}

    .border-primary::before {
        content: '';
        position: absolute;
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
        background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
        border-radius: var(--border-radius);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .border-primary:hover::before {
        opacity: 0.1;
    }

/* Page Headers */
.container > h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

    .container > h1::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
        border-radius: 2px;
    }

/* Section Headers */
h2.mb-3 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
}

/* Hero Section Styling */
.display-4 {
    color: var(--primary-color);
    font-weight: 700;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.8;
}

/* Alert Styling */
.alert {
    border-radius: var(--border-radius);
    border: none;
}

.alert-info {
    background-color: #e7f3ff;
    color: #004085;
}

.alert-danger {
    background-color: #ffe7e7;
    color: #721c24;
}

/* Breadcrumb Styling */
.breadcrumb {
    background-color: transparent;
    padding: 1rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    color: var(--text-light);
}

.breadcrumb-item a {
    color: var(--primary-color);
}

/* Carousel Customization */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 1.5rem;
}

.carousel-indicators button {
    background-color: var(--primary-color);
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 8px;
}

/* Footer Styling */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

    footer a {
        color: var(--primary-light);
    }

        footer a:hover {
            color: white;
        }

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container > h1 {
        font-size: 2.5rem;
    }

    .card {
        margin-bottom: 1.5rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .btn, .alert {
    animation: fadeIn 0.5s ease-out;
}

/* Icon Styling */
.bi {
    transition: transform 0.3s ease;
}

a:hover .bi,
button:hover .bi {
    transform: scale(1.1);
}

/* Tech Stack Badges on Home Page */
.badge.p-2 {
    font-size: 0.9rem;
    margin: 0.25rem;
    transition: all 0.3s ease;
}

    .badge.p-2:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

/* Project/Course Card Body Text */
.text-muted {
    color: var(--text-light) !important;
}

/* Sticky Elements */
.sticky-top {
    top: 20px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }

/* Loading State (Optional) */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print Styles */
@media print {
    .navbar, footer, .btn {
        display: none;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}
