/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Font */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth; /* Smooth scrolling */
}

a {
    text-decoration: none;
}

/* Navbar */
.navbar {
    background-color: #343a40;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: navbarSlideIn 1s ease-out;
}

@keyframes navbarSlideIn {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff !important;
}

.navbar-nav .nav-link {
    color: #dcdcdc !important;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: scale(1.1);
}

/* Hero Section */
#about {
    padding: 100px 0;
    background: #343a40;
    color: #fff;
    opacity: 0;
    animation: fadeInSection 1.5s ease-out forwards;
}

#about h2, #about p {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s ease-out forwards;
}

#about h2 {
    animation-delay: 0.3s;
}

#about p {
    animation-delay: 0.5s;
}

#about img {
    border-radius: 50%;
    width: 250px;
    height: 250px;
    object-fit: cover;
    margin-bottom: 30px;
    animation: scaleIn 2s ease-in-out forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeInSection {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skills Section */
#skills {
    padding: 80px 0;
    background: #f1f1f1;
}

#skills h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out forwards;
}

.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    perspective: 1000px;
}

.card:hover {
    transform: rotateY(15deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.card-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
}
  .project-card {
    position: relative;
    width: 300px;
    height: 400px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

/* Projects Section */
.project-section {
    padding: 50px;
    background-color: #f8f8f8;
  }
  
  .project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  
  .project-card {
    position: relative;
    width: 300px;
    height: 400px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
  }
  
  .project-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  
  .project-card:hover img {
    transform: scale(1.05);
  }
  
  .project-card:hover .overlay {
    opacity: 1;
  }
  

/* Contact Section */
#contact {
    padding: 80px 0;
    background: #f1f1f1;
}

#contact h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out forwards;
}

.form-control {
    margin-bottom: 20px;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid #ccc;
}

.form-control:focus {
    border-color: #343a40;
}

.btn {
    background: #343a40;
    color: #fff;
    font-size: 1.2rem;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #17a2b8;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-shadow: 0 0 5px #fff;
}

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 10px 20px;
    background-color: #343a40;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

#backToTop:hover {
    background-color: #17a2b8;
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    padding: 40px 0;
    background-color: #343a40;
    color: #fff;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

/* Scroll Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeInSection {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Font */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth; /* Smooth scrolling */
}

a {
    text-decoration: none;
}

/* Navbar */
.navbar {
    background-color: #343a40;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: navbarSlideIn 1s ease-out;
}

@keyframes navbarSlideIn {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff !important;
}

.navbar-nav .nav-link {
    color: #dcdcdc !important;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: scale(1.1);
}

/* Hero Section */
#about {
    padding: 100px 0;
    background: #343a40;
    color: #fff;
    opacity: 0;
    animation: fadeInSection 1.5s ease-out forwards;
}

#about h2, #about p {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s ease-out forwards;
}

#about h2 {
    animation-delay: 0.3s;
}

#about p {
    animation-delay: 0.5s;
}

#about img {
    border-radius: 50%;
    width: 250px;
    height: 250px;
    object-fit: cover;
    margin-bottom: 30px;
    animation: scaleIn 2s ease-in-out forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeInSection {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skills Section */
#skills {
    padding: 80px 0;
    background: #f1f1f1;
}

#skills h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out forwards;
}

.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    perspective: 1000px;
}

.card:hover {
    transform: rotateY(15deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 1.3rem;
    font-weight: bold;
}

.card-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Projects Section */
#projects {
    padding: 100px 0;
    background: #343a40;
    color: #fff;
}

#projects h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out forwards;
}

.card img {
    max-height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card img:hover {
    transform: scale(1.05) rotate(5deg);
}

/* Contact Section */
#contact {
    padding: 80px 0;
    background: #f1f1f1;
}

#contact h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out forwards;
}

.form-control {
    margin-bottom: 20px;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid #ccc;
}

.form-control:focus {
    border-color: #343a40;
}

.btn {
    background: #343a40;
    color: #fff;
    font-size: 1.2rem;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #17a2b8;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-shadow: 0 0 5px #fff;
}

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 10px 20px;
    background-color: #343a40;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

#backToTop:hover {
    background-color: #17a2b8;
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    padding: 40px 0;
    background-color: #343a40;
    color: #fff;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

/* Scroll Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeInSection {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

