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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #2C3E50; /* Midnight Blue */
    color: #FFFFFF;
    line-height: 1.6;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #2C3E50;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
    color: #FFF;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 30px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #3498DB;
    text-decoration: none;
    font-size: 1.2em;
    padding: 10px;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #FF9800;
}

/* Top section with light background */
section {
    padding: 60px 20px;
    margin: 0 auto;
    text-align: center;
    background-color: #ecf0f1; /* Light color for top section */
}

h1, h2 {
    color: #2C3E50; /* Dark blue for headings */
    margin-bottom: 40px;
}

p {
    color: #2C3E50; /* Dark blue for text */
    margin-bottom: 40px;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    height: calc(100vh - 60px);
    background-color: #ecf0f1; /* Light background */
}

.hero .content {
    max-width: 50%;
}

.hero .content h1 {
    font-size: 2.5rem;
}

#Name {
    font-size: 70px;
}

.hero .content p {
    margin: 1rem 0;
    font-size: 1.2rem;
}

.hero .content button {
    padding: 0.8rem 1.5rem;
    background-color: #3498DB;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.hero .content button:hover {
    background-color: #2980B9;
}

.hero .image {
    max-width: 40%;
}

/* Project Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 60px 20px;
}

.project-card {
    background-color: #34495E;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #FFF;
}

.project-card p {
    font-size: 1.1rem;
    color: #BDC3C7;
}

.project-card a {
    text-decoration: none;
    color: #3498DB;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 15px;
    display: inline-block;
    transition: color 0.3s ease;
}

.project-card a:hover {
    color: #FF9800;
}

.project-image {
    width: 100%; /* Adjust width to fit container */
    max-width: 300px; /* Set a max width */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensures proper spacing */
    margin: 10px auto; /* Center the image */
    border-radius: 10px; /* Optional: Rounded corners */
}

/* Contact Section */
#contact {
    text-align: center;
    padding: 50px 20px;
}

h2 {
    font-size: 2rem;
    color: #2C3E50; /* Dark Blue */
    margin-bottom: 20px;
}

/* Form Styling */
form {
    background-color: #2C3E50; /* Dark Blue Form */
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

form input, form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

form input {
    background-color: #FFF; /* White input fields */
    color: #000; /* Black text */
}

form textarea {
    height: 150px;
    background-color: #FFF;
    color: #000;
    resize: none;
}

button {
    background-color: #3498DB;
    color: #FFF;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980B9;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #2C3E50;
    color: #FFF;
}
/* General Styling */
.skills-section {
    text-align: center;
    padding: 60px 10%;
    background: #f7f9fc;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 40px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Skill Cards */
.skill-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Skill Icons */
.skill-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

/* Skill Card Text */
.skill-card h3 {
    font-size: 1.4rem;
    color: #2C3E50;
    margin-bottom: 10px;
}

.skill-card p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.skill-tags {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    color: #3498DB;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    form {
        max-width: 90%;
        padding: 20px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .hero .content {
        max-width: 100%;
    }

    .hero .content h1 {
        font-size: 2rem;
    }

    .hero .content p {
        font-size: 1rem;
    }

    .hero .content button {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }

    .hero .image {
        max-width: 80%;
        margin-top: 1rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 40px 20px;
    }
}
/* Social Media Icons */
.social-icons {
    margin-top: 20px;
}

.social-icons a {
    text-decoration: none;
    margin: 0 10px;
    font-size: 2em;
    color: #2C3E50;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #FF9800;
}

/* About Section */
#about {
    padding: 60px 20px;
    margin: 0 auto;
    text-align: center;
    background-color: #ecf0f1; /* Light color for top section */
}

#about h2 {
    color: #2C3E50; /* Dark blue for headings */
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.about-image {
    flex: 0 1 250px;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #3498DB;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.1);
}

.about-text {
    flex: 1;
    max-width: 600px;
    text-align: left;
    padding: 0 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: #2C3E50;
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-text .btn {
    background-color: #3498DB;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    display: inline-block;
}

.about-text .btn:hover {
    background-color: #2980B9;
}

/* Responsive Design for About Section */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        align-items: center;
    }

    .about-text {
        text-align: center;
    }
}
