:root {
    --bg: #f8fafc;
    --text: #020617;
    --card: #ffffff;
    --shadow: rgba(0,0,0,0.12);
    --primary: #2563eb;
}

body.dark {
    --bg: #020617;
    --text: #e5e7eb;
    --card: #0f172a;
    --shadow: rgba(0,0,0,0.6);
    --primary: #38bdf8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", sans-serif;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--card);
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px var(--shadow);
}

main {
    padding-top: 110px;
}

/* LOGO */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.logo {
    width: 52px;
    height: 52px;
    border-radius: 50px;
}

.logo-text {
    font-family: "Bungee", sans-serif;
    font-size: 1.4rem;
}

/* NAV */
.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    font-size: 1.05rem;
    text-decoration: none;
    color: var(--text);
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

/* TOGGLE */
.theme-toggle {
    width: 48px;
    height: 26px;
    position: relative;
}

.theme-toggle input {
    display: none;
}

.slider {
    background: #cbd5f5;
    border-radius: 50px;
    position: absolute;
    inset: 0;
}

.slider::before {
    content: "";
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: 0.3s;
}

input:checked + .slider::before {
    transform: translateX(22px);
}

/* CONTACT FORM */
.contact-section {
    padding: 5rem 3rem 6rem;
}

.contact-container {
    max-width: 820px;
    margin: auto;
}

.contact-form {
    background: var(--card);
    padding: 3.5rem;
    border-radius: 26px;
    box-shadow: 0 25px 60px var(--shadow);
}

fieldset {
    border: 2px solid var(--primary);
    border-radius: 18px;
    padding: 2.5rem;
}

legend {
    padding: 0 1rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary);
}

.form-group {
    margin-bottom: 1.8rem;
}

label {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

input, textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
}

textarea {
    resize: none;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
}

/* SUCCESS */
.success-message {
    display: none;
    background: var(--card);
    padding: 4rem;
    border-radius: 26px;
    text-align: center;
    box-shadow: 0 25px 60px var(--shadow);
}

.checkmark {
    width: 80px;
    height: 80px;
    margin: auto auto 1.2rem;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 35px;
    right: 35px;
    background: var(--primary);
    color: white;
    padding: 1rem 1.6rem;
    border-radius: 50px;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* FOOTER */
footer {
    background: var(--card);
    padding: 4rem 2rem;
    text-align: center;
}
