* {
    box-sizing: border-box;
}
body {
    font-family: "Tiro Devanagari Sanskrit", serif;
    color: #000000;
    font-size: 16px;
    line-height: 1.5rem;
    font-weight: 400;
    margin: 0;
    overflow-x: hidden; /* Prevents horizontal scroll */
}

html {
    overflow-x: hidden;
}

div.wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.25em;
}

/* Header Styles */
header {
    background-color: #7D9273;
    color: #000000;
}
header div.wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}
nav ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 50px;
    margin: 0;
    padding: 0;
}
ul a:link,
ul a:visited {
    color: #000000;
    text-decoration: none;
    font-size: 18px;
}
header ul a:hover {
    color: #FFD4D4;
}
p.name {
    font-family: "Dongle", sans-serif;
    color: #FFD4D4;
    font-size: 40px;
    margin: 0;
    text-transform: lowercase;
}

/* Hero Styles */
#hero {
    min-height: 450px;
    background-color: #FFD4D4;
    background-image: none;
    padding: 100px 0;
}
#hero div.wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
}
#hero .hero-left {
    width: 50%;
}

#hero .italics {
    font-style: italic;
    padding-left: 0em;
    line-height: 2.5em;
}
#hero h1 {
    font-size: 5em;
    font-family: "Tiro Devanagari Sanskrit", serif;
    font-weight: 400;
    color: #425E35;
    line-height: 1.15em;
    margin: 0;
    padding-left: 1em;
}
#hero .hero-right {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 300px;
    justify-content: flex-end;
}

/* Button cluster styling for HERO section only */
#hero .hero-right img[alt="green button"] {
    position: absolute;
    width: 420px;
    bottom: 60px;
    left: 210px;
    z-index: 1;
    animation: sway1 3s ease-in-out infinite;
}

#hero .hero-right img[alt="blue button"] {
    position: absolute;
    width: 250px;
    bottom: 50px;
    left: 130px;
    z-index: 4;
    animation: sway2 3.5s ease-in-out infinite;
}

#hero .hero-right img[alt="pink button"] {
    position: absolute;
    width: 260px;
    transform: rotate(50deg);
    left: 280px;
    bottom: -40px;
    z-index: 3;
    animation: sway3 4s ease-in-out infinite;
}

@keyframes sway1 {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(15px);
    }
}

@keyframes sway2 {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-12px);
    }
}

@keyframes sway3 {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

#hero .scroll-text {
    font-style: italic;
    color: #425E35;
    margin-top: 10px;
    font-size: 1.2em;
    position: relative;
    top: 90px;
    right: 100px;
    z-index: 5;
}
a.btn {
    display: none;
}

/* About Section */
#about {
    background-color: #7D9273;
    padding: 80px 0;
}
#about div.wrapper {
    display: flex;
    flex-direction: row;
    gap: 80px;
    padding: 0 80px;
    align-items: center;
}
div.about-left {
    width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
/* Portrait image in about section */
div.about-left img[alt="Carolina looking away with purple filter"] {
    width: 100%;
    max-width: 320px;
    position: relative;
    z-index: 1;
}
/* White button positioning in about section */
div.about-left img[alt="white button"] {
    position: absolute;
    width: 140px;
    bottom: -40px;
    left: -40px;
    z-index: 2;
}
div.about-right {
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
div.about-right h2 {
    font-family: "Dongle", sans-serif;
    font-size: 2.5em;
    font-weight: 400;
    color: #000000;
    margin-bottom: 0.5em;
    display: none;
}
div.about-right p {
    color: #000000;
    font-size: 1.05em;
    line-height: 1.8em;
    text-align: justify;
}

/* Gallery Section */
#gallery {
    min-height: 400px;
    background-color: #425E35;
    padding: 80px 0;
}
#gallery div.wrapper {
    padding: 0 60px;
}
#gallery h2 {
    font-size: 15em;
    font-family: "Dongle", sans-serif;
    font-weight: 400;
    color: #FFD4D4;
    text-align: center;
    margin-bottom: 50px;
    margin-top: -10px;
    text-transform: lowercase;
}
div.gallery {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
div.gallery a {
    width: calc(25% - 15px);
    min-width: 200px;
}

div.gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

div.gallery img:hover {
    transform: scale(1.05);
}

/* Inspo Section */
#inspo {
    background-color:#FFD4D4;
    min-height: 350px;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: url(assets/open-quote.png), url(assets/closing-quote.png);
    background-size: 200px, 200px;
    background-repeat: no-repeat;
    background-position: top -25px left 400px, bottom -25px right 400px;
}
p.quote {
    font-size: 1.5em;
    font-style: italic;
    line-height: 2.5rem;
    padding-top: 50px;
}
p.credit {
    font-size: 1em;
}

/* PROJECTS Styles */
#projects {
    padding: 80px 40px;
    background-color: #425E35;
}
#projects h2 {
    font-size: 7em;
    margin-top: -10px;
    font-family: "Dongle", sans-serif;
    font-weight: 400;
    color: #FFD4D4;
    text-align: center;
    margin-bottom: 60px;
    text-transform: lowercase;
}
#projects div.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

div.cards {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 900px;
    width: 100%;
}
.card {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: #000000;
    overflow: hidden;
}
.card img {
    width: 50%;
    height: auto;
    min-height: 250px;
    object-fit: cover;
}
div.card-text {
    background-color: #FFD4D4;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 40px;
}
div.card-text h4 {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 0.8em;
    margin-top: 0;
}
div.card-text p {
    font-size: 1em;
    line-height: 1.6em;
    margin: 0;
}

/* Footer Styles */
footer {
    background-color: #7D9273;
    color: #000000;
    padding: 40px 0 30px;
}
footer div.wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}
footer p.name {
    font-family: "Dongle", sans-serif;
    font-size: 50px;
    color: #FFD4D4;
}
footer ul a:hover {
    color: #FFD4D4;
}
div.social {
    display: flex;
    flex-direction: row;
    gap: 30px;
}
.social a img {
    width: 32px;
    transition: opacity 0.3s;
}
footer div.footer-bottom {
    align-items: flex-end;
    margin-top: 30px;
}
.social a:hover img {
    opacity: 0.6;
}
p.copyright {
    font-size: 11px;
    color: #000000;
}

/************ MEDIA QUERIES ************/
/************     A.K.A.    ************/
/************ MOBILE STYLES ************/

@media only screen and (max-width: 1200px){
    /* Tablet Styles */
    
    /* Header */
    header div.wrapper {
        padding: 15px 30px;
    }
    nav ul {
        gap: 30px;
    }
    ul a:link,
    ul a:visited {
        font-size: 16px;
    }
    p.name {
        font-size: 35px;
    }
    
    /* Hero Section */
    #hero div.wrapper {
        padding: 0 40px;
    }
    #hero h1 {
        font-size: 4em;
        padding-left: 0.8em;
    }
    #hero .hero-right img[alt="green button"] {
        width: 350px;
        bottom: 70px;
        left: 180px;
    }
    #hero .hero-right img[alt="blue button"] {
        width: 220px;
        bottom: 40px;
        left: 110px;
    }
    #hero .hero-right img[alt="pink button"] {
        width: 230px;
        left: 240px;
        bottom: -25px;
    }
    #hero .scroll-text {
        position: relative;
        top: 60px;
        right: 125px;
    }
    
    /* About Section */
    #about div.wrapper {
        padding: 0 40px;
        gap: 50px;
    }
    div.about-left img[alt="white button"] {
        width: 120px;
        bottom: -30px;
        left: -30px;
    }
    
    /* Gallery */
    #gallery h2 {
        font-size: 12em;
    }
    #gallery div.wrapper {
        padding: 0 40px;
    }
    div.gallery a {
        width: calc(33.33% - 15px);
    }
    #gallery {
        padding: 60px 0;
    }
    div.gallery {
        gap: 15px;
    }
    div.gallery a {
        width: calc(50% - 8px);
        min-width: auto;
    }
    div.gallery img {
        height: 200px;
    }
    
    /* Projects */
    #projects h2 {
        font-size: 6em;
    }
    div.cards {
        max-width: 700px;
    }
    
    /* Footer */
    footer p.name {
        font-size: 45px;
    }
}

@media only screen and (max-width: 1080px){
    #hero h1 {
        font-size: 4em;
        padding-left: 0.6em;
    }
    
    #hero .hero-right img[alt="green button"] {
        width: 300px;
        bottom: 65px;
        left: 95px;
    }
    #hero .hero-right img[alt="blue button"] {
        width: 200px;
        bottom: 35px;
        left: 30px;
    }
    #hero .hero-right img[alt="pink button"] {
        width: 210px;
        left: 150px;
        bottom: -20px;
    }
    
    #hero .scroll-text {
        font-size: 1.1em;
        top: 60px;
        right: 125px;
        }
    }

@media only screen and (max-width: 900px){
    
    #hero h1 {
        font-size: 3em;
        padding-left: 0.6em;
    }
    
    #hero .hero-right img[alt="green button"] {
        width: 300px;
        bottom: 65px;
        left: 30px;
    }
    #hero .hero-right img[alt="blue button"] {
        width: 200px;
        bottom: 35px;
        left: -40px;
    }
    #hero .hero-right img[alt="pink button"] {
        width: 210px;
        left: 100px;
        bottom: -20px;
    }
    
    #hero .scroll-text {
        font-size: 1.1em;
        top: 80px;
    }
    
    /* About Section */
    #about {
        padding: 70px 0;
    }
    #about div.wrapper {
        padding: 0 30px;
        gap: 60px;
    }
    div.about-left {
        width: 38%;
    }
    div.about-left img[alt="Carolina looking away with purple filter"] {
        max-width: 280px;
    }
    div.about-left img[alt="white button"] {
        width: 110px;
        bottom: -35px;
        left: -35px;
    }
    div.about-right {
        width: 62%;
    }
    div.about-right p {
        font-size: 1em;
    }
    
    /* Gallery */
    #gallery {
        padding: 70px 0;
    }
    #gallery div.wrapper {
        padding: 0 30px;
    }
    #gallery h2 {
        font-size: 10em;
        margin-bottom: 40px;
    }
    div.gallery a {
        width: calc(50% - 10px);
    }
    div.gallery img {
        height: 280px;
    }
    
    /* Inspiration Section */
    #inspo {
        padding: 70px 30px;
        background-size: 160px, 160px;
        background-position: top -20px left 150px, bottom -20px right 150px;
    }
    p.quote {
        font-size: 1.35em;
        line-height: 2.3rem;
    }
    
    /* Projects */
    #projects {
        padding: 70px 30px;
    }
    #projects h2 {
        font-size: 5.5em;
        margin-bottom: 50px;
    }
    div.cards {
        max-width: 650px;
        gap: 40px;
    }
    .card {
        flex-direction: column;
    }
    .card img {
        width: 100%;
        min-height: 220px;
    }
    div.card-text {
        width: 100%;
        padding: 40px 35px;
    }
    div.card-text h4 {
        font-size: 1.35em;
    }
    
    /* Footer */
    footer {
        padding: 35px 0 25px;
    }
    footer div.wrapper {
        padding: 0 30px;
    }
    footer p.name {
        font-size: 42px;
    }
    footer nav ul {
        gap: 20px;
    }
    .social a img {
        width: 30px;
    }
}

@media only screen and (max-width: 850px){
    #hero h1 {
        font-size: 3em;
    }
    #hero .hero-right img[alt="green button"] {
        width: 290px;
        bottom: 65px;
        left: 30px;
    }
    #hero .hero-right img[alt="blue button"] {
        width: 190px;
        bottom: 35px;
        left: -10px;
    }
    #hero .hero-right img[alt="pink button"] {
        width: 200px;
        left: 100px;
        bottom: -20px;
    }
}

@media only screen and (max-width: 650px){
    #hero {
        min-height: auto;
        padding: 60px 0;
    }
    #hero div.wrapper {
        flex-direction: column;
        padding: 0 20px;
        gap: 40px;
    }
    #hero .hero-left {
        width: 100%;
    }
    #hero h1 {
        font-size: 3em;
        padding-left: 0.5em;
        text-align: left;
    }
    #hero .italics {
        line-height: 2em;
    }
    #hero .hero-right {
        width: 100%;
        height: 250px;
        margin-top: 20px;
    }
    #hero .hero-right img[alt="green button"] {
        width: 300px;
        left: 250px;
    }
    #hero .hero-right img[alt="blue button"] {
        width: 200px;
        left: 190px;
    }
    #hero .hero-right img[alt="pink button"] {
        width: 210px;
        left: 300px;
    }
    #hero .scroll-text {
        font-size: 1.1em;
        top: 5px;
        right: 100px;
    }
    div.about-left img[alt="Carolina looking away with purple filter"] {
        max-width: 250px;
    }
    div.about-left img[alt="white button"] {
        width: 100px;
        bottom: -25px;
    }
}

@media only screen and (max-width: 480px){
    /* Mobile Styles */
    
    /* Header */
    header div.wrapper {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }
    nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    ul a:link,
    ul a:visited {
        font-size: 16px;
    }
    p.name {
        font-size: 32px;
    }
    
    /* Hero Section */
    #hero {
        min-height: auto;
        padding: 60px 0;
    }
    #hero div.wrapper {
        flex-direction: column;
        padding: 0 20px;
        gap: 40px;
    }
    #hero .hero-left {
        width: 100%;
    }
    #hero h1 {
        font-size: 3em;
        padding-left: 0.5em;
        text-align: left;
    }
    #hero .italics {
        line-height: 2em;
    }
    #hero .hero-right {
        width: 100%;
        height: 250px;
        margin-top: 20px;
    }
    #hero .hero-right img[alt="green button"] {
        width: 250px;
        bottom: 90px;
        left: 70%;
        transform: translateX(-50%);
    }
    #hero .hero-right img[alt="blue button"] {
        width: 150px;
        bottom: 60px;
        left: 22%;
    }
    #hero .hero-right img[alt="pink button"] {
        width: 150px;
        left: 50%;
        bottom: 30px;
    }
    
    #hero .scroll-text {
        font-size: 1em;
        top: 20px;
    }
    
    @keyframes sway1 {
        0%, 100% {
            transform: translateX(-50%) translateY(0);
        }
        50% {
            transform: translateX(-50%) translateY(-10px);
        }
    }
    
    @keyframes sway2 {
        0%, 100% {
            transform: translateX(0) translateY(0);
        }
        50% {
            transform: translateX(-8px) translateY(-8px);
        }
    }
    
    @keyframes sway3 {
        0%, 100% {
            transform: rotate(50deg) translateY(0);
        }
        50% {
            transform: rotate(50deg) translateY(-10px);
        }
    }
    
    /* About Section */
    #about {
        padding: 60px 0;
    }
    #about div.wrapper {
        flex-direction: column;
        padding: 0 20px;
        gap: 40px;
    }
    div.about-left {
        width: 100%;
    }
    div.about-left img[alt="Carolina looking away with purple filter"] {
        max-width: 250px;
    }
    div.about-left img[alt="white button"] {
        width: 100px;
        bottom: -25px;
        left: 5px;
    }
    div.about-right {
        width: 100%;
    }
    div.about-right p {
        font-size: 1em;
        text-align: left;
    }
    
    /* Gallery */
    #gallery {
        padding: 60px 0;
    }
    #gallery div.wrapper {
        padding: 0 20px;
    }
    #gallery h2 {
        font-size: 6em;
        margin-bottom: 30px;
    }
    div.gallery {
        gap: 15px;
    }
    div.gallery a {
        width: calc(50% - 8px);
        min-width: auto;
    }
    div.gallery img {
        height: 200px;
    }
    
    /* Inspiration Section */
    #inspo {
        padding: 60px 20px;
        background-size: 120px, 120px;
        background-position: top -15px left 20px, bottom -15px right 20px;
    }
    p.quote {
        font-size: 1.2em;
        line-height: 2rem;
        padding-top: 30px;
    }
    p.credit {
        font-size: 0.9em;
    }
    
    /* Projects */
    #projects {
        padding: 60px 20px;
    }
    #projects h2 {
        font-size: 4.5em;
        margin-bottom: 40px;
    }
    div.cards {
        gap: 30px;
    }
    .card {
        flex-direction: column;
    }
    .card img {
        width: 100%;
        min-height: 200px;
    }
    div.card-text {
        width: 100%;
        padding: 30px 25px;
    }
    div.card-text h4 {
        font-size: 1.3em;
        margin-bottom: 0.6em;
    }
    div.card-text p {
        font-size: 0.95em;
    }
    
    /* Footer */
    footer {
        padding: 30px 0 20px;
    }
    footer div.wrapper {
        flex-direction: column;
        padding: 0 20px;
        gap: 20px;
    }
    footer p.name {
        font-size: 40px;
    }
    footer nav ul {
        gap: 15px;
    }
    footer div.footer-bottom {
        flex-direction: column-reverse;
        margin-top: 20px;
        gap: 15px;
    }
    div.social {
        gap: 25px;
    }
    .social a img {
        width: 28px;
    }
    p.copyright {
        font-size: 14px;
    }
}