/*
Theme Name: Wavy Theme
Author: RJ
Description: An extremely lightweight, barebones WordPress theme.
Version: 1.6
*/

/* --- Basic Setup & Variables --- */
:root {
    --text-color: #e0e0e0;
    --background-color: #0a0a0a;
    --accent-color: #ffffff;
    --overlay-color: rgba(0, 0, 0, 0.6);
}

body {
    background-color: #fff; /* White background for single pages */
    color: #333;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html, body {
	width: 100%;
	height: 100%;
}

/* Re-apply dark theme for homepage body */
.home body {
    background-color: var(--background-color);
    color: var(--text-color);
}

/* --- General Typography & Links --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    letter-spacing: 1px;
    color: #111; /* Default color for text on white background */
}

/* Re-apply dark theme text color for homepage */
.home h1, .home h2, .home h3, .home h4, .home h5, .home h6 {
    color: var(--accent-color);
}

h1, h2 {
	font-family: Verdana, sans-serif;
	font-weight: bold !important;
}

h3, h4, h5 {
	font-family: 'Courier New', monospace;
}

a {
    color: #111;
    text-decoration: none;
    transition: color 0.3s ease;
}

.home a {
    color: var(--accent-color);
}

a:hover {
    color: #a0a0a0;
}

/* --- Header & Navigation --- */
#masthead {
    position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 95%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
	margin: 0px auto;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

#masthead .site-title {
	font-family: Verdana, sans-serif;
	font-weight: bold !important;
}

#masthead .site-title a {
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#masthead .main-navigation ul {
	font-family: 'Courier New', monospace;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

#masthead .main-navigation ul li {
    margin-left: 2rem;
}

#masthead .main-navigation ul li a {
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Make header text white on single post pages for hero image */
.single-post #masthead .site-title a, .single-post #masthead .main-navigation a {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

#primary {
	height: calc(100vh - 24px);
}

footer {
	display: flex;
	justify-content: center;
	text-align: center;
	font-family: 'Courier New', monospace;
	margin: 0px auto;
    width: 100%;
    text-align: center;
	font-size: 12px;
	height: 24px;
}

/* --- Hero Section (front-page.php) --- */
#hero {
    height: 50vh;
    display: flex;
    align-items: flex-end; 
    justify-content: flex-start; 
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: -10vh;
    left: 0;
    width: 100%;
    height: 70vh;
    background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.8)), url('/wp-content/uploads/2025/06/galaxy_starfield-scaled.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: zoom-in-out 30s linear infinite;
}

.hero-content {
    z-index: 2;
    position: relative;
    text-align: left;
    padding: 4rem 0;
	width: 95%;
	margin: 0px auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    margin: 0;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: 0.5rem;
    color: var(--text-color);
}

@keyframes zoom-in-out {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#portfolio {
    background-color: #fff;
    color: #111;
}

#portfolio-grid-container {
    display: flex;
    gap: 1.5em;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

#portfolio-grid-container::-webkit-scrollbar {
    height: 20px;
}

#portfolio-grid-container::-webkit-scrollbar-track {
    background: #f7f6f6;
    border-radius: 10px;
}

#portfolio-grid-container::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 10px;
    border: 2px solid #f7f6f6;
}

#portfolio-grid-container::-webkit-scrollbar-thumb:hover {
    background: #000;
}

#portfolio-grid-container {
    scrollbar-width: thin;
    scrollbar-color: #000 #f7f6f6;
}

.portfolio-item {
    flex: 0 0 300px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-flow: column;
    scroll-snap-align: center;
}

.portfolio-item:first-of-type {
	margin-left: 10px;
}

.portfolio-item .content-item {
	height: 300px;
}

.portfolio-item-image {
    width: 100%;
    height: 100%;
}

.portfolio-item video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the video/image cover the area without distortion */
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* On hover, blur and darken the image */
.portfolio-item:hover .portfolio-item-image img {
    transform: scale(1.05);
    filter: blur(5px) brightness(0.7);
}

.portfolio-item-caption {
    /* Overlay styles */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Centering content */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;

    /* Hide by default */
    opacity: 0;
    transition: opacity 0.5s ease;
	height: 300px;
}

/* On hover, reveal the caption */
.portfolio-item:hover .portfolio-item-caption {
    opacity: 1;
}

.portfolio-item-caption h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.portfolio-item-fallback {
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
}

.portfolio-item .post-tags {
	margin: 5px 0 10px 0;
	gap: 0;
}

.portfolio-item .post-tags li + li:before { content: "/"; padding-right: 4px; }

.portfolio-item .post-tags li a {
	    display: inline-block;
    padding: 4px 4px 0 0;
    background-color: transparent;
    border-radius: 0;
    font-size: 0.8rem;
    color: #555;
    border: none;
    transition: all 0.3s ease;
}

.carousel-arrow {
    background: transparent;
    border: none;
    color: #000;
    font-size: 4rem;
    cursor: pointer;
    padding: 0 2rem;
    z-index: 10;
    transition: opacity 0.3s ease;
}

/* ===================================== */
/* --- SINGLE POST PAGE STYLES --- */
/* ===================================== */

.single-post #masthead .site-title a, .single-post #masthead .main-navigation a {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.hero-background-video,
.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the video/image cover the area without distortion */
    z-index: 1;
}

.hero-background-image {
    background-size: cover;
    background-position: center;
}

.single-hero {
    height: 60vh;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
	overflow: hidden;
}

.single-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(25, 25, 25, 0.5); /* Grayed-out overlay */
	z-index: 2;
}

/* This is a wrapper for the entire page content after the parallax hero */
.single-post-main {
    background-color: #fff;
    position: relative;
    z-index: 5;
    padding: 0;
}

.entry-header-area {
    margin: 0 auto;
    padding: 1rem 0;
    text-align: left;
    width: 95%;
}

.entry-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.entry-meta .project-category {
	font-family: 'Courier New', monospace;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
}

.responsive-embed {
  position: relative;
  width: 100%;
  height: 0;
  overflow: hidden;
}

.responsive-embed.landscape { padding-bottom: 56.25%; } /* 16:9 */
.responsive-embed.portrait  { padding-bottom: 177.77%; } /* 9:16 */

.responsive-embed iframe,
.responsive-embed video,
.responsive-embed embed,
.responsive-embed object {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


.post-tags {
	font-family: 'Courier New', monospace;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem;
}

.post-tags li a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #555;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.post-tags li a:hover {
    background-color: #e0e0e0;
    color: #111;
    border-color: #ccc;
}

/* Styles for the new description section */
.project-description-section {
    width: 95%;
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

/* Styles for the restored inline featured image */
.post-featured-image-inline {
    width: 95%;
    margin: 0 auto;
	margin-top: 4rem;
}
.post-featured-image-inline img {
    width: 100%;
    height: auto;
}

.entry-content-wrapper {
    width: 95%;
    margin: 0 auto;
    padding: 2rem 0;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}
.entry-content a {
	color: blue;
	text-decoration: underline
}

/* --- Masonry Gallery --- */
.masonry-gallery-section {
    padding-bottom: 2rem;
    width: 95%;
    margin: 0 auto;
	overflow: hidden;
}

.masonry-grid {
    margin: 0 auto;
}
.grid-sizer,
.masonry-grid-item {
    width: calc(33.333%);
	transition: top 0.4s ease, left 0.4s ease;
}
.masonry-grid-item img {
    display: block;
    width: 100%;
    height: auto;
}
/* Style for wider masonry items */
.masonry-grid-item--width2 {
    width: 99%; /* Make item span two columns */
}

.featured-video,
.masonry-grid-item video,
.masonry-archive-item video {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Animation System (Re-used by both pages) --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.visible {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animation-delay-1.visible { animation-delay: 0.2s; }
.animation-delay-2.visible { animation-delay: 0.4s; }

/* ===================================== */
/* --- NEW: MASONRY ARCHIVE STYLES v2 --- */
/* ===================================== */

.archive-main {
    background-color: #fff;
    color: #111;
}

.archive-header {
    padding: 100px 0 25px 0;
    max-width: 95vw; /* Set max-width for the container */
    margin: 0 auto;
    text-align: left;
}

.archive-title {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
}

.masonry-archive-grid {
	position: relative;
    width: 95%;
    margin: 0 auto;
	margin-top: 40px;
	margin-bottom: 2em;
}
.grid-sizer,
.masonry-archive-item {
    width: 50%;
	transition: top 0.4s ease, left 0.4s ease;
    display: block;
    text-decoration: none;
    break-inside: avoid;
    position: relative;
    overflow: hidden;
}

.masonry-archive-image {
    display: block;
    width: 100%;
}

.masonry-archive-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.masonry-archive-item:hover .masonry-archive-image img {
    transform: scale(1.05);
    filter: blur(5px) brightness(0.7);
}

.masonry-archive-caption {
    /* Overlay styles */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 95%;
    
    /* Centering content */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Hide by default */
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* On hover, reveal the caption */
.masonry-archive-item:hover .masonry-archive-caption {
    opacity: 1;
}

.masonry-archive-title {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    color: #fff; /* White text for the overlay */
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ===================================== */
/* --- NEW: ABOUT PAGE STYLES --- */
/* ===================================== */

.about-main {
	width: 95%;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 4rem 0;
    box-sizing: border-box;
	position: relative;
}

.about-content-wrapper {
    max-width: 95%;
    width: 100%;
    text-align: left;
}

.about-headline {
    font-size: 3.5rem;
    font-weight: 500; 
    margin: 0 0 0.5rem;
    line-height: 1.2;
    color: #111;
}

.about-subtitle {
    font-size: 1rem;
	font-family: 'Courier New', monospace;
    font-weight: 300; 
    color: #666;
    margin: 0 0 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.about-description {
    font-size: 0.9rem; 
    line-height: 1.8;
    color: #555;
    margin: 0 auto;
	margin-bottom: 2em;
}

.tags-title {
	font-family: Verdana, sans-serif;
	font-weight: bold !important;
    font-size: 1.5rem;
    font-weight: 500; 
    margin: 2em 0 1em 0;
    line-height: 1.2;
    color: #111;
}

.about-content-wrapper .tag-list {
	display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.about-content-wrapper .tag-list li {
	border: 1px solid #000;
    border-radius: 4px;
    padding: 5px 1em;
}

.about-content-wrapper .tag-list li:hover {
	background-color: black;
	color: white;
}

@media (max-width: 960px) {
    .masonry-archive-grid {
        width: 100%;
        padding: 0;
		padding-bottom: 24px;
    }
    .grid-sizer,
    .masonry-archive-item {
        width: 50%;
    }
}
@media (min-width: 768px) {
	#hero {
		height: 50vh;
	}
	#portfolio {
		height: calc(50vh - 24px);
	}
}
@media (max-width: 768px) {
    #masthead {
        padding: 10px 0;
        align-items: center;
    }

    #masthead .site-title a {
        font-size: 1.2rem;
    }
	
	#masthead .site-title {
		margin: 0px auto;
	}
    
    #masthead .main-navigation ul li {
        margin-left: 1rem;
    }

    #masthead .main-navigation ul li a {
        font-size: 0.9rem;
    }
	footer {
		margin-top: 1em;
	}
	#primary {
		height: auto;
	}
    .hero-content {
        padding: 10px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .portfolio-item {
        flex: 0 0 250px;
        height: 250px;
    }

    .carousel-arrow {
        font-size: 2.5rem;
        padding: 0 1rem;
    }
    
    /* Single Post Responsive */
    .single-hero {
        height: 50vh;
        background-attachment: scroll;
    }
    .single-post-main .entry-title {
        font-size: 2.5rem;
    }
    .grid-sizer, .masonry-grid-item, .masonry-grid-item--width2 {
        width: 100%;
    }
	.masonry-grid-item {
		margin-bottom: 0;
	}
	
	 /* --- Archive Page Responsive --- */
    .archive-header { 
    
    }
	.about-headline {
        font-size: 2.5rem;
    }
    .about-subtitle {
        font-size: 0.9rem;
    }
    .about-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    #masthead {
        flex-direction: column;
        padding: 10px 0;
    }

    #masthead .site-title {
        margin-bottom: 1rem;
    }
    
    #masthead .main-navigation ul li {
        margin: 0 0.5rem;
    }
    
    .hero-content {
        width: 95%;
        padding: 1em 0;
        box-sizing: border-box;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
    
    #portfolio {
        padding: 0;
    }

    .portfolio-carousel {
        display: block;
    }
    
    #portfolio-grid-container {
        display: block;
        padding: 0;
		margin: 0px auto;
        overflow: visible;
        scroll-snap-type: none;
        gap: 0;
    }

    .portfolio-item {
        flex: none;
        width: 100%;
        height: auto;
		margin-bottom: 1em;
    }

    .portfolio-item img {
        display: block;
    }
	
	.portfolio-item:first-of-type {
	margin-left: 0;
}

	.portfolio-item .post-tags {
		padding: 0 5px;
	}
	
  /* Single Post Responsive */
    .single-post-main .entry-title {
        font-size: 2rem;
    }
	.post-featured-image-inline {
		width: 100%;
	}
    /* --- Archive Page Responsive (Phones) --- */
	.masonry-archive-grid {
		margin-top: 80px;
	}
    .grid-sizer,
    .masonry-archive-item {
        width: 100%;
    }
	.masonry-archive-item p {
	left: auto;
	top: auto;
	position: relative;
	}
	
	.masonry-gallery-section {
		width: 100%;
	}
	.about-main {
		padding-top: 5em;
		margin-top: 1em;
	}
}