@import url("https://fonts.googleapis.com/css?family=Saira:500,600,italic|Work+Sans:400");


a {
    text-decoration: none;
    color: inherit;
    /* titles/captions stay the same */
    display: inline-block;
    /* ensures the figure fills the link */
}

html,
body {
    background-color: #F6F9F1;
    margin: 0;
    padding: 0;
    font-family: "Saira", Helvetica;
}

h2 {
    font-size: 42px;
    color: #37515F;
    margin-bottom: -5px;
}

h3 {
    font-size: 36px;
    color: #dda15e;
    margin-bottom: -5px;
}

p {
    font-size: 26px;
}

.name {
    position: relative;
    width: fit-content;
    color: #F6F9F1;
    font-size: 52px;
    text-align: center;
    line-height: normal;
    transition: transform 0.3s ease;
}

.name:hover {
    color: #dda15e;
}

.menu {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    position: relative;
    flex: 0 0 auto;
}

.icon {
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    gap: 10px;
    padding: 10px;
    position: relative;
    background-color: #F6F9F1;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.icon:hover {
    transform: scale(1.1);
    background-color: #F4E2CD;
}

.header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    position: sticky;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
    background-color: darkolivegreen;

}


.footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 5px 20px 10px 20px;
    background-color: darkolivegreen;

    /* thinner padding */
}

.footer-name {
    font-size: 32px;
    padding-right: 20px;
    /* smaller font than header */
}

.footer-icon {
    width: 20px;
    /* smaller icons */
    height: 20px;
}


.description {
    display: flex;
    justify-content: center;
    padding: 20px;
    position: relative;
    background-color: rgb(221, 161, 94);
    border-radius: 25px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    flex-direction: column;
    align-items: center;
    max-width: 1300px;


}

.main {
    text-align: center;
    display: flex;
    flex-direction: column;
    height: auto;
    align-items: center;
    justify-content: flex-start;
    position: relative;

}

/* SOCIAL GALLERY */
.social-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 across on desktop */
    gap: 10px;
    /* minimal spacing */
    margin: 0;
    width: 100%;
    max-width: 1600px;
    /* keep it from stretching too wide */
}

/* Base figure */
.social-gallery>figure {
    position: relative;
    overflow: hidden;
    /* clip image + overlay to corners */
    margin: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-gallery>figure:hover {
    transform: scale(1.03);
    box-shadow: 0px 15px 30px gray;
}

/* Images */
.social-gallery .thumbnail {
    width: 100%;
    height: 240px;
    /* fixed height */
    object-fit: cover;
    border-radius: inherit;
    /* follow parent’s corners */
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Tint overlay */
.social-gallery>figure::before {
    content: "";
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: inherit;
    transition: opacity 0.3s ease;
}

/* Title */
.social-gallery>figure .title {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    transition: all 0.5s ease;
    pointer-events: none;
    text-align: center;
    line-height: 1.3;
}

/* Caption */
.social-gallery>figure .caption {
    top: 30%;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    line-height: 1;
    margin: 10px;

}

.social-gallery>figure .skills {
    bottom: 10px;
    left: 10px;
    right: 10px;
    color: #dda15e;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    line-height: 1;
    margin: 10px;




}

.social-gallery>figure::before,
.social-gallery>figure .title,
.social-gallery>figure .caption,
.social-gallery>figure .skills,
.project::before {
    pointer-events: none;
    position: absolute;

}

.social-gallery a,
.gallery a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Hover effects */
.social-gallery>figure:hover .title {
    top: 10px;
    transform: translate(-50%, 0);
    font-size: 1.4rem;
}

.social-gallery>figure:hover .caption {
    opacity: 1;
}

.social-gallery>figure:hover .skills {
    opacity: 1;
}

/* Mobile: stack vertically, all corners rounded */
@media (max-width: 899px) {
    .social-gallery {
        grid-template-columns: 1fr;
    }

    .social-gallery>figure {
        border-radius: 20px;
    }
}

/* Desktop: side by side, only outer corners rounded */
@media (min-width: 900px) {
    .social-gallery>figure {
        border-radius: 0;
    }

    .social-gallery>figure:first-child {
        border-radius: 20px 0 0 20px;
    }

    .social-gallery>figure:last-child {
        border-radius: 0 20px 20px 0;
    }
}

/* PROJECT GALLERY */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 40px 0;
    align-items: center;
    /* vertical alignment */
    gap: 40px;


}

.gallery a {
    display: block;
    /* make the whole card clickable */
    flex: 1 1 300px;
    /* responsive width, adjust as needed */
    text-decoration: none;
    /* remove underline */
    color: inherit;
    /* keep text color */
}

.project {
    position: relative;
    overflow: hidden;
    margin: 10px;
    border: 2px solid #37515F;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project .thumbnail {
    width: 240px;
    height: 240px;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

/* Tint overlay and title */
.project::before {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    pointer-events: none;
}

/* Hover effects */
.project:hover {
    transform: scale(1.03);
    box-shadow: 0px 15px 30px gray;
}

.project:hover::before {
    opacity: 1;
}



/* project pages */

.cards .title {
    margin: 10px;
    line-height: 1;
}

h2.project_page {
    margin-bottom: -5px;
    font-size: 3.5rem;
}

.title_image {
    background-color: #F4E2CD;
    width: 100%;
    /* full width of screen */
    padding: 30px;
    display: flex;
    justify-content: center;
    /* centers images horizontally */
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
    box-sizing: border-box;
    /* ensures padding doesn’t push width beyond 100% */
    align-items: center;
    /* center vertically (within the row) */

}

.project_item {
    text-align: center;
}

.gallery .project_item img {
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    display: block;
}

.main_project_image {
    border-radius: 20px;
    max-height: 500px;
    width: auto;
    height: 100%;
}

.privacy_page .main_project_image {
    max-width: 1200px;
}

.project_item figcaption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #37515F;
    ;
}


h4 {
    color: #F6F9F1;
    font-size: 1.8rem;
    margin-bottom: -10px;
}


.cards {
    height: auto;
    width: 350px;
    position: relative;
    overflow: hidden;
    border: 2px solid #37515F;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #37515F;
    justify-content: center;
    margin: 10px;
}

.feature_cards {
    height: auto;
    width: 200px;
    position: relative;
    overflow: hidden;
    border: 2px solid #37515F;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #37515F;
    justify-content: center;
    margin: 10px;
}

.feature_cards:hover {
    transform: translateY(-5px);
    box-shadow: 0px 15px 30px gray;
}

.feature_cards .title {
    margin: 10px;
    line-height: 1;
    font-size: 1.3rem;

}


.related_projects {
    height: auto;
    width: 600px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: darkolivegreen;
    justify-content: center;
    margin: 10px;
    padding-bottom: 50px;
}


.design_claims {
    width: 150px;
}

p.caption {
    color: #dda15e;
    font-size: 1.3rem;
    margin: 10px;
}

li {
    color: #37515F;
    text-align: justify;
    font-size: 1.3rem;
}

.cards:hover {
    transform: translateY(-5px);
    box-shadow: 0px 15px 30px gray;
}

.related_projects:hover {
    transform: translateY(-5px);
    box-shadow: 0px 15px 30px gray;
}

/* AUTO GALLERY */
.auto-gallery {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.privacy_page .auto-gallery {
    max-width: 400px;
}

.solar .gallery-track img {
    max-height: 200px;
}


.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-track img {
    width: 100%;
    flex-shrink: 0;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    background: white;

}

/* Scroll buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #37515F;
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
    transition: background 0.3s;
}

.scroll-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.scroll-btn.left {
    left: 10px;
}

.scroll-btn.right {
    right: 10px;
}