/* ============================== Global Styles ============================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Consolidated 'a' tag styles */
a {
    text-decoration: none;
    color: #333;
}

/* ============================== Header Styles ============================== */
header {
    background-color: #333;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    padding-right: 30px;
}

header nav a {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

header nav a:hover {
    background-color: #f0f0f0;
    color: #333;
    border-radius: 5px;
}

/* ============================== Footer Styles ============================== */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    display: inline-block;
}

footer a:hover {
    text-decoration: underline;
}

/* Social Media Links */
footer .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer .social-links a {
    font-size: 18px;
}

/* ============================== Mobile Responsiveness ============================== */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        gap: 15px;
        padding-right: 0;
    }
}

/* ============================== Form Styles ============================== */
form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form h1, form label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

form p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

form input, form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

form input:focus, form textarea:focus {
    border-color: #333;
    outline: none;
}

form button {
    background-color: #333;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

form button:hover {
    background-color: #444;
}

form button:active {
    background-color: #222;
}

/* ============================== Success Page Styling ============================== */
.success-message {
    background-color: #f0f8f0;
    color: #4CAF50;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.success-message h1 {
    font-size: 24px;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 16px;
}

/* ============================== Portfolio Grid ============================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

/* ============================== Card Styles ============================== */
.card {
    max-width: 350px;
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: auto;
}

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

.card-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    text-align: center;
}

.card-content h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.card-button {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.card-button:hover {
    background-color: #444;
}

/* ============================== Project Detail Styling ============================== */
.project-detail {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-detail h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.project-detail .project-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.project-detail p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.project-detail .project-url {
    display: inline-block;
    padding: 12px 20px;
    font-size: 1.125rem;
    color: #fff;
    background-color: #007BFF;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.project-detail .project-url:hover {
    background-color: #0056b3;
}

/* ============================== Dropdown Styles ============================== */
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li {
    display: inline-block;
    position: relative;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    background-color: #f1f1f1;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropbtn {
    background-color: #333;
    color: white;
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropdown:hover .dropbtn {
    background-color: #666;
}

/* Dropdown links: Regular state and Hover */
nav .dropdown-content a {
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    color: #333; /* Dark color for regular state */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    background-color: #f9f9f9; /* Light background */
    border: none; /* Ensure no border to avoid artifact */
    transition: background-color 0.3s ease;
}

nav .dropdown-content a:hover {
    background-color: #444;
    color: white;
}
