body {
    background-color: #fafafa;
    /* #fafafa, dark grey ->  #9d9f98 dark red -> 982f2a light red ->*/
    margin: 0;
    padding: 0;
    font-family: 'JetBrains Mono', monospace;

}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #f6f6f6;
}

.header-content-right {
    display: flex;
    gap: 2rem;
}

p {
    color: black;
    font-family: 'JetBrains Mono', monospace;
    display: inline-block;
    margin: 0;

}

.home-txt,
.projects-txt,
.contact-txt {
    color: #982f2a;
}

.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 2rem;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;

    /* remove 'Recent Projects' from main view */
    margin-top: 120px;
}

.hero-content {
    flex: 1;
}

/* Hero Text Styles */
.hero-greeting {
font-size: 26px;
color: #982f2a;
margin-bottom: 0;
font-weight: normal;
}

.hero-name {
font-size: 84px;
color: black;
font-weight: bold;
margin: 0 0 1rem 0;
line-height: 1.2;
font-family: 'JetBrains Mono', monospace;

}

.typewriter {
font-size: 38px;
color: #666666;
margin: 0;
min-height: 1.5rem;
}

.hero-image {
    flex: 0 0 auto;
    --angle: 0deg;
    --offsetX: 0%;
    --offsetY: 0%;
    transform: rotate(var(--angle));
    transition: transform .09s;
    position: relative;
    width: 300px; /* Define container size */
    height: auto;
}

.hero-image .bg {
    background: radial-gradient(circle at center, #982f2a 0%, #9d9f98 70%, transparent 100%);
    -webkit-mask-image: url("assets/herome.png");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url("assets/herome.png");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    position: absolute;
    inset: 0;
    transform: translate(var(--offsetX), var(--offsetY));
    transition: transform .09s;
    z-index: -1;
}

.hero-image img {
    position: relative;
    width: 300px;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Typewriter cursor effect */
.typewriter::after {
content: '|';
animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}


/* needs to get centered between my name
.view-projects {
    padding: 0.2rem .8rem;
    background-color: #f6f6f6;
    color: #982f2a;
    border: 2px solid #666666;
    border-radius: 4px;
    text-decoration: none;
    width: 164px; /* Adjust this value as needed
    font-weight: bold;
    font-family: 'sfmono', monospace;
    text-align: center;
    margin-left: 156px;
    margin-top: 20px;
}
*/

.arrow-container {
    display: block;
    width: 100px;
    height: 64px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) rotateZ(0deg);
    text-decoration: none;
    z-index: 10;
}

.arrow-container.scrolled {
    cursor: pointer;
}

.arrow-container.scrolled .arrow {
    top: 50%;
}

.arrow-container.scrolled .arrow:before {
    transform: translate(-50%, -50%) rotateZ(-30deg);
}

.arrow-container.scrolled .arrow:after {
    transform: translate(-50%, -50%) rotateZ(30deg);
}

.arrow {
    position: absolute;
    left: 50%;
    transition: all 0.4s ease;
}

.arrow:before,
.arrow:after {
    transition: all 0.4s ease;
    content: '';
    display: block;
    position: absolute;
    transform-origin: bottom right;
    background: #982f2a;
    width: 4px;
    height: 25px;
    border-radius: 10px;
    transform: translate(-50%, -50%) rotateZ(-45deg);
}

.arrow:after {
    transform-origin: bottom left;
    transform: translate(-50%, -50%) rotateZ(45deg);
}

/* Individual arrow positioning and opacity */
.arrow:nth-child(1) {
    opacity: 0.3;
    top: 35%;
}

.arrow:nth-child(2) {
    opacity: 0.6;
    top: 55%;
}

.arrow:nth-child(3) {
    opacity: 0.9;
    top: 75%;
}

.projects-section {
        padding: 40px 20px;
        max-width: 900px;
        padding-top: 0;
        margin: 0 auto;
    }

.section-title {
    font-size: 2.0rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    background: #982f2a;  
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-container {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 45vh;
    min-height: 300px;
    overflow: hidden;
}

@media (max-height: 700px) {
    .project-container {
        gap: 20px;
    }
}

@media (max-height: 600px) {
    .project-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        height: auto;
        min-height: auto;
        padding: 20px;
    }

    .project-video {
        flex: none;
        width: 100%;
        max-width: 300px;
        height: 169px;
    }

    .project-title {
        font-size: 1.4rem;
    }

    .project-description {
        font-size: 0.85rem;
    }
}

@media (max-height: 500px) {
    .project-container {
        padding: 15px;
        gap: 10px;
    }

    .project-title {
        font-size: 1.2rem;
        margin-bottom: 3px;
    }

    .project-role {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .project-description {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .project-technologies {
        gap: 6px;
        margin-bottom: 10px;
    }

    .tech-tag {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .project-video {
        max-width: 250px;
        height: 141px;
    }
}

.project-container:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: black;
    margin-bottom: 5px;
}

.project-role {
    font-size: 0.95rem;
    color: #982f2a;    
    font-weight: 500;
    margin-bottom: 8px;
}

.project-description {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.tech-tag {
    background: linear-gradient(164deg, white, #982f2a);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: transparent;
    border: 1.167px solid #982f2a;
    color: #982f2a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #fafafa;
    color: #982f2a;
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.project-video {
    flex: 0 0 350px;
    height: 197px; /* 16:9 aspect ratio for 350px width */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.project-video img,
.project-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-container:hover .project-video img,
.project-container:hover .project-video video {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-overlay:hover {
    background: rgba(102, 126, 234, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 15px solid white;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    margin-left: 3px;
}

@media (max-width: 968px) {
    .project-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        height: auto;
        min-height: auto;
    }

    .project-video {
        flex: none;
        width: 100%;
        max-width: 400px;
        height: 225px;
    }

    .section-title {
        font-size: 2rem;
    }

    .project-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .projects-section {
        padding: 0 15px;
    }

    .project-container {
        padding: 20px;
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .project-title {
        font-size: 1.4rem;
    }

    .project-video {
        max-width: 300px;
        height: 169px;
    }
}

/* Remove margin-top and use flex or padding for spacing if needed */
.animated-arrow {
    position: relative;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phome, .pprojects, .pcontact {
    cursor: pointer;
}

html {
    scroll-behavior: smooth;
}

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

.icon-image {
    width: 25px;
    height: 25px;
}

@media (max-width: 768px) {
    
    /* Target the main div containing the image */
    .hero-image {
        display: none !important; /* Hides the entire div and its contents */
    }
}

#background-video {
    /* Optional: Sets the video to cover the entire screen */
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    /* CRUCIAL: Prevents user clicks/gestures from interacting with the video */
    pointer-events: none; 
    
    /* Prevents the browser's default right-click menu (save video, etc.) */
    user-select: none;
}