/* Global */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    background-color: #fdfdfd;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.button {
    margin-left: auto;
    padding: 7px 28px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    display: inline-block;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button:hover {
    background-color: #0056b3;
    transform: scale(1.1);
    transition: transform 0.4s ease, color 0.4s ease;
}

.white-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #007bff;
    background-color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.white-button:hover {
    background-color: #ededed;
    transform: scale(1.1);
    transition: transform 0.4s ease, color 0.4s ease;
}

/* Typography */
.white-text {
    color: white;
}

.blue-text {
    color: rgb(0, 85, 255);
    font-weight: bold;
}

.section-subtitle {
    font-style: italic;
}

h1, h2, h3 {
    margin: -5px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 40px;
}

/* Header */
.header-wrapper {
    background-color: #007bff;
    padding-top: 5px;
    padding-bottom: 60px;
}

.header-nav {
    text-align: center;
    line-height: 2;
}

header {
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    margin: 25px auto;
    overflow: hidden;
    padding: 0px 10px;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
}

.nav-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    min-height: 80px;
    flex-wrap: wrap;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: 0;
    padding: 0;
}

nav ul li {
    font-weight: bold;
    font-size: 1.5rem;
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s ease;
}

.nav-button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 7px 28px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    display: inline-block;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

nav ul li a:hover {
    color: rgb(0, 85, 255);
    transform: scale(1.3);
    transition: transform 0.6s ease, color 0.4s ease;
    display: inline-block;
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background-color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.project-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.project-item h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #222;
    margin: 5px 140px;
    text-decoration: none;
    border-bottom: 2px solid #575757;
    padding-top: 10px;
    padding-bottom: 5px;
}

.project-item p {
    margin: 15px;
    color: #333;
}

.project-item .view-project {
    margin-top: auto;
    display: block;
    padding: 15px 0;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

footer .container {
    padding: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    font-size: 1.8rem;
    color: #007bff;
    transition: color 0.3s ease, transform 0.5s ease;
}

.social-links a:hover {
    color: #0056b3;
    transform: scale(1.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0;
        margin: 0;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }

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