:root {
    --primaryColor: #000000;
    --secondColor: #ff0302;
    --textColor: #EAC672;
    --gray: rgb(255, 255, 255);
}



* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none !important;
    border: none;
    list-style: none;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;  
    background-color: var(--primaryColor);
    color: var(--textColor);
    background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85));
}


html {
    scroll-behavior: smooth;
    font-size: 100%;
    overflow-x: hidden;
}

/* Loading page */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: grid;
    grid-template-columns: repeat(14, 1fr); /* Adjust as needed */
    grid-template-rows: repeat(12, 1fr); /* Adjust as needed */
    color: var(--secondColor);
    z-index: 9999;
    align-items: center;
    justify-items: center;
    overflow: hidden;
    transition: opacity 1s ease;
    opacity: 1;
}
#loading-screen.fade-out {
    opacity: 0;
}
.word {
    font-family: 'Tourney', sans-serif;
    opacity: 0;
    font-size: 0.9vw; /* Adjust font size as needed */
    color: var(--secondColor);
    text-shadow: 0 0 5px var(--secondColor), 0 0 10px var(--secondColor);
    transition: opacity 1s ease; /* Transition for fade effect */
    max-width: 60px; /* Adjust max-width as needed */
    max-height: 60px; /* Adjust max-height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
/* Ensure these styles match those used for .word */
.full-stack {
    font-family: 'Tourney', sans-serif;
    opacity: 0; /* Start invisible */
    color: var(--secondColor);
    text-shadow: 0 0 5px var(--secondColor), 0 0 10px var(--secondColor);
    display: flex;
    flex-direction: row;
    text-align: center;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    font-size: 8vw; 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    gap: 30px; 
}
/* Adjustments for smaller screens */
@media (max-width: 1920px) {
    .full-stack {
        font-size: 6vw;
        gap: 8px; 
    }
}
@media (max-width: 992px) {
    .full-stack {
        font-size: 6vw;
        gap: 8px; 
    }
}

@media (max-width: 480px) {
    .full-stack {
        font-size: 4vw; 
        gap: 4px; 
    }
}

/* Optional: add similar animations for full-stack developer text */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.full-stack span {
    opacity: 0; 
    display: inline-block;
    transition: opacity 0.5s ease;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 2s ease forwards;
}

.fade-out {
    animation: fadeOut 1s ease forwards;
}

.full-stack-screen {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}


/* Back to top btn */

#btn-back-to-top {
    position: fixed;
    background-color: var(--secondColor) !important;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 9999;
}

/* Navigation */

.navbar {
    background-color: transparent;
    border-bottom: 1px solid var(--secondColor);
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 107px;
}


.navbar .nav-item .nav-link {
    /* position: relative; */
    color: var(--textColor);
}


.navbar .nav-item .nav-link span+span {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.4s, opacity 0.4s ease;
    /* Delay visibility until opacity is fully transitioned */
}


.navbar .nav-item .nav-link:hover span+span {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
    /* Remove delay when hovering */
}

.navbar .nav-item .nav-link:hover::after {
    width: 100%;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    outline: none;
    box-shadow: none;
}

.navbar-nav a>[aria-hidden="true"] {
    font-weight: 700;
    margin-inline-end: 0.50em;
    letter-spacing: 0.1em;
    color: var(--primaryColor);
    padding: 2px 0;

}

.navbar-nav a>span {
    filter: drop-shadow(0.9px 0.9px 0.9px var(--textColor));
    padding: 2px 0;
}

.navbar-nav a:hover>span {
    filter: drop-shadow(0.9px 0.9px 0.9px var(--secondColor));
    padding: 2px 0;
    color: var(--secondColor);
    
}

.logo {
    filter: drop-shadow(0.9px 0.9px 0.9px var(--textColor));
    height: 80px;
    width: 100px;
}
.logo:hover {
    filter: drop-shadow(0.9px 0.9px 0.9px var(--secondColor));
}
/* Media query for navbar  */
@media (max-width:992px) {
    .navbar .nav-item .nav-link span+span{
        visibility: visible;
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .navbar .container {
        width: 100vw;
        background-color: var(--primaryColor); /* Background color for the expanded menu */
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--primaryColor); /* Ensures full background color coverage */
        z-index: 999; /* Make sure it is above other content */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .navbar-nav {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .navbar-nav .nav-item {
        margin: 10px 0; /* Spacing between items */
    }

    .navbar-nav .nav-link {
        font-size: 1.5rem; /* Increase the size of the links */
        color: var(--textColor);
        width: 100%;
        padding: 15px 0;
    }

    .navbar-toggler {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1001; /* Above the expanded menu */
    }
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .navbar-nav {
        margin-left: 0;
        /* Aligns the navlinks to the left */
    }
}
@media (max-width: 992px) {
    .navbar .container {
        background-color: var(--primaryColor);
        
    }
}
.hero {
    display: none;
    opacity: 0; /* Start with content hidden */
    transition: opacity 1s ease-in; /* Smooth fade-in */
    height: calc(100vh - 107px);
}

.fullHeight-dvh {
    height: calc(var(--vh, 1vh) * 100);
}
/* .heroOuter{
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    
} */
.hero-section {
    
    position: relative;
    width: 100%;
    max-width: 1200px;
    /* Set a max-width to keep content centered */
    padding: 0 20px;
    /* Add padding instead of large margin */
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    /* Center the content horizontally */
    
}
.slidingLettersWrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}
.sliding-letters {
    font-size: 7vw;
    color: #fff;
    display: flex;
    gap: 16px;
    color: var(--textColor);
    
}

.sliding-letters span {
    display: inline-block;
    transform: translateY(100px); /* Start off-screen */
    opacity: 0;
    animation: slide-in 0.5s forwards;
}

@keyframes slide-in {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.textSize {
    font-size: 4vw;
    text-transform: capitalize;
}

.sliding-letters span:nth-child(1) { animation-delay: 0.1s; }
.sliding-letters span:nth-child(2) { animation-delay: 0.2s; }
.sliding-letters span:nth-child(3) { animation-delay: 0.3s; }
.sliding-letters span:nth-child(4) { animation-delay: 0.4s; }
.sliding-letters span:nth-child(5) { animation-delay: 0.5s; }
.sliding-letters span:nth-child(6) { animation-delay: 0.6s; }
.sliding-letters span:nth-child(7) { animation-delay: 0.7s; }
.sliding-letters span:nth-child(8) { animation-delay: 0.8s; }
.sliding-letters span:nth-child(9) { animation-delay: 0.9s; }
.sliding-letters span:nth-child(10) { animation-delay: 1s; }
.sliding-letters span:nth-child(11) { animation-delay: 1.1s; }

/* Adjust gap for smaller screens */
@media (max-width: 768px) {
    .sliding-letters {
        gap: 8px; /* Smaller gap for tablets */
    }
}

@media (max-width: 480px) {
    .sliding-letters {
        gap: 4px; /* Even smaller gap for mobile devices */
    }
}


.bgAnimation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#bgAnimation {
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0.2;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    overflow: hidden;
    z-index: 10000;
}

.bgAnimation {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.159);
    transition: color 0.3s ease;
}

.highlight {
    color: var(--textColor);
}

@media (max-width:1399px) {
    .bgAnimation-container {
        display: none;
    }
}
.grid-container {
    display: grid;
	grid-template-rows: repeat(6, 1fr);
	grid-template-columns: repeat(6, 1fr);
	gap: 0;
	width: 100%;
	height: 100%;
}

.social-icons {
    font-size: 3vw;
}

#portfolio {
    position: relative;
}

#footer {
    position: relative;
}

.footerBg {
    background-color: var(--primaryColor);
    border-top: 1px solid var(--secondColor);
}

.footerLink {
    color: var(--textColor);
}