/* ============================================================
   GLOBAL RESET — BASE
============================================================ */

html, body {
    margin: 0;
    padding: 0;
}

html {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #f5f5f5;
	background-color: "#000000";
    background:
        linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0)),
        url('/SiteAssets/Images/background_tile.jpg') repeat;
    background-size: 100% 500px, 302.8px auto;
    background-position: bottom center;
    background-repeat: no-repeat, repeat;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: inherit;
}

p {
    margin: 1em 0;
}

ul {
    padding: 0 0 1rem 1rem;
}

ul li {
    margin-bottom: 0.25rem;
    padding-left: 0.5rem;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
textarea,
select {
    font-family: "Inter", sans-serif !important;
    font-size: 1rem;
    color: #6a6a6a;;
}

::placeholder {
    font-family: "Inter", sans-serif !important;
    color: #6a6a6a;
}




/* ============================================================
   NAVIGATION — BASE
============================================================ */

.nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 95px;
    padding: 0 2rem;
    align-items: center;
    justify-content: space-between;
    background: rgba(15,15,15,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    backdrop-filter: blur(10px);
    z-index: 3;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
}

.menu {
    display: flex;
    list-style-position: inside;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 3rem;
}

.menu li {
    list-style: disc;
}

.menu a {
    display: flex;
    margin-right: 0.25rem;
    height: 70px;
    letter-spacing: 0.5px;
    line-height: 1;
    font-weight: 700;
    color: #f5f5f5;
    align-items: center;
    text-decoration: none;
    transition: opacity .3s;
}

.menu a:hover {
    opacity: .6;
}



.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: .3s;
}




/* ============================================================
   NAVIGATION — MOBILE
============================================================ */

@media (max-width: 880px) {

    .nav {
        background: rgba(15,15,15,0.9);
    }

    .menu,
    .menu.open {
        gap: 0.3rem !important;
    }

    .menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 95px;
        left: 0;
        width: 100%;
        padding: 1.2rem 2rem !important; 
        text-align: left;
        background: rgba(15,15,15,0.95);
        backdrop-filter: blur(10px);
    }

    .menu.open {
        display: flex;
    }

    .menu a {
        height: auto !important;
        padding: 0.4rem 0 !important;
        line-height: 1.2 !important;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

}




/* ============================================================
   NAVIGATION — iPHONE PORTRAIT
============================================================ */

@media screen and (max-width: 430px) and (orientation: portrait) {

    .nav {
        height: 50px;
        padding: 0 1rem;
    }

    .logo img {
        height: 45px;
    }

    .menu {
        top: 34px !important;
        margin-top: 1rem;
        gap: 1.5rem;
    }

    .hamburger {
        display: flex;
        position: relative;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
    }

    .hamburger span {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 22px;
        height: 2px;
        transform-origin: center;
    }

    .hamburger span:nth-child(1) {
        transform: translate(-50%, -50%) translateY(-6px);
    }

    .hamburger span:nth-child(2) {
        transform: translate(-50%, -50%);
    }

    .hamburger span:nth-child(3) {
        transform: translate(-50%, -50%) translateY(6px);
    }

    .hamburger.active span:nth-child(1) {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(45deg) !important;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0 !important;
    }

    .hamburger.active span:nth-child(3) {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-45deg) !important;
    }

}




/* ============================================================
   NAVIGATION — iPHONE LANDSCAPE
============================================================ */

@media (min-width: 480px) and (max-height: 480px) {

    .nav {
        height: 50px;
        padding: 0 1rem;
    }

    .logo img {
        height: 45px;
    }

    .menu {
        top: 34px !important;
        margin-top: 1rem;
        gap: 1.5rem;
    }

    .hamburger {
        display: flex;
        position: relative;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
    }

    .hamburger span {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 22px;
        height: 2px;
        transform-origin: center;
    }

    .hamburger span:nth-child(1) {
        transform: translate(-50%, -50%) translateY(-6px);
    }

    .hamburger span:nth-child(2) {
        transform: translate(-50%, -50%);
    }

    .hamburger span:nth-child(3) {
        transform: translate(-50%, -50%) translateY(6px);
    }

    .hamburger.active span:nth-child(1) {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(45deg) !important;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0 !important;
    }

    .hamburger.active span:nth-child(3) {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-45deg) !important;
    }

}




/* ============================================================
   NAVIGATION — Tablet
============================================================ */

@media (min-width: 768px) and (max-width: 1024px) {
    nav {
        background-color: rgba(0, 0, 0, 0.9) !important; /* darker */
        backdrop-filter: blur(6px); /* optional, looks great on iPad */
    }
}




/* ============================================================
   HERO SECTION — BASE
============================================================ */

.hero_section {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100vh;
    padding-top: 23.5vh;
    justify-content: flex-start;
    overflow: hidden;
    background-image:
        linear-gradient(135deg, rgba(0,0,0,0.15), rgba(0,0,0,0.15)),
        url("/SiteAssets/Images/header_image_desktop.jpg");
    background-size: 100% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.hero_content {
    max-width: 1000px;
    padding-top: 6rem;
    padding-left: 3rem;
}

.hero_content h1 {
    font-size: 3.5rem;
    line-height: 2.65rem;
}

.hero_content p {
    margin-bottom: 1.7rem;
    font-size: 1.6rem;
}

.cta {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    font-weight: 800;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* ============================================================
   HERO SECTION — CTA BUTTON
============================================================ */

.cta {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    background: #ff4f4f;
    border-radius: 4px;
    transition: background .3s, transform .3s;
}

.cta:hover {
    background: #d63c3c;
    transform: translateY(-3px);
}




/* ============================================================
   HERO SECTION — MOBILE
============================================================ */

@media (max-width: 880px) {

    .hero_section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero_content {
        padding-left: 0;
        padding-right: 0;
        text-align: left;
    }

    .hero_content h1 {
        font-size: 2.2rem;
        line-height: 1.3rem;
    }

    .hero_content p {
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }

    .hero_content .cta {
        padding: 0.7rem 1.2rem;
        font-size: 1.2rem;
    }

}




/* ============================================================
   HERO SECTION — iPHONE PORTRAIT
============================================================ */

@media screen and (max-width: 430px) and (orientation: portrait) {

    .hero_section {
        margin-top: 0;
        height: 89vh !important;
        justify-content: flex-start;
        background:
            linear-gradient(135deg, rgba(0,0,0,0.15), rgba(0,0,0,0.15)),
            url("/SiteAssets/Images/header_image_phone_portrait.jpg") center/cover;
        background-size: cover !important;
        background-position: center bottom !important;
        background-repeat: no-repeat !important;
    }

    .hero_content {
        padding-top: 13.1rem !important;
        padding-left: 0.7rem !important;
    }

    .hero_content h1 {
        font-size: 2.2rem !important;
        line-height: 2.9rem !important;
    }

	.hero_content p {
        margin-top: -0.4rem !important;
        margin-bottom: 1.3rem !important;
        font-size: 1.5rem !important;
		line-height: 2.2rem !important;
		display: none;
    }

    .hero_content .cta {
        padding: 0.7rem 1.2rem;
        font-size: 1.23rem;
	}
}




/* ============================================================
   HERO SECTION — iPHONE LANDSCAPE
============================================================ */

@media (min-width: 480px) and (max-height: 480px) {

    .hero_section {
        margin-top: 0;
        height: 83.5vh !important;
        justify-content: flex-start;
        background:
            linear-gradient(135deg, rgba(0,0,0,0.15), rgba(0,0,0,0.15)),
            url("/SiteAssets/Images/header_image_phone_landscape.jpg") center/cover;
        background-size: cover !important;
        background-position: center bottom !important;
        background-repeat: no-repeat !important;
    }

    .hero_content {
        padding-top: 0.7rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero_content h1 {
        font-size: 2rem;
        line-height: 2.9rem;
    }

    .hero_content p {
        margin-top: -0.85rem;
        margin-bottom: 1.4rem;
        font-size: 1.2rem;
    }

}




/* ============================================================
   HERO SECTION — TABLET PORTRAIT
============================================================ */

@media (max-width: 1024px) and (orientation: portrait) {

    .hero_content h1 {
		margin-bottom: 1.7rem !important;
        font-size: 2.5rem;
    }

    .hero_content p {
        margin-bottom: 1.6rem;
        font-size: 1.35rem;
    }

}




/* ============================================================
   HERO SECTION — Tablet Landscape
============================================================ */

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {

    .hero_section {
        height: 87.5vh !important;
        padding-top: 27vh !important;
        background-color: #000 !important;
        background-image:
            linear-gradient(135deg, rgba(0,0,0,0.15), rgba(0,0,0,0.15)),
            url("/SiteAssets/Images/header_image_tablet_landscape.jpg");
        background-size: 100% auto !important;
        background-position: center bottom !important;
        background-repeat: no-repeat !important;
    }

}

@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {

    .hero_content h1 {
        margin-bottom: -0.1rem !important;
        font-size: 2.9rem !important;
        line-height: 0.7 !important;
    }

}




/* ============================================================
   RATS — GLOBAL SPRITE ANIMATION
============================================================ */

@keyframes ratFrames {
    from { background-position: 0 0; }
    to   { background-position: -72600px 0; }
}

/* Unpause all rats when .start is applied */
.rat_animation_1.start,
.rat_animation_2.start,
.rat_animation_3.start,
.rat_animation_4.start,
.rat_animation_5.start {
    animation-play-state: running;
}




/* ============================================================
   RAT 1 — START ANIMATION
============================================================ */

.rat_animation_1.start {
    animation:
        var(--rat1-walk) linear forwards,
        ratFrames 2s steps(121) infinite;
}




/* ============================================================
   RAT 1 — BASE SPRITE & CONTAINER
============================================================ */

.rat_container_1 {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 338px;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.rat_animation_1 {
    position: absolute;
    left: 100vw;
    bottom: -45px;
    width: 600px;
    height: 338px;
    background: url('/SiteAssets/Images/rat_sprite.png') no-repeat;
    background-size: 72600px 338px;
    transform: scale(0.55);
    transform-origin: bottom left;
    filter: brightness(0.4);
}




/* ============================================================
   RATS 2–5 — BASE SPRITE & CONTAINERS
============================================================ */

.rat_container_2,
.rat_container_3,
.rat_container_4,
.rat_container_5 {
    position: absolute;
    top: 32px;
    left: 0;
    width: 100%;
    height: 240px;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.rat_animation_2,
.rat_animation_3,
.rat_animation_4,
.rat_animation_5 {
    position: absolute;
    top: 0;
    left: 0;
    width: 600px;
    height: 338px;
    background: url('/SiteAssets/Images/rat_sprite.png') no-repeat;
    background-size: 72600px 338px;
    transform-origin: top left;
    animation-play-state: paused;
    filter: brightness(0.4);
}




/* ============================================================
   RATS 2–5 — FACING DIRECTION
============================================================ */

.rat_animation_2,
.rat_animation_4 {
    transform: scale(0.55) scaleX(-1);
}

.rat_animation_3,
.rat_animation_5 {
    transform: scale(0.55);
}




/* ============================================================
   RATS — PHONES + SMALL TABLETS (PORTRAIT)
============================================================ */

@media (max-width: 880px) and (orientation: portrait) {

    @keyframes ratWalk_1_mobile_portrait {
        from { left: 768px; }
        to   { left: -350px; }
    }

    :root { --rat1-walk: ratWalk_1_mobile_portrait 5.5s; }

    @keyframes ratWalk_2 { from { left: 0px; } to { left: 1118px; } }
    @keyframes ratWalk_3 { from { left: 768px; } to { left: -350px; } }
    @keyframes ratWalk_4 { from { left: 0px; } to { left: 1118px; } }
    @keyframes ratWalk_5 { from { left: 768px; } to { left: -350px; } }

    .rat_animation_2.start { animation: ratWalk_2 5.5s linear forwards, ratFrames 2s steps(121) infinite; }
    .rat_animation_3.start { animation: ratWalk_3 5.5s linear forwards, ratFrames 2s steps(121) infinite; }
    .rat_animation_4.start { animation: ratWalk_4 5.5s linear forwards, ratFrames 2s steps(121) infinite; }
    .rat_animation_5.start { animation: ratWalk_5 5.5s linear forwards, ratFrames 2s steps(121) infinite; }
}



/* ============================================================
   RATS — PHONES + SMALL TABLETS (LANDSCAPE)
============================================================ */

@media (max-width: 880px) and (orientation: landscape) {

    @keyframes ratWalk_1_mobile_landscape {
        from { left: 1024px; }
        to   { left: -350px; }
    }

    :root { --rat1-walk: ratWalk_1_mobile_landscape 7s; }

    @keyframes ratWalk_2 { from { left: 0px; } to { left: 1374px; } }
    @keyframes ratWalk_3 { from { left: 1024px; } to { left: -350px; } }
    @keyframes ratWalk_4 { from { left: 0px; } to { left: 1374px; } }
    @keyframes ratWalk_5 { from { left: 1024px; } to { left: -350px; } }

    .rat_animation_2.start { animation: ratWalk_2 7s linear forwards, ratFrames 2s steps(121) infinite; }
    .rat_animation_3.start { animation: ratWalk_3 7s linear forwards, ratFrames 2s steps(121) infinite; }
    .rat_animation_4.start { animation: ratWalk_4 7s linear forwards, ratFrames 2s steps(121) infinite; }
    .rat_animation_5.start { animation: ratWalk_5 7s linear forwards, ratFrames 2s steps(121) infinite; }
}



/* ============================================================
   RATS — LARGE TABLETS (LANDSCAPE)
============================================================ */

@media (min-width: 881px) and (max-width: 1366px) {

    @keyframes ratWalk_1_tablet {
        from { left: 1500px; }
        to   { left: -350px; }
    }

    :root { --rat1-walk: ratWalk_1_tablet 9s; }

    @keyframes ratWalk_2 { from { left: 0px; } to { left: 1850px; } }
    @keyframes ratWalk_3 { from { left: 1500px; } to { left: -350px; } }
    @keyframes ratWalk_4 { from { left: 0px; } to { left: 1850px; } }
    @keyframes ratWalk_5 { from { left: 1500px; } to { left: -350px; } }

    .rat_animation_2.start { animation: ratWalk_2 9s linear forwards, ratFrames 2s steps(121) infinite; }
    .rat_animation_3.start { animation: ratWalk_3 9s linear forwards, ratFrames 2s steps(121) infinite; }
    .rat_animation_4.start { animation: ratWalk_4 9s linear forwards, ratFrames 2s steps(121) infinite; }
    .rat_animation_5.start { animation: ratWalk_5 9s linear forwards, ratFrames 2s steps(121) infinite; }
}




/* ============================================================
   PIPES
============================================================ */

.pipe {
    position: absolute;
    left: 50%;
    width: 100%;
    overflow: hidden;
    transform: translateX(-50%);
    pointer-events: none;
	z-index: 1;
}

.pipe img {
    position: relative;
    left: 50%;
    max-width: none;
    width: 2000px;
    transform: translateX(-50%);
}




/* ============================================================
   SECTIONS — BASE LAYOUT
============================================================ */

.rectangle {
    height: 50px;
    background-color: #000;
}

#featured_projects_section,
#portfolio_section,
#about_section,
#contact_section {
    position: relative;
    padding: 3rem 2rem 0;
    overflow: visible;
    scroll-margin-top: 0;
}




/* ============================================================
   SECTIONS — DESKTOP SPACING
============================================================ */

@media (min-width: 881px) {

    #featured_projects_section,
    #portfolio_section,
    #about_section,
    #contact_section {
        scroll-margin-top: 50rem !important;
        margin-top: 0 !important;
        margin-bottom: 4rem;
        padding-top: 0 !important;
    }

    .rat_container_1,
    .rat_container_2,
    .rat_container_3,
    .rat_container_4,
    .rat_container_5 {
        margin-top: calc(-6rem + 25px);
    }

    .pipe {
        top: calc(137px - 6rem + 25px);
    }

}




/* ============================================================
   SECTIONS — MOBILE SPACING
============================================================ */

@media (max-width: 880px) {

    #featured_projects_section,
    #portfolio_section,
    #about_section,
    #contact_section {
        margin-top: 0 !important;
        margin-bottom: 4rem !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .rat_container_1,
    .rat_container_2,
    .rat_container_3,
    .rat_container_4,
    .rat_container_5 {
        margin-top: -80px;
    }

    .pipe {
        top: calc(137px - 80px);
    }

}




/* ============================================================
   SECTIONS — COMPONENTS
============================================================ */

.rounded_rectangle {
    width: 100%;
    padding: 1rem 1.5rem 2rem;
    background: #000;
    border-radius: 12px 12px 0 0;
}

.about_section .graphic {
    margin: 0 1.5rem 1rem 0;
}

.about .resume_button {
    margin-top: 1.5rem !important;
}

.contact_section button,
.contact_section input[type="submit"] {
    font-size: 1.25rem !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}




/* ============================================================
   SECTIONS — HEADINGS
============================================================ */

.project h2 {
    margin-top: 18px;
	margin-bottom: -0.22rem !important;
    font-size: 1.29rem;
}

.portfolio h2 {
    font-size: 1.5rem;
}

.portfolio_project h2 {
	margin-bottom: -5px;
    font-size: 1.09rem;
}

@media (max-width: 480px) and (orientation: portrait) {

    .portfolio_project h2 {
        font-size: 1.35rem !important;
    }

}

@media (min-width: 480px) and (max-height: 480px) {

    .portfolio h2 {
        font-size: 2rem !important;
    }

    .portfolio_project h2 {
        font-size: 1.8rem !important;
        font-weight: 700 !important;
        color: #fff !important;
    }

}




/* ============================================================
   SECTIONS — GRID LAYOUT
============================================================ */

.project_grid,
.portfolio_grid {
    display: grid;
    gap: 1.6rem;
}

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




/* ============================================================
   CARDS — PROJECT / PORTFOLIO / ABOUT
============================================================ */

.project,
.portfolio,
.portfolio_project,
.about {
    padding: 2rem;
    background-color: rgba(66,66,66,0.8);
    border-radius: 6px;
    transition: transform .3s, box-shadow .3s;
}

.project,
.portfolio,
.portfolio_project {
    cursor: pointer;
}

.project:hover,
.portfolio:hover,
.portfolio_project:hover {
    box-shadow: 0 0 30px rgba(0,0,255,1);
    transform: translateY(-10px) scale(1.02);
}

.project:hover .large_button,
.portfolio:hover .large_button,
.portfolio_project:hover .large_button {
    border-color: #002a7a;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    transform: scale(1.07);
}

.project:hover .large_button::before,
.portfolio:hover .large_button::before,
.portfolio_project:hover .large_button::before {
    left: 100%;
}

.portfolio_project img.graphic {
    display: block;
    overflow: visible !important;
    border-radius: 6px;
}

.portfolio_project a {
    color: inherit !important;
    text-decoration: none !important;
}

.portfolio_project,
.portfolio_project * {
    color: #fff !important;
}

.portfolio {
    margin-bottom: 2rem;
}




/* ============================================================
   CARDS — TABLET PORTRAIT
============================================================ */

@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .portfolio_project h2 {
        font-size: 1.5rem;
    }
}




/* ============================================================
   CARDS — TABLET LANDSCAPE 
============================================================ */

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {

    .rounded_rectangle {
        font-size: 1.8rem !important;
    }

    .portfolio_card {
        display: flex;
        align-items: flex-start;
        gap: 2rem;
    }

    .graphic {
        float: none;
        margin: 0;
        width: 12rem;
    }
	
    .project h2 {
        margin-top: 1rem !important;
    }

	.project .large_button {
		margin-top: -1.5rem !Important;
	}

    .portfolio_text {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .portfolio_text .large_button {
		margin-top: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .portfolio_project h2 {
		margin-bottom: -8px;
        font-size: 1.5rem;
	}

    .about_section .graphic {
        float: left;
        margin: 0 1.5rem 1rem 0;
        width: 11rem;
    }

}




/* ============================================================
   CARDS — TABLET LANDSCAPE 
============================================================ */

/* TABLET PORTRAIT — FIX FLEX SHRINKING INSIDE <a> */
@media (min-width: 600px) and (max-width: 768px) {

    /* The anchor MUST be allowed to shrink */
    .portfolio > a {
        display: block;      /* ensure it's not inline */
        min-width: 0;        /* CRITICAL */
    }

    /* The flex container MUST be allowed to shrink */
    .portfolio_card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
        min-width: 0;        /* CRITICAL */
        width: 100%;         /* prevents overflow */
    }

    /* Now the text can finally wrap */
    .portfolio_text {
        flex: 1 1 0;
        min-width: 0;        /* CRITICAL */
        max-width: 100%;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* Children must not enforce nowrap */
    .portfolio_text * {
        white-space: normal !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
}




/* ============================================================
   PROJECT CARD
============================================================ */

.rounded_thumbnail {
    border-radius: 6px;
}

.project ul {
	margin-bottom: 0.58rem !important;
}

.project .large_button {
	margin-top: -0.55rem !important;
    font-size: 1.29rem !important;
}

.project .large_button::after {
    margin-left: 0.30rem !important;
    border-top: 8px solid transparent !important;
    border-left: 14px solid #fff !important;
    border-bottom: 8px solid transparent !important;
}




/* ============================================================
   PORTFOLIO CARD
============================================================ */

.portfolio_card {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.graphic {
    width: 13rem;
    border-radius: 6px;
}

.portfolio_text {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.6rem;
}

.portfolio_text h2 {
    margin: 0 0 -1.1rem 0;
}

.portfolio_text p {
    margin-top: 1.24rem;
    margin-bottom: 0.4rem;
}

.portfolio_text .large_button {
	margin-top: 0.28rem !important;
    max-width: 100%;
    width: 28rem;
    font-size: 1.29rem;
}




/* ============================================================
   PORTFOLIO CARD — REMOVE DOTTED OUTLINE
============================================================ */

.portfolio a,
.portfolio a:focus,
.portfolio a:active,
.portfolio_project a,
.portfolio_project a:focus,
.portfolio_project a:active {
    outline: none !important;
    border: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
    -webkit-touch-callout: none !important;
}

.portfolio_project *:focus {
    outline: none !important;
    -webkit-focus-ring-color: transparent !important;
}




/* ============================================================
   PORTFOLIO CARD — FULL-WIDTH BLUE BUTTONS
============================================================ */

.portfolio_project > a {
    display: block;
    width: 100%;
}

.portfolio_project .large_button {
    display: flex !important;
	margin-top: -18px;
    max-width: 100% !important;
    width: 100% !important;
	font-size: 1.29rem;
    justify-content: center;
    box-sizing: border-box;
}




/* ============================================================
   PORTFOLIO CARD — MOBILE
============================================================ */

@media (max-width: 880px) and (orientation: portrait) {

    .portfolio_card {
        display: block;
    }

    .graphic {
        float: left;
        margin: 0.6rem 1.1rem 0.5rem 0;
        width: 7rem;
        border-radius: 6px;
    }

    .portfolio_text {
        display: block;
    }

    .portfolio_text h2 {
        margin-top: 0.3rem;
		font-size: 1.5rem !important;
    }

    .portfolio_text p {
        margin-top: 1.65rem;
    }

    .portfolio_text .large_button {
		margin-top: 0.65rem !important;
        max-width: 100%;
        width: auto;
    }

    .portfolio_project:not(:last-child) {
        margin-bottom: 2rem;
    }

}




/* ============================================================
   PORTFOLIO CARD — MOBILE
============================================================ */

@media (max-width: 880px) and (orientation: landscape) {

    .portfolio_card {
        display: block;
    }

    .graphic {
        float: left;
        margin: 0.6rem 1.1rem 0.5rem 0;
        width: 7rem;
        border-radius: 6px;
    }

    .portfolio_text {
        display: block;
    }

    .portfolio_text h2 {
        margin-top: 0.3rem;
		font-size: 1.5rem !important;
    }

    .portfolio_text p {
        margin-top: 1.65rem;
    }
	
	.project .large_button {
		margin-top: -0.75rem !important;
	}

    .portfolio_text .large_button {
		margin-top: -0.08rem !important;
        max-width: 100%;
        width: auto;
    }

    .portfolio_project:not(:last-child) {
        margin-bottom: 2rem;
    }

}




/* ============================================================
   PORTFOLIO CARD — MOBILE PORTRAIT
============================================================ */

@media (max-width: 880px) and (orientation: portrait) {

    .portfolio_text .large_button {
		margin-top: 0.65rem;
        max-width: 100%;
        width: 22rem;
    }

}




/* ============================================================
   PORTFOLIO CARD — MOBILE LANDSCAPE
============================================================ */

@media (max-width: 880px) and (orientation: landscape) {
    
    .graphic {
        float: left;
        margin: 0.6rem 1.3rem 1rem 0;
        width: 11rem;
    }

    .portfolio_text .large_button {
        max-width: 100%;
        width: 22rem;
		font-size: 1.3rem !important;
    }

}




/* ============================================================
   PORTFOLIO CARD — iPHONE PORTRAIT
============================================================ */

@media (max-width: 480px) and (orientation: portrait) {

    .project .large_button {
		margin-top: -0.8rem !important;
        font-size: 1.31rem !important;
    }

    .portfolio .large_button {
        font-size: 1.31rem !important;
    }

    .portfolio_project .large_button {
        font-size: 1.35rem !important;
    }

    .large_button::after {
        margin-left: 0.30rem !important;
        border-top: 8px solid transparent !important;
        border-left: 14px solid #fff !important;
        border-bottom: 8px solid transparent !important;
    }

}




/* ============================================================
   PORTFOLIO CARD — TABLET PORTRAIT
============================================================ */

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {

    .rounded_rectangle {
        padding: 1.2rem 1.6rem 2.2rem !important;
        font-size: 1.7rem !important;
        line-height: 1.25 !important;
    }

    .portfolio_text {
        display: block;
        min-width: 0;
        width: auto;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .portfolio_text h2 {
        margin-bottom: 0.55rem !important;
    }

    .portfolio_text .large_button {
        margin-top: 0.65rem !important;
        max-width: 100% !important;
        width: 100% !important;
    }

}




/* ============================================================
   FANCYBOX — BASE
============================================================ */

.fancybox__container {
    overflow-x: hidden !important;
    z-index: 4 !important;
}




/* ============================================================
   FANCYBOX — SCROLL
============================================================ */

.fancybox__slide {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
}




/* ============================================================
   FANCYBOX — CLOSE BUTTON
============================================================ */

@media (max-width: 880px) {

    .fancybox__toolbar {
        display: flex !important;
        justify-content: flex-end !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 44px !important;
        padding: 0 10px !important;
        align-items: center !important;
        z-index: 4 !important;
    }

    .fancybox__button--close {
        display: inline-flex !important;
        width: auto !important;
        height: auto !important;
        padding: 8px !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

}




/* ============================================================
   FANCYBOX — HEADER
============================================================ */

.fancybox__header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    margin: 0 0 1.2rem 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    justify-content: flex-start !important;
}

.fancybox_header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    justify-content: flex-start !important;
}

.fancybox__header__left,
.fancybox__header__right {
    display: flex !important;
    flex-direction: row !important;;
    align-items: center !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    width: auto !important;
    padding: 0 !important;
}

.fancybox_header img {
    flex-shrink: 0 !important;
    margin-right: 1rem !important;
    height: 50px !important;
    width: auto !important;
}

.fancybox_header h2 {
    display: flex !important;
    align-items: center !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    flex-basis: 0 !important;
    height: 50px !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 20px !important;
    font-size: 1.8rem !important;
    line-height: 1 !important;
    color: #fff !important;
    background: rgba(0,0,0,0.85) !important;
    border-radius: 8px !important;
}


.fancybox_text {
    display: flex !important;
    align-items: center !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    flex-basis: 0 !important;
    max-width: 100% !important;	
    width: 100% !important;
    height: 50px !important;
    padding: 0 20px !important;
    color: #fff !important;
    background: rgba(0,0,0,0.85) !important;
    border-radius: 8px !important;
}


/* ============================================================
   FANCYBOX — CONTENT AREA
============================================================ */

.fancybox__content {
    padding-top: 60px !important;
    color: #fff !important;
}

@media (max-width: 880px) {

    .fancybox__content .portfolio_grid {
        display: block !important;
        grid-template-columns: 1fr !important;
    }

}

.fancybox__content .portfolio_project {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
}

.fancybox__content .portfolio_project h2 {
    margin-top: 1.48rem !important;
}




/* ============================================================
   FANCYBOX — iPHONE PORTRAIT
============================================================ */

@media (max-width: 480px) and (orientation: portrait) {

    .fancybox_header img {
        height: 60px !important;
    }

    .fancybox_header h2 {
        height: 60px !important;
        padding: 0 16px !important;
        font-size: 1.35rem !important;
    }

    .portfolio_project h2 {
        font-size: 1.35rem !important;
		margin-bottom: -0.25rem !important;
    }

    .large_button {
		margin-top: -0.9rem !important;
        font-size: 1.3rem !important;
    }

    .large_button::after {
        margin-left: 0.35rem !important;
        border-top: 8px solid transparent !important;
        border-left: 14px solid #fff !important;
        border-bottom: 8px solid transparent !important;
    }


}




/* ============================================================
   FANCYBOX — iPHONE LANDSCAPE
============================================================ */

@media (min-width: 480px) and (max-height: 480px) {

    .fancybox_header img {
        height: 80px !important;
        width: auto !important;
    }

    .fancybox_header h2 {
        height: 80px !important;
        font-size: 1.8rem !important;
    }

    .portfolio_text p {
        margin-bottom: 1rem;
        font-size: 0.6rem !important;
        line-height: 1rem !important;
    }

    .portfolio_project h2 {
		margin-top: 0 !important;
		margin-bottom: 0.1rem !important;
        font-size: 1.4rem !important;
        font-weight: 700 !important;
        color: #fff !important;
    }

    .portfolio_project p {
		margin-top: 0.45rem !important;
        font-size: 0.6rem !important;
        line-height: 1rem !important;
    }

    .portfolio_project ul {
        font-size: 0.6rem !important;
        line-height: 1rem !important;
    }

    .about_section p,
    .about p {
        font-size: 0.6rem !important;
        line-height: 1rem !important;
        margin-top: 0.6rem !important;
        margin-bottom: 0.6rem !important;
    }

    .large_button {
		margin-top: -0.78rem !important;
        font-size: 1.3rem !important;
    }

    .large_button::after {
        margin-left: 0.35rem !important;
        border-top: 8px solid transparent !important;
        border-left: 14px solid #fff !important;
        border-bottom: 8px solid transparent !important;
    }



}

@media (min-width: 1025px) {

    .fancybox__content .portfolio_grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.6rem !important;
    }

    .fancybox__content .portfolio_project {
        display: block !important;
        max-width: 100% !important;
        width: 100% !important;
    }

}




/* ============================================================
   LARGE BUTTONS
============================================================ */

.large_button {
    display: inline-flex;
    align-items: center;
    position: relative;
    max-width: 100%;
    width: 25rem;
    min-width: 130px;
    height: 60px;
    padding: 0 1.4rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    justify-content: center;
    gap: 0.8rem;
    overflow: hidden;
    background: linear-gradient(135deg, #00349a, #0056d6);
    border: 2px solid #001f5c;
    border-radius: 30px;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
    cursor: pointer;
}

.large_button:hover::before {
    left: 100%;
}

.large_button:hover {
    border-color: #002a7a;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    transform: scale(1.07);
}

.large_button::before {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    content: "";
    background: rgba(255,255,255,0.2);
    transform: skewX(-20deg);
    transition: left .5s ease;
}

.large_button::after {
    margin-left: 0.15rem;
    content: "";
    border-top: 7px solid transparent;
    border-left: 11px solid #fff;
    border-bottom: 7px solid transparent;
}




/* ============================================================
   RESUME BUTTON
============================================================ */

.resume_button {
    display: flex;
    align-items: center;
    max-width: 320px;
    width: auto;
    padding: 10px 15px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #0000ff;
    text-decoration: none;
    background: #eee;
    border-radius: 6px;
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
}

.resume_button:hover {
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    transform: scale(1.06);
}

@media (max-width: 480px) {

    .resume_button {
        min-width: 288px;
        justify-content: center;
    }

}

@media (max-width: 880px) and (orientation: portrait) {

    .resume_button {
        width: 50%;
        justify-content: center;
    }

}

@media (min-width: 1024px) and (max-height: 900px) {

    .resume_button {
        width: 40%;
        justify-content: center;
    }

}




/* ============================================================
   CONTACT FORM
============================================================ */

.contact_form {
    display: flex;
    flex-direction: column;
    margin: auto;
    max-width: 600px;
    gap: 1rem;
}

.contact_form input,
.contact_form textarea {
    padding: 1rem;
    background: #fff;
    border: none;
    border-radius: 4px;
}

.contact_form button {
    padding: 1rem;
    font-weight: 600;
    color: #fff;
    background: #ff4f4f;
    border: none;
    border-radius: 4px;
    transition: background .3s, transform .3s;
}

.contact_form button:hover {
    background: #d63c3c;
    transform: translateY(-3px);
}




/* ============================================================
   FOOTER
============================================================ */

.footer {
    padding: 2rem;
    text-align: center;
    opacity: .6;
}