*{
    margin:0;
    padding:0;
    font-family: 'Poppins', sans-serif;
    color:white;
    text-decoration: none;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: #0f1f2e;
}

body {
    background-color: #0f1f2e;
}

#link {
    text-decoration: underline;
}

.header{
    min-height:8vh;
    width: 100%;
    background-position: center;
    background-size:cover;
    position: relative;
}

nav {
    background-color: #1e3a5f;
    width: 100%;
    height: 80px;
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav img{
    width: 16vw;   
}

.header-logo-text {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links{
    flex: 1;
    text-align: right;
}

.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 16px;
    position: relative;
    margin: 0 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links ul li:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-links ul li a{
    color: #ffffff;
    text-decoration: none;
    font-size:16px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links ul li a:hover {
    color: #4a90e2;
}

.nav-links ul li::after{
    content:'';
    width: 0%;
    height: 2px;
    background: #4a90e2;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after{
    width: 100%;
}

.text-box{
    width:90%;
    color: black;
    position:absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    align-items: center;
    justify-content: center;
}

.head-image {
    position: relative;
    overflow: hidden;
    padding-top: 270px;
    padding-bottom: 230px;
}

    .head-image h1 {
        display: block;
        font-size: 3vw;
        text-align: center;
        font-weight: 700;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);

    }

        .head-image h1:after {
            content: "";
            display: block;
            margin: 0 auto;
            width: 10%;
            padding-top: 10px;
            border-bottom: 4px solid #4a90e2;
        }


    .head-image h2 {
        padding-top: 20px;
        text-align: center;
    }

.about-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    background: rgba(30, 50, 90, 0.15);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.10);
    padding: 48px 40px;
    margin: 40px auto 0 auto;
    max-width: 1300px;
}

.about-img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    border: 5px solid #fff;
    background: #fff;
    margin: 0;
}

.about-text {
    max-width: 500px;
    color: #fff;
    text-align: left;
    padding: 0 10px;
}

    .about-text h2 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 18px;
        color: #fff;
        letter-spacing: 0.5px;
    }

    .about-text p {
        font-size: 1.15rem;
        line-height: 1.7;
        color: #e0e0e0;
        margin-bottom: 0;
    }


nav .fa-solid {
    display: none;
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4a90e2;
    color: #fff;
    font-weight: 600;
    font-size: 1.1em;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(74,144,226,0.10);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    margin-right: 12px;
}

.resume-btn:hover {
    background: #357abd;
    color: #fff;
    box-shadow: 0 4px 16px rgba(74,144,226,0.18);
    transform: translateY(-2px) scale(1.03);
    text-decoration: none;
}

.resume-btn i {
    font-size: 1.2em;
}

/*------------footer----------*/

.footer{
    width: 100%;
    text-align: center;
}

.footer-color {
    background-color: #1e3a5f;
    padding-top: 30px;
    padding-bottom: 30px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.footer p{
    margin-bottom: 15px;
    font-size: 1vw;
    opacity: 0.9;
}

.icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.icons a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icons a:hover {
    background-color: rgba(74, 144, 226, 0.1);
    border-color: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.icons .fa, i{
    cursor: pointer;
    font-size: 1.5em;
    transition: all 0.3s ease;
}

.icons .fa:hover, i:hover {
    color: #4a90e2;
}

.icons span {
    font-size: 0.9em;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.icons .resume-btn {
    background: #4a90e2;
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(74,144,226,0.10);
}

.icons .resume-btn:hover {
    background: #357abd;
    color: #fff;
    box-shadow: 0 4px 16px rgba(74,144,226,0.18);
    transform: translateY(-2px) scale(1.03);
}

/*------------sections----------*/

/* For LevelEditor videos: crop to fill width, no black bars */
.leveleditor-video-crop1 {
    width: 100%;
    max-width: 900px; /* or whatever max you want */
    aspect-ratio: 16/7.8;
    margin: 0 auto;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: #181818;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .leveleditor-video-crop1 video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.leveleditor-video-crop2 {
    width: 100%;
    max-width: 900px; /* or whatever max you want */
    aspect-ratio: 16/7;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: #181818;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .leveleditor-video-crop2 video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }


.leveleditor-video-crop3 {
    width: 100%;
    max-width: 900px; /* or whatever max you want */
    aspect-ratio: 16/6.3;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: #181818;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .leveleditor-video-crop3 video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.pokemon-progression {
    gap: 20px;
}

.pokemon-progression .section-photo {
    width: 360px;
    aspect-ratio: 4/3;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,1);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
}

    .pokemon-progression .section-photo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 8px;
        background: rgba(0,0,0,1);
        display: block;
    }

.background-col-section {
    background-color: #2c5aa0;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.02) 75%), linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.02) 75%);
    background-size: 20px 20px;
    padding: 20px 0;
}

.respo-section1, .respo-section2 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: stretch;
}

.respo-section-text, .respo-section2-text {
    padding: 40px;
    margin: 0;
    flex: 1;
    background-color: #1e3a5f;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.respo-section-text:hover, .respo-section2-text:hover {
    transform: translateY(-5px);
}

.respo-section-text h1, .respo-section2-text h1 {
    font-size: 2.5rem;
    text-align: center;
    padding: 20px;
    font-weight: 600;
    color: #ffffff;
}

.respo-section-text ul, .respo-section2-text ul {
    display: table;
    margin-left: auto;
    margin-right: auto;
    list-style: none;
}

.respo-section-text li, .respo-section2-text li {
    margin: 12px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.respo-section-text li:before, .respo-section2-text li:before {
    content: "\2022";
    color: #4a90e2;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.respo-section-image, .respo-section2-image {
    padding: 40px;
    margin: 0;
    flex: 1;
    background-color: #1e3a5f;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.respo-section-image:hover, .respo-section2-image:hover {
    transform: translateY(-5px);
}

.respo-section-image img, .respo-section2-image img {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.side-by-side-videos {
    display: flex;
    gap: 20px;
    width: 100%;
    height: 100%;
}

.side-by-side-videos video {
    width: 50%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    object-fit: cover;
    border: 2px solid #ffffff;
}

/*------------photo grid----------*/
:root {
    box-sizing: border-box;
}

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

.gallery li{
    list-style: none;
}

.card {
    width: 400px;
    height: 400px;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: #181818;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    margin: 0 auto;
    transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.card img {
    height: 240px;
    object-fit: cover;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: block;
}

.card-info {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #181818;
    color: #fff;
    padding: 16px 12px 12px 12px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    text-align: left;
    overflow: hidden;
}

.card-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 4px;
}

.card-roles {
    font-size: 0.95em;
    color: #b0b0b0;
    margin-bottom: 8px;
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    color: #fff;
    background: #444;
    letter-spacing: 0.5px;
}

.tag-unity { background: #4e8cff; }
.tag-csharp { background: #68217a; }
.tag-unreal { background: #1c2732; }
.tag-cpp { background: #00599c; }
.tag-shaderlab { background: #7e57c2; }
.tag-shaders { background: #26a69a; }
.tag-python { background: #3572A5; }
.tag-maya { background: #00b1b3; }
.tag-aframe { background: #ff4f8b; }   /* A-Frame pink */
.tag-html { background: #e44d26; }    /* HTML orange */
.tag-css { background: #2965f1; }     /* CSS blue */
.tag-js { background: #f7e018; color: #222; } /* JS yellow, dark text */
.tag-vr { background: #00bfae; }      /* VR teal */
.tag-mobile { background: #43a047; }  /* Mobile green */
.tag-android { background: #3ddc84; } /* Android green */
.tag-java { background: #e76f00; } /* Java orange */
.tag-console { background: #6c757d; }
.tag-web { background: #17a2b8; }
.tag-prototyping { background: #fd7e14; }
.tag-engine { background: #6f42c1; }
.tag-hlsl { background: #e83e8c; }
.tag-design { background: #20c997; }

.title h1{
    font-size: 2.5rem;
    text-align: center;
    padding-top: 30px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.gray {
    background-color: #2c5aa0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 30px;
    margin: 40px auto;
    max-width: 95%;
}

.gray2 {
    background-color: #1e3a5f;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 30px;
    margin: 40px auto;
    max-width: 95%;
}

/* Video container styles */
.video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    width: 100%;
}

.video-container video, 
.overview-sections video,
.side-by-side-videos video,
.respo-section-image video,
.respo-section2-image video {
    max-width: 100%;
    height: 100%;
    margin-bottom: 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 2px solid #ffffff;
    object-fit: cover;
}

.video-container button {
    padding: 10px 30px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.video-container button:hover {
    background-color: #357abd;
}

/*------------content pages---------*/

.group-content {
    display: flex;
    flex-direction: row;
    padding: 50px;
    gap: 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.overview {
    flex: 0.5;
    background-color: #1e3a5f;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    height: fit-content;
}

.cover {
    background-image: url('images/lumi/lumi-background.png');
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-bottom: 40px;
}

.cover-mohawk {
    background-image: url('images/canoe/mohawk-cover.png');
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-bottom: 40px;
}

.cover-slipstream {
    background-image: url('images/slipstream/slipstreamcover.png');
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-bottom: 40px;
}

.cover-shroombound {
    background-image: url('images/shroombound/shroombound-background.png');
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-bottom: 40px;
}

.project-info {
    flex: 1.4;
    background-color: #2c5aa0;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.overview-sections h2 {
    text-align: center;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.overview-sections video {
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 2px solid #ffffff;
    max-width: 100%;
}

.overview-sections .photo {
    margin-top: 30px;
}

.overview-sections .photo img {
    display: block;
    max-width: 100%;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.overview-sections p {
    margin-left: auto;
    margin-right: auto;
    width: 800px;
    text-align: left;
    padding-top: 10px;
    padding-bottom: 10px;
}

.overview-sections {
    text-align: center;
}

.content h2 {
    padding-top: 20px;
    font-size: 2rem;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.content-header {
    display: block;
    text-align: center;
}

.content-header h1{
    font-size: 4vw;
    padding-top: 40px;
    padding-bottom: 20px;
}

.content iframe {
    display: block;
    margin: 20px auto;
}

.content button {
    padding: 10px;
    background-color: #4a90e2;
    color: white;
    font-size: 18px;
    border: 0;
    outline: none;
    cursor: pointer;
    width: 150px;
    margin: 20px auto 0;
    border-radius: 30px;
}

.overview h2 {
    padding-bottom: 20px;
    text-align: center;
    font-size: 1.8rem;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.overview ul {
    display: table;
    margin-left: 0;
    margin-right: 0;
    list-style: none;
    padding: 0;
}

.overview li {
    margin: 12px 0;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.overview li:before {
    content: "\2022";
    color: #4a90e2;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.photo-gallery h1 {
    font-size: 2.5rem;
    text-align: center;
    padding-bottom: 30px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.photo-gallery h2 {
    font-size: 1.8rem;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/*------------content pages GRIDS---------*/
.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-wrapper > div{
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.grid-wrapper > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.grid-wrapper > div > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.grid-wrapper > div:hover > img {
    transform: scale(1.1);
}

.grid-wrapper{
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    grid-auto-rows: 300px;
    grid-auto-flow: dense;
    padding: 20px;
}

.grid-wrapper .wide{
    grid-column: span 2;
}

.grid-wrapper .tall{
    grid-row: span 2;
}

.grid-wrapper .big{
    grid-column: span 2;
    grid-row: span 2;
}

/*------------content pages GRIDS APPS---------*/
.grid-wrapper-apps > div{
    display: flex;
    justify-content: center;
    align-items: center;
}

    .grid-wrapper-apps > div > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }

.grid-wrapper-apps {
    display: grid;
    grid-gap: 10px;
    border-radius: 10px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: auto;
    grid-auto-flow: dense;
    padding: 50px;
}

.grid-wrapper-apps .wide{
    grid-column: span 2;
}

.grid-wrapper-apps .tall{
    grid-row: span 2;
}

.grid-wrapper-apps .big{
    grid-column: span 2;
    grid-row: span 2;
}

/*------------content pages GRIDS ROBOT---------*/


.grid-wrapper-robot > div{
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-wrapper-robot > div > img{
    width: 70%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
}

.grid-wrapper-robot{
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    grid-auto-flow: dense;
    padding: 50px;
}

.robot-gallery {
    padding: 20px;
}

.robot-row-2, .robot-row-3 {
    display: grid;
    grid-gap: 20px;
    margin-bottom: 20px;
}

.robot-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

.robot-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.robot-gallery .photo {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.robot-gallery .photo img {
    width: 70%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.robot-gallery .photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.robot-gallery .photo:hover img {
    transform: scale(1.1);
}

.crate-gallery {
    padding: 20px;
}

.crate-row-1, .crate-row-3, .crate-row-4 {
    display: grid;
    grid-gap: 20px;
    margin-bottom: 20px;
}

.crate-row-1 {
    grid-template-columns: 1fr;
}

.crate-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.crate-row-4 {
    grid-template-columns: repeat(4, 1fr);
}

.crate-gallery .photo {
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

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

.crate-gallery .photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.crate-gallery .photo:hover img {
    transform: scale(1.1);
}

.spaceship-gallery {
    padding: 20px;
}

.spaceship-row-2, .spaceship-row-5 {
    display: grid;
    grid-gap: 20px;
    margin-bottom: 20px;
}

.spaceship-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

.spaceship-row-5 {
    grid-template-columns: repeat(5, 1fr);
}

.spaceship-gallery .photo {
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

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

.spaceship-gallery .photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.spaceship-gallery .photo:hover img {
    transform: scale(1.1);
}

/*------------CONTACT---------*/

.contact {
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 0 60px 0;
    background: none;
}

form {
    background: #f5f6fa;
    display: flex;
    flex-direction: column;
    padding: 40px 32px 32px 32px;
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.12);
    margin-top: 0;
}

    form h1 {
        font-weight: 800;
        margin-bottom: 10px;
        text-align: center;
        color: #22335b;
        font-size: 2rem;
    }

    form h4 {
        font-weight: 400;
        margin-bottom: 24px;
        text-align: center;
        color: #6c7a89;
        font-size: 1rem;
    }

    form input, form textarea {
        border: 1.5px solid #d1d8e0;
        margin: 10px 0;
        padding: 16px;
        outline: none;
        background: #fff;
        font-size: 1rem;
        border-radius: 8px;
        transition: border 0.2s;
        color: black;
    }

        form input:focus, form textarea:focus {
            border: 1.5px solid #3b6cb7;
            background: #f0f6ff;
            color: black;
        }

    form button {
        padding: 14px;
        background: #3b6cb7;
        color: white;
        font-size: 1.1rem;
        font-weight: 600;
        border: 0;
        outline: none;
        cursor: pointer;
        width: 160px;
        margin: 24px auto 0;
        border-radius: 30px;
        box-shadow: 0 2px 8px rgba(44, 62, 80, 0.10);
        transition: background 0.2s;
    }

        form button:hover {
            background: #274a7c;
        }


/*PHOTO GALLERY*/
.photo-gallery h1{
    text-align: center;
}

.photo-main {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.photo-main img {
    max-width: 80%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.grid-wrapper{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

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

.grid-wrapper .big{
    grid-column: span 2;
    grid-row: span 2;
}

.grid-wrapper-websites {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    grid-auto-rows: 300px;
    grid-auto-flow: dense;
    padding: 20px;
}

.grid-wrapper-websites > div{
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.grid-wrapper-websites > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.grid-wrapper-websites > div > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.grid-wrapper-websites > div:hover > img {
    transform: scale(1.1);
}

.stacked-videos {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.stacked-videos video {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.enginex-cropped-video-container {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 10 / 9;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
}

.enginex-cropped-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.resume-readmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4a90e2;
    color: #fff;
    font-weight: 600;
    font-size: 1.08em;
    padding: 10px 22px;
    border-radius: 7px;
    border: none;
    box-shadow: 0 2px 8px rgba(74,144,226,0.10);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    vertical-align: middle;
}
.resume-readmore-btn:hover {
    background: #357abd;
    color: #fff;
    box-shadow: 0 4px 16px rgba(74,144,226,0.18);
    transform: translateY(-2px) scale(1.03);
}
.resume-readmore-btn i {
    font-size: 1.1em;
    display: inline-block;
    vertical-align: middle;
}

/* --- MOBILE FRIENDLY STYLES --- */

@media (max-width: 900px) {
    .about-flex {
        flex-direction: column;
        gap: 32px;
        padding: 32px 10px;
    }
    .about-img {
        width: 220px;
        height: 220px;
    }
    .about-text {
        max-width: 100%;
        padding: 0 4vw;
    }
    .overview-sections p {
        width: 100% !important;
        padding-left: 2vw !important;
        padding-right: 2vw !important;
        box-sizing: border-box;
    }
}

@media (max-width: 700px) {
    .head-image {
        padding-top: 90px;
        padding-bottom: 40px;
    }
    .head-image h1 {
        font-size: 2rem;
    }
    .head-image h2 {
        font-size: 1.1rem;
    }
    .about-flex {
        gap: 18px;
        padding: 18px 2vw;
    }
    .about-img {
        width: 140px;
        height: 140px;
    }
    .about-text h2 {
        font-size: 1.2rem;
    }
    .about-text p {
        font-size: 1rem;
    }
    .gallery {
        grid-template-columns: 1fr;
        max-width: 100vw;
        padding: 0 8px;
        gap: 12px;
    }
    .card {
        width: 300px;
        height: 360px;
        margin: 0 auto;
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-sizing: border-box;
        transition: box-shadow 0.3s, transform 0.3s;
    }
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    }
    .card-info {
        flex: 1 1 0;
        min-height: 0;
        max-height: 160px;
        padding: 14px 8px 10px 8px;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        background: #181818;
        overflow: hidden;
    }
    .overview-sections p {
        width: 100% !important;
        padding-left: 1vw !important;
        padding-right: 1vw !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 600px) {
    nav {
        width: 100vw !important;
        left: 0 !important;
        margin: 0 !important;
        padding: 0 4vw !important;
        box-sizing: border-box;
    }
    .header {
        width: 100vw !important;
        margin: 0 !important;
        left: 0 !important;
        box-sizing: border-box;
        padding: 0 4vw !important;
    }
    .header-logo-text {
        font-size: 1.1rem;
    }
    .nav-links ul li {
        display: block;
        padding: 12px 0;
        margin: 0;
        text-align: left;
    }
    .nav-links {
        position: fixed;
        background: #1e3a5f;
        height: 100vh;
        width: 180px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2000;
        transition: 0.3s;
        box-shadow: -2px 0 10px rgba(0,0,0,0.2);
        padding-top: 60px;
    }
    nav .fa-bars {
        display: block !important;
        color: #fff;
        font-size: 1.7rem;
        cursor: pointer;
        margin-left: 18px;
        z-index: 3000;
    }
    .nav-links ul {
        padding: 0;
    }
    .nav-links ul li a {
        font-size: 1.1rem;
    }
    .footer-color h3 {
        font-size: 1.1rem;
    }
    .footer-color p {
        font-size: 0.9rem;
    }
    .icons span {
        display: none;
    }
}

/* Responsive images and videos */
img, video {
    max-width: 100%;
    height: auto;
}

/* Responsive card gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    justify-items: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 1280px;
}
@media (max-width: 1100px) {
    .gallery {
        grid-template-columns: 1fr;
        max-width: 100vw;
        padding: 0 8px;
        overflow-x: auto;
    }

}
@media (max-width: 700px) {
    .gallery {
        grid-template-columns: 1fr;
        max-width: 100vw;
        padding: 0 8px;
        overflow-x: unset;
    }

}

/* --- MOBILE STACKING FOR PROJECT PAGES --- */
@media (max-width: 900px) {
  .group-content,
  .respo-section1,
  .respo-section2,
  .side-by-side-videos {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 20px 5vw !important;
    align-items: stretch !important;
  }
  .project-info,
  .overview,
  .respo-section-text,
  .respo-section2-text,
  .respo-section-image,
  .respo-section2-image {
    padding: 24px 4vw !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto 18px auto !important;
  }
  .side-by-side-videos video {
    width: 100% !important;
    margin-bottom: 12px !important;
  }
}
@media (max-width: 700px) {
  .group-content,
  .respo-section1,
  .respo-section2,
  .side-by-side-videos {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 10px 2vw !important;
  }
  .project-info,
  .overview,
  .respo-section-text,
  .respo-section2-text,
  .respo-section-image,
  .respo-section2-image {
    padding: 12px 2vw !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto 10px auto !important;
  }
  .side-by-side-videos video {
    width: 100% !important;
    margin-bottom: 8px !important;
  }
}

@media (max-width: 900px) {
  .photo-gallery {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .photo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 auto 18px auto !important;
    box-sizing: border-box;
  }
  .photo img {
    max-width: 95vw !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
  }
}
@media (max-width: 700px) {
  .photo-gallery {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .photo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 auto 10px auto !important;
    box-sizing: border-box;
  }
  .photo img {
    max-width: 95vw !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
  }
}

@media (max-width: 900px) {
  .grid-wrapper,
  .grid-wrapper-apps {
    grid-template-columns: 1fr !important;
    padding: 10px !important;
    grid-auto-rows: auto !important;
  }
  .grid-wrapper > div,
  .grid-wrapper-apps > div {
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10) !important;
  }
  .grid-wrapper > div > img,
  .grid-wrapper-apps > div > img {
    max-width: 95vw !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    margin: 0 auto !important;
    display: block !important;
  }
}
@media (max-width: 700px) {
  .grid-wrapper,
  .grid-wrapper-apps {
    grid-template-columns: 1fr !important;
    padding: 4px !important;
    grid-auto-rows: auto !important;
  }
  .grid-wrapper > div,
  .grid-wrapper-apps > div {
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10) !important;
  }
  .grid-wrapper > div > img,
  .grid-wrapper-apps > div > img {
    max-width: 98vw !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    margin: 0 auto !important;
    display: block !important;
  }
}

@media (max-width: 900px) {
  .grid-wrapper-robot,
  .robot-row-2,
  .robot-row-3,
  .crate-row-3,
  .crate-row-4,
  .spaceship-row-2,
  .spaceship-row-5 {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 0 !important;
  }
  .robot-gallery .photo,
  .crate-gallery .photo,
  .spaceship-gallery .photo {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 auto 12px auto !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .robot-gallery .photo img,
  .crate-gallery .photo img,
  .spaceship-gallery .photo img {
    max-width: 95vw !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    margin: 0 auto !important;
    display: block !important;
  }
}
@media (max-width: 700px) {
  .grid-wrapper-robot,
  .robot-row-2,
  .robot-row-3,
  .crate-row-3,
  .crate-row-4,
  .spaceship-row-2,
  .spaceship-row-5 {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 0 !important;
  }
  .robot-gallery .photo,
  .crate-gallery .photo,
  .spaceship-gallery .photo {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 auto 8px auto !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .robot-gallery .photo img,
  .crate-gallery .photo img,
  .spaceship-gallery .photo img {
    max-width: 98vw !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    margin: 0 auto !important;
    display: block !important;
  }
}

@media (max-width: 900px) {
  .overview-sections .photo,
  .project-info .photo {
    width: 100% !important;
    max-width: 100vw !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 18px auto !important;
    box-sizing: border-box;
  }
  .overview-sections .photo img,
  .project-info .photo img {
    max-width: 95vw !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    margin: 0 auto !important;
    display: block !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  }
}
@media (max-width: 700px) {
  .overview-sections .photo,
  .project-info .photo {
    width: 100% !important;
    max-width: 100vw !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 10px auto !important;
    box-sizing: border-box;
  }
  .overview-sections .photo img,
  .project-info .photo img {
    max-width: 98vw !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    margin: 0 auto !important;
    display: block !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
  }
}

