/*
Theme Name: sandbox-alpha
Author: Gakusei
*/

html, body {
    background-color: #000;
    color: #ccc;
    font-family: 'roboto', 'roboto condensed', sans-serif;
    height: 100%;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    block-size: 100%;
}

section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    block-size: 100%;;
}

h1, h2, h3, h4, h5 {
    font-family: 'roboto condensed', sans-serif;
}

p {
    font-family: 'roboto', sans-serif;
}

footer p {
    color: #999;
}

/********** background images **********/
.parallax-section {
    background: #000 linear-gradient(
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.9)
    );
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 0px; 
}

/********************* Landing for Index *****************/
.index-landing {
    /* background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/pexels-jaymantri-5346.jpg'); */
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/pexels-marek-piwnicki-3907296-12489187.jpg');
}

/********** About Me for Index ************/
.extra-padding {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 1200px) {
    .extra-padding {
        padding-left: 6rem;
        padding-right: 6rem;
    }
}


/******** Experiences for Index *********/
.index-experiences {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/pexels-adrien-olichon-2387793.jpg');
}

/******* nav styles **********/
.sandbox-header {
    background-color: #000000!important;
}

.navbar-toggler:focus {
    outline: none!important;
    box-shadow: none!important;
    border-color: transparent!important;
}

ul.dropdown-menu.show {
    background-color: #111111 !important;
    color:#999;
    border: none;
}

ul.dropdown-menu li a {
    background-color: #111111 !important;
    color: #999;
}

ul.dropdown-menu li a:hover {
    background-color: #111111 !important;
    color: #e7e7e7;
}

.offcanvas .offcanvas-start {
    background-color: #111111!important;
}

/********* post_thumbnail image overlays ***********/
.postcard {
    position: relative;
    overflow: hidden;
}
.postcard:hover .postcard-body {
    bottom: 0;
}

.postcard-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.postcard-body {
    width: 100%;
    height: 100%;
    bottom: -100%;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: none;

    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s;
}

/*********** Jumbotron ***********/
.frontpage-marqueeline1 {
    color: white;
    font-family: 'Roboto Condensed';
    font-size: 55px;
    font-weight: 400;
    line-height: 25px;
    letter-spacing: 9px;
}

.frontpage-marqueeline3 {
    font-family: 'Roboto Condensed';
    font-size: 84px;
    font-weight:400;
    line-height:65px;
    letter-spacing: 0px;
}

.frontpage-marqueeline4 {
    font-family: 'Roboto Condensed';
    font-size: 94px;
    font-weight: 400;
    line-height: 57px;
    letter-spacing: -5px;
}
/********** Colors *****************/
.mellow-yellow {
    color: yellow;
}

.earl-gray {
    color: #555;
}

.lime-green {
    color:#32cd32;
}

.bg-limegreen {
    background-color: #32cd32;
}

/************ form floating label fix for form in front page ************/
.form-floating textarea:not(:placeholder-shown) ~ label ~ div {
    width: calc(100% - 2rem);
    height: 2rem;
    background-color: white;
    position: absolute;
    top: 1px;
    left: 1px;
    z-index: 1;
    padding-top: 1.625rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.form-floating textarea ~ label {
  z-index: 2;
}


/************ Footer styles ***********/
.sandbox-footer {
    background-color: #000;
    font-size: 12px;
}

.sm-footer li {
    list-style-type: none;
    float: left;
    margin: 0px 10px 0px 0px;
}

.fab {
    color: #999;
    font-size: 20px;
}

/********** Cards in project grid styles ************/
.card {
    border-radius: 0 !important;
    margin: 0 !important;
}

.card-img-top {
    border-radius: 0 !important;
}

.row.no-gutter > [class*='col-'] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.project-tile {
    /* height: 300px; */
    align-items: center;
    aspect-ratio: 4/3;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 0.5rem;
    position: relative;   
    text-align: center;
    z-index: 1;
}

.project-tile .card-title {
    font-size: 1.5rem;     /* was smaller by default */
    font-weight: 600;
    margin: 0;
    z-index: 2; /* ensure it's above the overlay */
}

@media (min-width: 768px) {
    .project-tile .card-title {
        font-size: 2rem;
    }
}

.project-html {
    /* background-color: #3498db; */ /* blue */
    background-image: url('images/pexels-andrew-scozzari-4432246.jpg');
}

.project-js {
    /* background-color: #f39c12; */ /* orange */
    background-image: url('images/pexels-pete-wales-13141149-19766948.jpg');
}

.project-php {
    /* background-color: #8e44ad; */ /* purple */
    background-image: url('images/pexels-damir-mijailovic-3695238.jpg');
}

.project-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65); /* Start transparent */
    transition: background 0.3s ease-in-out;
    z-index: 1;
}

.project-tile:hover::before {
    background: rgba(0, 0, 0, 0.85); /* Subtle dark overlay */
}

/* Keep text and buttons above overlay */
.project-tile * {
    position: relative;
    z-index: 2;
}

.project-tile a {
    background-color: transparent;
    border: 1px solid #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
    z-index: 2;
    font-family: 'Fira Mono', monospace;
    font-size: 1.25rem;
    font-weight: 400;
    text-align: center;
    display: inline-block;
    pointer-events: none; /* prevents flicker unless fixed below */
    padding: 0.5rem 1.25rem;
}

@media (max-width: 991.98px) {
    .project-tile a {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.project-tile:hover a {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    border-color: #fff;
    color: #fff;
}

.row.no-gutter > [class*='col-'] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* -----------------------------
   Responsive container for landing hero
------------------------------ */
.landing-hero-wrapper {
    width: 100%;
    max-width: 960px; /* keeps it neat on desktop */
    margin: 0 auto;
    padding: 0 1rem;
}

/* Shrink the whole block on small screens */
@media (max-width: 768px) {
    .landing-hero-wrapper {
        transform: scale(0.75);
    }
}

@media (max-width: 576px) {
    .landing-hero-wrapper {
        transform: scale(0.6);
    }
}

/***** Scroll down indicator *****/
.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
    animation: fadeSlideDown 1s ease-out 0.5s both, bounce 1.5s infinite 2s;
}

.scroll-down-indicator svg {
    stroke: #aaa;
    transition: stroke 0.3s;
}

.scroll-down-indicator:hover svg {
    stroke: #fff;
    filter: drop-shadow(0 0 4px #fff);
}

/* 👇 Fade in + slide from above */
@keyframes fadeSlideDown {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 👇 Bounce after initial entrance */
@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/******* Image overlay for images inside modal *******/
.img-overlay-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.img-overlay-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* dark overlay */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.overlay-content {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px); /* start slightly lower */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.img-overlay-container:hover::after,
.img-overlay-container:hover .overlay-content {
    opacity: 1;
}

.img-overlay-container:hover .overlay-content {
    transform: translateY(0); /* slide into place */
}

.overlay-btn {
    background-color: #555;
    color: #fff;
    padding: 10px 20px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.overlay-btn:hover {
    background-color: #333;
    color: #fff;
}

/****** CSS for snap scrolling ******/
.snap-container {
    height: 100vh;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.scroll-section {
    min-height: 100vh;
    scroll-snap-align: none; /* no snapping by default */
}

@media (min-width: 768px) {
    .snap-container {
        scroll-snap-type: y mandatory;
        overflow-y: scroll;
    }

    .scroll-section {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}


/****** Hide scrollbars ******/
.snap-container::-webkit-scrollbar {
    display: none;
}

#mywork.scroll-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* padding-top: 2rem;
    padding-bottom: 2rem; */
    overflow-y: auto; /* allow internal scroll if content exceeds height */
}

/************** Experience & Skills **************/
.toggle-header {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: color 0.3s;
}
.toggle-header:hover {
    color: #ffffff;
}

.toggle-header.active-header {
    color: #ffffff !important; /* or any color you want for 'active' */
}

.toggle-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px; /* space below text */
  width: 0;
  height: 1px; /* thinner underline */
  background-color: #fff; /* your accent color */
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-header.active-header::after {
  width: 100%;
}

.toggle-content {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 0;
}

/* Visible state */
.toggle-content.show {
  opacity: 1;
  visibility: visible;
  position: relative;
  transform: translateY(0);
  z-index: 1;
}



/********* Card Flip Styles for Skills **********/
#skillsCardGrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    /* width: 960px; */
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.flip-card {
    background-color: transparent;
    flex: 1 1 280px;
    max-width: 300px;
    height: 180px;
    perspective: 1000px;
    cursor: pointer;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner,
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 1rem;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    font-family: "Source Code Pro", monospace;
}

.flip-card-front {
    background-color: #212529;
    color: #fff;
}

.flip-card-back {
    background-color: #fff;
    color: #212529;
    transform: rotateY(180deg);
}
