:root {
    --bg: #f6f5f1;
    --text: #111;
    --muted: #555;
    --line: #ddd;
    --accent: #6b7d5a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.logo {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
}
.logo:hover {
    color: var(--accent);
}

nav a {
    margin-left: 20px;
    font-size: 13px;
    text-decoration: none;
    color: var(--text);
    opacity: 0.7;
}

nav a:hover {
    opacity: 1;
    color: var(--accent);
}

/* BUTTONS */
.btn {
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: transparent;
    font-size: 13px;
    text-decoration: none;
    color: var(--text);
    transition: 0.3s;
    display: inline-block;
}

.btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/*
.btn-primary {
    padding: 10px 14px;
    font-size: 13px;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #4da3ff, #2f6fff);
    border: 1px solid rgba(77, 163, 255, 0.4);
    box-shadow: 0 6px 18px rgba(47, 111, 255, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(47, 111, 255, 0.35);
}
*/
.btn-primary {
    padding: 10px 24px;
    font-size: 14px;
    text-decoration: none;
    color: black;
    border: 1px solid black;
}
.btn-primary:hover {
    color:white;
    background-color: black;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.btn-secondary {
    padding: 10px 14px;
    font-size: 13px;
    text-decoration: none;
    color: #2b2b2b;
    border: 3px solid rgba(255, 205, 120, 0.6);
    box-shadow: 0 6px 18px rgba(255, 193, 90, 0.25);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 193, 90, 0.25);
}

#top-section {
    background-color: #e1e5ea;
    padding: 15px;
    border-radius: 5px;
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    margin-top: 80px;
    margin-bottom: 80px;
}

.hero h1 {
    font-size: 54px;
    font-weight: 400;
    letter-spacing: -1px;
}

.hero p {
    margin-top: 20px;
    font-size: 16px;
    color: var(--muted);
    max-width: 600px;
}

.hero-actions {
    margin-top: 25px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-image {
    width: 100%;
    height: 420px;
    background: url("images/bg_01.png") center/cover;
    filter: grayscale(100%);
    position: relative;
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(107,125,90,0.2), transparent);
}

/* SECTIONS */
.section-title {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: var(--accent);
}

.block {
    border-top: 1px solid var(--line);
    padding: 60px 0;
}

p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 10px;
}

/* CLIENTS */
.clients {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.client {
    display: block;
    text-decoration: none;
    padding: 18px;
    border: 1px solid var(--line);
    transition: all 0.3s ease;
    background: transparent;
}

.client:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.client img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    transition: 0.3s ease;
}

.client:hover img {
    filter: grayscale(0%);
}

.client span {
    display: block;
    font-size: 14px;
    color: var(--muted);
    text-align: center;
}

/* SKILLS */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill {
    padding: 8px 12px;
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

/* CONTACT */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    background: transparent;
    margin-bottom: 12px;
    font-family: inherit;
}

button {
    padding: 12px 16px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    line-height: 1.5;
}

button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* FOOTER */
footer {
    border-top: 1px solid var(--line);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 10px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero {
    grid-template-columns: 1fr;
    }

    .clients {
    grid-template-columns: repeat(2, 1fr);
    }

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

    nav {
    display: none;
    }

    .hero h1 {
    font-size: 36px;
    }

    .hero-image {
    height: 300px;
    }
}


.email-box {
    position: relative;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: #f6f5f17a;

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 100;
}

.spinner {
    width: 50px;
    height: 50px;

    border: 5px solid #ddd;
    border-top: 5px solid #333;

    border-radius: 50%;

    animation: spin 1s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}