/* General styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Space', sans-serif;
    background-color: black;
    color: white;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    border: 1px solid white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: black;
    z-index: 1000;
    box-sizing: border-box;
}

header img {
    height: 50px;
    padding: 10px;
    box-sizing: border-box;
}

header nav {
    display: flex;
    gap: 1rem;
}

header nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 10px 20px;
    transition: background-color 0.3s, color 0.3s;
}

header nav a:hover {
    background-color: white;
    color: black;
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Full-screen menu styles */
.fullscreen-menu {
    visibility: hidden; /* Hide the menu initially */
    opacity: 0; /* Fully transparent */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1050;
    display: flex; /* Use Flexbox for centering */
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    transition: opacity 0.5s ease, visibility 0.5s ease; /* Smooth fade-in/out effect */
}

.fullscreen-menu.active {
    visibility: visible; /* Make the menu visible */
    opacity: 1; /* Fully opaque */
}

.fullscreen-menu a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    margin: 1rem 0; /* Add spacing between links */
    transition: color 0.3s ease;
    text-align: center; /* Ensure text is centered */
}

.fullscreen-menu a:hover {
    color: gray;
}

/* Close button styles */
.fullscreen-menu .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    transition: color 0.3s ease;
}

.fullscreen-menu .close-btn:hover {
    color: gray;
}

/* Hamburger menu animation when active */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full screen height */
    background-color: black; /* Adjust as needed */
    color: white;
    text-align: center;
    position: relative;
    border: 1px solid white;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 4rem; /* Adjust size as needed */
    font-family: 'Space', sans-serif;
    color: white;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.6); /* Optional glow effect */
    margin-bottom: 20px; /* Space between title and subtitle */
    font-family: geo;
}

/* Typing effect */
.hero-subtitle {
    font-size: 1.5rem; /* Adjust size as needed */
    font-style: italic;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflowing text during typing */
    display: flex;
    align-items: center;
}

#cursor {
    font-weight: bold;
    font-style: normal;
    font-size: 1.2rem;
    color: white;
    margin-left: 5px;
    animation: blink 1s infinite; /* Blinking animation */
}

@keyframes blink {
    0%, 50% {
        opacity: 1; /* Fully visible */
    }
    51%, 100% {
        opacity: 0; /* Invisible */
    }
}

/* Scroll down arrow */
.scroll-down {
    position: absolute;
    bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Main container styles */
main.container {
    flex: 1; /* Allow the main content to grow and take up available space */
    display: flex;
    flex-wrap: wrap;
}

/* Column styles */
section.column {
    flex: 1 1 calc(50% - 20px);
    border: 1px solid white;
    padding: 20px;
    box-sizing: border-box;
}

video {
    width: 40vw;
    max-width: 800px;
    height: auto;
    object-fit: cover; /* Ensures the video scales properly */
    position: relative; /* Fixes the video in place */
    z-index: -1; /* Places the video behind other elements */
}

/* Footer styles */
footer {
    width: 100%; /* Ensure the footer spans the full width */
    background-color: black; /* Match the background color */
    color: white; /* White text for contrast */
    text-align: center; /* Center-align the text */
    padding: 1rem; /* Add padding for spacing */
    border: 1px solid white; /* Add a border at the top of the footer */
    box-sizing: border-box; /* Include padding and border in the width */
}

/* Font-face for Space.ttf */
@font-face {
    font-family: 'Space';
    src: url('space.ttf') format('truetype');
}
@font-face {
    font-family: 'geo';
    src: url('geo.ttf') format('truetype');
}

#scrollarrow {
    width: 10vw;
    max-width: 30px;
}


.scroll-text {
    font-size: 0.8rem;
    color: white;
    text-align: center;
    margin-top: 10px;
}

.buttonlink {
    border: 1px solid white;
    background-color: black;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 10px;
    border-radius: 0; /* Square corners */
    text-decoration: none;
}

.buttonlink:hover {
    background-color: white;
    color: black;
}

social-links img {
    width: 24px;
    height: 24px;
}

/* Contact Me button */
#contact-me-btn {
    border: 1px solid white;
    background-color: black;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 10px;
    border-radius: 0; /* Square corners */
}

#contact-me-btn:hover {
    background-color: white;
    color: black;
}

/* Clipboard notification */
#clipboard-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    color: black;
    padding: 10px 20px;
    font-size: 1rem;
    border: 1px solid black;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

#clipboard-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* Email display */
#email-display {
    margin-top: 10px;
    font-size: 1.2rem;
    color: white;
    transition: 1s;
}

/* Social links container */
.social-links {
    display: flex; /* Arrange links in a row */
    gap: 20px; /* Add spacing between the links */
    align-items: center; /* Align the links vertically */
    margin-top: 10px;
}

/* Social item container */
.social-item {
    display: flex;
    flex-direction: column; /* Stack the image and caption vertically */
    align-items: center; /* Center-align the content */
    text-align: center;
}

/* Social links images */
.social-links img {
    width: 30px; /* Set the width of the images */
    height: 30px; /* Set the height of the images */
    transition: transform 0.3s ease; /* Add a hover effect */
}

.social-links img:hover {
    transform: scale(1.1); /* Slightly enlarge the image on hover */
}

/* Social captions */
.social-item p {
    margin-top: 5px; /* Add spacing between the image and caption */
    font-size: 0.9rem; /* Slightly smaller font size for captions */
    color: white; /* Match the site's color scheme */
}

/* Typing effect */
#typing-effect {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    color: white;
    font-family: 'Space', sans-serif;
    overflow: hidden; /* Hide overflowing text during typing */
}

#cursor {
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
    margin-left: 5px;
    animation: blink 1s infinite; /* Default blinking animation */
}

#cursor.blink {
    animation: blink 1s infinite; /* Blinking cursor after typing */
}

@keyframes blink {
    0%, 30s% {
        opacity: 0;
    }
    30%, 70% {
        opacity: 1;
    }
    70%, 100% {
        opacity: 0;
    }
}

h2 {
    font-size: 1.5rem;
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 20px; /* Add spacing between grid items */
    align-items: center; /* Align items vertically */
}

.project {
    display: contents; /* Allow child elements to span grid cells */
}

.project a {
    text-decoration: none; /* Remove underline from links */
    color: white; /* Set link color */
    transition: 1s;
}
.project a:hover {
    color: #0f0; /* Change color on hover */
}

.project-text {
    grid-column: span 2; /* Text spans 2 columns */
    font-size: 1rem;
    color: white;
}

.project-logo {
    grid-column: span 1; /* Image spans 1 column */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: geo;
    font-size: 2rem;
}

.project-image {
    width: 40vw;
    max-width: 100%;
    height: auto;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 20px; /* Add spacing between grid items */
    align-items: center; /* Align items vertically */
}

.skill {
    display: contents; /* Allow child elements to span grid cells */
    padding-top: 10px;
}
.skill-text {
    grid-column: span 2; /* Text spans 2 columns */
    font-size: 1rem;
    color: white;
    margin-top: 0;
}

.skill-logo {
    grid-column: span 1; /* Image spans 1 column */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: geo;
    font-size: 2rem;
}

/* Responsive styles */
@media (max-width: 839px) {
    section.column {
        flex: 1 1 100%;
    }
    header nav {
        display: none; /* Hide the nav links */
    }

    .hamburger {
        display: flex; /* Show the hamburger menu */
    }
    .projects-grid {
        grid-template-columns: 1fr; /* Single column layout on smaller screens */
    }

    .project-text {
        grid-column: span 1; /* Text spans full width */
    }
    .skill-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 equal columns on smaller screens */
    }
    .skill-logo {
        grid-column: span 2; /* Image spans 2 columns */
    }
    .project-image {
        width: 80vw;
        height: auto;
    }
}


@media (min-width: 840px) {
    #typing-effect {
        font-size: 2rem;
    }
    
    #cursor {
        font-size: 2rem;
    }
    h2 {
        font-size: 2rem;
    }
}
/* Button container styles */
.button-container {
    display: flex; /* Use Flexbox to align buttons in a row */
    justify-content: space-between; /* Add spacing between buttons */
    gap: 10px; /* Add consistent spacing between buttons */
    margin-top: 10px; /* Add spacing above the button container */
}

/* Button styles */
.buttonlink {
    flex: 1; /* Make all buttons take up equal width */
    text-align: center; /* Center-align the text inside the buttons */
    border: 1px solid white;
    background-color: black;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 0; /* Square corners */
    text-decoration: none; /* Remove underline */
}

.buttonlink:hover {
    background-color: white;
    color: black;
}