:root {
    --primary-color: #f0f0f0;
    --secondary-color: #c0c0c0;
    --dark-bg: #1a1a1a;
    --medium-bg: #2c2c2c;
    --highlight-color: #00aaff;
    --header-bg: rgba(20, 20, 20, 0.8);
    --card-bg: rgba(44, 44, 44, 0.85);
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

body {
    margin: 0;
    font-family: var(--font-main);
    background: url('images/steelback.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--primary-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 1.5em;
    margin-right: 0.5em;
    vertical-align: middle;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom-color 0.3s;
}

.logo-icon {
    height: 1.5em;
    width: 1.5em;
    margin-right: 0.75em;
    vertical-align: middle;
    transition: transform 0.5s ease-in-out;
}

.logo:hover .logo-icon {
    transform: rotate(180deg);
}

nav a:hover, nav a.active {
    color: var(--highlight-color);
    border-bottom-color: var(--highlight-color);
}

main {
    padding: 4rem 0;
}

.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: rgba(0,0,0,0.5);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: var(--text-shadow);
}

.hero p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

.page-section {
    padding: 4rem 0;
    border-bottom: 1px solid #444;
}

.page-section:last-of-type {
    border-bottom: none;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid #555;
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card h3 {
    color: var(--highlight-color);
    margin-top: 0;
}

#contact {
    background: var(--medium-bg);
    border-radius: 8px;
    padding: 3rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

input, textarea, select {
    padding: 1rem;
    border: 1px solid #555;
    border-radius: 4px;
    background: var(--dark-bg);
    color: var(--primary-color);
    font-size: 1rem;
    font-family: var(--font-main);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--highlight-color);
}

button {
    background: var(--highlight-color);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23c0c0c0%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.4-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: .65em auto;
    padding-right: 2.5rem;
}

button:hover {
    background: #0088cc;
}
.cta-section {
    background: var(--medium-bg);
    text-align: center;
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn, a.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    margin: 0.5rem;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

a.btn {
    background: var(--highlight-color);
    color: #fff;
    border: 2px solid var(--highlight-color);
}

a.btn:hover {
    background: #0088cc;
    border-color: #0088cc;
}

a.btn.btn-secondary {
    background: transparent;
    color: var(--highlight-color);
    border: 2px solid var(--highlight-color);
}

a.btn.btn-secondary:hover {
    background: var(--highlight-color);
    color: #fff;
}

.form-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.success {
    background: #28a745;
    color: #fff;
}

.error {
    background: #dc3545;
    color: #fff;
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--dark-bg);
    color: var(--secondary-color);
    border-top: 1px solid #444;
    margin-top: 2rem;
}
.project-card {
    padding: 0;
    overflow: hidden;
}

.project-card a {
    display: block;
    overflow: hidden;
}

.project-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-top: 0;
    color: var(--highlight-color);
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        justify-content: center;
        width: 100%;
    }

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

    .page-section {
        padding: 3rem 0;
    }
}
