/* styles.css */
/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

header {
    position: relative;
    background: #333;
    color: #fff;
    padding: 1rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: left;
}

.logo {
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0px;
    margin: 0;
}

.nav-menu li {
    margin: 0 1rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding:1rem;
    transition: background 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #555;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        background: #333;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem;
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }
}









/* Navigation */
nav {
    background-color: #2c3e50;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    padding: 0;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    position: relative;
}

nav ul li a:hover {
    color: #3498db;
    transform: translateY(-2px);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Hero Section */
header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    padding: 150px 20px 100px;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 40px;
}

.cta-button {
    padding: 15px 30px;
    background-color: #e74c3c;
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
}

.cta-button:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
}

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

.social-icons a {
    color: white;
    margin: 0 10px;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

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

/* Section Styles */
section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
}

/* About Section */
#about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1em;
}

.download-cv {
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.download-cv:hover {
    background-color: #2980b9;
}

/* Experience Section */
#experience {
    background-color: #ffffff;
}

.job {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #ecf0f1;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.job:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background-color: #e8eef2;
}

.job h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.job h4 {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.job ul {
    padding-left: 20px;
}

/* Projects Section */
.project {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background-color: #f7f9fa;
}

.project h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.project-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.project-link:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Skills Section */
#skills {
    background-color: #ffffff;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.skill img {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

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

.skill p {
    margin-top: 10px;
    font-size: 0.9em;
    color: #34495e;
}



/* Certifications Section */
#certifications {
    background-color: #ffffff;
    padding: 80px 20px;
    overflow: hidden; /* Hide scrollbars */
}

.certifications-container {
    display: flex;
    gap: 20px; /* Space between items */
    padding: 10px 0;
    overflow-x: auto; /* Enable horizontal scrolling */
    scroll-behavior: smooth; /* Smooth scrolling */
    white-space: nowrap; /* Prevent line breaks */
}

.certification {
    flex: 0 0 auto; /* Prevent flex items from shrinking */
    width: 180px; /* Adjust width to fit text */
    text-align: center;
    background-color: #ecf0f1;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: inline-block;
    vertical-align: top; /* Aligns items correctly */
}

.certification img {
    width: 100%;
    height: auto;
    max-width: 150px;
    margin-bottom: 10px;
    display: block; /* Ensures image takes full width */
}

.certification p {
    font-size: 1em;
    color: #34495e;
    white-space: normal; /* Ensure text wraps if too long */
    margin-top: 10px;
}






/* Contact Section */
#contact {
    background-color: #2c3e50;
    color: #ecf0f1;
}

#contact h2 {
    color: #ffffff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
}

.submit-btn {
    padding: 12px 25px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #c0392b;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }
}
