@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

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

html { scroll-behavior: smooth;}

body {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    overflow-x: hidden;
    background: #1E1E1E;
    cursor: none;
}

.cursor {
    width: 20px;
    height: 20px;
    border: 1rem solid white;
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%); 
    z-index: 100;
    pointer-events: none;
    mix-blend-mode:difference;
    transition: all 0.1s ease-out;
}

.cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.cursor:hover::after {
    opacity: 1;
}

.cursor.reveal-grow {
    transform: scale(3); 
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: #1E1E1E;
}

::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background: linear-gradient(0deg, rgba(186,95,75,1) 0%, rgba(247,166,36,1) 100%);
}

.reveal:not(.page-title, .page-content){
    position: relative;
    opacity: 0;
    top: 3rem;
    transition: all 0.5s ease-in;
}

.reveal.active {
    top: 0;
    opacity: 1;
}


header {
    padding: 0 2rem;
    position: sticky;
    top: 0;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background-color: #1e1e1eaf;
    z-index: 3;
}

/* =============== HEADER =============== */

header nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
}

header ul li {
    position: relative;
    display: inline-block;
    margin: 1rem;
}

header ul li a {
    font-size: 1.5rem;
    list-style-type: none;
    text-decoration: none;
    color: #FFE8C2; 
}

header ul li img {
    list-style-type: none;
    text-decoration: none;
    width: 1.5rem;
    height: 1.5rem;
}

header ul li:nth-child(3) a {
    color: #F4B22F;
} 

header ul li:hover {
    transform: translateY(-3px);
    transition: all .70s ease;
}

header ul li a:hover,
header ul li a:focus {
    cursor: none;
    opacity: 70%;
} 

header ul li a .popup-text {
    display: none;
    position: absolute;
    left: -1rem;
    bottom: -2.5rem;
    background-color: #1E1E1E;
    color: #FFE8C2;
    white-space: nowrap;
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    font-size: 0.8rem;    
}

header ul li a:hover .popup-text {
    display: block;
}


/* =============== CHATBOX POP UP =============== */

.open-button {
    background-color: #F4B22F;
    box-shadow: 0 0 20px #1e1e1e67;
    color: #1E1E1E;
    border-radius: 50%;
    font-size: 2rem;
    margin: 3rem 3rem;
    padding: 0.40em 0.5em;
    border: none;
    position: fixed;
    bottom: 0;
    right: 0;
    cursor: none;
    z-index: 2;
    transition: transform 0.3s ease-out;
}

.open-button:hover {
    transform: scale(1.1);
}

  /* The popup chat - hidden by default */
.chat-popup {
    display: none;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 3;
    transition: bottom 0.3s ease-out;
}
  
  /* Add styles to the form container */
.form-container {
    min-width: 300px;
    background-color: #F4B22F;
    box-shadow: 0 0 20px #1e1e1e67;
    color: #FFE8C2;
    border-radius: 10px 10px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
  
  /* Full-width textarea */
.form-container textarea {
    width: 100%;
    padding: 15px;
    border: none;
    background: #FFE8C2;
    resize: none;
    min-height: 200px;
}

  
  /* When the textarea gets focus, do something */
.form-container textarea:focus {
    background-color: #ddd;
    outline: none;
}
  
  /* Set a style for the submit/send button */
.form-container .btn {
    color: #1E1E1E;
    background-color: #FFE8C2;
    border-radius: 10px;
    font-size: 0.8rem;
    padding: 0.8em;
    margin: 1em;
    border: none;
    cursor: pointer;
}
  
  /* Add a red background color to the cancel button */
.form-container .cancel {
    align-self: flex-end;
}

.form-container .send {
    padding: 0.8em 5em;
    align-self: center;
}
  
  /* Add some hover effects to buttons */
.form-container .btn:hover {
    box-shadow: 0 5px 5px #1e1e1e67;

}

/* =============== FOOTER =============== */

footer {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #1E1E1E;
    color: #FFE8C2;
    box-sizing: border-box;
    width: 100%;
    min-height: 40vh;
    padding: 2rem 3rem;
    bottom: 0;
}

.footer-content {
    display: flex;
    width: 100%;
}

.footer-left, 
.footer-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
}

.footer-left {
    display: flex;
    align-items: flex-start;
}

.footer-right {
    display: flex;
    align-items: flex-end;
}

.footer-left div {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-left i {
    padding-right: 1rem;
}

.footer-right {
    align-items: center;
    justify-content: center;
}

.footer-right img {
    max-width: 50%;
    max-height: 100%;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    width: 100%;
}


/* =============== MAIN =============== */

main {
    position: relative;
    background: linear-gradient(0deg, rgba(247,166,36,1)  0%, rgba(186,95,75,1) 46%,rgba(80,88,152,1) 100%);
    margin: 0 0 50vh 0;
    padding: 0 2rem;
    border-radius: 0 0 40px 40px;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    padding-top: 2em;
    color: #FFE8C2;
}

.page-content {
    text-align: center;
    font-size: 1.5rem;
    padding-top: 2em;
    color: #FFE8C2;
}


/* =============== SERVICES CONTAINER =============== */

.portfolio-container {
    display: flex;
    padding: 7rem 0;
    gap: 3em;
    justify-content: center;
    flex-wrap: wrap;
}

.portfolio-container img {
    cursor: pointer;
    border-radius: 10px;
    transition: ease 0.5s;
}

.portfolio-container img:hover {
    box-shadow: 0 0 10px #1e1e1ea8;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: hidden;
    background-color: rgb(0,0,0); 
    background-color: rgba(0, 0, 0, 0.623);
    z-index: 3;
    scroll-behavior: auto;
  }
  
  /* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    padding: 2rem auto;
    width: 50vw;
    height: 100%;
}
  
.modal-content, #caption {  
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}
  
 @-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
}
  
@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}
  
  
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}
  
.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
  
@media only screen and (max-width: 700px){
    .modal-content {
      width: 100%;
    }
}


/* =============== INSTAGRAM FEED SECTION =============== */

.feed {
    margin-top: 2rem;
    margin-bottom: 3rem;
    color: #FFE8C2;
    padding: 0 1rem;
}

.feed .title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feed .title {
    font-size: 30px;
}

.feed .subtitle {
    font-size: 18px;
    text-align: right;
}

.row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 30px 4px;
}

.column {
    flex: 25%;
    max-width: 50%;
    padding: 0 4px;
    margin-bottom: 8rem;
}

.column img {
    margin-top: 8px;
    vertical-align: middle;
    width: 100%;
    cursor: pointer;
}

.column-img {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.column-img::before {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background-image: url('https://unpkg.com/css.gg/icons/svg/instagram.svg');
    background-size: cover;
    z-index: 1;
    filter: invert(1);  
}

.column-img img {
    margin-top: 10px;
    vertical-align: middle;
    width: 100%;
}

.caption {
    color: white;
    font-size: 14px;
    position: absolute;
    bottom: 30px;
    left: 16px;
    opacity: 0;
    transition: 0.5s ease;
    z-index: 2;
    transition: all ease-in 0.3s
}

.text {
    color: white;
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    bottom: 8px;
    left: 16px;
    opacity: 0;
    transition: 0.5s ease;
    z-index: 2;
    transition: all ease-in 0.3s
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    margin-top: 30%;
    width: 100%;
    height: 0; /* Adjust the height as needed */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.555), rgba(0, 0, 0, 0)); /* Gradient overlay */
    z-index: 1; /* Above the image but below the text */
    transition: all ease-in 0.3s;
}

.column-img:hover .overlay {
    height: 100%;
}

.column-img:hover .text {
    opacity: 1;
}

.column-img:hover .caption {
    opacity: 1;
}