/* Global Styling */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f0f0f0;
}

header {
    background: linear-gradient(90deg, #1E3C72, #2A69AC);
    color: white;
    padding: 50px 0;
    text-align: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.hero h1 {
    font-size: 50px;
    margin: 0;
}

.hero p {
    font-size: 24px;
    text-align: left;
}

.cta-btn {
    background-color: #00b4d8;
    padding: 10px 20px;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
}

.cta-btn:hover {
    background-color: #0077b6;
}

/* Section Styling */
section {
    padding: 50px;
}

.about-section {
    background: linear-gradient(135deg, #f0f4f8, #e8f0fe);
    padding: 50px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-container {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.about-title {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 20px;
}

.about-content {
    line-height: 1.8;
    color: #34495e;
}

.about-description {
    margin-bottom: 15px;
    font-size: 1.1em;
    padding: 10px 0;
    transition: transform 0.3s;
}

.about-description:hover {
    transform: translateY(-2px);
    color: #2980b9; /* Change the color on hover */
}

/* Projects Section */
.projects-section {
    background: linear-gradient(90deg, #FF6A6A, #FFB6B6);
    color: darkgray;
    padding: 50px 0;
    text-align: center;
}

.projects-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    flex-direction: row; /* Align items in a row */
}

.project-card {
    background-color: rgb(255, 255, 255)89, 154, 154);
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(5, 59, 236, 0.514);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex: 4; /* Takes up 4 parts of the total width */
    display: flex; /* Use flexbox for image alignment */
    flex-wrap: wrap; /* Allow images to wrap if needed */
}

/* Each image */
.project-images img {
    max-width: 100%; /* Ensure images do not exceed the container width */
    height: auto; /* Maintain aspect ratio */
    margin: 5px; /* Space between images */
}

.project-info {
    padding: 20px;
    text-align: left;
}

.project-info h3 {
    font-size: 24px;
    color: #0077b6;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 16px;
    color: #e20a15;
    margin-bottom: 20px;
}

.details-btn {
    background-color: #00b4d8;
    color: rgb(29, 113, 224)
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.details-btn:hover {
    background-color: #0077b6;
}


/* Skills Section */
.skills-section {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: rgb(9, 42, 231);
    padding: 50px 0;
    text-align: center;
}

.skills-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.skill-card {
    background-color: rgb(218, 223, 217);
    width: 250px;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(202, 20, 75, 0.247);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(62, 199, 44, 0.2);
}

.skill-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.level-bar {
    background-color: #e0e0e0;
    border-radius: 5px;
    height: 15px;
    overflow: hidden;
    margin-top: 10px;
}

.level {
    height: 100%;
    background-color: #00b4d8;
    border-radius: 5px;
    transition: width 0.5s ease;
}
/* Contact Section */
.contact-section {
    background: linear-gradient(90deg, #f9f9f9, #e3f2fd);
    color: darkgray;
    padding: 50px 0;
    text-align: center;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    padding: 20px;
    background-color: rgb(55, 214, 206)16, 64, 64);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    width: 30px;
    height: 30px;
    margin-right: 15px;
}

.contact-form {
    flex: 1;
    padding: 20px;
    background-color: rgb(21, 183, 204), 80, 80);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    background-color: #00b4d8;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background: linear-gradient(90deg, #0077b6, #005f8d);
}


footer {
    background-color: #0077b6;
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* Additional Styles */
h2, h3 {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Adds depth to headings */
}

/* Button Styles */
.contact-form button {
    background: linear-gradient(90deg, #00b4d8, #0077b6);
    color: white;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/*CSS for error class*/
.error {
    border: 2px solid red;
}
.back-to-top-btn {
    display: inline-block;
    padding: 10px 15px;
    margin-top: 20px;
    background-color: #007bff; /* Change to your preferred color */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.back-to-top-btn:hover {
    background-color: #0056b3; /* Darker shade for hover effect */
}
