/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

h1{
    font-family: 'Montserrat', sans-serif;
    color: #007BFF;
}
h2, h3{
    font-family: 'Montserrat', sans-serif;
    color: #007BFF;
}
a {
    color: #007BFF;
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

button {
    cursor: pointer;
}
nav a {
    display: inline-block;
    background-color: white;
    color: #007BFF;
    padding: 5px 8px;
    border-radius: 5px;
    transition: all 0.5s ease;
}

nav a:hover {
    background-color: #adc0d0;
    transform: scale(1.05);
}
/* Header */
header {
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav ul {
    display: flex;
    gap: 20px;
}

header nav ul li {
    display: inline-block;
}


/* Hero Section */
.hero {
    background-color: #007BFF;
    color: white;
    text-align: center;
    padding: 30px 20px; /* Reduced padding */
    max-height: 400px; /* Set a max-height */
    overflow: hidden; /* Prevent overflow */
}

.hero-content h2, .hero-content h3 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    font-size: 3rem; /* Set the size of the heading */
    animation: fadeInUp 2s forwards;
}

.hero-content h2 {
    animation-delay: 0.5s; /* Delay for h2 */
}

.hero-content h3 {
    animation-delay: 2.5s; /* Delay for h3 */
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta {
    display: inline-block;
    background-color: white;
    color: #007BFF;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.5s ease;
}

.cta:hover {
    background-color: #adc0d0;
    transform: scale(1.05);
}


/* About Section */
.section {
    padding: 60px 20px;
}

.description {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.description img {
    width: 100%;
    border-radius: 8px;
}

/* Portfolio Section */
.project-gallery {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.project-item {
    position: relative;
    width: 300px;
    overflow: hidden;
}

.project-item img {
    width: 100%;
    transition: transform 0.3s ease;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-item:hover figcaption {
    transform: translateY(0);
}

/* Skills Section */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.skill-item {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
}

.skill-bar {
    height: 10px;
    background-color: #007BFF;
    margin-top: 5px;
    border-radius: 5px;
}

/* Testimonials Section */
.testimonial-carousel {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonial-item {
    max-width: 300px;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Contact Section */
.contact-floating-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007BFF;
    border-radius: 50%;
    padding: 15px;
    z-index: 1000;
}

.contact-floating-icon i {
    color: white;
    font-size: 20px;
}

form {
    max-width: 600px;
    margin: 0 auto;
}

form label {
    display: block;
    margin: 10px 0 5px;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.submit-btn {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #007BFF;
    color: white;
    text-align: center;
    padding: 20px;
}

.back-to-top {
    display: inline-block;
    background-color: white;
    color: #007BFF;
    padding: 5px 10px;
    border-radius: 5px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}
/* Contact Floating Icon */
.contact-floating-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007BFF;
    border-radius: 50%;
    padding: 15px;
    z-index: 1000;
}

.contact-floating-icon i {
    color: white;
    font-size: 20px;
}