/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #0A0903;
    --color-white: #F8F3F2;
    --color-gray: #423E3B;
    --color-orange: #C97C5D;
    --color-light-orange: #EED7C5;

    --font-primary: "Karla", sans-serif;
    --font-secondary: "Bitcount Single", system-ui;
    --font-header: "Syne Mono", monospace;

    --transition-primary: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .footer-mobile-align {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-container {
        padding: 0 20px;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    /* right: 0; */
    z-index: 1000;
    padding: 30px 0;
    transition: all 0.3s ease;
    width: 100%;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-selectable, .nav-selectable:hover, .nav-selectable:active, .nav-selectable:focus {
  outline: none;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-black);
    transition: opacity 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-black);
    font-size: 16px;
    position: relative;
    transition: opacity 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-black);
    transition: width 0.3s var(--transition-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Footer Section */

footer {
    background-color: var(--color-orange);
    padding: 2rem 0;
}

.footer-content {
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: fit-content;
}

.footer-title {
    font-family: var(--font-secondary);
}

.footer-bottom {
    color: var(--color-white);
    font-family: var(--font-secondary);
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
}

.footer-email {
    font-family: var(--font-secondary);
}

.social-links {
    color: var(--color-white);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    background-color: var(--color-light-orange);
}

.hero-content {
    width: 100%;
}

.hero-name {
    font-family: var(--font-secondary);
}

.hero-title {
    color: var(--color-orange);
    font-family: var(--font-header);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 40px;
    overflow: hidden;
}

.line {
    display: block;
    margin-bottom: 10px;
}

.line-inner {
    display: inline-block;
    transform: translateY(100%);
    animation: revealText 1s var(--transition-primary) forwards;
}

.line:nth-child(2) .line-inner {
    animation-delay: 0.1s;
}

@keyframes revealText {
    to {
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-gray);
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 1s 0.5s var(--transition-primary) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 60px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-gray);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: var(--color-gray);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    transform: translateY(-100%);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    to {
        transform: translateY(100%);
    }
}

/* Section Styles */
.work-section,
.about-section {
    padding: 120px 0;
}

.about-section {
    background-color: var(--color-light-orange);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: var(--font-header);
    margin-bottom: 80px;
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.title-number {
    font-size: 12px;
    font-family: var(--font-secondary);
    color: var(--color-gray);
    font-weight: 400;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 60px;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-link {
    text-decoration: none;
    color: var(--color-black);
    display: block;
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--transition-primary);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-card:hover .project-overlay {
    background-color: rgba(0, 0, 0, 0.1);
}

.project-info {
    padding: 30px 0;
}

.project-title {
    font-size: 24px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    font-family: var(--font-header);
}

.project-card:hover .project-title {
    transform: translateX(10px);
}

.project-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--color-gray);
}

/* Additional WordPress-specific styles */

/* Page Transitions */
.page-transition::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    z-index: 10000;
    transform: translateY(100%);
    animation: pageTransition 1s var(--transition-primary) forwards;
}

@keyframes pageTransition {
    0% {
        transform: translateY(100%);
    }
    50% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

/* WordPress Admin Bar Adjustment */
.admin-bar .navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .navbar {
        top: 46px;
    }
}

/* Single Project Styles */
.project-single {
    padding-top: 100px;
}

.project-hero {
    padding: 80px 0;
}

.project-meta-top {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--color-gray);
    font-family: var(--font-secondary);
}

.project-hero .project-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 30px;
}

.project-excerpt {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-gray);
    max-width: 800px;
}

.project-featured-image {
    margin-bottom: 80px;
}

.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
}

.container-narrow {
    max-width: 800px;
}

.project-content {
    padding: 80px 0;
}

.project-content h2,
.project-content h3,
.project-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.project-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.project-content img {
    max-width: 100%;
    height: auto;
    margin: 40px 0;
}

/* Project Details Grid */
.project-details {
    padding: 80px 0;
    background-color: var(--color-orange);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.detail-item h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item p {
    font-size: 18px;
    font-weight: 500;
}

/* Project Gallery */
.project-gallery {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--transition-primary);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Next Project Section */
.next-project {
    padding: 120px 0;
    background-color: var(--color-orange);
}

.next-project-link {
    display: block;
    text-decoration: none;
    color: var(--color-black);
    position: relative;
}

.next-label {
    font-size: 14px;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 20px;
    font-family: var(--font-secondary);
}

.next-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 40px;
    transition: transform 0.3s var(--transition-primary);
    font-family: var(--font-header);
}

.next-project-link:hover .next-title {
    transform: translateX(20px);
}

.next-image {
    overflow: hidden;
    aspect-ratio: 16/9;
}

.next-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--transition-primary);
}

.next-project-link:hover .next-image img {
    transform: scale(1.05);
}

/* Blog Styles */
.blog-single,
.blog-posts {
    padding-top: 100px;
}

.post-hero {
    padding: 80px 0 40px;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--color-gray);
    margin-bottom: 20px;
}

.reading-time::before {
    content: '•';
    margin-right: 20px;
}

.post-featured-image {
    margin-bottom: 60px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-content {
    padding: 40px 0 80px;
}

.post-tags {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.tag-label {
    color: var(--color-gray);
    margin-right: 10px;
}

.post-tags a {
    color: var(--color-black);
    text-decoration: none;
    padding: 5px 15px;
    background-color: var(--color-orange);
    border-radius: 20px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.post-tags a:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* Post Navigation */
.post-navigation {
    padding: 60px 0;
    border-top: 1px solid #e5e5e5;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.nav-previous,
.nav-next {
    flex: 1;
    text-decoration: none;
    color: var(--color-black);
}

.nav-next {
    text-align: right;
}

/* Post Navigation continued */
.nav-label {
    display: block;
    font-size: 14px;
    color: var(--color-gray);
    margin-bottom: 10px;
}

.nav-title {
    font-size: 18px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.nav-previous:hover .nav-title {
    transform: translateX(-10px);
}

.nav-next:hover .nav-title {
    transform: translateX(10px);
}

/* Blog Archive Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.post-card {
    background-color: var(--color-white);
    transition: transform 0.3s var(--transition-primary);
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-link {
    text-decoration: none;
    color: var(--color-black);
    display: block;
}

.post-image-wrapper {
    aspect-ratio: 16/9;
    overflow: hidden;
    margin-bottom: 20px;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--transition-primary);
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

.post-content {
    padding: 20px 0;
}

.post-card .post-meta {
    margin-bottom: 15px;
}

.post-card .post-title {
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-excerpt {
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.post-card:hover .read-more {
    transform: translateX(5px);
}

/* Archive Pages */
.archive-hero,
.blog-hero {
    padding: 120px 0 80px;
}

.archive-title,
.blog-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
}

.archive-subtitle,
.blog-subtitle {
    font-size: 20px;
    color: var(--color-gray);
    max-width: 600px;
}

.archive-description {
    margin-top: 30px;
    max-width: 600px;
    line-height: 1.6;
}

/* Project Filters */
.project-filters {
    padding: 40px 0 60px;
    border-bottom: 1px solid #e5e5e5;
}

.filter-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid var(--color-black);
    padding: 10px 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* Pagination */
.pagination {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-numbers {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--color-black);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.page-numbers:hover {
    border-color: var(--color-black);
}

.page-numbers.current {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* Responsive Navigation */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    width: 30px;
    height: 30px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--color-black);
    position: absolute;
    left: 5px;
    transition: all 0.3s ease;
}

.menu-toggle span:first-child {
    top: 8px;
}

.menu-toggle span:last-child {
    bottom: 8px;
}

.menu-toggle.active span:first-child {
    transform: rotate(45deg);
    top: 14px;
}

.menu-toggle.active span:last-child {
    transform: rotate(-45deg);
    bottom: 14px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    .container-wide {
        padding: 0 40px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 24px;
    }
    
    /* Hero adjustments */
    .hero {
        min-height: 80vh;
        padding: 140px 0 60px;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    /* Grid adjustments */
    .projects-grid,
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Typography adjustments */
    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 40px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .container-wide {
        padding: 0 20px;
    }
    
    /* Footer adjustments */
    .footer-content {
        text-align: center;
    }
    
    .footer-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Standard cursor styles */
a,
button,
.magnetic-element {
    cursor: pointer;
}

/* ===== HOVER EFFECTS ===== */

/* Default transition for all interactive elements */
a,
button,
input[type="submit"],
.project-card,
.magnetic-element {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* --- Navigation Links --- */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-black);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

/* Alternative: Slide up underline */
.nav-link.slide-up::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-black);
    transform: translateY(4px);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-link.slide-up:hover::after {
    transform: translateY(0);
    opacity: 1;
}

/* --- Logo Hover --- */
.logo {
    transition: all 0.3s ease;
}

.logo:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

/* --- Button Hover Effects --- */

/* Primary Button - Fill effect */
.btn-primary,
button[type="submit"],
.form-submit .submit {
    position: relative;
    overflow: hidden;
    background-color: var(--color-gray);
    color: var(--color-white);
    border: 2px solid var(--color-gray);
    transition: all 0.3s ease;
    z-index: 1;
    font-family: var(--font-header);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--color-light-orange);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--color-gray);
}

.btn-primary:hover::before {
    width: 100%;
}

/* Secondary Button - Border Fill */
.btn-secondary {
    position: relative;
    background-color: transparent;
    color: var(--color-gray);
    border: 2px solid var(--color-gray);
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: var(--font-header);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--color-gray);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: var(--color-white);
}

.btn-secondary:hover::before {
    width: 110%;
    height: 110%;
}

/* --- Project Card Hover Effects --- */
.project-card {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-image-wrapper {
    overflow: hidden;
}

.project-image {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image {
    transform: scale(1.08);
}

/* Project overlay with gradient */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* Project Number Animation */
.project-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.project-card:hover .project-number {
    opacity: 1;
    transform: translateX(0);
}

/* Project Title Slide */
.project-title {
    transition: transform 0.3s ease;
}

.project-card:hover .project-title {
    transform: translateX(10px);
}

/* Project Meta Fade */
.project-meta {
    transition: opacity 0.3s ease;
}

.project-card:hover .project-meta {
    opacity: 0.7;
}

/* --- Social Links Hover --- */
.social-link {
    position: relative;
    transition: all 0.3s ease;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.social-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- Footer Email Hover --- */
.footer-email {
    font-size: clamp(1rem, 3vw, 2rem);
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-email:hover {
    transform: translateY(-5px);
}

.footer-email::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-black);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.footer-email:hover::before {
    transform: scaleX(1);
}

/* --- Magnetic-style Effect (without custom cursor) --- */
.magnetic-element {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.magnetic-element:hover {
    transform: scale(1.05);
}

/* --- Image Hover Effects --- */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- Next Project Hover --- */
.next-project-link {
    display: block;
    transition: all 0.3s ease;
}

.next-project-link:hover .next-title {
    transform: translateX(20px);
}

.next-project-link .next-image {
    overflow: hidden;
}

.next-project-link .next-image img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.next-project-link:hover .next-image img {
    transform: scale(1.05) rotate(1deg);
}

/* --- Filter Button Hover --- */
.filter-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--color-black);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    z-index: -1;
}

.filter-btn:hover {
    color: var(--color-white);
    border-color: var(--color-black);
}

.filter-btn:hover::before {
    width: 200%;
    height: 200%;
}

/* --- Read More Arrow Animation --- */
.read-more {
    position: relative;
    transition: all 0.3s ease;
}

.read-more::after {
    content: '→';
    position: absolute;
    right: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.post-card:hover .read-more {
    padding-right: 20px;
}

.post-card:hover .read-more::after {
    opacity: 1;
    right: 0;
}

/* --- Tag Hover Effect --- */
.post-tags a {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.post-tags a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    transition: left 0.3s ease;
    z-index: -1;
}

.post-tags a:hover {
    color: var(--color-white);
}

.post-tags a:hover::before {
    left: 0;
}

/* --- Focus States for Accessibility --- */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--color-black);
    outline-offset: 2px;
}

/* --- Smooth Color Transitions --- */
a {
    color: var(--color-light-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-gray);
}

/* Custom logo styles */
.logo {
    display: inline-block;
    transition: opacity 0.3s ease;
    height: 80px; /* Adjust as needed */
    width: auto;
    display: block;
}

/* Hover effect */
.logo:hover {
    opacity: 0.8;
}

/* Make logo bigger on desktop */
@media (min-width: 768px) {
    .logo {
        height: 80px;
    }
}

/* When navbar is scrolled, make logo smaller */
.navbar-scrolled .logo {
    height: 60px;
    transition: height 0.3s ease-in-out;
}


/* Print Styles */
@media print {
    .navbar,
    .footer,
    .project-navigation,
    .post-navigation,
    .pagination {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Button Groups */
.hero-buttons,
.about-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Ensure buttons have consistent styling */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Icon inside button */
.btn-secondary svg {
    display: inline-block;
    vertical-align: middle;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero-buttons,
    .about-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Fade in animation delay */
.hero-buttons {
    animation-delay: 0.6s;
}

.about-buttons {
    margin-top: 60px;
}

/* ===== RESUME PAGE STYLES ===== */

.resume-content {
    padding-top: 100px;
    background-color: var(--color-white);
}

.resume-hero {
    padding: 80px 0 60px;
    border-bottom: 1px solid #e5e5e5;
}

.resume-header {
    text-align: center;
}

.resume-name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 10px;
    font-family: var(--font-header);
}

.resume-title {
    font-size: 20px;
    font-weight: 400;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.resume-body {
    padding: 80px 0;
}

.resume-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Resume Content Block Styles */
.resume-main-content {
    margin-bottom: 60px;
}

/* Contact Info Grid */
.wp-block-columns.resume-contact {
    margin-bottom: 40px !important;
    gap: 20px;
}

.resume-contact .wp-block-column {
    text-align: center;
}

@media (max-width: 768px) {
    .resume-contact .wp-block-column {
        text-align: left;
        margin-bottom: 10px;
    }
}

/* Resume Sections */
.resume-main-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 60px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-black);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resume-main-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 5px;
}

.resume-main-content h4 {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-gray);
    margin-bottom: 5px;
}

/* Resume Lists */
.resume-main-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.resume-main-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.resume-main-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-black);
    font-weight: bold;
}

/* Two Column Layout for Skills/Education */
.wp-block-columns.resume-two-col {
    gap: 60px;
    margin-bottom: 40px;
}

/* Skills Grid */
.wp-block-group.skills-grid ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.wp-block-group.skills-grid ul li {
    padding-left: 0;
}

.wp-block-group.skills-grid ul li::before {
    display: none;
}

/* Experience Entries */
.wp-block-group.experience-entry {
    margin-bottom: 40px;
}

.wp-block-group.experience-entry h3 {
    margin-bottom: 0;
}

.wp-block-group.experience-entry h4 {
    margin-bottom: 10px;
}

.wp-block-group.experience-entry p {
    font-size: 14px;
    color: var(--color-gray);
    margin-bottom: 15px;
}

/* Date Ranges */
.resume-date {
    font-size: 14px;
    color: var(--color-gray);
    font-weight: 500;
}

/* Introduction Block */
.wp-block-group.resume-intro {
    background-color: var(--color-light-gray);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 60px;
}

.wp-block-group.resume-intro h2 {
    border-bottom: none;
    margin-top: 0;
}

/* Links in Resume */
.resume-main-content a {
    color: var(--color-black);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.resume-main-content a:hover {
    color: var(--color-gray);
}

/* Download Button */
.resume-actions {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.resume-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.resume-actions svg {
    width: 20px;
    height: 20px;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .resume-actions,
    .resume-hero {
        display: none;
    }
    
    .resume-content {
        padding-top: 0;
    }
    
    .resume-body {
        padding: 0;
    }
    
    .resume-main-content h2 {
        page-break-after: avoid;
    }
    
    .wp-block-group.experience-entry {
        page-break-inside: avoid;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .resume-hero {
        padding: 60px 0 40px;
    }
    
    .resume-body {
        padding: 40px 0;
    }
    
    .wp-block-columns {
        flex-direction: column !important;
    }
    
    .wp-block-group.resume-intro {
        padding: 30px 20px;
    }
}

/* Parallax Image Styles */
.parallax-wrapper {
    position: relative;
    overflow: hidden;
}

.parallax-image {
    width: 100%;
    height: auto;
    transform: translateY(0);
    transition: transform 0.5s ease-out;
    will-change: transform;
}

/* Parallax Effect */
@media (min-width: 768px) {
    .parallax-image {
        transition: none; /* Remove transition for smoother parallax effect */
    }
}