body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #495057;
    background-color: #f8f9fa;
}

.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.75rem;
    color: #343a40 !important;
}

.navbar-brand:hover {
    color: #007bff !important;
}

.nav-link {
    color: #495057 !important;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff !important;
}

.nav-link.active {
    color: #007bff !important;
    font-weight: 600;
}

.jumbotron {
    background-color: #e9ecef;
    padding-top: 120px;
    padding-bottom: 100px;
    border-radius: 0;
}

.profile-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 7px solid #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.display-4 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #343a40;
}

.lead {
    font-size: 1.4rem;
    color: #6c757d;
}

#about {
    background-color: #fff;
    padding-top: 80px;
    padding-bottom: 80px;
}

#about img {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

#about img:hover {
    transform: scale(1.03);
}

#projects {
    background-color: #f8f9fa;
    padding-top: 80px;
    padding-bottom: 80px;
}

.project-card {
    transition: all 0.3s ease;
    margin-bottom: 30px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.project-card img {
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card .card-body {
    padding: 20px;
}

.project-card .card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #343a40;
}

.project-card .card-text {
    color: #6c757d;
}

.project-card .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: all 0.3s ease;
}

.project-card .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

#contact {
    background-color: #fff;
    padding-top: 80px;
    padding-bottom: 80px;
}

#contactForm .form-control {
    border-radius: 4px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease;
}

#contactForm .form-control:focus {
    border-color: #007bff;
    box-shadow: none;
}

#contactForm .btn-primary {
    background-color: #28a745;
    border-color: #28a745;
    transition: all 0.3s ease;
}

#contactForm .btn-primary:hover {
    background-color: #218838;
    border-color: #218838;
}

footer {
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 25px 0;
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #007bff;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #0056b3;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.jumbotron {
    animation: fadeIn 1s ease-out;
}

#about {
    animation: slideInLeft 1s ease-out;
}

#projects {
    animation: slideInRight 1s ease-out;
}

footer {
    animation: fadeIn 1s ease-out;
}

@media (max-width: 768px) {
    .jumbotron {
        padding-top: 100px;
        padding-bottom: 80px;
    }

    .display-4 {
        font-size: 2.8rem;
    }

    .lead {
        font-size: 1.3rem;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .project-card img {
        height: 180px;
    }
}
