/* style.css */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation section */
.navbar {
    background-color: var(--primary-color);
    padding: 15px 0;
    transition: all 0.3s;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s;
    position: relative;
}

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

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

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

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: white;
    transition: all 0.3s;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: white;
    left: 0;
    transition: all 0.3s;
}

.navbar-toggler-icon::before {
    transform: translateY(-6px);
}

.navbar-toggler-icon::after {
    transform: translateY(6px);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
}

.contact-item {
    display: inline-block;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-color);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    background-size: cover;
    background-position: center;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: white;

}

.section-title {
     font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.profile-image-container {
    position: relative;
    height: 100%;
    min-height: 300px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-image-placeholder {
    color: var(--text-color);
    font-size: 1.2rem;
}

/* Profile Image Styling */
.profile-image-placeholder img {
    width: 100%;                
    height: 100%;               
    object-fit: cover;          
    object-position: center;    
    display: block;             
    transition: transform 0.3s ease;
}
.about-text {
    margin-bottom: 20px;
}

.skills-list {
    margin-top: 20px;
}

.skills-list h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.skills-list ul {
    padding-left: 20px;
}

.skills-list li {
    margin-bottom: 8px;
    position: relative;
}

.skills-list li::before {
    content: '•';
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Portfolio section */

/* Portfolio Image Container */
.portfolio-image-container {
    height: 200px;
    background-color: #f5f5f5; 
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Actual Image Styling */
.portfolio-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Hover Effects */
 .portfolio-item:hover .portfolio-image-container img {
    transform: scale(1.05);
} 

/* Overlay Effect */
.portfolio-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
} 

.portfolio-item:hover .portfolio-image-container::before {
    opacity: 1;
}

/* Hide the placeholder */
.portfolio-image-placeholder {
    display: none;
}

/* Contact Section */

.contact-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: white;
    position: relative;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    color: var(--text-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--primary-color);
}

.form-control {
    border-radius: 4px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(231, 76, 60, 0.25);
}

.contact-info {
    margin-top: 40px;
}

.contact-icon {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

/* Footer section */

#social-networks {
    text-align: center;
    padding: 20px 0;
    display: flex;
    justify-content: space-evenly;
    list-style-type: none;
}

#social-networks i {
    font-size: 160%;
    padding: 5%;
    color: #ff2b2b;

}

.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* Buttons */
.btn {
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color-darker);
    padding: 12px 30px;
}

.btn-primary:hover {
    background-color: #c0392b;
    border-color: #a03124;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 10px 25px;
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2.1rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .about-section, .portfolio-section, .contact-section {
        padding: 70px 0;
    }
    
    .profile-image-container {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 70px 0;
    }
    
    .hero-title {
        font-size: 1.9rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-section, .portfolio-section, .contact-section {
        padding: 60px 0;
    }
    
    .portfolio-item {
        margin-bottom: 25px;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .about-section, .portfolio-section, .contact-section {
        padding: 50px 0;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

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

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Make all links white on dark backgrounds */
.navbar-dark .nav-link,
.navbar-dark .navbar-brand,
.navbar-dark .contact-item a,
.footer a  {
    color: white !important;
}

/* Make social media icons white */
#social-networks i {
    color: white !important;
}

/* Force white color for all header links */
.navbar-dark .contact-item a,
.navbar-dark .contact-item a:hover,
.navbar-dark .contact-item a:focus {
    color: white !important;
    text-decoration: underline;
}

/* Override Bootstrap's default link colors */
.navbar-dark a:not(.btn) {
    color: white !important;
}

/* Remove all pseudo-element effects */
.nav-link::after {
    display: none !important;
}

/* change contact icons colour to white  */
.fas.contact-icon {
    color: white;
}