@import url('https://fonts.googleapis.com/css?family=Poppins');

body {
    font-family: 'Poppins', sans-serif;
    padding:0px;
    margin:0px;
    max-width:100vw;
    overflow-x:hidden;
    scroll-behavior: smooth;
}
#loading {
    width: 100vw;
    height: 100vh;
    position: fixed;
    background: white;
    z-index: 999;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
#spinner {
    animation: rotate 0.56s infinite linear;
    width:50px;
    height:50px;
    border:12px solid rgb(44, 157, 255);
    border-bottom:12px solid #fff;
    border-radius:50%;
    margin:0;
}
@keyframes rotate {
    0% {transform: rotate(0deg);}
    100% {transform: rotate(360deg);}
}
header {
    width:92vw;
    padding:6vh 4vw;
    position:fixed;
    font-weight:bold;
    background:transparent;
    color:#fff;
    transition:0.4s ease-in-out;
    z-index:2;
}
header table {
    width:100%;
}
#logo {
    width:20%;
}
#navigation {
    width:80%;
}
#magnify {
    width:100vw;
    height:100%;
    background:rgba(0, 0, 0, 0.92);
    position:fixed;
    z-index:4;
    display:none;
    flex-direction: column;
    justify-content:center;
}
#magnify h1 {
    position:absolute;
    top:0;
    right:0;
    margin:20px 40px;
    color:#fff;
    transition:0.4s ease-in-out;
}
#magnify h1:hover{
    color:rgb(44, 157, 255);
    cursor:pointer;
}
#img_here {
    width:90%;
    height:90%;
    background-size:contain !important;
    background-repeat:no-repeat !important;
    margin:0px auto;
}
#logo {
    font-size:24px;
    color:rgb(44, 157, 255);
}
#navigation {
    text-align:right;
}
#navigation a {
    color:inherit;
    text-decoration:none;
    padding:5px 10px;
    border-bottom:2px solid transparent;
    margin-left:4vw;
    transition:0.4s ease-in-out;
}
#navigation a:hover{
    border-bottom:2px solid #fff;
}
#top_part {
    width:100%;
    border:2vh solid #fff;
}
#top_part tr td{
    width:50%;
}
.bcj{
    color: rgb(44, 157, 255);
}
#about {
    width:84% !important;
    
    
    height:95vh;
    
    display:flex;
    flex-direction:column;
    justify-content:center;
    text-align:left;
    padding:0px 8%;
}
#pavingTheWay{
    font-size:4vw !important;
}
#about h1 {
    font-size:45px;
    word-wrap:break-word;
}
#about table {
    width:70%;
    margin-top:4vh;
}
#about table tr td {
    width:20% !important;
    text-align:left;
}
.social {
    color:rgb(44, 157, 255);
    font-size:23px;
    padding:12px 17px;
    border-radius:50%;
    background:transparent;
    transition:0.4s ease-in-out;
    font-weight:bold;
    margin:0px 8px;
    display: inline-block;
    text-decoration: none;
    line-height: 1;
}

.social i {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.social:hover {
    cursor: pointer;
    color:#fff;
    background:rgb(44, 157, 255);
    box-shadow:0px 10px 30px rgba(44, 157, 255,0);
}

/* Fallback text for missing icons */
.social[href*="github"] i::before {
    content: "🐙";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.social[href*="linkedin"] i::before {
    content: "💼";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.social[href*="mailto"] i::before {
    content: "✉️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.btn_one {
    font-size:18px;
    font-family: 'Poppins', sans-serif;
    color:rgb(44, 157, 255);
    background:#fff;
    border:3px solid rgb(44, 157, 255);
    padding:8px 40px;
    width:35%;
    border-radius:80px;
    font-weight:bold;
    margin:2vh 0px;
    transition:0.4s ease-in-out;
    text-align: center;
    text-decoration: none;
}
.btn_one:hover {
    box-shadow:0px 10px 30px rgba(255, 44, 90, 0.0);
    cursor:pointer;
    color:#fff;
    background:rgb(44, 157, 255);
}
#rightImage {
    width:100%;
    height:95vh;
    position: relative;
    overflow: hidden;
}
#rightImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}
#rightImage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg,rgba(44, 104, 255, 0.1),rgba(255, 44, 90, 0.1));
    z-index: 1;
}
#huddleImage,
#caImage,
#legoImage,
#ufhImage,
#ccijImage,
#psycheImage,
#indrivinateImage {
    width:50%;
    height:50vh;
    position: relative;
    overflow: hidden;
}

#huddleImage img,
#caImage img,
#legoImage img,
#ufhImage img,
#ccijImage img,
#psycheImage img,
#indrivinateImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

#huddleImage::before,
#caImage::before,
#legoImage::before,
#ufhImage::before,
#ccijImage::before,
#psycheImage::before,
#indrivinateImage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg,rgba(44, 104, 255, 0.1),rgba(255, 44, 90, 0.1));
    z-index: 1;
}
#psycheButtonPhone{
    display: none;
}
#psycheButtonPC{
    display: block;
}
#work {
    width:92vw;
    padding:6vh 4vw;
    font-weight:bold;
}
#work h1 {
    padding:5px 0px;
    border-bottom:4px solid rgb(44, 157, 255);
    width:6%;
}

.company-section {
    margin-bottom: 5rem;
}

.company-section:last-child {
    margin-bottom: 0;
}

.company-header {
    margin-bottom: 3rem;
    padding: 2rem 0 1.5rem 0;
    border-bottom: 1px solid rgba(44, 157, 255, 0.15);
}

.company-main-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.company-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    letter-spacing: 0.5px;
    position: relative;
}

.company-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: rgb(44, 157, 255);
    border-radius: 2px;
}

.company-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    text-align: right;
}

.company-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgb(44, 157, 255);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.company-years {
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.25px;
}

.company-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
    font-weight: 400;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 400px));
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
    justify-content: start;
}

.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: fit-content;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image-container img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 157, 255, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay p {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

.project-role {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: rgb(44, 157, 255);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-summary {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #666;
}

.project-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(44, 157, 255, 0.1);
    color: rgb(44, 157, 255);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(44, 157, 255, 0.2);
}

/* Gallery styles for project pages */
#photos {
    width:100%;
    columns:3;
    column-gap:2%;
    z-index:1;
}
.PhotoContainer {
    position: relative;
}
#photos video {
    width:100%;
    height:auto;
    margin:4.5% 0px;
    transition:0.4s ease-in-out;
    display: block;
}
#photos video:first-child {
    margin-top: 0;
}
#photos img {
    width:100%;
    height:auto;
    margin:4.5% 0px;
    transition:0.4s ease-in-out;
    display: block;
}
#photos img:first-child {
    margin-top: 0;
}
#photos img:hover {
    transform: scale(1);
    cursor: pointer;
}

#magnifiedVideo {
    max-width: 90%;
    height: 90%;
    margin: auto;
}
.gallery .PhotoContainer:hover{
    transform: scale(1.05);
    cursor: pointer;
}
.gallery .PhotoContainer{
    transition: 0.4s ease;
}

.PhotoContainer:hover .PhotoInfo {
    opacity: 100%;
}

.PhotoInfo {
  pointer-events: none;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 3vw;
  color: white;
  opacity: 0;
  transition: .5s ease;
  background: rgba(44, 157, 255, 0.8);
  display: table;
}

.PhotoInfo p{
    display: table-cell;
    vertical-align: middle;
    text-align:center;
}

/* Project page hero section */
#project-hero {
    min-height: 75vh;
    padding: 15vh 4vw 1vh 4vw;
    display: flex;
    align-items: center;
}

.project-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.project-hero-text {
    max-width: 100%;
}

.project-hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    color: #333;
}

.project-hero-role {
    font-size: 1.8rem;
    font-weight: 600;
    color: rgb(44, 157, 255);
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-hero-description {
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 0 0 2rem 0;
    color: #666;
    max-height: 25vh;
    overflow-y: auto;
    padding-right: 10px;
}

.project-hero-description::-webkit-scrollbar {
    width: 6px;
}

.project-hero-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.project-hero-description::-webkit-scrollbar-thumb {
    background: rgba(44, 157, 255, 0.3);
    border-radius: 3px;
}

.project-hero-description::-webkit-scrollbar-thumb:hover {
    background: rgba(44, 157, 255, 0.5);
}

.project-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-hero-image img {
    max-width: 100%;
    max-height: 60vh;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Project gallery section */
#project-gallery {
    /* margin-top: -12vh; */
    padding: 1vh 4vw 4vh 4vw;
    /* background: #f8f9fa; */
    position: relative;
}

#project-gallery h1 {
    text-align: left;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
    padding: 0 0 1rem 0;
    border-bottom: 4px solid rgb(44, 157, 255);
    width: 10%;
    margin: 0 0 3rem 0;
}

#gallery-heading a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: color 0.3s ease;
}

#gallery-heading a:hover {
    color: rgb(44, 157, 255);
}

/* Smooth scroll behavior for regular navigation */
html {
    scroll-behavior: smooth;
}

/* Button styles */
.btn_one {
    background: rgb(44, 157, 255);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(44, 157, 255, 0.3);
    margin: 0.5rem 0;
}

.btn_one:hover {
    background: rgba(44, 157, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 157, 255, 0.4);
}

.btn_one:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(44, 157, 255, 0.3);
}

/* Image loading spinner */
.image-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.image-loading p {
    font-size: 1.2rem;
    margin: 0;
}

.image-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
}

.image-error p {
    font-size: 1.2rem;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#bio {
    width:92vw;
    padding:6vh 4vw;
    font-weight:bold;
}
#bio h1 {
    padding:5px 0px;
    border-bottom:4px solid rgb(44, 157, 255);
    width:8%;
}
#contact {
    width:92vw;
    padding:6vh 4vw;
}
#contact h1 {
    padding:5px 0px;
    border-bottom:4px solid rgb(44, 157, 255);
    width:10%;
}
#contact table {
    width:100%;
}
#contact table tr td {
    width:50%;
}
#inner_div table{
    width:100%;
}
#inner_div table tr td{
    font-weight:bold;
}
#inner_table tr td{
    padding:10px 20px !important;
}
#contact form {
    width:100%;
}
#contact form input {
    width:96%;
    margin:20px 1%;
    background:transparent;
    border:0px;
    border-bottom:3px solid rgba(44, 157, 255,0.5);
    padding:8px 10px;
    font-family: 'Poppins', sans-serif;
    font-size:18px;
    transition:0.4s ease-in-out;
    color:#000;
    font-weight:bold;
}
#contact form textarea {
    width:96%;
    margin:20px 1%;
    padding:8px 10px;
    border:0px;
    border-bottom:3px solid rgba(44, 157, 255,0.5);
    padding:8px 10px;
    font-family: 'Poppins', sans-serif;
    font-size:18px;
    background:transparent;
    resize:none;
    transition:0.4s ease-in-out;
    color:#000;
    font-weight:bold;
}
#contact form input:focus {
    outline:none;
    border-bottom:3px solid rgba(44, 157, 255,1);
}
#contact form textarea:focus {
    outline:none;
    border-bottom:3px solid rgba(44, 157, 255,1);
}
#address {
    position:relative;
    top:-25px;
    left:30px;
}
#footer {
    width:100%;
    padding:10vh 0px;
    text-align:center;
    font-weight:bold;
}
#footer a {
    color:rgb(44, 157, 255);
    text-decoration:none;
}
::placeholder {
    color:#000;
}
button:focus {
    outline:none;
}
::-webkit-scrollbar {
    width:5px;
    height:5px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: rgb(0, 0, 0); 
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0,0.8); 
}

@media (max-width: 1200px){
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 350px));
        gap: 1.5rem;
        justify-content: start;
    }

    #photos {
        columns: 2;
    }
    .PhotoInfo{
        font-size: 5vw;
    }

    .project-hero-content {
        gap: 2rem;
    }

    .project-hero-title {
        font-size: 3rem;
    }

    .project-hero-role {
        font-size: 1.3rem;
    }

    .project-hero-description {
        font-size: 1.1rem;
        max-height: 20vh;
    }
}

@media (max-width: 768px){
    .project-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }

    .project-hero-title {
        font-size: 2.8rem;
    }

    .project-hero-role {
        font-size: 1.2rem;
    }

    .project-hero-description {
        font-size: 1rem;
        max-height: 15vh;
    }

    .project-hero-image img {
        max-height: 40vh;
    }
}

@media (max-width: 1000px){
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 400px));
        gap: 1.5rem;
        margin-top: 1.5rem;
        justify-content: center;
    }

    .project-card {
        border-radius: 8px;
    }

    .project-info {
        padding: 1rem;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-summary {
        font-size: 0.9rem;
    }

    .skill-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }

    #photos {
        columns:1;
        column-gap:0%;
    }
    #photos img {
        margin:2% 0px;
    }
    #photos img:hover {
        transform: scale(1);
        cursor: pointer;
    }

    .PhotoInfo {
        opacity: 100%;
        background: rgba(0, 0, 0, 0);
    }
    .PhotoInfo p {
        display: block;
        vertical-align: bottom;
        background:rgb(44, 157, 255);
    }

    /* Project hero mobile styles */
    #project-hero {
        min-height: auto;
        padding: 20vh 4vw 8vh 4vw;
    }

    .project-hero-content {
        grid-template-columns: 1fr;
        gap: 0;
        text-align: center;
    }

    .project-hero-image {
        display: none;
    }

    .project-hero-title {
        font-size: 3rem;
    }

    .project-hero-role {
        font-size: 1.4rem;
    }

    .project-hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        max-height: 20vh;
    }

    .project-hero-buttons {
        justify-content: center;
        padding-bottom: 2rem;
    }

    #rightImage {
        display:none;
    }
    #huddleImage {
        display:none;
    }
    #psycheImage {
        display:none;
    }
    #legoImage {
        display:none;
    }
    #ufhImage {
        display:none;
    }
    #ccijImage {
        display:none;
    }
    #caImage {
        display: none;
    }
    #indrivinateImage {
        display: none;
    }
    #psycheButtonPhone{
        display: block;
    }
    #psycheButtonPC{
        display: none;
    }
    #top_part {
        border:0px;
    }
    #top_part tr td{
        width:100%;
        text-align:center;
    }
    #about {
        width:92% !important;
        /*
        height:75vh;
        */
        /*
        padding-top:20vh !important;
        */
        text-align:center;
        padding:0px 4%;
    }
    #about table {
        width:100%;
        margin-top:6vh;
    }
    #about table tr td {
        text-align:center;
    }
    .btn_one {
    padding:6px 30px;
    width:60%;
    margin:4vh auto;
    box-shadow:0px 10px 20px rgba(44, 157, 255, 0.8);
    background:rgb(44, 157, 255);
    color:#fff;
    }
    .btn_one:hover {
        box-shadow:0px 10px 40px rgba(44, 157, 255, 0.8);
        cursor:pointer;
    }
    #contact table tr td {
        width:100%;
        display:block;
    }
    #inner_table tr td{
        padding:10px 0px !important;
    }
    #contact form input {
        width:90%;
    }
    #contact form textarea {
        width:90%;
    }
    #work h1 {
        width:19%;
    }

    .company-name {
        font-size: 1.8rem;
    }

    .company-section {
        margin-bottom: 3rem;
    }

    .company-main-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .company-details {
        align-items: flex-start;
        text-align: left;
    }

    .company-title {
        font-size: 1rem;
    }

    .company-years {
        font-size: 0.9rem;
    }

    .company-description {
        font-size: 0.95rem;
    }
    #bio h1 {
        width:25%;
    }
    #contact h1 {
        width:33%;
    }
    header {
        width:96vw;
        background:#fff;
        padding:2vh 2vw;
        position:fixed;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    header table {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    #logo {
        width: auto;
        font-size: 20px;
        text-align: center;
    }

    #navigation {
        width: auto;
        text-align: center;
    }

    #navigation a {
        color:#000;
        margin: 0 1rem;
        font-size: 14px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    #logo {
        font-size: 16px;
    }

    #navigation a {
        margin: 0 0.4rem;
        font-size: 11px;
        white-space: nowrap;
    }
}