/* General Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f4f7f6;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #5cd0aa; /* Primary Color */
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #5cd0aa;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
}

/* Header/Navigation */
header {
    background-color: #fff;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: #5cd0aa;
    margin: 0;
    font-size: 1.8em;
}

nav a {
    color: #333;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #5cd0aa;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('placeholder-bg.jpg') no-repeat center center/cover; /* Replace 'placeholder-bg.jpg' with an actual image */
    color: #fff;
    text-align: center;
    padding: 150px 0 100px;
    margin-top: 60px; /* To account for fixed header */
}

.hero h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

/* Section Styling */
.section {
    padding: 80px 0;
    text-align: center;
}

.dark-bg {
    background-color: #343a40;
    color: #fff;
}

.dark-bg .section-title {
    color: #fff;
}

/* Services Grid */
.services-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: left;
}

.service-card {
    background: #fff;
    color: #333;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #5cd0aa;
    margin-bottom: 15px;
}

/* Skills Section */
#skills h3 {
    margin: 30px 0 15px;
    color: #5cd0aa;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.skills-list span {
    background-color: #e9ecef;
    color: #333;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.tech-icons span:hover { background-color: #5cd0aa; color: #fff; }
.db-icons span:hover { background-color: #28a745; color: #fff; } /* Green for databases */
.cloud-icons span:hover { background-color: #ffc107; color: #333; } /* Yellow for cloud */

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    outline: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1em;
}
.footer-link{
    color: #5cd0aa;
}
.error {
    color: #ff4848;
}
.error-border{
    border: 1px solid #ff4848;
}
.is-valid{
    border: 1px solid #5cd0aa;
}
.contact-form textarea {
    resize: vertical;
}

/* Footer */
footer {
    background-color: #212529;
    color: #f4f7f6;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding-top: 15px;
    }
    nav {
        margin-top: 10px;
    }
    nav a {
        margin: 0 10px;
    }
    .hero {
        padding: 100px 0 70px;
        margin-top: 100px; /* Adjust for stacked header */
    }
    .hero h2 {
        font-size: 2.5em;
    }
    .services-grid {
        flex-direction: column;
    }
    .section {
        padding: 50px 0;
    }
}

/* Animate.css Utility: ensures elements are hidden until animated */
.animate__animated {
    visibility: hidden;
}

/* --- Portfolio Section Styles --- */
.portfolio-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.project-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: #5cd0aa;
    margin-top: 0;
    margin-bottom: 10px;
}

.tech-tag {
    display: inline-block;
    background-color: #e9ecef;
    color: #6c757d;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 600;
    margin-right: 8px;
    margin-top: 10px;
}

/* Responsive adjustment for portfolio grid */
@media (max-width: 768px) {
    .portfolio-grid {
        flex-direction: column;
        align-items: center;
    }
    .project-card {
        max-width: 90%;
    }
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://village-it-dude.github.io/assets/img/banner-bg-hd.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 150px 0 100px;
    margin-top: 60px;
}
.logo{
    width:250px;
}
.container.nav{
    padding:0px;
}