/* Global reset */
* {
    box-sizing: border-box;
}

/* Base styling */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f5f7;
    color: #222222;
    line-height: 1.6;
}

/* Navigation bar */
.navbar {
    background: #0a2540;
    padding: 12px 18px;
}

.navbar ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    gap: 18px;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Active page highlight */
.active {
    border-bottom: 2px solid #ffffff;
}

.navbar a:hover {
    opacity: 0.85;
}

/* Navigation wrapper */
.nav-wrapper {
    background: #0a2540;
    padding: 12px 18px;
    position: relative;
}

/* Navigation visible by default */
nav {
    display: flex;
}

/* Navigation list */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

/* Navigation links */
nav a {
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Hide checkbox always */
#nav-toggle {
    display: none;
}

/* Hide burger icon by default on screens bigger than mobile */
.nav-toggle-label {
    display: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero section */
.hero {
    background: #1a73e8;
    padding: 70px 18px;
    color: #ffffff;
    text-align: center;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1rem;
}

/* Containers */
.container {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Project styling */
.project {
    background-image: url('../img/pexels-markusspiske-6190327.jpg');
    padding: 70px 18px;
    color: #ffffff;
    text-align: center;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

/* Profile image */
.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    float: right;
    margin: 0 0 1rem 1.5rem;
}

/* Generic card styling */
.card {
    background: #ffffff;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 22px;
    border: 1px solid #e8e8e8;
    transition: box-shadow 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Card grid layout */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

/* Styling for images in cards */
.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* Contact page card */
.contact-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    max-width: 650px;
    margin: 20px auto 40px auto;
}

.contact-card h2 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

/* Contact form */
.contact-form label {
    font-weight: bold;
    margin-top: 12px;
    display: block;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #bbbbbb;
    background: #ffffff;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    background: #1a73e8;
    color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 14px;
}

.contact-form button:hover {
    background: #1559b3;
}

/* Footer */
footer {
    background: #0a2540;
    color: #ffffff;
    text-align: center;
    padding: 18px;
    margin-top: 50px;
}

footer small {
    font-size: 0.85rem;
}


/* Media queries */

/* Mobile navigation (stack items) */
@media (max-width: 600px){

    /* Show burger icon */
    .nav-toggle-label {
        display: block;
    }

    /* Hide nav on mobile by default */
    nav {
        display: none;
        position: absolute;
        background-color: #0a2540;
        width: 100%;
        left: 0;
        top: 100%;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    }

    /* Stack menu vertically */
    nav ul {
        flex-direction: column;
        padding: 1rem 0;
        gap: 15px;
        align-items: flex-start;
    }

    nav li {
        padding-left: 18px;
    }

    /* Toggle dropdown when checkbox is checked */
    #nav-toggle:checked ~ nav {
        display: block;
    }
}


/* Tablet view */
@media screen and (min-width: 768px) {
    .hero {
        padding: 100px 30px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

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

/* Desktop view */
@media screen and (min-width: 992px){
   .card-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}