/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body {
    background: #f8f9fa;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    background: #1f3b4d !important; /* Deep blue with priority */
    padding: 10px 0;
    z-index: 1000; /* Higher value to stay above */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Slight shadow for depth */
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
}
.navbar-brand {
    font-size: 24px;
    font-weight: 700;
    color: #f8f9fa;
    text-decoration: none;
}
.nav-links a {
    color: #f8f9fa !important;
    margin-left: 20px;
    text-decoration: none;
    font-size: 18px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}
.nav-links a:hover {
    border-bottom: 2px solid #f1c40f;
    color: #f1c40f;
}

/* Home Section */
#home {
    height: 100vh;
    background: linear-gradient(to right, #213e5a, #1f80e0);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 10%;
    animation: fadeIn 1.5s ease-in-out;
}

/* Fade-in Animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Home Content Animations */
.home-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    animation: fadeIn 1.5s ease-in-out;
}
.home-content p {
    font-size: 20px;
    margin-top: 10px;
    line-height: 1.6;
    color: #f0f0f0;
    animation: fadeIn 1.8s ease-in-out;
}
.profile-pic {
    height: 420px;
    width: 420px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(31, 128, 224, 0.6);
    transition: transform 0.3s ease;
    animation: fadeIn 2s ease-in-out;
}
.profile-pic:hover {
    transform: scale(1.05);
}

/* Button */
.btn {
    background: #f0b90b;
    color: #213e5a;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(31, 128, 224, 0.5);
    transition: 0.3s ease;
}
.btn:hover {
    background: #ffd700;
    transform: translateY(-3px);
}

/* Social Icons */
.social-icons a {
    color: #f0b90b;
    margin-right: 12px;
    font-size: 24px;
    transition: 0.3s ease;
}
.social-icons a:hover {
    color: white;
    transform: translateY(-3px);
}

/* About Me */
#about {
    background: #f8f9fa;
    padding: 100px 10%;
    text-align: center;
}
#about h2 {
    font-size: 40px;
    margin-bottom: 20px;
    color: #213e5a;
}
#about p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Skills */
#skills {
    background: #e5e5e5;
    padding: 100px 10%;
    text-align: center;
}
#skills h2 {
    font-size: 36px;
    margin-bottom: 20px;
}
.skill-bar {
    margin: 20px 0;
}
label {
    font-size: 18px;
    font-weight: bold;
}
.progress {
    background: #ddd;
    height: 30px;
    border-radius: 5px;
    overflow: hidden;
}
.progress-bar {
    background: #1f80e0;
    height: 100%;
    line-height: 30px;
    color: white;
    text-align: center;
}

/* Projects */
#projects {
    padding: 100px 10%;
    background: #f8f9fa;
    text-align: center;
}
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
}
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card h3 {
    margin: 15px 0;
    font-size: 22px;
}
.card p {
    font-size: 16px;
    color: #666;
}
.card:hover {
    transform: scale(1.05);
}
.card .btn {
    margin-top: auto;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}
.card .btn:hover {
    background-color: #0056b3;
}

/* Contact */
#contact {
    background: #213e5a;
    padding: 100px 10%;
    text-align: center;
    color: white;
}
#contact h2 {
    font-size: 36px;
    margin-bottom: 20px;
}
.form-control {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Footer */
footer {
    background: #213e5a;
    padding: 20px 0;
    text-align: center;
}
footer .social-icons a {
    color: white;
    margin: 0 10px;
    font-size: 24px;
    transition: 0.3s;
}
footer .social-icons a:hover {
    color: #1f80e0;
}/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .nav-links a {
        margin: 10px 0;
        width: 100%;
        text-align: left;
    }
    #home {
        flex-direction: column;
        text-align: center;
    }
    .profile-pic {
        margin-top: 20px;
        width: 80%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 20px;
    }
    .nav-links a {
        font-size: 16px;
    }
    .home-content h1 {
        font-size: 28px;
    }
    .home-content p {
        font-size: 16px;
    }
    .btn {
        padding: 8px 16px;
    }
    .profile-pic {
        width: 70%;
        height: auto;
    }
}
