@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

:root {
    --bg-dark: #07080A;
    --bg-light: #ffffff;
    --text-dark: #ffffff;
    --text-light: #000000;
    --active: #16A34A;
    --actived: #159946;
    --card-bg: #08090c;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    max-width: 1300px;
    margin: auto;
}

.about-left,
.about-right {
    flex: 1 1 450px;
}

h1,
h2 {
    font-size: 2rem;
    font-family: 'Ubuntu', sans-serif;
    margin-bottom: 1rem;
    font-weight: 700;
}

.avatar {
    width: 100px;
    font-family: monospace;
    height: 100px;
    background-color: transparent;
    border-radius: 100%;
    border: 2px solid var(--active);
    box-shadow: 2px 2px 10px var(--active);
    padding: 1%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.avatar:hover{
    transform: scale(1.05);
}

.desc {
    margin: 1rem 0;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
    color: #d1d5db;
}

.light-mode .desc {
    font-weight: 500;
    color: #374151;
}

.info {
    display: flex;
    gap: 2rem;
    font-family: "Roboto", sans-serif;
    margin: 2rem 0;
    color: #a1a1aa;
}

.info i {
    margin-right: 0.5rem;
    color: var(--active);
}

.buttons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

button.primary {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.buttons .primary,
button.primary {
    padding: 10px 20px;
    background-color: var(--active);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.buttons .primary:hover,
button.primary:hover {
    background-color: var(--actived);
}

.buttons .secondary {
    padding: 10px 15px;
    background-color: transparent;
    color: inherit;
    border: 1px solid #999;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.1s ease;
}

.buttons .secondary:hover {
    background-color: var(--hover-bg);
    border: 1px solid var(--hover-bg);
}

.buttons a {
    text-decoration: none;
}

.contact-form {
    background-color: var(--card-bg);
    margin-top: 100px;
    margin-left: 180px;
    width: 80%;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--shadow-light);
}

.form-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

input,
textarea {
    background: #111;
    border: 1px solid #333;
    color: #eee;
    padding: 0.6rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: "Poppins", sans-serif;
    outline: none;
    resize: vertical;
    transition: border 0.3s;
}

input:focus,
textarea:focus {
    border-color: var(--active);
}


.light-mode h2,
.light-mode h1 {
    color: var(--text-light);
}

.light-mode .secondary:hover {
    color: var(--text-dark);
    background: var(--text-light);
}

.light-mode input,
.light-mode textarea {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid #ccc;
}


.light-mode .contact-form {
    background-color: var(--bg-light);
    color: var(--text-light);
    border: 1px solid #ccc;
}

.light-mode .info {
    color: #4b5563;
}

/* ========== RESPONSIVE FIX ========== */

@media (max-width: 1024px) {
    .about-container {
        flex-direction: column;
        align-items: center;
    }

    .about-left,
    .about-right {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .contact-form {
        margin-left: 0;
        margin-top: 2rem;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }

    .buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .buttons-row {
        display: flex;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .buttons .primary {
        width: 60%;
        text-align: center;
    }

    .buttons .secondary {
        width: 18%;
        min-width: 50px;
        padding: 10px;
        text-align: center;
    }
}