@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

*{
    scroll-behavior: smooth;
}

body, html {
    overflow-x: hidden !important; 
    font-family: "Fira Sans", sans-serif;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

/* NAV */
a, .nav-item, .nav-link{
    color: rgb(203, 203, 203) !important;
    font-size: 1em; 
    padding-left: 30px;
    opacity: 0.5;
}
a, .nav-item, .nav-link:hover{
    transition: 0.3s ease-in-out;
opacity: 1;
}
.navbar-toggler.custom-toggler {
    border-color: transparent; /* Remove border if needed */
}
.navbar-toggler.custom-toggler .navbar-toggler-icon {
    background-image: url('data:image/svg+xml;charset=UTF8,%3Csvg viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath stroke="rgba%28255, 255, 255, 1%29" stroke-width="2" stroke-linecap="round" stroke-miterlimit="10" d="M4 7h22M4 15h22M4 23h22"/%3E%3C/svg%3E');
}

/* -------------------- VIDEO -------------------- */
#video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

#video-bg {
    min-width: 100%; 
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Video Content */
.video-content {
    position: relative;
    z-index: 1;
    color: #cfcfcf;
    padding: 200px 0;
    height: 100vh;
}

.video-content h1 {
    font-size: 9em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-content p {
    font-size: 1.8em;
    font-weight: 200;
    margin-bottom: 2rem;
}

.video-content .btn {
    font-size: 2rem;
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    color: #FFFFFF;
    text-align: center;
    width: 250px;
    transition: all 0.5s;
    cursor: pointer;
    margin: 5px;
}


/* -------------------- VIDEO BUTTON -------------------- */

.btn {
    border-radius: 20px !important;
}
.btn span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
    white-space: nowrap;
}
.btn span:after {
    content: '\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -15px; /* Adjust this based on the padding-right value */
    transition: 0.5s;
}
.video-content .btn:hover {
    background-color: #4e4e4e;
}
.btn:hover span {
    padding-right: 25px; /* Ensure this value matches the ::after right value */
    color: #ffffff;
}
.btn:hover span:after {
    opacity: 1;
    right: 0;
}

/* -------------------- ABOUT SECTION -------------------- */

.section-about {
    position: relative;
    background-color: rgb(26, 26, 26, 0.95); 
    color: #cfcfcf; /* Adjust text colour for visibility */
    padding: 30px 0; /* Adjust padding as needed */
    overflow: hidden;
    height: 100vh;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
#animatedText span {
    opacity: 0; /* Initial state */
    display: inline-block; /* Ensure spans don't wrap */
    animation: fadeIn 1s forwards; /* Animation properties */
    /* Apply the animation to each span */
}
#animatedText span:nth-child(1) {
    animation-delay: 0s;
    /* Define a delay for each word */
}
#animatedText span:nth-child(2) {
    animation-delay: 0.5s;
}
#animatedText span:nth-child(3) {
    animation-delay: 1s;
    /* Add more nth-child rules as needed for each word */
}
#animatedParagraph, #animatedButton {
    opacity: 0; /* Initial state */
    animation: fadeIn 1s forwards; /* Animation properties */
    /* Fade in the paragraph and button after the title animation */
}
#animatedParagraph {
    animation-delay: 2s; /* Adjust delay based on the number of words in the title */
    /* Animation delays to make paragraph and button fade in after title */
}
#animatedButton {
    animation-delay: 3s; 
    text-align: center !important;
}

@keyframes spread {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
    /* Define the spread animation */
}
@keyframes tracking-in-expand {
    0% {
        letter-spacing: -0.5em;
        opacity: 0;
    }
    40% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
        letter-spacing: normal;
    }
    /* Define the tracking-in-expand animation */
}
.section-about h2.animate, .section-port h2.animate {
    animation: tracking-in-expand 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}
.section-about h2, .section-port h2 {
    margin-bottom: 20px; /* Adjust margin as needed */
    font-size: 2em;
}
.lead-about {
    font-size: 5rem !important;
    color: #cfcfcf;
}
.section-about, .container, h2 {
font-size: 2em;
}
.hidden {
    opacity: 0;
    visibility: hidden;
    /* Hide the titles initially */
}
.section-about h2.animate,
.section-port h2.animate {
    opacity: 1;
    visibility: visible;
    animation: tracking-in-expand 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
    /* Ensure the animation class reveals the title */
}


/* -------------------- PORTFOLIO -------------------- */

.section-port {
    position: relative;
    color: #cfcfcf; /* Adjust text colour for visibility */
    padding: 100px 0; /* Adjust padding as needed */

    overflow: hidden;
}
.section {
    position: relative;
height: 100vh;
color: #cfcfcf; /* Adjust text colour for visibility */
    padding: 100px 0; /* Adjust padding as needed */
    text-align: center;
    overflow: hidden;
}
.section-port h2 {
    margin-bottom: 100px;
    font-size: 4em;
}
.section p {
    font-size: 1.25rem; /* Adjust font size */
}
h5 {
    color: rgb(222, 222, 222);
    font-size: 1em;
}
.card-text{
    color: rgb(222, 222, 222);
    font-size: 1.5rem;
}
.card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}
.card:hover img {
    transform: translateY(0%);

}
.card-img-top {
    transition: transform 2s ease-in-out;
}
.card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* padding: 1rem; */
    background-color: rgba(47, 47, 47, 0.7); /* Adjust background colour as needed */
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border: none !important;
}
.card:hover .card-body {
    transform: translateY(0);
}
.card-title {
    margin-bottom: 0.5rem;
    padding-top: 30px;
    font-size: 1rem;
}
.btn-outline-light {
    max-width: 70%;
}
p, .card-text {
    font-size: 1rem;
    line-height: 1.5;
}

/* -------------------- FOOTER AND CONTACT -------------------- */


.social-icons {
    display: flex;
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Center items vertically */
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    margin: 0 150px; /* Initial spacing between icons */
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a i {
    font-size: 70px; /* Adjust icon size if needed */
    color: #848484;
}

.social-icons a:hover i {
    color: #fff;
    transition: 0.5s ease-in-out;
}

.section-contact {
    position: relative;
    color: #fff; /* Adjust text colour for visibility */
    padding: 100px 0; /* Adjust padding as needed */
    text-align: center;
    overflow: hidden;
}

.section-contact, p, a {
    font-size: 1em;
}

/* -------------------- TESTIMONIALS SECTION -------------------- */

.section-test {
    position: relative;
    background-color: #cfcfcf;
    color: #000000; /* Adjust text colour for visibility */
    padding: 30px 0; /* Adjust padding as needed */
    overflow: hidden;
    height: 100vh;
}

/* -------------------- GAME STYLING -------------------- */
.section-game {
    padding: 50px 0;
    text-align: center;
}
#ttt-header {
    color: #cfcfcf;
}
.board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 10px;
    justify-content: center;
    margin: 0 auto 20px;
}
.cell {
    background-color: #fff;
    border: 2px solid #000;
    font-size: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
#reset {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
}
#message {
    font-size: 1.2em;
    color: #e0dada;
    margin-top: 20px;
}
.modal-body {
    color: #000000;
}
.modal-title {
    color: #000000;
}





/* -------------------- MEDIA STYLING -------------------- */

/* Styling adjustments for smaller screens */

@media (max-width: 2000px) {
    .lead-about{
        font-size: 1.6rem !important;
    }

}

@media (max-width: 1800px) {
    .lead-about{
        font-size: 1.4rem !important;
    }

}

@media (max-width: 1200px) {
    .lead-about{
        font-size: 1.3rem !important;
    }

    a, .nav-item, .nav-link{
padding-right: 20px;
    }

    .social-icons a {
        margin: 0 90px; 
    }
    .social-icons a i {
        font-size: 40px;
    }
}
@media (max-width: 1191px) {
    .lead-about{
        font-size: 1.4rem !important;
    }

    a, .nav-item, .nav-link{
padding-right: 20px;
    }
}
@media (max-width: 1046px) {
    .lead-about{
        font-size: 1.1rem !important;
    }

    a, .nav-item, .nav-link{
padding-right: 20px;
    }
}
@media (max-width: 935px) {
    .lead-about{
        font-size: 1.2rem !important;
    }

    a, .nav-item, .nav-link{
padding-right: 20px;
    }
    .video-content{
        padding: 100px;
    }

    .social-icons a {
        margin: 0 70px; 
    }
    .social-icons a i {
        font-size: 60px; 
    }
}
@media (max-width: 733px) {
    .lead-about{
        font-size: 0.9rem !important;
    }

    .section-about h2 {
        font-size: 1.5em;
    }

    .card-title{
        font-size: 2rem;
    }
    
    .card-body{
        padding: 3rem;
    }

    .video-content{
        padding: 50px;
    }
}
@media (max-width: 632px) {
    .lead-about{
        font-size: 0.9rem !important;
    }

    .section-about h2 {
        font-size: 1.5em;
    }

    .card-title{
        font-size: 1.3rem;
    }
    
    .card-body{
        padding: 2rem;
    }

    .video-content{
        padding: 30px;
    }

    .social-icons a {
        margin: 0 5px; 
    }
    .social-icons a i {
        font-size: 45px; 
    }
}
@media (max-width: 586px) {
    .video-content{
        padding-top: 150px;
    }

    .section-about {
        min-width: 100%;
    }

    .lead-about {
        font-size: 0.85rem !important;
    }

    .video-content h1{
    font-size: 5em;
    }
    .section-port h2{
        font-size: 2.6em !important; 
    }

    .social-icons a i{
font-size: 40px;
    }

    .social-icons a i{
        font-size: 40px;
        display: flex;
        justify-content: space-between;
            }
        }


@media (max-width: 459px) {

    .section-about h2 {
font-size: 1em;
}
.lead-about {
font-size: 0.9rem !important;
}

.card-title {
padding-top: none !important;
}

.card-body {
padding: 1em;
}

.section-contact, p, a{
font-size: 0.8em;
}

.video-content{
padding-top: 70px;
}

.social-icons a {
margin: 0 25px; 
}
.social-icons a i {
font-size: 45px; 
}
}


@media (max-width: 374px) {

.section-about h2 {
    font-size: 1.2em;
}

.lead-about {
    font-size: 0.8rem !important;
}

.card-title {
    padding-top: none !important;
}

.card-body {
    padding: 1em;
}

.section-contact, p, a{
    font-size: 0.8em;
}

.video-content{
    padding-top: 70px;
}

.social-icons a {
    margin: 0 25px; 
}
.social-icons a i {
    font-size: 45px; 
}
                        }
                        

                        @media (max-width: 365px) {

                            .section-about h2 {
                                font-size: 1.2em;
                            }
                            
                            .lead-about {
                                font-size: 0.7rem !important;
                            }

                                                    }