/* GOOGLE FONTS USED IN HTML HEAD */

/* VARIABLES */
:root {
    --brand: #4fc431;
    --bg: #f6f8fa;
    --bg-alt: #ffffff;
    --text: #222;
    --nav-text: white;
    --card-shadow: rgba(0,0,0,0.08);
    --radius: 14px;
    --transition: 0.3s ease;
    --max-width: 1000px;
}

/* Dark Mode */
body.dark-mode {
    --bg: #111418;
    --bg-alt: #1c1f24;
    --text: #f0f0f0;
    --nav-text: white;
    --card-shadow: rgba(0,0,0,0.5);
}

/* BASE */
body {
    margin: 0;
    font-family: "Inter", "Roboto", sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background var(--transition), color var(--transition);
}

header, main, footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}


/* LOGO */
.logo {
    width: 70px;
    margin-bottom: 10px;
}

/* HEADER / NAV */
header {
    text-align: center;
    padding: 25px 20px;
    background: var(--brand);
    border-radius: 0 0 var(--radius) var(--radius);
    color: var(--nav-text);
    box-shadow: 0 4px 10px var(--card-shadow);
}

nav a {
    margin: 0 12px;
    color: var(--nav-text);
    font-weight: 600;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.2s;
}

nav a:hover {
    background: rgba(255,255,255,0.2);
}

/* HERO BANNER */
.hero {
    margin-top: 20px;
    height: 260px;
    border-radius: var(--radius);
    overflow: hidden;
    background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1200&q=80')
    center/cover no-repeat;
    position: relative;
    box-shadow: 0 4px 12px var(--card-shadow);
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

/* Hero image for about page */
.about-page .hero {
    background-image: url('about-hero.png');
}


.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.65));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.hero-overlay h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.hero-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* CONTENT */
.content {
    margin-top: 30px;
    line-height: 1.7;
}

/* CARDS */
.card-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: var(--bg-alt);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 4px 10px var(--card-shadow);
    flex: 1;
    min-width: 260px;
    transition: transform var(--transition);
}

.card:hover {
    transform: translateY(-4px);
}

/* CONTACT FORM */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    background: var(--bg-alt);
    border: 1px solid #ccc;
    padding: 14px;
    border-radius: var(--radius);
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    border-color: #444;
}

.contact-form button {
    padding: 14px;
    background: var(--brand);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.contact-form button:hover {
    transform: translateY(-2px);
}

/* DARK MODE TOGGLE SWITCH */
.theme-toggle {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 999;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input { display: none; }

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: var(--brand);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* FOOTER */
footer {
    background: var(--brand);
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: var(--radius) var(--radius) 0 0;
    margin-top: 40px;
}

/* RESPONSIVE */
@media (max-width: 650px) {
    nav a {
        display: block;
        margin: 8px 0;
    }
    .hero {
        height: 200px;
    }
    .hero-overlay h2 {
        font-size: 1.6rem;
    }
}
