/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #22383b 0%, #160404 100%);
    background-attachment: fixed;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-top: 80px;
    /* Add smooth transitions for page changes */
    transition: opacity 0.3s ease-in-out;
}

/* View Transitions API Styles */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-from-right {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slide-from-left {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slide-out-to-left {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* Define view transition names for elements */
.nav-brand {
    view-transition-name: nav-brand;
}

.main-title {
    view-transition-name: main-title;
}

.navigation {
    view-transition-name: navigation;
}

.logo-image {
    view-transition-name: logo-image;
}

.hero-section {
    view-transition-name: hero-section;
}

.featured-work {
    view-transition-name: featured-work;
}

/* Portfolio page specific transitions */
.portfolio-header {
    view-transition-name: portfolio-header;
}

.portfolio-grid {
    view-transition-name: portfolio-grid;
}

.portfolio-item {
    view-transition-name: portfolio-item;
}

/* About page specific transitions */
.about-section {
    view-transition-name: about-section;
}

.skills-section {
    view-transition-name: skills-section;
}

/* Contact page specific transitions */
.contact-section {
    view-transition-name: contact-section;
}

.form-section {
    view-transition-name: form-section;
}

/* Footer transitions */
.footer {
    view-transition-name: footer;
}

/* Custom transition styles for View Transitions API */
::view-transition-old(root) {
    animation: 0.6s cubic-bezier(0.4, 0, 0.2, 1) both slide-out-to-left;
}

::view-transition-new(root) {
    animation: 0.6s cubic-bezier(0.4, 0, 0.2, 1) both slide-from-right;
}

/* Specific element transitions */
::view-transition-old(nav-brand),
::view-transition-new(nav-brand) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(main-title),
::view-transition-new(main-title) {
    height: 100%;
    object-fit: cover;
}

::view-transition-old(logo-image),
::view-transition-new(logo-image) {
    height: 100%;
    object-fit: cover;
}

/* Portfolio item transitions */
::view-transition-old(portfolio-item),
::view-transition-new(portfolio-item) {
    height: 100%;
    object-fit: cover;
}

/* Enhanced Page Transitions (CSS Fallback) */
.page-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.2s; /* Slight delay for smoother effect */
}

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

/* Staggered animation for page content elements */
.page-content > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-content > *:nth-child(1) { animation-delay: 0.3s; }
.page-content > *:nth-child(2) { animation-delay: 0.4s; }
.page-content > *:nth-child(3) { animation-delay: 0.5s; }
.page-content > *:nth-child(4) { animation-delay: 0.6s; }
.page-content > *:nth-child(5) { animation-delay: 0.7s; }

/* Enhanced page transition overlay (CSS Fallback) */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #22383b 0%, #160404 100%);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.1);
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}

.page-transition::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 107, 53, 0.3);
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-transition.active::before {
    opacity: 1;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Navigation link hover transitions */
.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Smooth transitions for all interactive elements */
.nav-link, .portfolio-nav-box, .cta-button, .work-item, .portfolio-item, .social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced hover effects */
.nav-link:hover {
    color: #ffffff;
    transform: scale(1.1);
    text-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.9),
        8px 8px 16px rgba(0, 0, 0, 0.7),
        12px 12px 24px rgba(0, 0, 0, 0.5),
        16px 16px 32px rgba(0, 0, 0, 0.3);
}

.portfolio-nav-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Import serif font for titles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&display=swap');
/* Import sans-serif font for navigation */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Navigation */
.navigation {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Fixed height to prevent layout shifts */
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand .brand-separator {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
}

.nav-brand .brand-subtitle {
    font-size: 1.2rem;
    font-weight: 100;
    color: #ff6b35;
    letter-spacing: 0.1em;
    font-family: 'Inter', sans-serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.12em;
    padding: 10px 20px;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), text-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    display: inline-block;
    line-height: 1.2;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        4px 4px 8px rgba(0, 0, 0, 0.6),
        6px 6px 12px rgba(0, 0, 0, 0.4);
}

.nav-link:hover {
    color: #ffffff;
    font-size: 1.1rem;
    padding: 8px 18px; /* Slightly reduce padding to compensate for larger font */
    text-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.9),
        8px 8px 16px rgba(0, 0, 0, 0.7),
        12px 12px 24px rgba(0, 0, 0, 0.5),
        16px 16px 32px rgba(0, 0, 0, 0.3);
}

.nav-link.active {
    color: #ff6b35;
}

/* Animated ink/brush effect */
.nav-link::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 50% 0%, transparent 0%, transparent 40%, transparent 70%, transparent 100%),
        radial-gradient(ellipse at 30% 20%, transparent 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, transparent 0%, transparent 70%);
    border-radius: 50% 50% 20px 20px;
    transition: top 0.25s ease-out;
    z-index: -2;
    opacity: 0;
    filter: blur(1px);
    transform-origin: center top;
}

.nav-link:hover::before {
    top: 0;
    opacity: 1;
    animation: liquidFlow 0.4s ease-out forwards, liquidPulse 1.5s ease-in-out infinite;
}

/* Additional liquid texture overlay */
.nav-link::after {
    content: '';
    position: absolute;
    top: -80%;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 50% 10%, transparent 0%, transparent 50%),
        radial-gradient(ellipse at 25% 40%, transparent 0%, transparent 60%),
        radial-gradient(ellipse at 75% 50%, transparent 0%, transparent 70%);
    border-radius: 40% 40% 15px 15px;
    transition: top 0.25s ease-out 0.05s;
    z-index: -2;
    opacity: 0;
    filter: blur(2px);
    transform-origin: center top;
}

.nav-link:hover::after {
    top: 0;
    opacity: 1;
    animation: liquidTexture 0.5s ease-out forwards, liquidRipple 1.8s ease-in-out infinite;
}

/* Liquid flow animation */
@keyframes liquidFlow {
    0% {
        transform: scaleY(0) scaleX(0.3);
        opacity: 0;
        border-radius: 50% 50% 20px 20px;
    }
    40% {
        transform: scaleY(0.8) scaleX(0.9);
        opacity: 0.8;
        border-radius: 50% 50% 25px 25px;
    }
    80% {
        transform: scaleY(1.05) scaleX(1.02);
        opacity: 0.9;
        border-radius: 35% 35% 18px 18px;
    }
    100% {
        transform: scaleY(1) scaleX(1);
        opacity: 1;
        border-radius: 30% 30% 15px 15px;
    }
}

/* Liquid texture animation */
@keyframes liquidTexture {
    0% {
        transform: scaleY(0) scaleX(0.2);
        opacity: 0;
        border-radius: 40% 40% 15px 15px;
    }
    50% {
        transform: scaleY(0.7) scaleX(0.8);
        opacity: 0.7;
        border-radius: 42% 42% 16px 16px;
    }
    100% {
        transform: scaleY(1) scaleX(1);
        opacity: 1;
        border-radius: 30% 30% 10px 10px;
    }
}

/* Continuous liquid pulse animation */
@keyframes liquidPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scaleY(1) scaleX(1);
        border-radius: 30% 30% 15px 15px;
    }
    50% {
        opacity: 1;
        transform: scaleY(1.02) scaleX(1.01);
        border-radius: 35% 35% 18px 18px;
    }
}

/* Continuous liquid ripple animation */
@keyframes liquidRipple {
    0%, 100% {
        opacity: 0.7;
        transform: scaleY(1) scaleX(1);
        border-radius: 30% 30% 15px 15px;
    }
    25% {
        opacity: 0.9;
        transform: scaleY(1.01) scaleX(1.02);
        border-radius: 32% 32% 16px 16px;
    }
    50% {
        opacity: 0.8;
        transform: scaleY(1.02) scaleX(0.99);
        border-radius: 35% 35% 17px 17px;
    }
    75% {
        opacity: 0.85;
        transform: scaleY(0.99) scaleX(1.01);
        border-radius: 33% 33% 16px 16px;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 60px;
}

.logo-container {
    display: inline-block;
    position: relative;
}

.logo-image {
    width: 300px;
    height: 300px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}



.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 60px 60px;
    align-items: start;
    margin-bottom: 30px;
    position: relative;
    overflow: visible;
}

.left-panel {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    overflow: visible;
}

.right-panel {
    grid-column: 2;
    grid-row: 1 / 3;
}

.side-nav-box {
    background: rgba(26, 42, 58, 0.8);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    width: calc(50% - 30px);
    margin-left: 0;
}

/* Portfolio Navigation Box */
.portfolio-nav-box {
    background: rgba(26, 42, 58, 0.8);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    grid-column: 1;
    grid-row: 2;
    margin-top: -215px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.about-nav-box {
    grid-row: 3;
    margin-top: -319px;
}

.contact-nav-box {
    grid-row: 4;
    margin-top: -221px;
}

.portfolio-nav-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grunge" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="15" cy="5" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="5" cy="15" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grunge)"/></svg>');
    pointer-events: none;
    z-index: 1;
}





.portfolio-nav-box:hover {
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.1);
}

.portfolio-nav-box:hover::before {
    opacity: 0.8;
}

.portfolio-nav-box:hover::after {
    opacity: 0.6;
}

.portfolio-nav-button {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.portfolio-nav-box:hover::before {
    opacity: 0.8;
}

.portfolio-nav-box:hover::after {
    opacity: 0.6;
}

.portfolio-nav-box:hover .portfolio-nav-button {
    color: #ff6b35;
    transform: scale(1.02);
}

.portfolio-nav-box:hover .cursor-glow {
    opacity: 1;
}



/* Left Panel */
.left-panel {
    background: rgba(26, 42, 58, 0.8);
    padding: 60px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.left-panel {
    background: rgba(26, 42, 58, 0.8);
    padding: 60px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.left-panel::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1));
    border-radius: 50%;
    filter: blur(30px);
    z-index: 1;
}

.cursor-glow {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 85%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.left-panel:hover .cursor-glow {
    opacity: 1;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grunge" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="15" cy="5" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="5" cy="15" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grunge)"/></svg>');
    pointer-events: none;
}

.left-panel::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1));
    border-radius: 50%;
    filter: blur(30px);
    z-index: 1;
}

.hero-section {
    position: relative;
    z-index: 1;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-bottom: 5px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    position: relative;
    line-height: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.main-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="distress" x="0" y="0" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="8" cy="2" r="0.3" fill="rgba(255,255,255,0.05)"/><circle cx="2" cy="8" r="0.3" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23distress)"/></svg>');
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    pointer-events: none;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #b0b0b0;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.screen-name {
    color: #ff6b35;
    font-weight: 600;
    font-style: italic;
}

.hero-description {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 300;
    text-align: center;
}

.about-highlights {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.highlight-icon {
    font-size: 1.2rem;
}

.highlight-text {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #ff6b35;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #b0b0b0;
    letter-spacing: 0.1em;
}

/* CTA Section */
.cta-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-button {
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: #ffffff;
    border: none;
}

.cta-button.secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ff6b35;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

/* Right Panel */
.right-panel {
    background: rgba(45, 27, 46, 0.8);
    padding: 60px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.right-panel:hover .cursor-glow {
    opacity: 1;
}

.right-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grunge2" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="15" cy="5" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="5" cy="15" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grunge2)"/></svg>');
    pointer-events: none;
}

.right-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 107, 53, 0.05) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 30px;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

.large-letter {
    font-size: 1.3em;
    display: inline-block;
    margin: 0 -0.05em;
    vertical-align: baseline;
    line-height: 1;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-bottom: 5px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    position: relative;
    line-height: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.name-oneline {
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: nowrap;
}

.word-spacing {
    margin-right: 0.5em;
}

.centered-title {
    text-align: center;
    margin-bottom: 40px;
}

.centered-subtitle {
    text-align: center;
    margin-bottom: 0.2rem;
    margin-top: -40px;
}

.profession-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #b0b0b0;
    text-align: center;
    margin-top: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bio-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #b0b0b0;
    text-align: center;
    margin-top: 1.5rem;
    font-weight: 300;
    max-width: 100%;
}

.specialization {
    color: #4ade80;
    font-weight: 600;
}

.inspiration {
    color: #b0b0b0;
    font-weight: 600;
}

/* Side Navigation Box */
.side-nav-box {
    background: rgba(26, 42, 58, 0.8);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.side-nav-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.side-nav-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 2;
}

.side-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.side-nav-menu li {
    margin-bottom: 12px;
}

.side-nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #b0b0b0;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.side-nav-link:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.side-nav-link::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 4px;
    height: 0;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    transition: height 0.3s ease;
    transform: translateY(-50%);
}

.side-nav-link:hover::before {
    height: 100%;
}

.image-button {
    background: none;
    border: none;
    padding: 0;
    cursor: zoom-in;
    width: 100%;
    transition: all 0.3s ease;
}

.image-button:hover {
    transform: scale(1.05);
}

.image-button:hover .featured-image {
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.featured-image:hover {
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

/* Image Popup Styles */
.image-popup {
    display: none;
    position: fixed !important;
    z-index: 10000 !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
    cursor: default;
    pointer-events: auto;
}

.image-popup.show {
    opacity: 1;
}

.popup-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    pointer-events: auto; /* Allow interaction with popup content */
}

.popup-content.show {
    opacity: 1;
    pointer-events: none; /* Allow background clicks to pass through */
}

.close-button {
    position: absolute;
    top: 30px;
    right: 680px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1002;
    transition: color 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.close-button:hover {
    color: #ff6b35;
    background: rgba(0, 0, 0, 0.7);
}

.popup-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    pointer-events: auto;
    cursor: default;
    perspective: 1000px;
}

/* PNG images with transparent backgrounds - no background styling */
.popup-image[src*=".png"] {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.work-preview {
    position: relative;
    z-index: 1;
}

.work-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.work-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.work-image {
    margin-bottom: 15px;
}

.image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #2d1b2e, #1a2a3a);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 53, 0.3);
    border-radius: 50%;
}

.work-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.work-info p {
    color: #b0b0b0;
    margin-bottom: 15px;
    line-height: 1.5;
}

.work-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.1em;
}

/* Portfolio Page Styles */
.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grunge3" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="15" cy="5" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="5" cy="15" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grunge3)"/></svg>');
    pointer-events: none;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.2), rgba(247, 147, 30, 0.2));
    border-radius: 50%;
    filter: blur(15px);
}

.portfolio-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-image {
    margin-bottom: 20px;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.portfolio-content p {
    color: #b0b0b0;
    margin-bottom: 20px;
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portfolio-cta {
    text-align: center;
    margin-top: 60px;
}

/* About Page Styles */
.about-content {
    margin-bottom: 40px;
}

.about-text {
    color: #b0b0b0;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.personal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.skill-category h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.education-section {
    margin-top: 40px;
}

.education-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.education-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.education-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #ffffff;
}

.education-item p {
    color: #b0b0b0;
    margin-bottom: 10px;
}

.education-year {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
}

.about-cta {
    text-align: center;
    margin-top: 60px;
}

/* Contact Page Styles */
.contact-info {
    margin-bottom: 40px;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.contact-item p {
    color: #b0b0b0;
    font-size: 1rem;
}

.social-links h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.social-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    padding: 10px 20px;
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.contact-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff6b35;
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b0b0b0;
}

.submit-button {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.contact-cta {
    margin-top: 60px;
    text-align: center;
}

.expectations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.expectation-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.expectation-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.expectation-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.expectation-item p {
    color: #b0b0b0;
    line-height: 1.6;
}

/* Footer */
.footer {
    margin-top: 60px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-text {
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .cta-section {
        flex-direction: column;
    }
}

/* Animations */
@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.hero-section,
.featured-work {
    animation: fadeInUp 0.8s ease-out;
}

/* Glow Effects */
.main-title,
.stat-number {
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

/* Enhanced Visual Effects */
.work-tag, .skill-tag {
    position: relative;
    overflow: hidden;
}

.work-tag::before, .skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.work-tag:hover::before, .skill-tag:hover::before {
    left: 100%;
}

/* Enhanced glow effects for titles */
.main-title, .section-title {
    position: relative;
}

.main-title::after, .section-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    filter: blur(20px);
    z-index: -1;
}

/* Brush stroke effects */
.cta-button.primary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-radius: 8px;
    z-index: -1;
    filter: blur(4px);
    opacity: 0.5;
} 

/* Loading state for form submissions */
.submit-button.loading {
    position: relative;
    color: transparent;
}

.submit-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
} 

/* Portfolio Grid Layout - Matching Home Page Structure */
.portfolio-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    margin: 20px auto;
    max-width: 1400px;
    padding: 0 40px;
    position: relative;
    overflow: visible;
}

.portfolio-panel {
    background: rgba(45, 27, 46, 0.8); /* Matching right-panel background */
    padding: 60px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 0 0 auto; /* Don't grow/shrink, use natural size */
    min-width: 400px; /* Minimum size */
    max-width: 100%; /* Can take full width */
}

.portfolio-panel.large-panel {
    flex: 0 0 80%; /* Take 80% width instead of full width */
    min-width: 80%;
    max-width: 1200px; /* Limit maximum width */
    margin: 0 auto 20px auto; /* Center the panel and add bottom margin */
    padding: 80px; /* Larger padding for bigger panel */
}

.portfolio-panel.large-panel .portfolio-featured-image {
    max-height: 600px; /* Larger max height for the image */
    width: 100%;
    object-fit: contain;
}

/* Photography Row - All photography images on same row */
.photography-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 40px;
}

/* Alternating row colors - Red (like right-panel) */
.photography-row .portfolio-panel {
    background: rgba(45, 27, 46, 0.8);
}

.photography-panel {
    flex: 0 0 auto;
    padding: 60px;
}

/* Character Portraits Row - Omori + FF14 + Wylder */
.character-portraits-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin: 20px auto;
    max-width: 1400px;
    padding: 0 40px;
}

/* Alternating row colors - Blue (like left-panel) */
.character-portraits-row .portfolio-panel {
    background: rgba(26, 42, 58, 0.8);
}

/* Editorial Row - Steam Typography + Magazine Cover - MUCH LARGER */
.editorial-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin: 20px auto;
    max-width: 1400px;
    padding: 0 40px;
}

/* Alternating row colors - Red (like right-panel) */
.editorial-row .portfolio-panel {
    background: rgba(45, 27, 46, 0.8);
}

.editorial-panel {
    flex: 0 0 auto;
    padding: 100px;
    min-width: 600px;
}

.editorial-panel .portfolio-featured-image {
    max-height: 700px;
    width: 100%;
    object-fit: contain;
}

/* Magazine cover - more zoomed in */
.popup-image[src*="jrpg-gaming-magazine-cover"] {
    max-height: 1100px !important;
    max-width: 800px !important;
    object-fit: contain;
}



/* 3D Typography Row */
.typography-row {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 40px;
}

/* Alternating row colors - Red (like right-panel) */
.typography-row .portfolio-panel {
    background: rgba(45, 27, 46, 0.8);
}

.typography-panel {
    flex: 0 0 auto;
    padding: 80px;
    min-width: 500px;
}

.typography-panel .portfolio-featured-image {
    max-height: 500px;
    width: 100%;
    object-fit: contain;
}

/* Self Portrait Row - Much larger */
.self-portrait-row {
    display: flex;
    justify-content: center;
    margin: 20px auto;
    max-width: 1400px;
    padding: 0 40px;
}

/* Alternating row colors - Blue (like left-panel) */
.self-portrait-row .portfolio-panel {
    background: rgba(26, 42, 58, 0.8);
}

.self-portrait-panel {
    flex: 0 0 95%;
    min-width: 95%;
    padding: 80px;
}

.self-portrait-panel .portfolio-featured-image {
    max-height: 800px;
    width: 100%;
    object-fit: contain;
}

/* Design Row - Vacation Poster + Water Logo */
.design-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 40px;
}

/* Alternating row colors - Blue (like left-panel) */
.design-row .portfolio-panel {
    background: rgba(26, 42, 58, 0.8);
}

.design-panel {
    flex: 0 0 auto;
    padding: 80px;
    min-width: 450px;
}

.design-panel .portfolio-featured-image {
    max-height: 500px;
    width: 100%;
    object-fit: contain;
}

/* FF14 Character Portrait Panels - Same size and larger */
.ff14-panel {
    flex: 0 0 500px;
    min-width: 500px;
    padding: 80px;
}

.ff14-panel .portfolio-featured-image {
    max-height: 500px;
    width: 100%;
    object-fit: contain;
}

/* Persona 3 image specifically - larger than other FF14 images */
.persona3-panel {
    padding: 40px; /* Reduced padding to give image more room */
}

.persona3-panel .portfolio-featured-image {
    max-height: 800px;
    width: 100%;
    object-fit: contain;
}

/* Wylder pixel art panel - shorter height to match FF14 portraits */
.wylder-panel .portfolio-featured-image {
    max-height: 400px;
    width: 100%;
    object-fit: contain;
}

.portfolio-panel:hover {
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.1);
}

.portfolio-panel:hover .cursor-glow {
    opacity: 1;
}

.portfolio-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grunge" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grunge)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.portfolio-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(45, 27, 46, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.portfolio-panel:hover::after {
    opacity: 1;
}

.portfolio-work {
    position: relative;
    z-index: 2;
}

.portfolio-featured-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-featured-image:hover {
    transform: scale(1.04);
}

/* Portfolio Header */
.portfolio-header {
    text-align: center;
    margin: 80px 0 60px 0;
}

.portfolio-header .main-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Header */
.about-header {
    text-align: center;
    margin: 80px 0 60px 0;
}

.about-header .main-title {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Skills and Tools sections */
.skills-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.skills-grid, .tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.skill-item {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    padding: 12px 20px;
    border-radius: 6px;
    border: 1px solid rgba(74, 222, 128, 0.3);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(74, 222, 128, 0.3);
    border-color: rgba(74, 222, 128, 0.5);
    transform: translateY(-2px);
}

.tool-item {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    padding: 12px 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.tool-item:hover {
    background: rgba(255, 107, 53, 0.3);
    border-color: rgba(255, 107, 53, 0.5);
    transform: translateY(-2px);
}

/* Contact page styles */
.contact-box {
    background: rgba(26, 42, 58, 0.8);
    padding: 80px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    grid-column: 1 / -1;
    text-align: center;
    margin: 60px auto;
    max-width: 800px;
}

.contact-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grunge" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="15" cy="5" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="5" cy="15" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grunge)"/></svg>');
    pointer-events: none;
    opacity: 0.3;
    z-index: 1;
}

.contact-box::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1));
    border-radius: 50%;
    filter: blur(30px);
    z-index: 1;
}

.contact-box .main-title {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.contact-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.contact-button {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 15px 40px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.contact-button:hover {
    background: rgba(255, 107, 53, 0.3);
    border-color: rgba(255, 107, 53, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.youtube-nav-box {
    background: rgba(45, 27, 46, 0.8);
}

.youtube-nav-box:hover {
    border-color: rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.1);
}

.youtube-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

/* YouTube section for portfolio page */
.youtube-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 60px auto;
    max-width: 1400px;
    padding: 0 40px;
}

.youtube-section .portfolio-nav-box {
    flex: 0 0 auto;
    padding: 30px;
    margin-top: 0;
    grid-column: auto;
    grid-row: auto;
}

/* Contact page YouTube section */
.contact-youtube-section {
    display: flex;
    justify-content: center;
    margin: 60px auto;
    max-width: 800px;
    padding: 0 40px;
}

.contact-youtube-section .youtube-nav-box {
    flex: 0 0 auto;
    padding: 30px;
    margin-top: 0;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-width: 800px;
}

/* About page buttons section */
.about-buttons-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 60px auto;
    max-width: 1400px;
    padding: 0 40px;
}

.about-buttons-section .portfolio-nav-box {
    flex: 0 0 auto;
    max-width: 300px;
}

.portfolio-header .subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* Portfolio CTA */
.portfolio-cta {
    text-align: center;
    margin: 80px 0 40px;
    padding: 60px;
    background: rgba(45, 27, 46, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-cta .section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.portfolio-cta .cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

/* Enhanced Popup with Side Panel */
.popup-layout {
    display: flex;
    gap: 30px;
    max-width: 90vw;
    max-height: 80vh;
    width: 100%;
    height: 100%;
    pointer-events: auto; /* Allow interaction with layout content */
    align-items: center;
}

.popup-image-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0; /* Allow shrinking */
}

.popup-info-section {
    flex: 0 0 auto;
    min-width: 300px;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.9);
    padding: 30px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    overflow-y: auto;
    height: fit-content;
}

.popup-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.popup-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-category,
.popup-tools {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border-left: 3px solid #ff6b35;
}

.popup-category::before {
    content: "Category: ";
    font-weight: 600;
    color: #ff6b35;
}

.popup-tools::before {
    content: "Tools: ";
    font-weight: 600;
    color: #ff6b35;
}

/* Responsive adjustments for portfolio layout */
@media (max-width: 1200px) {
    .portfolio-container {
        gap: 40px;
    }
    
    .portfolio-panel {
        padding: 40px;
        min-width: 350px;
    }
}

@media (max-width: 768px) {
    .portfolio-container {
        gap: 30px;
        justify-content: center;
    }
    
    .portfolio-panel {
        padding: 30px;
        min-width: 300px;
        max-width: 100%;
    }
    
    .popup-layout {
        flex-direction: column;
        max-height: 90vh;
    }
    
    .popup-info-section {
        flex: 0 0 auto;
        max-height: 40vh;
    }
    
    .portfolio-header .main-title {
        font-size: 2.5rem;
    }
    
    .portfolio-cta .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .portfolio-panel {
        padding: 20px;
        min-width: 280px;
    }
    
    .popup-info-section {
        padding: 20px;
    }
    
    .popup-title {
        font-size: 1.5rem;
    }
} 