:root {
    --black: #0d0d0d;
    --white: #f5f4f0;
    --text-dark: #ffffff;
    --text-light: #111111;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    padding-top: 50px;
    background-color: #f4f4f9;
    color: #333;
}

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: lightyellow;
    padding: 10px 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.nav-links {
    display: flex;
    gap: 30px;
}


.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 7px 7px;
    border-radius: 5px;
    transition: all 0.3s ease;

}

.nav-links a:hover {
    opacity: background 0.5;
    background-color: lightblue;
}

main {
    display: grid;
    grid-template-columns: 50% 1fr;
    height: calc(100vh - 50px);
    padding-top: var(--nav-height);
}

.panel-about {
    background: var(--black);
    color: white;
    padding: 4rem 3.5rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 2.5rem;
    animation: fadeUp 0.7s ease both;
    min-height: 85vh;
}

.panel-about h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    text-align: center;
}

.contact-form-container {
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;

}


.contact-form {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}


.contact-form input,
.contact-form textarea {
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fafafa;
    margin-bottom: 20px;
    /* Adds space between the box and the next label */
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #007bff;
    outline: none;
    border-width: 3px;
}

.contact-form button {
    margin-top: 10px;
    padding: 15px;
    width: 100%;
    font-size: 1.1rem;
}


.panel-connect {
    background: var(--white);
    color: var(--text-light);
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    gap: 2.5rem;
    animation: fadeUp 0.7s 0.15s ease both;
}

.panel-connect h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    align-self: center;
}

.connect-spacer-top {
    height: calc(72px + 2.5rem);
    flex-shrink: 0;
}

.connect-spacer-bottom {
    flex: 1;
}


.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    color: var(--text-light);
    text-decoration: none;
}


.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    color: var(--text-light);
    transition: transform 0.2s, opacity 0.5s;
}

.contact-item:hover {
    transform: translateX(6px);
    opacity: 0.7;
}


.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: transparent;
}


.contact-icon img {
    width: 52px;
    height: 52px;
}


.contact-text {
    font-size: 1.1rem;
    font-weight: 400;
}

/*   ANIMATIONS */


@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* RESPONSIVE - for stack panels on mobile*/


@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
        height: auto;
    }

    .panel-about,
    .panel-connect {
        padding: 2.5rem 1.5rem;
        height: auto;
    }

    .nav-links {
        gap: 1rem;
    }
}