.about-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}

.about-card{
    width: 90%;
    max-width: 1500px;
    min-height: 600px;
    margin: 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 3.07%, rgba(0, 0, 0, 0.2) 73.09%), var(--clr-card);
    border-radius: 1.25rem;
    box-shadow: 0 0 1.25rem var(--shadow);
    display: flex;
    flex-direction: row;
    
    position: relative;   
    overflow: visible;    
    font-family: var(--font-secondary);

}

.about-image {
    flex: 2;    
    display: flex;
    justify-content: center;
    overflow: visible;
}

.about-image img {
  display: block;
  max-width: 100%;
  margin-top: -80px;     /* tweak */
  margin-left: -60px;    /* tweak */
  height: auto;
  object-fit: cover; 
  overflow: visible;    
}

.about-content {
    flex: 3;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
}   



/********************************************************************************************************/


/******************************************** MOBILE VIEW  *********************************************/
@media (max-width: 1000px) {
    .about-section {
        margin-top: 20px;
    }

    .about-card {
        flex-direction: column-reverse;
    }

    .about-content {
        padding-top: 50px;
        flex: 2;
    }

    .about-image  { flex: 3; }

    .about-image img{
        margin: 0;
        width: clamp(450px, 50vw, 600px);
        height: auto;
    }

}

.hero-banner  {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 100vh;
}

.title-card {
  width: 90%;
  height: 90%;
  max-width: 1500px;
  max-height: 800px;

  border-radius: 1.25rem;
  box-shadow: 0 0 1.25rem var(--shadow);

  display: flex;
  flex-direction: column;
  justify-content: space-between;


  margin: 20px;
  padding: var(--space-md);

  overflow: hidden;
}

.title-card-mask {
  position: absolute;
  width: 90%;
  height: 90%;
  max-width: 1500px;
  max-height: 800px;

  border-radius: 1.25rem;
  background:  linear-gradient(180deg, rgba(0, 0, 0, 0) 3.07%, rgba(0, 0, 0, 0.2) 73.09%),var(--clr-card);
  
  transform-origin: center center;
  transform: scale(1);
  transition: transform 2.5s ease-in-out 1s,border-radius 2.5s ease-in-out 1s;
  
}


/********************************************************************************************************/


/******************************************** TITLE *********************************************/
.hero-title {
  font-size: clamp(4rem, 15vmin, 10rem);
  margin-top: var(--space-lg);
  font-family: var(--font-primary);
  
  perspective: 600px;
}

.word {
  display: inline-block;    /* keep the whole name together */
  white-space: nowrap;      /* never wrap its children */
  margin-right: 0.1em;      /* a little space between names */
}

span {
  display: inline-block;
  transform-origin: bottom;
  transform: rotateX(90deg);
  opacity: 0;
  backface-visibility: hidden;
  animation: pushUp 0.6s ease-out forwards;   /* faster than 0.8s */
  animation-delay: var(--delay);
}

/********************************************************************************************************/


/******************************************** SUBTITLE *********************************************/
.hero-subtitle {
  font-size: clamp(1.5rem, 5vmin, 2rem);
  font-weight: 500;

  font-family: var(--font-secondary);
  animation: pushUp 1s ease-out forwards;
  
  transform: rotateX(90deg);
  animation-delay: 0.8s;
  opacity: 0;
}

/********************************************************************************************************/


/******************************************** CONTACT ICONS *********************************************/
.contact-icons {
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  gap: 20px;
  margin-top: 40px;

  animation: pushUp 1s ease-out forwards;
  transform: rotateX(90deg);
  animation-delay: .9s;
  opacity: 0;
}

.contact-icon svg {
  width: 60px;
  height: 60px;
}

/********************************************************************************************************/


/******************************************** BOTTOM CAROUSEL *********************************************/
.frame {
  position: relative;
  width: 100%;
  height: clamp(2rem, 3vmin, 3.5rem);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-secondary);
  

}

.carousel {
  position: relative;
  display: inline-flex;           
  align-items: center;
  font-size: clamp(1.5rem, 3vmin, 2.5rem);
  line-height: 1.5em;
  padding: 0 10px;

  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% 1.5rem;
}

.change_outer {
  position: relative;
  overflow: hidden;                  /* hide the off-screen words */
  height: 1.5em;                     /* exactly one line of text */
  margin-right: .6ch;                 /* space before “by Me” */
}

.change_inner {
  animation: rotate 8s ease-in-out infinite;
}

.element {
  display: block;                   
  font-weight: 100;
  text-align: center;
  text-shadow: 2px 2px 2px rgba(0,0,0,0.2);
}

/********************************************************************************************************/


/******************************************** MOBILE VIEW *********************************************/

@media (max-width: 768px) {
  .title-card {
    text-align: center;
  }

  .contact-icons {
    justify-content: center;
  }

  .contact-icon svg {
    width: 50px;
    height: 50px;
  }


}


/******************************************** ANIMATIONS *********************************************/


/*** ANIMATION ON ICONS AND SUBTITLE ***/
@keyframes pushUp {
  to {
    transform: rotateX(0deg);
    opacity: 1;
  }
}

/*** ANIMATION FOR CAROUSEL ***/
@keyframes rotate {
  0%, 28%    { transform: translateY(0); }
  30%, 58%   { transform: translateY(-1.5em); }
  60%, 96%   { transform: translateY(-3em); }
  100%       { transform: translateY(0); } /* snap back */
}



/********************************************************************************************************/
.tech-group{
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}


.teck-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logo{
    width: 50px;
    height: 50px;
    background-repeat: no-repeat;           /* don’t tile the image */
    background-position: center center; 
    background-size: contain;        
    border-radius: 12px;
}

.about-content h2{
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.about-content h3{
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 20px;
}

.about-content p{
    font-size: var(--space-sm);
    line-height: 1.5;
}

.teck-item p{
    font-size: 1.2rem;
 }
.project-image {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

.project-image .project-video {
    display: block;
    width: 100%;
    height: 120%;
    object-fit: contain;
    object-position: center;
}

.project-image-card .project-video {
    display: block;
    width: 100%;
    height: 120%;
    object-fit: contain;
    object-position: center;
  
}

.open-project {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(40px);
}

.mobile-header {
    display: none;
    font-size: clamp(36px, 4vw, 64px);
    font-family: 'Bruno Ace', sans-serif;
    margin-bottom: 20px;
}

.project-content {    width: 95%;
    height: 90%;
    max-height: 755px;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

/**************************************/
.project-text-card {
    max-height: 100%;
    flex: 5;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 3.07%, rgba(0, 0, 0, 0.2) 73.09%), var(--clr-card);
    margin: 20px;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    scrollbar-width: none;
    z-index: 20;
}



.project-text-card h2 {
    font-size: clamp(36px, 4vw, 64px);
    font-family: 'Bruno Ace', sans-serif;
    margin-bottom: 20px;
}

.project-text-card p {
    font-size: clamp(16px, 2vw, 24px);
    font-family: 'Source Serif Pro', serif;
    line-height: 1.5;
    color: var(--clr-text); 
    margin-bottom: 20px;
}

/**************************************/
.project-image-card {
    position: relative;
    max-width: 330px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: auto;
    flex: 4;
    overflow: hidden;
    border-radius: 30px;
    margin: 20px;
    justify-content: center;
    align-items: center;
    display: flex;
    
        background-color: rgb(82, 80, 80);
    overflow: hidden;
}

.project-image-card {
  width: 100%;
  max-width: 330px;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.project-image-card .project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* scales video so the *entire* frame is visible */
}


/**************************************/
.project-additional-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.x-button-link {
    display: inline-flex;
    width: 80px;
    height: 80px;
    background-color: #2100FF;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    align-items: center;
    justify-content: center;
}

.x-icon {
    max-width: 80%;
    height: auto;
    display: block;
}

.project-teck-stack {
    margin-top: auto;
    max-height: 60%;
    width: 80px;
    min-height: 30%;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 3.07%, rgba(0, 0, 0, 0.2) 73.09%), var(--clr-card);
}

.group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    overflow-y: auto;
    scrollbar-width: none;
}

.overlay-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .project-content {
        flex-direction: column-reverse;
        height: 100%;
        justify-content: center;
        align-items: center;
    }

    .project-text-card {
        width: 90%;
        padding: 20px;
        margin: 0;
        flex: 3;
        z-index: 20;
        margin-bottom: 40px;
    }

    .project-text-card h2 {
        display: none;
    }

    .mobile-header {
        display: block;
    }

    .project-image-card {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 600px;
        background-color: black;
        border: 1 solid black;
    }

    .project-image-card video{
        width: 70%;
        object-fit: contain;
        object-position: center;
        display: block;
    }

    .project-additional-info {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 0;
    }

    .project-teck-stack {
        margin-top: 30px;
        width: 95%;
        max-height: 120px;
    }

    .group {
        flex-direction: row;
        width: 100%;
        gap: 10px;
    }

    .x-button-link {
        display: none;
    }
}

.projects-section{ 
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 80px;
  margin-bottom: 80px;
}

.projects-section h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 40px;
}


.project-card {
  width: 90%;
  max-width: 1560px;
  max-height: 755px;    
  overflow: hidden; 
  position: relative;
  display: flex; 
  
  margin: 20px;
  border-radius: 24px;

  border: 2px solid #e1e2e1;
}

.project-info-card{
  position: absolute;
  bottom: 0;
  left: 0;
  max-width: 900px;
  max-height: 105px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 3.07%, rgba(0, 0, 0, 0.2) 73.09%), var(--clr-card);
  margin: 40px;
  padding: 20px;
  border-radius: 24px;

  display: flex;
  flex-direction: row;
  gap: 20px;

}

.project-info-card h3 {
  font-size: clamp(36px, 4vw, 48px);
  font-family: "Bruno Ace", sans-serif;
  align-self: center;
}

.project-info-card p {
  font-size: min(20px, calc(12px + 0.5vw));
  font-family: 'Source Serif Pro', serif;
  align-self: center;
  padding: 10px;
}

.project-image .project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* scales video so the *entire* frame is visible */
}

@media (max-width: 1000px) {
  .project-card {
    flex-direction: column;
    height: 700px;
    align-items: center;
  }

  .project-info-card{
    all: revert;
    position: absolute;
    
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 3.07%, rgba(0, 0, 0, 0.2) 73.09%), var(--clr-card);
    border-radius: 20px;
    width: 85%;
    height: auto; 
    
    padding: 10px;
    margin: 20px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .project-info-card p{
    text-align: center;
  }

}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

 @import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;200;300;400;500;700&family=Sora:wght@400;500;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Bruno+Ace&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+Pro:wght@400;600;700;900&display=swap');


 :root {
  --font-primary: 'Sora', sans-serif;
  --font-secondary: 'Roboto', sans-serif;
  --clr-bg: #151419;
  --clr-card: #130091;
  --clr-text: #e1e2e1;
  --shadow: rgba(0, 0, 0, 0.9);
  --space-sm: clamp(1.5rem, 3vmin, 2rem);
  --space-md: clamp(1rem, 5vw, 4rem);
  --space-lg: clamp(2rem, 10vmin, 10rem);
}

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

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  display: flex;
  flex-direction: column;
}

