/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    color: #333;
    background-color: #f9f9f9;
    font-family: 'Archivo Black', sans-serif;
    font-size: 16px; /* Base font size for scaling */
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    font-weight: 700;
    color: #333;
}

ul {
    list-style: none;
}

/* Loading screen styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #262626;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
}

.loading-logo {
    font-size: 10rem;
    color: white;
    font-family: 'Archivo Black', sans-serif;
    letter-spacing: -0.23em; /* Tighter letter spacing */
    text-align: center;
    display: block;
}

.loading-logo span {
    opacity: 0;
}

/* Smaller font size for .loading-logo on mobile */
@media (max-width: 480px) {
    .loading-logo {
        font-size: 4rem; /* Adjust font size for smaller screens */
    }
}


p {
    font-family: monospace;
}


/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px); 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px;
    z-index: 9998;
    /* font-family: 'Archivo Black', sans-serif; */
    transition: background-color 0.3s ease;
}

.logo {
    position: relative; /* Change from absolute to relative */
    margin: 0 auto; /* Center the logo horizontally */
    transform: none; /* Remove the translateX(-50%) */
    top: 0; /* Reset any top positioning */
    text-align: center; /* Ensure text alignment is centered */
}

.logo a {
    font-size: 1.8rem;
    font-family: 'Archivo Black', sans-serif;
    color: #333;
    display: inline-block;
    cursor: pointer;
    perspective: 1000px; /* Perspective to enhance 3D effect */
}

.logo span {
    display: inline-block;
    margin-right: -0.43em; 
    transform-style: preserve-3d;
    transition: all 0.6s ease;
}

.logo.white a {
    color: #fff;
}

.white-menu li a {
    color: #fff;
}

.menu {
    display: flex;
    gap: 30px;
    font-family: 'Archivo Black', sans-serif;
    position: absolute;
    left: 20px; /* Aligning the menu to the left */
    letter-spacing: -0.1em;
}

.menu li a {
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu li a:hover {
    color: #1f8ef1;
}

/* Burger Menu */
.burger-menu {
    position: absolute;
    right: 40px;
    top: 5px;
}

.burger-menu .menu {
    display: none;
}

.burger-menu input[type="checkbox"] {
    display: none;
}

.burger-menu .menu-icon {
    font-size: 3rem;
    cursor: pointer;
    color: #000;
}

@media (max-width: 768px) {
    .menu {
        display: none;
    }

    .burger-menu {
        display: block;
    }

    .burger-menu input[type="checkbox"]:checked ~ .menu {
        display: block;
        position: absolute;
        top: 100%;
        right: 50px;
        background-color: white;
        width: 200px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .burger-menu .menu li {
        padding: 15px 0;
        text-align: right;
    }

    .navbar {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .logo {
        position: static;
        transform: none;
        margin-bottom: 10px;
    }

    .burger-menu {
        position: static;
        margin-top: 10px;
    }

    .menu {
        width: 100%; /* Full-width menu */
        text-align: left;
    }

    .menu li {
        padding: 10px 0;
    }
}

/* Video Overlay */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: -1;
}

.video-overlay video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
}

.burger-menu input[type="checkbox"]:checked ~ .video-overlay {
    display: flex;
}

/* Change the logo and menu items to white when video pops up */
.burger-menu input[type="checkbox"]:checked ~ .navbar .logo a,
.burger-menu input[type="checkbox"]:checked ~ .menu li a {
    color: #fff;
}

.burger-menu input[type="checkbox"]:checked ~ .menu-icon {
    color: #fff;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center; 
    background: url('assets/bg-test.jpg') no-repeat center center/cover;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    margin-top: 20vh;
}

.big-text {
    font-size: 6rem;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
    opacity: 0;
    transform: translateY(100px); 
    margin-bottom: -1rem;
    letter-spacing: -0.1em;
}

.big-text:hover {
    letter-spacing: -0.05em; /* Expands the letters slightly */
    transition: letter-spacing 1s ease; /* Smooth transition */
    transform: scale(1.1);
    cursor: pointer;
}




.tagline {
    font-size: 1rem; 
    font-weight: 100; 
    color: #262626; 
    letter-spacing: 0.05em; 
    margin-top: 200px;
    opacity: 0;
    transform: translateY(20px); 
    transition: opacity 0.5s ease, transform 0.5s ease; 
    font-family: monospace;
}

#hero:hover .tagline {
    opacity: 1; 
    transform: translateY(0); 
}


.headline {
    font-size: 10rem;
    margin-bottom: 40px;
    letter-spacing: -0.15em;
}

@media (max-width: 1200px) {
    .headline {
        font-size: 6rem;
    }

    .big-text {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    #hero {
        height: auto;
        padding: 20px;
    }

    .hero-content {
        margin-top: 10vh;
    }

    .big-text {
        font-size: 2rem;
        margin: 1rem;
    }

    .tagline {
        font-size: 1rem;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    #hero {
        height: auto;
        padding: 20px;
        text-align: center;
    }

    .hero-content {
        margin-top: 5vh;
    }

    .big-text {
        font-size: 1.8rem; /* Adjust font size for smaller screens */
        line-height: 1.2;
        margin-bottom: -1rem;
    }

    .tagline {
        font-size: 1rem;
        margin-top: 10px;
    }
}

/* Work Section */
#projects {
    min-height: 100vh; /* Change from height to min-height */
    padding: 60px 20px; /* Keep padding for spacing */
    background-color: #f9f9f9;
    text-align: center;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.projects-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects-item img {
    width: 100%; /* Ensure the image spans the container width */
    height: 200px; /* Set a fixed height */
    object-fit: cover; /* Maintain aspect ratio and crop excess */
    border-bottom: 2px solid #f0f0f0;
}

.projects-item h3 {
    font-size: 1.5rem;
    margin: 15px 0;
    color: #333;
}

.projects-item p {
    font-size: 1rem;
    color: #555;
    padding: 0 10px 20px;
}

.projects-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr; /* Stack items in a single column */
        gap: 15px;
    }

    .projects-item {
        padding: 10px;
    }

    .projects-item h3 {
        font-size: 1.2rem;
    }

    .projects-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #projects {
        padding: 20px 10px; /* Reduce padding for smaller screens */
    }

    .projects-container {
        grid-template-columns: 1fr; /* Single-column layout */
        gap: 10px; /* Reduce gap between items */
    }

    .projects-item {
        padding: 10px;
        text-align: center;
    }

    .projects-item img {
        height: auto; /* Allow images to scale naturally */
        max-height: 150px; /* Limit image height */
    }

    .projects-item h3 {
        font-size: 1.2rem; /* Adjust font size */
        margin: 10px 0;
    }

    .projects-item p {
        font-size: 0.9rem; /* Adjust font size */
        margin: 0 5px;
    }
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
}

.modal-content {
    position: relative;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    background-color: #fff;
    border-radius: 10px;
    text-align: center;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.modal-content h3 {
    margin: 20px 0 10px;
    font-size: 1.5rem;
    color: #333;
}

.modal-content p {
    font-size: 1rem;
    color: #555;
}

.close {
    position: absolute;
    top: -10px;
    right: -40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 480px) {
    .modal-content {
        width: 90%; /* Reduce modal width */
        padding: 15px;
        margin-top: 30vh;
    }

    .modal-content img {
        max-height: 200px; /* Limit image height in modal */
    }

    .modal-content h3 {
        font-size: 1.5rem; /* Adjust font size */
    }

    .modal-content p {
        font-size: 1rem; /* Adjust font size */
    }

    .close {
        font-size: 2rem; /* Adjust close button size */
        top: 10px;
        right: 20px; 
    }
}

/* Contact Section */
#contact {
    background-color: #333; /* Dark gray background */
    color: #fff; /* White text */
    padding: 100px 20px; /* Add generous padding for spacing */
    text-align: center;
    position: relative;
}

#contact h2 {
    font-size: 4rem; /* Large, bold headline */
    font-family: 'Archivo Black', sans-serif; /* Bold font for contrast */
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#contact p {
    font-size: 1.2rem; /* Clean, readable text */
    line-height: 1.8;
    margin-bottom: 60px;
    color: #ccc; /* Softer white for contrast */
}

#contact a {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff; /* White links for simplicity */
    text-decoration: none;
    border-bottom: 2px solid #fff; /* Subtle underline effect */
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

#contact a:hover {
    color: #999; /* Slightly dimmed on hover */
    border-color: #999; /* Match hover color */
}

/* Decorative line above the contact section */
#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background-color: #555; /* Subtle divider line */
}

@media (max-width: 768px) {
    #contact {
        padding: 60px 15px;
    }

    #contact h2 {
        font-size: 2.5rem;
    }

    #contact p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #contact {
        padding: 30px 10px;
    }

    #contact p {
        font-size: 0.9rem;
    }
}

/* Footer Section */
#footer {
    background-color: #333; /* Dark gray background */
    color: #fff; /* White text */
    height: 50vh; /* Take up 50% of the screen */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 800px;
    padding: 20px;
    animation: fadeInFooter 1.5s ease-in-out forwards;
    opacity: 0;
    transform: translateY(50px);
}

.footer-logo {
    font-size: 2.5rem; /* Slightly smaller logo */
    font-family: monospace; /* Use monospace font */
    text-transform: uppercase;
    letter-spacing: 0.05em; /* Subtle spacing for a clean look */
    margin-bottom: 15px;
    animation: slideIn 1.5s ease-in-out;
}

.footer-tagline {
    font-size: 1.1rem;
    font-family: monospace; /* Use monospace font */
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
    font-family: monospace; /* Use monospace font */
    font-size: 1rem;
    color: #fff;
}

.footer-links a {
    display: inline-block;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #999;
}

.footer-divider {
    width: 70%; /* Slightly smaller divider */
    height: 1px; /* Thinner divider for a modern look */
    background-color: #555;
    margin: 20px auto;
}

.footer-copyright {
    font-size: 0.9rem; /* Subtle copyright text */
    font-family: monospace; /* Use monospace font */
    color: #aaa;
    letter-spacing: 0.02em; /* Subtle spacing for readability */
}

/* Responsive Design for Footer */
@media (max-width: 768px) {
    #footer {
        height: auto; /* Allow footer to adjust height */
        padding: 30px 15px;
    }

    .footer-logo {
        font-size: 2.5rem;
    }

    .footer-tagline {
        font-size: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-links a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #footer {
        padding: 20px 10px;
        text-align: center;
    }

    .footer-logo {
        font-size: 1.8rem; /* Adjust font size */
    }

    .footer-tagline {
        font-size: 0.9rem; /* Adjust font size */
    }

    .footer-links {
        flex-direction: column;
        gap: 5px;
    }

    .footer-links a {
        font-size: 0.8rem; /* Adjust font size */
    }
}

/* Scroll-to-Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: #555;
    transform: scale(1.1);
}

/* Show button when visible */
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .headline {
        font-size: 6rem;
    }

    .big-text {
        font-size: 4rem;
    }

    .projects-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Adjust hero section */
    #hero {
        height: auto;
        padding: 20px;
    }

    .hero-content {
        margin-top: 10vh;
    }

    .big-text {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
        margin-top: 20px;
    }

    /* Adjust navigation */
    .navbar {
        padding: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .menu {
        display: none;
    }

    .burger-menu {
        display: none;
    }

    /* Adjust projects section */
    .projects-container {
        grid-template-columns: 1fr; /* Stack items in a single column */
        gap: 15px;
    }

    .projects-item {
        padding: 10px;
    }

    .projects-item h3 {
        font-size: 1.2rem;
    }

    .projects-item p {
        font-size: 0.9rem;
    }

    /* Adjust contact section */
    #contact {
        padding: 60px 15px; /* Reduce padding for smaller screens */
        margin-top: 20px; /* Adjust spacing for smaller screens */
    }

    #contact p {
        font-size: 1rem; /* Adjust font size */
    }
}

@media (max-width: 480px) {
    /* Further adjustments for very small screens */
    .headline {
        font-size: 4rem;
    }

    .big-text {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.8rem;
    }

    .projects-container {
        grid-template-columns: 1fr; /* Ensure single-column layout */
    }

    .projects-item h3 {
        font-size: 1rem;
    }

    .projects-item p {
        font-size: 0.8rem;
    }

    .navbar {
        flex-direction: column;
    }

    .logo {
        position: static;
        transform: none;
        margin-bottom: 10px;
    }

    .burger-menu {
        position: static;
        margin-top: 10px;
    }

    /* Adjust contact section */
    #contact {
        padding: 30px 10px; /* Further reduce padding for very small screens */
        margin-top: 15px; /* Adjust spacing for very small screens */
    }

    #contact p {
        font-size: 0.9rem; /* Adjust font size for smaller screens */
    }
}
