@import url('https://fonts.googleapis.com/css?family=Roboto:700');

body {
    overflow-y: auto;
    overflow-x: hidden;
    margin:0px;
    font-family:'Roboto';
    background: linear-gradient(-45deg,
    #0E0438,
    #380202,
    #003478
    );
    min-height: 100vh;
    background-size: 400% 400%;
}

#container {
    margin: 0 auto;
    width: fit-content;
    top: 15%;
    font-size: clamp(24px, 5vw, 48px); 
    font-weight: bold;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 20px;  
    width: 90%;    
    max-width: 700px;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 0 20px 20px rgba(255, 255, 255, 0.1);
    background-image: linear-gradient(
        to right,
        #4ec7f3 0%,
        #1e90ff 25%,
        #0000cd 50%,
        #000080 75%,
        #4ec7f3 100%
    );
    background-size: 200% auto; 
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: slideColors 8s linear infinite;
}

@keyframes slideColors {
    to {
        background-position: -200% center;
    }
}


#flip {
    height: 65px;
    overflow: hidden;
}

#flip > div > div {
    color: #fff;
    padding: 4px 12px;
    height: 60px;
    margin-bottom: 60px;
    display:inline-block;
}

#flip div:first-child {
    animation: show 5s linear infinite;
}

#flip div div {
    background:#42c58a;
}
#flip div:first-child div {
    background:#4ec7f3;
}
#flip div:last-child div {
    background:#DC143C;
}

@keyframes show {
    0% {margin-top:-360px;}
    5% {margin-top:-240px;}
    33% {margin-top:-240px;}
    38% {margin-top:-120px;}
    66% {margin-top:-120px;}
    71% {margin-top:0px;}
    99.99% {margin-top:0px;}
    100% {margin-top:-360px;}
}

/* Image scroller  */
#image-container {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 40vh;
    overflow: hidden;
}

#image-flip div img {
    height: 100%;
    width: auto;
    max-width: 800px;
    object-fit: cover;
}

#image-flip {
    height: 100%;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    animation: slideImages 30s linear infinite;
    width: fit-content;
}

#image-flip img {
    height: 100%;
    width: auto;
    max-width: 80vw;
    object-fit: contain;
    flex-shrink: 0;
}

#image-flip div {
    height: 100%;
    display: flex;
    align-items: center;
}

@keyframes slideImages {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 3px)); }
}

/* Navigation Bar  */
.Navbar {
    width: 100%;
	position: fixed;
	position: sticky;
	top: 0;
    z-index: 1000;
}

.Navbar ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #353535;
}

.Navbar li {
	float: left;
}

.Navbar li a {
	display: block;
	color: white;
	text-align: center;
	padding: 14px 16px;
	text-decoration: none;
}

.Navbar li a:hover:not(.active) {
	background-color: #111111;
    
}

/* Main Text Container for ifomation*/
.text-container {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center; 
    bottom: 0%;
    height: 50vh;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    gap: 10px; 
}

.text-container div {
    min-width: 200px;
    background-color: #f1f1f1;
    padding: 20px;
    font-size: 30px;
    border-radius: 7px;
    flex: 1 1 200px;     
    max-width: calc(25% - 10px); 
    box-sizing: border-box;
    text-align: center;
}

.text-container h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.text-container p {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
}

/* Credits  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa scewy */
.credits {
    position: absolute;
    top: 40%;
    left: 90%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #fff;
    text-align: center; 
    white-space: nowrap;
}

@media screen and (max-width: 768px) {
    .credits {
        position: absolute;
        left: 50%;
        top: 45%;
    }
}

/* menu overlays */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal:target {
    display: block;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
}

.close-modal:hover {
    color: #ff0000;
}

.modal-content {
    text-align: center;
    background-color: #fefefe;
    margin: 5vh auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.modal-content::-webkit-scrollbar {
    display: none;  
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Project Cards  */
.projects-grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.project-card:hover {
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.project-links a {
    padding: 8px 16px;
    background: #4ec7f3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.project-description {
    text-align: left;
    margin: 15px 0;
}

.project-description h4 {
    color: #333;
    margin: 15px 0 8px 0;
}

.project-description ul {
    list-style-type: none;
    padding-left: 0;
}

.project-description ul li {
    padding: 4px 0;
    position: relative;
    padding-left: 20px;
}

.project-description ul li:before {
    content: "•";
    color: #4ec7f3;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tech-tag {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #495057;
}

/* Countdown Timer */
.countdown-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(78, 199, 243, 0.9);
    color: white;
    padding: 15px;
    border-radius: 10px;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    font-family: 'Roboto', sans-serif;
    backdrop-filter: blur(5px);
}

.countdown-overlay h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #fff;
    text-transform: uppercase;
}

.countdown-timer {
    font-size: clamp(24px, 4vw, 48px);
    margin: 20px 0;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 20px auto;
    width: fit-content;
    padding: 0 10px;
    justify-content: center;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
}

.countdown-value {
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    font-weight: bold;
}

.countdown-label {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    margin-top: 2px;
}

/* Party shit */
.party-theme {
    background: linear-gradient(45deg, #FF1493, #4169E1, #32CD32, #FFD700);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.party-theme h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}

.party-theme .countdown-timer {
    font-size: 4em;
    color: white;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    animation: pulse 2s infinite;
}

.confetti-container {
    position: fixed;
    width: 120%;
    height: 120%;
    top: -20%;
    left: -10%;
    overflow: visible;
    pointer-events: none;
}

.confetti {
    position: absolute;
    font-size: 2em;
    animation: fall 8s linear infinite;
}

.confetti:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 7s; }
.confetti:nth-child(2) { left: 25%; animation-delay: 1.5s; animation-duration: 8s; }
.confetti:nth-child(3) { left: 40%; animation-delay: 3s; animation-duration: 6s; }
.confetti:nth-child(4) { left: 55%; animation-delay: 4.5s; animation-duration: 7.5s; }
.confetti:nth-child(5) { left: 70%; animation-delay: 6s; animation-duration: 8.5s; }
.confetti:nth-child(6) { left: 85%; animation-delay: 7.5s; animation-duration: 7s; }
.confetti:nth-child(7) { left: 15%; animation-delay: 9s; animation-duration: 6.5s; }
.confetti:nth-child(8) { left: 30%; animation-delay: 10.5s; animation-duration: 7.7s; }
.confetti:nth-child(9) { left: 45%; animation-delay: 12s; animation-duration: 8.2s; }
.confetti:nth-child(10) { left: 60%; animation-delay: 13.5s; animation-duration: 7.2s; }

@keyframes fall {
    0% { 
        transform: translateY(-120%) translateX(-50px) rotate(0deg) scale(1); 
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(-100%) translateX(-30px) rotate(45deg) scale(1.2);
    }
    90% {
        opacity: 1;
    }
    100% { 
        transform: translateY(1000%) translateX(50px) rotate(720deg) scale(0.8);
        opacity: 0;
    }
}

@media screen and (max-width: 600px) {
    .modal-content {
        width: 95%;
        margin: 2vh auto;
        padding: 15px;
    }

    .party-theme h2 {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

    .countdown-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .countdown-unit:nth-child(4),
    .countdown-unit:nth-child(5) {
        grid-column: auto;
    }
}

@media screen and (max-width: 350px) {
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .countdown-unit {
        padding: 8px 4px;
    }

    .countdown-value {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }

    .countdown-label {
        font-size: clamp(0.6rem, 2vw, 0.8rem);
    }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}