/* Custom Styles for Riyad's Portfolio */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 76px; /* For fixed navbar */
    background-color: #f8f9fa;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
}

.profile-picture {
    max-width: 300px;
    margin: 0 auto;
    border: 5px solid white;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.profile-picture img {
    width: 100%;
    height: auto;
}

/* Section Styling */
.section-padding {
    padding: 60px 0;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

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

/* Skill Tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateX(10px);
}

/* Education Icons */
.education-icon {
    text-align: center;
    margin-top: 20px;
    opacity: 0.7;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 60px 0;
    }

    .profile-picture {
        max-width: 200px;
        margin-bottom: 30px;
    }

    .section-padding {
        padding: 40px 0;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-item i {
        margin-bottom: 10px;
        margin-right: 0;
    }
}

/* Animation for section entry */
section {
    animation: fadeIn 1s ease-in;
}

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

/* Badge customization */
.badge {
    font-size: 0.8rem;
    padding: 5px 10px;
    margin-right: 5px;
}

/* List styling */
.list-group-item {
    border: none;
    padding-left: 0;
}

/* Footer */
footer {
    background-color: #000 !important;
}
