/****************************************************
 ******************** GLOBAL STYLES *****************
 ****************************************************/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Just+Me+Again+Down+Here&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&display=swap');

/* CSS Variables (Theme Colors) */
:root {
    --color-primary: #444A4Dff;
    --color-transparent-primary: rgba(53, 56, 47, 0.8);
    --color-secondary: #F8DCABff;
    --color-accent: #C27662ff;
    --color-muted: rgb(84, 80, 22);
    --color-shadow: rgba(0, 0, 0, 0.25);
    --glass-white: rgba(255, 255, 255, 0.15);
    --glass-black: rgba(0, 0, 0, 0.15);

    /*Autum Palette*/
    --peach-yellow: #F8DCABff;
--spanish-orange: #E0690Aff;
--dark-moss-green: rgb(84, 80, 22);
--autumred: #A63526ff;
--harvest-gold: #E4A60Eff;
--kobicha: rgb(53, 56, 47);

/*Winter Palette*/
--dusty-mauve: #8B7585ff;
--iron-grey: #444A4Dff;
--lavender-grey: #8793ADff;
--cinnamon-wood: #C27662ff;
--alabaster-grey: #D9E2E5ff;
}



/* Smooth scrolling across the document */
html {
    scroll-behavior: smooth;
}

/* General Body Styling */
body {
    font-family: 'Afacad Flux', sans-serif;
    background-color: #f2f2f2;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  
}

/****************************************************
 ******************** TYPOGRAPHY ********************
 ****************************************************/

h1 {
    text-transform: uppercase;
    text-align: center;
    padding-top: 1rem;
    color: var(--color-accent);
    font-size: 3rem;
    font-weight: bolder;
    -webkit-text-stroke: 0.12rem var(--color-primary);
    letter-spacing: 0.125rem;
    transition: transform 0.5s ease;
}
h2 {
    text-transform: uppercase;
    text-align: center;
    padding-top: 0.5rem;
    color: var(--color-secondary);
    font-size: 2.5rem;
    font-weight: bolder;
    -webkit-text-stroke: 0.1rem var(--color-primary);
    letter-spacing: 0.1rem;
    transition: transform 0.5s ease;
}
h1:hover,h2:hover {
    transform: scale(1.05);
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

p:hover {
    transform: scale(1.01);
}

a {
    color: var(--color-secondary);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

.quote-center,
q {
    font-family: 'Just Me Again Down Here', cursive;
    font-size: 2rem;
    text-align: center;
    color: var(--color-secondary);
    text-shadow: -1px -1px 0 black, 1px -1px 0 black,
        -1px 1px 0 black, 1px 1px 0 black;
}

.home-card-text {
    font-size: 1.3rem;
    color: var(--color-secondary) !important;
    text-align: center;
    margin-top: 1rem;
}



/****************************************************
 ******************** NAVBAR ***********************
 ****************************************************/

.Navbar {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: calc(100% - 2rem);
background: linear-gradient(
    150deg,
    var(--color-primary) 0%,   /* left edge */
    rgba(0, 0, 0, 0.2) 50%, /* glassy light center */
    var(--color-primary) 100%  /* right edge */
);

    backdrop-filter: blur(8px);           /* glass effect */
    border-radius: 1rem;
    box-shadow: 0 6px 20px var(--color-shadow);
    z-index: 10;
    padding: 0.5rem 1rem;
    transition: transform 0.6s ease, box-shadow 0.6s ease, background 0.6s ease;
    animation: slideInNav 0.8s ease-out forwards; /* smoother entry */
}

/* Slide-in animation */
@keyframes slideInNav {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Navbar brand */
.Navbar .navbar-brand {
    color: var(--color-secondary) !important;
    font-weight: 700;
    letter-spacing: 0.05rem;
    font-size: 1.4rem;
    transition: color 0.4s ease, transform 0.4s ease;
}
.Navbar .navbar-brand:hover {
    transform: scale(1.05);
}

/* Nav links */
.Navbar .nav-link {
    color: var(--color-secondary) !important;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.7rem 0.9rem;
    border-radius: 0.5rem;
    transition: background 0.4s ease, color 0.4s ease, transform 0.4s ease;
    animation: slideInText 1s ease forwards;
}

.Navbar .nav-link:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary) !important;
    font-weight: bold;
    transform: scale(1.05);
}

.Navbar .nav-link.active {
    background-color: var(--color-accent);
    color: var(--color-primary) !important;
    font-weight: 600;
}

/* Slide-in animation for links */
@keyframes slideInText {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar list items spacing */
.Navbar-il {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Optional hover shadow on entire navbar */
.Navbar:hover {
    box-shadow: 0 10px 25px var(--color-shadow);
    transform: translateY(-2px);
}

/* -------------------------------
   Responsive adjustments
---------------------------------*/
@media (max-width: 768px) {
    .Navbar {
        top: 0.5rem;
        left: 0.5rem;
        width: calc(100% - 1rem);
        padding: 0.4rem 0.8rem;
        border-radius: 0.75rem;
    }
    .Navbar .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0.7rem;
    }
    .Navbar .navbar-brand {
        font-size: 1.2rem;
    }
}


/****************************************************
 ******************** VIDEO BACKGROUND **************
 ****************************************************/

#loop_Video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
    filter: brightness(90%) contrast(80%) saturate(120%) blur(3px);
    pointer-events: none;
}

/****************************************************
 ******************** IMAGE BACKGROUND **************
 ****************************************************/
.background-image{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
    pointer-events: none;
}



/****************************************************
 ******************** TEXT OVER VIDEO ***************
 ****************************************************/

.Drop_Text {
    margin-top: 10rem !important;
    margin-bottom: 6rem !important;
    animation: fadeInText 1.5s ease forwards;
}

@keyframes fadeInText {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

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


/****************************************************
 ******************** CONTENT SECTIONS ***************
 ****************************************************/

.Content_Container {
    background-color: var(--glass-black);
    margin: 0.5rem 1rem 1rem;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Two-column layout */
.Column_1,
.Column_2 {
    float: left;
    width: 50%;
    margin: 0.3rem 0;
    padding: 0.6rem;
    height: 31.9rem;
}



.Column_2 {
    background-color: var(--color-transparent-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.Row::after {
    content: "";
    display: table;
    clear: both;
}

.Column-title {
    font-size: 2.4rem;
}

/****************************************************
 ******************** CARDS & CAROUSEL **************
 ****************************************************/


/*  CARD STYLING  */


.project-card {
  display: flex; /* Flex container to arrange content vertically */
  flex-direction: column; /* Stack children vertically */
  justify-content: space-between; /* Push button to bottom */
  height: 100%; /* Uniform card height */
  border: none; 
  border-radius: 1.5rem; 
  
  /* Frosted glass effect */
  background-color: var(--glass-black);
  backdrop-filter: blur(10px); /* Blur background behind card */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: all 0.3s ease; /* Smooth transition on hover */
}

/* Hover effect for card */
.project-card:hover {
  transform: translateY(-5px); /* Slight lift */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Stronger shadow */
}


/* VIDEO STYLING */

.project-card video {
  object-fit: cover; /* Fill container without distortion */
  cursor: pointer; /* Pointer cursor */
  width: 100%; /* Full width */
  height: 225px; /* Fixed height */
  border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
 
}


/* CARD BODY STYLING  */

.project-card .card-body {
  flex-grow: 1; /* Expand to fill card height */
  text-transform: uppercase;
  padding: 1rem 1.25rem; /* Inner spacing */
  display: flex; 
  flex-direction: column; /* Stack title, text, button */
  text-align: center; 
}

/* Card title styling */
.project-card .card-title {
  font-weight: bolder;
  font-size: 1.5rem;
 letter-spacing: 0.1rem;
  margin-bottom: 0.6rem; 
  font-family: 'Afacad Flux';
}

/* Card text styling */
.project-card .card-text {
text-transform: none;
  font-size: 1.2rem;
  color: var(--color-secondary);
  line-height: 1.4;
}





/* -------------------------------------------------
   Carousel container
   ------------------------------------------------- */
/* Carousel container */
#carouselExampleCaptions {
    max-width: 600px;
    height: 500px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    position: relative;
    margin: auto;
}

/* Carousel items and fade effect */
#carouselExampleCaptions .carousel-item {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
}

#carouselExampleCaptions .carousel-item.active {
    opacity: 1;
    position: relative;
    transform: scale(1);
}

/* Images */
#carouselExampleCaptions .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    transition: transform 1.2s ease-in-out;
}

/* Zoom effect for active slide */
#carouselExampleCaptions .carousel-item.active img {
    transform: scale(1.05);
}

/* Carousel controls */
.carousel-control-next,
.carousel-control-prev {
    width: 4rem;
    filter: invert(100%);
}

.carousel-control-next:hover,
.carousel-control-prev:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Optional: cursor pointer for slides */
.carousel-item {
    cursor: pointer;
}



/****************************************************
 ******************** BUTTONS ************************
 ****************************************************/

 .custom-button {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 1rem;
    border: none;
    border-radius: 0.7rem;
    box-shadow: 0 4px 10px var(--color-shadow);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
   text-align: center;
 }    

.custom-button:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-2px);
}


/*Cards buttons*/

.custom-button {
  background-color:var(--color-primary); 
  color: var(--color-secondary);
  border-radius: 2rem; 
  font-size: 0.95rem;
  padding: 0.5rem 1.5rem;
  border: none; /* Remove default border */
  text-decoration: none; /* Remove underline */
  transition: all 0.3s ease; /* Smooth hover effect */
}

/* Hover effect */
.custom-button:hover {
  background-color:var(--color-accent); /* Darker background on hover */
  transform: scale(1.05); /* Slightly grow button */
}

/* Center the button if using text-center in card */
.button-container {
  text-align: center;
  margin-top: 1rem; /* Space above button */
}

/****************************************************
 ******************** FOOTER ************************
 ****************************************************/

.footer-override {
    padding: 1%;
    background-color: var(--color-primary)!important;
}

.footer-text {
    color: var(--color-secondary)!important;
    font-size: 2rem;
}

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

/* Floating "Contact Us" button */
.Pop_Up_Button {
    position: fixed;
    bottom: 1.8rem;
    right: 1.2rem;
    width: 18rem;
    height: 4.5rem;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 10px var(--color-shadow);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0.1rem;
    transition: all 0.4s ease;
    animation: slideInButton 1s forwards;
    z-index: 20;
}

.Pop_Up_Button:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-2px);
}

@keyframes slideInButton {
    from {
        transform: translateX(120%);
    }

    to {
        transform: translateX(0);
    }
}

/* Overlay (background dim when form opens) */
.contact-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--color-transparent-primary);
    z-index: 15;
    justify-content: center;
    align-items: center;
    border-radius: 1rem;
}

/* Form popup container */
.form-popup {
    position: fixed;
    right: 2rem;
    bottom: 7rem;
    display: none;
    background-color: var(--color-secondary);
    border-radius: 1rem;
    box-shadow: 0 6px 16px var(--color-shadow);
    animation: fadeIn 0.6s ease forwards;
    z-index: 30;
}

/* Inside form */
.form-container {
    max-width: 32rem;
    padding: 2rem;
}

.form-container label {
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 600;
}

.form-container input[type=text],
.form-container input[type=email],
.form-container textarea {
    width: 100%;
    padding: 0.9rem;
    margin: 0.6rem 0 1rem;
    border: 1px solid var(--color-accent);
    border-radius: 0.6rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-container input:focus,
.form-container textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Buttons inside form */
.form-container .btn {
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border: none;
    border-radius: 0.6rem;
    font-size: 1.1rem;
    padding: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.8rem;
}

.form-container .btn:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.form-container .cancel {
    background-color: var(--color-muted);
    color: var(--color-secondary)
}

.form-container .cancel:hover {
    background-color: var(--color-accent);
}

/* Close button (X) */
.close-x {
    position: absolute;
    top: 0.6rem;
    right: 0.9rem;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 50;
}

.close-x:hover {
    color: var(--color-accent);
}

/* “Coming Soon” section */
.coming-soon-text {
    text-align: center;
    color: var(--color-primary);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
}

.coming-soon-email {
    text-align: center;
    font-size: 1rem;
    color: var(--color-muted);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/****************************************************
 ******************** PORTFOLIO BUTTON (JS) *************
 ****************************************************/


/* Button and text styles */
.cta-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.cta-button {
    background-color: var(--color-primary) !important;
    color: var(--color-secondary) !important;
    max-width: 10rem;
    max-height: 2rem;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.cta-button:hover { animation: breathe 2s infinite; 
    box-shadow: 0 0 10px rgba(39, 37, 38, 0.8); }
@keyframes breathe { 0%,100% {transform: scale(1);} 50% {transform: scale(1.05);} }


canvas { 
position: fixed;   /* stays pinned to viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;    /* removes inline gaps */
  pointer-events: none; /* lets clicks pass through */
    z-index: 30;      /* behind other elements */
}



/****************************************************
 ******************** RESPONSIVE DESIGN *************
 ****************************************************/

/* For screens ≤ 700px (phones & tablets) */
@media (max-width: 700px) {

    .Column_1,
    .Column_2 {
        width: 100%;
        height: auto;
    }

    .Pop_Up_Button {
        width: 10rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .form-popup {
        right: 0.6rem;
        bottom: 1.2rem;
        max-width: 90%;
    }

    .form-container, .cta-container {
        padding: 0.6rem;
    }

    h1 {
        font-size: 2rem;
    }

    p,
    .quote-center,
    q {
        font-size: 1.2rem;
    }

    .Drop_Text {
        padding: 1rem;
    }

    #title-description {
        font-size: 1rem;
    }

    .navbar-expand-custom .navbar-collapse.collapse:not(.show) {
        display: none !important;
        /* hidden by default */
    }

    .navbar-expand-custom .navbar-collapse.show {
        display: block !important;
        /* shown when toggled */
    }

    .navbar-expand-custom .navbar-nav {
        flex-direction: column;
    }

    .navbar-expand-custom .navbar-toggler {
        display: block;
    }

    .navbar-collapse {
        padding-top: 0.5rem;
        max-height: 0;
        overflow: hidden;
        animation: slideInButton 1s forwards;
        /* same as Pop_Up_Button */
        transition: all 0.4s ease;
    }

    .navbar-collapse.show {
        max-height: 500px;
        /* adjust if you have many links */
        transition: all 0.4s ease-in;
    }

    /*Adjust ul nav links for small screens*/
    .navbar-nav .nav-link {
        padding: 0.7rem 1rem;
        font-size: 1rem;
    }

    .custom-button {
    font-size: 0.9rem; /* Slightly smaller on smaller screens */
    padding: 0.4rem 1.2rem; /* Adjust padding */
  }
  .project-card {
    background-color: rgba(255, 255, 255, 0.25); /* Slightly stronger transparency on mobile */
    backdrop-filter: blur(8px); /* Less blur for performance on mobile */
    -webkit-backdrop-filter: blur(8px);
  }

  .project-card .card-text {
    font-size: 0.9rem; /* Adjust text size */
  }
}


/* Hide collapse above 700px = expanded state */
@media (min-width: 701px) {
    .navbar-expand-custom .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    .navbar-expand-custom .navbar-toggler {
        display: none;
    }

    .navbar-expand-custom .navbar-nav {
        flex-direction: row;
    }
}

/* For ultra-small screens ≤ 300px */
@media (max-width: 300px) {
    .Pop_Up_Button {
        width: 8rem;
        height: 2.2rem;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    p,
    q {
        font-size: 1rem;
    }
}


