/* CSS - styles.css */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background: #f9f9f9;
}

/* Header */
header {
    background: #222;
    padding: 1rem 0;
    color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 1rem;
}

a {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit color from parent element */
}

header a .logo {
    font-size: 1.5rem;
    font-weight: 600;
}

header .nav-links {
    display: flex;
    list-style: none;
}

header .nav-links li {
    margin-left: 1.5rem;
}

header .nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s;
}

header .nav-links a:hover {
    color: #f39c12;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, #2c3e50, #34495e);
    color: #fff;
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    min-height: 100vh;
    margin-top: 4rem;
    /* background: url("../images/background_0.avif");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; */
}

.hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: auto;
    gap: 2rem;
}

.hero-text {
    flex: 1 1 500px;
    text-align: left;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #f39c12;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: #f39c12;
    color: #fff;
}

.btn-primary:hover {
    background: #e67e22;
}

.btn-secondary {
    background: transparent;
    border: 2px solid #f39c12;
    color: #f39c12;
}

.btn-secondary:hover {
    background: #f39c12;
    color: #fff;
}

.hero-image {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
    background: #fff;
    padding: 4rem 0;
    height: 100vh;
    display: flex;
}

.about .container {
    max-width: 1200px;
    margin: auto;
    padding: 0 1rem;
    text-align: center;
}

.about h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #34495e;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
}

.about-content img {
    width: 200px;
    border-radius: 5%;
    margin-bottom: 1rem;
}

/* Projects Section */
.projects {
    padding: 4rem 1rem; /* Add consistent padding for spacing */
    box-sizing: border-box;
    text-align: center;
    background-color: #f9f9f9; /* Add a subtle background to differentiate the section */
}

.projects .container {
    max-width: 1200px;
    margin: auto;
    padding: 0 1rem;
}

.projects h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #34495e;
}

/* Responsive Grid Layout */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid with a minimum column size */
    gap: 2rem; /* Spacing between grid items */
    width: 100%;
    max-width: 1200px; /* Limit grid width */
    margin: auto;
}

/* Project Card Styling */
.project-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Subtle shadow on hover */
}

/* Image Styling */
.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Ensure image doesn't stretch */
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Text Content in Cards */
.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.project-card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Links */
.project-card a {
    font-size: 1rem;
    color: #f39c12;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Contact Section */
.contact {
    background: #2c3e50;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
    height: 100vh;
}

.contact h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.contact p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.contact img {
    width: 100%;
    max-width: 150px;
    border-radius: 5%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact .btn {
    background: #f39c12;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s;
    margin-bottom: 2rem; /* Add margin to separate the button from the social links */
}

.contact .btn:hover {
    background: #e67e22;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Add space between social links */
    margin-top: 1rem; /* Ensure spacing between the button and links */
}

.social-links a {
    color: #f39c12;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #e67e22;
}

/* Footer */
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}
