/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #1c2b40;
    line-height: 1.6;
    width: 95%;
    margin: auto;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background-color: #e8f1ff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

header img {
    max-width: 120px;
    height: auto;
}

/* Navigation */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #f4f8ff;
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
}

nav a {
    margin: 0.5rem 1rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: #1c2b40;
    background-color: #e0ecff;
    border-radius: 30px;
    transition: background 0.3s ease;
}

nav a:hover {
    background-color: #c3d8fa;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-1 {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border: 1px solid #c3d8fa;
    border-radius: 6px;
    min-width: 160px;
    z-index: 10;
}

.dropdown:hover .dropdown-1 {
    display: block;
}

.dropdown-1 li {
    list-style: none;
}

.dropdown-1 li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #1c2b40;
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-1 li a:hover {
    background-color: #e0ecff;
}

/* Main Layout */
main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section, article, aside {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Contact Aside */
aside {
    max-width: 320px;
    margin: auto;
}

/* Images */
article img,
.poster-image img,
.project-box img,
body.poster img,
body.soapbox img,
body.app img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.project-box {
    background: #f9f9f9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.project-box:hover {
    transform: scale(1.03);
}

/* Travel Table */
body.travel main {
    display: block;
    padding: 2rem 1rem;
    max-width: 100%;
}

body.travel table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

body.travel th,
body.travel td {
    border: 1px solid #dfe9f3;
    padding: 1rem;
    text-align: left;
}

body.travel thead {
    background-color: #c3d8fa;
    color: #1c2b40;
}

body.travel tr:nth-child(even) {
    background-color: #f7faff;
}

/* Overlapping Interactive Gallery */
div.gallery, div.gallery2 {
    position: relative;
    margin-left: -40px; /* overlap effect */
    display: inline-block;
    transition: transform 0.3s ease, z-index 0.3s;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

div.gallery:first-child, div.gallery2:first-child {
    margin-left: 0;
}

div.gallery:hover, div.gallery2:hover {
    transform: scale(1.1);
    z-index: 10;
}

div.gallery img,
div.gallery2 img {
    width: 200px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 12px 12px 0 0;
}

/* Description box with rounded bottom */
div.desc {
    padding: 12px;
    text-align: center;
    background-color: #f7faff;
    border-top: 1px solid #ccc;
    border-radius: 0 0 12px 12px;
    font-size: 0.9rem;
}

/* Wrapper spacing */
.galleryEU,
.galleryUS {
    margin-top: 3rem;
    margin-bottom: 2rem;
    clear: both;
}

/* Responsive stacking */
@media screen and (max-width: 768px) {
    div.gallery, div.gallery2 {
        display: block;
        margin: 1rem auto;
        transform: none !important;
    }

    div.gallery img, div.gallery2 img {
        width: 90%;
        max-width: 300px;
    }
}
/* Overlapping Interactive Gallery */
div.gallery, div.gallery2 {
    position: relative;
    margin-left: -60px; /* overlap effect */
    display: inline-block;
    transition: transform 0.3s ease, z-index 0.3s;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

div.gallery:first-child, div.gallery2:first-child {
    margin-left: 0;
}

div.gallery:hover, div.gallery2:hover {
    transform: scale(1.1);
    z-index: 10;
}

div.gallery img,
div.gallery2 img {
    width: 200px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 12px 12px 0 0;
}

/* Description box with rounded bottom */
div.desc {
    padding: 12px;
    text-align: center;
    background-color: #f7faff;
    border-top: 1px solid #ccc;
    border-radius: 0 0 12px 12px;
    font-size: 0.9rem;
}

/* Wrapper spacing */
.galleryEU,
.galleryUS {
    margin-top: 3rem;
    margin-bottom: 2rem;
    clear: both;
}

/* Responsive stacking */
@media screen and (max-width: 768px) {
    div.gallery, div.gallery2 {
        display: block;
        margin: 1rem auto;
        transform: none !important;
    }

    div.gallery img, div.gallery2 img {
        width: 90%;
        max-width: 300px;
    }
}


/* Clearfix */
main::after {
    content: "";
    display: table;
    clear: both;
}

/* Form */
section#form {
    background-color: #f7faff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 2rem 0;
}

fieldset {
    border: none;
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1c2b40;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #c3d8fa;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input[type="submit"],
input[type="reset"] {
    background-color: #c3d8fa;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    color: #1c2b40;
    transition: background 0.2s ease;
}

input[type="submit"]:hover,
input[type="reset"]:hover {
    background-color: #a6c2f0;
}

/* Poster / Soapbox / App Layouts */
body.poster main,
body.soapbox main,
body.app main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
    max-width: 1000px;
    margin: auto;
}

body.poster main > div:first-child,
body.soapbox main > div:first-child,
body.app main > div:first-child {
    background-color: #f9f9f9;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

body.poster h1,
body.soapbox h1,
body.app h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #1c2b40;
}

body.poster h3,
body.soapbox h3,
body.app h3 {
    font-size: 1.25rem;
    margin-top: 0;
    color: #1c2b40;
}

body.poster p,
body.soapbox p,
body.app p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #f4f8ff;
    color: #1c2b40;
    margin-top: 2rem;
    border-radius: 16px 16px 0 0;
}
.intro-fullscreen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
    padding: 2rem;
}


.intro-fullscreen h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.intro-fullscreen p {
    max-width: 700px;
    margin-bottom: 2rem;
    font-size: 1.125rem;
    line-height: 1.8;
}

.intro-fullscreen img {
    max-width: 250px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 2-Column Grid Section */
.grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: auto;
}

.grid-two article {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.grid-two img {
    width: 100%;
    height: auto;
    margin-top: 1rem;
    border-radius: 10px;
}
html, body {
    height: 100%;
}

/* Responsive Enhancements */
@media screen and (max-width: 768px) {
    .intro-fullscreen {
        padding: 1rem;
    }

    .intro-fullscreen h2 {
        font-size: 2rem;
    }

    .intro-fullscreen p {
        font-size: 1rem;
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    nav {
        justify-content: space-around;
    }

    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    header {
        flex-direction: column;
        text-align: center;
    }

    header img {
        margin-top: 1rem;
    }

    main {
        grid-template-columns: 1fr;
    }
}
